| | |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">ç³è¯·</a-button> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('æä½è¯ç³è¯·è¡¨')">导åº</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">导å
¥</a-button> |
| | | </a-upload> |
| | | <a-button @click="handleAchievement" type="primary" icon="plus" v-if="selectedRowKeys.length == 1">æç»©å½å
¥</a-button> |
| | | <!-- é«çº§æ¥è¯¢åºå --> |
| | | <!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>--> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | |
| | | |
| | | </a-table> |
| | | </div> |
| | | <a-tabs defaultActiveKey='1'> |
| | | <a-tab-pane tab='æä½è¯ç³è¯·æç»' key='1'> |
| | | <div |
| | | class='table-operator' |
| | | style='margin:-20px'> |
| | | <operation-certificate-apply-detail-list :mainId='operationCretificateApplyId' /> |
| | | </div> |
| | | |
| | | <operation-certificate-apply-modal ref="modalForm" @ok="modalFormOk"/> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | <operation-certificate-apply-modal ref="modalForm" @ok="modalFormOk" /> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import OperationCertificateApplyModal from './modules/operationCertificateApply/OperationCertificateApplyModal' |
| | | import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' |
| | | import OperationCertificateApplyDetailList from './modules/operationCertificateApply/OperationCertificateApplyDetailList' |
| | | import '@/assets/less/TableExpand.less' |
| | | |
| | | export default { |
| | | name: "OperationCertificateApplyList", |
| | | mixins:[JeecgListMixin], |
| | | components: { |
| | | OperationCertificateApplyModal |
| | | OperationCertificateApplyModal, |
| | | OperationCertificateApplyDetailList |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'æä½è¯ç³è¯·è¡¨ç®¡ç页é¢', |
| | | operationCretificateApplyId:'', |
| | | selectedMainId: '', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | |
| | | fieldList.push({type:'string',value:'auditStatus',text:'å®¡æ ¸ç¶æ',dictCode:'certificate_apply_status'}) |
| | | fieldList.push({type:'string',value:'remark',text:'夿³¨',dictCode:''}) |
| | | this.superFieldList = fieldList |
| | | }, |
| | | handleEdit: function (record) { |
| | | this.$refs.modalForm.edit(record); |
| | | this.$refs.modalForm.title = "ç¼è¾"; |
| | | this.$refs.modalForm.disableSubmit = false; |
| | | }, |
| | | handleAdd: function () { |
| | | this.$refs.modalForm.add(); |
| | | this.$refs.modalForm.title = "æ°å¢"; |
| | | this.$refs.modalForm.disableSubmit = false; |
| | | }, |
| | | handleAchievement(){ |
| | | this.$refs.modalForm.edit(this.selectionRows[0]); |
| | | this.$refs.modalForm.title = "æç»©å½å
¥"; |
| | | this.$refs.modalForm.disableSubmit = false; |
| | | this.$refs.modalForm.isAchievement = true; |
| | | }, |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | if (selectedRowKeys.length == 1) { |
| | | |
| | | this.operationCretificateApplyId = selectionRows[0]['id'] |
| | | } else { |
| | | |
| | | this.operationCretificateApplyId = '' |
| | | } |
| | | this.selectedMainId = selectedRowKeys[0] |
| | | this.selectedRowKeys = selectedRowKeys |
| | | this.selectionRows = selectionRows |
| | | }, |
| | | searchReset() { |
| | | this.operationCretificateApplyId = '' |
| | | this.queryParam = {} |
| | | this.loadData(1) |
| | | }, |
| | | onClearSelected() { |
| | | this.selectedRowKeys = [] |
| | | this.selectionRows = [] |
| | | this.selectedMainId = '' |
| | | this.operationCretificateApplyId = '' |
| | | } |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card |
| | | :bordered='false' |
| | | :class="'cust-erp-sub-tab'" |
| | | > |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class='table-page-search-wrapper'> |
| | | |
| | | </div> |
| | | |
| | | <div> |
| | | |
| | | <a-table |
| | | ref='table' |
| | | size='middle' |
| | | bordered |
| | | rowKey='id' |
| | | :scroll="{ x: 'calc(1400px + 50%)', y: 900 }" |
| | | :columns='columns' |
| | | :dataSource='dataSource' |
| | | :pagination='ipagination' |
| | | :loading='loading' |
| | | @change='handleTableChange' |
| | | > |
| | | |
| | | <template |
| | | slot='htmlSlot' |
| | | slot-scope='text' |
| | | > |
| | | <div v-html='text'></div> |
| | | </template> |
| | | <template |
| | | slot='imgSlot' |
| | | slot-scope='text,record' |
| | | > |
| | | <span |
| | | v-if='!text' |
| | | style='font-size: 12px;font-style: italic;' |
| | | >æ å¾ç</span> |
| | | <img |
| | | v-else |
| | | :src='getImgView(text)' |
| | | :preview='record.id' |
| | | height='25px' |
| | | alt='' |
| | | style='max-width:80px;font-size: 12px;font-style: italic;' |
| | | /> |
| | | </template> |
| | | <template |
| | | slot='takingInfo' |
| | | slot-scope='text' |
| | | > |
| | | <span |
| | | v-if='!text' |
| | | style='font-size: 12px;font-style: italic;color: #126ee7;' |
| | | >/</span> |
| | | <span |
| | | v-if='text' |
| | | style='font-size: 12px;font-style: italic;' |
| | | >{{ text }}</span> |
| | | </template> |
| | | <template |
| | | slot='fileSlot' |
| | | slot-scope='text' |
| | | > |
| | | <span |
| | | v-if='!text' |
| | | style='font-size: 12px;font-style: italic;' |
| | | >æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost='true' |
| | | type='primary' |
| | | icon='download' |
| | | size='small' |
| | | @click='downloadFile(text)' |
| | | > |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | |
| | | <span |
| | | slot='action' |
| | | slot-scope='text, record' |
| | | > |
| | | <a @click='handleEdit(record)'>ç¼è¾</a> |
| | | <a-divider type='vertical' /> |
| | | |
| | | <a-popconfirm |
| | | title='ç¡®å®å é¤å?' |
| | | @confirm='() => handleDelete(record.id)' |
| | | > |
| | | <a v-if="record.uda1 == 'ä¸éè¿'">å é¤</a> |
| | | </a-popconfirm> |
| | | |
| | | </span> |
| | | |
| | | <span |
| | | slot="examinationConclusion" |
| | | slot-scope="text, record" |
| | | > |
| | | |
| | | |
| | | <a |
| | | v-if="record.examinationConclusion === 'N' " |
| | | >ä¸åæ ¼</a> |
| | | <span v-else>åæ ¼</span> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction } from '@api/manage' |
| | | |
| | | export default { |
| | | name: 'OperationCertificateDetailList', |
| | | mixins: [JeecgListMixin], |
| | | |
| | | props: { |
| | | mainId: { |
| | | type: String, |
| | | default: '', |
| | | required: false |
| | | } |
| | | }, |
| | | watch: { |
| | | mainId: { |
| | | immediate: true, |
| | | handler(val) { |
| | | if (!this.mainId) { |
| | | this.clearList() |
| | | } else { |
| | | this.queryParam['id'] = val |
| | | this.loadData(1) |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | description: 'æä½è¯ç®¡çæç»é¡µé¢', |
| | | disableMixinCreated: true, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | { |
| | | title: 'æ£å设å¤', |
| | | align: 'center', |
| | | dataIndex: 'equipmentNames', |
| | | |
| | | }, |
| | | { |
| | | title: 'æ£å项', |
| | | align: 'center', |
| | | dataIndex: 'appointmentCardNum', |
| | | |
| | | }, |
| | | { |
| | | title: 'æ£é¤åæ°', |
| | | align: 'center', |
| | | dataIndex: 'replaceReason', |
| | | |
| | | }, |
| | | { |
| | | title: 'æ£å卿', |
| | | align: 'center', |
| | | dataIndex: 'theoreticalResults', |
| | | |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/eam/operationCertificate/queryOperationCertificateDetailByMainId' |
| | | }, |
| | | dictOptions: { |
| | | type: [], |
| | | inventoryStatus: [] |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl() { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importUrl}/${this.mainId}` |
| | | } |
| | | }, |
| | | methods: { |
| | | clearList() { |
| | | this.dataSource = [] |
| | | this.selectedRowKeys = [] |
| | | this.ipagination.current = 1 |
| | | }, |
| | | |
| | | loadData(arg) { |
| | | if (!this.url.list) { |
| | | this.$message.error('请设置url.list屿§!') |
| | | return |
| | | } |
| | | //å è½½æ°æ® è¥ä¼ å
¥åæ°1åå 载第ä¸é¡µçå
容 |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1 |
| | | } |
| | | var params = this.getQueryParams()//æ¥è¯¢æ¡ä»¶ |
| | | this.loading = true |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | //update-begin---author:zhangyafei Date:20201118 forï¼éé
ä¸åé¡µçæ°æ®å表------------ |
| | | this.dataSource = res.result.records || res.result |
| | | if (res.result.total) { |
| | | this.ipagination.total = res.result.total |
| | | } else { |
| | | this.ipagination.total = 0 |
| | | } |
| | | //update-end---author:zhangyafei Date:20201118 forï¼éé
ä¸åé¡µçæ°æ®å表------------ |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card |
| | | :bordered='false' |
| | | :class="'cust-erp-sub-tab'" |
| | | > |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class='table-page-search-wrapper'> |
| | | |
| | | </div> |
| | | |
| | | <div> |
| | | |
| | | <a-table |
| | | ref='table' |
| | | size='middle' |
| | | bordered |
| | | rowKey='id' |
| | | :scroll="{ x: 'calc(1400px + 50%)', y: 900 }" |
| | | :columns='columns' |
| | | :dataSource='dataSource' |
| | | :pagination='ipagination' |
| | | :loading='loading' |
| | | @change='handleTableChange' |
| | | > |
| | | |
| | | <template |
| | | slot='htmlSlot' |
| | | slot-scope='text' |
| | | > |
| | | <div v-html='text'></div> |
| | | </template> |
| | | <template |
| | | slot='imgSlot' |
| | | slot-scope='text,record' |
| | | > |
| | | <span |
| | | v-if='!text' |
| | | style='font-size: 12px;font-style: italic;' |
| | | >æ å¾ç</span> |
| | | <img |
| | | v-else |
| | | :src='getImgView(text)' |
| | | :preview='record.id' |
| | | height='25px' |
| | | alt='' |
| | | style='max-width:80px;font-size: 12px;font-style: italic;' |
| | | /> |
| | | </template> |
| | | <template |
| | | slot='takingInfo' |
| | | slot-scope='text' |
| | | > |
| | | <span |
| | | v-if='!text' |
| | | style='font-size: 12px;font-style: italic;color: #126ee7;' |
| | | >/</span> |
| | | <span |
| | | v-if='text' |
| | | style='font-size: 12px;font-style: italic;' |
| | | >{{ text }}</span> |
| | | </template> |
| | | <template |
| | | slot='fileSlot' |
| | | slot-scope='text' |
| | | > |
| | | <span |
| | | v-if='!text' |
| | | style='font-size: 12px;font-style: italic;' |
| | | >æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost='true' |
| | | type='primary' |
| | | icon='download' |
| | | size='small' |
| | | @click='downloadFile(text)' |
| | | > |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | |
| | | <span |
| | | slot='action' |
| | | slot-scope='text, record' |
| | | > |
| | | <a @click='handleEdit(record)'>ç¼è¾</a> |
| | | <a-divider type='vertical' /> |
| | | |
| | | <a-popconfirm |
| | | title='ç¡®å®å é¤å?' |
| | | @confirm='() => handleDelete(record.id)' |
| | | > |
| | | <a v-if="record.uda1 == 'ä¸éè¿'">å é¤</a> |
| | | </a-popconfirm> |
| | | |
| | | </span> |
| | | |
| | | <span |
| | | slot="examinationConclusion" |
| | | slot-scope="text, record" |
| | | > |
| | | |
| | | |
| | | <a |
| | | v-if="record.examinationConclusion === 'N' " |
| | | >ä¸åæ ¼</a> |
| | | <span v-else>åæ ¼</span> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction } from '@api/manage' |
| | | |
| | | export default { |
| | | name: 'OperationCertificateApplyDetailList', |
| | | mixins: [JeecgListMixin], |
| | | |
| | | props: { |
| | | mainId: { |
| | | type: String, |
| | | default: '', |
| | | required: false |
| | | } |
| | | }, |
| | | watch: { |
| | | mainId: { |
| | | immediate: true, |
| | | handler(val) { |
| | | if (!this.mainId) { |
| | | this.clearList() |
| | | } else { |
| | | this.queryParam['id'] = val |
| | | this.loadData(1) |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | description: 'æä½è¯ç³è¯·æç»é¡µé¢', |
| | | disableMixinCreated: true, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | { |
| | | title: 'ç¨æ·', |
| | | align: 'center', |
| | | dataIndex: 'realname', |
| | | }, |
| | | { |
| | | title: '设å¤ç»ä¸ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'equipmentNames', |
| | | |
| | | }, |
| | | { |
| | | title: 'ä¸å²è¯å·', |
| | | align: 'center', |
| | | dataIndex: 'appointmentCardNum', |
| | | |
| | | }, |
| | | { |
| | | title: 'è¡¥ååå ', |
| | | align: 'center', |
| | | dataIndex: 'replaceReason', |
| | | |
| | | }, |
| | | { |
| | | title: 'ç论æç»©', |
| | | align: 'center', |
| | | dataIndex: 'theoreticalResults', |
| | | |
| | | }, |
| | | { |
| | | title: '宿æç»©', |
| | | align: 'center', |
| | | dataIndex: 'actualPerformance', |
| | | |
| | | }, |
| | | { |
| | | title: 'èè¯ç»è®º', |
| | | align: 'center', |
| | | dataIndex: 'examinationConclusion', |
| | | scopedSlots: { customRender: 'examinationConclusion' }, |
| | | }, |
| | | { |
| | | title: '夿³¨', |
| | | align: 'center', |
| | | dataIndex: 'remark', |
| | | |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/eam/operationCertificateApply/queryOperationCertificateApplyDetailByMainId' |
| | | }, |
| | | dictOptions: { |
| | | type: [], |
| | | inventoryStatus: [] |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl() { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importUrl}/${this.mainId}` |
| | | } |
| | | }, |
| | | methods: { |
| | | clearList() { |
| | | this.dataSource = [] |
| | | this.selectedRowKeys = [] |
| | | this.ipagination.current = 1 |
| | | }, |
| | | |
| | | loadData(arg) { |
| | | if (!this.url.list) { |
| | | this.$message.error('请设置url.list屿§!') |
| | | return |
| | | } |
| | | //å è½½æ°æ® è¥ä¼ å
¥åæ°1åå 载第ä¸é¡µçå
容 |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1 |
| | | } |
| | | var params = this.getQueryParams()//æ¥è¯¢æ¡ä»¶ |
| | | this.loading = true |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | //update-begin---author:zhangyafei Date:20201118 forï¼éé
ä¸åé¡µçæ°æ®å表------------ |
| | | this.dataSource = res.result.records || res.result |
| | | if (res.result.total) { |
| | | this.ipagination.total = res.result.total |
| | | } else { |
| | | this.ipagination.total = 0 |
| | | } |
| | | //update-end---author:zhangyafei Date:20201118 forï¼éé
ä¸åé¡µçæ°æ®å表------------ |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
| | |
| | | |
| | | <script> |
| | | |
| | | import { getAction } from '@/api/manage' |
| | | import { getAction,httpAction } from '@/api/manage' |
| | | import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js' |
| | | import { JVXETypes } from '@/components/jeecg/JVxeTable' |
| | | import { getRefPromise, VALIDATE_FAILED } from '@/components/jeecg/JVxeTable/utils/vxeUtils.js' |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | isAchievement:false, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 } |
| | |
| | | type: JVXETypes.input, |
| | | width: '200px', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: '' |
| | | defaultValue: '', |
| | | disabled:false |
| | | }, |
| | | { |
| | | title: '宿æç»©', |
| | |
| | | type: JVXETypes.input, |
| | | width: '200px', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: '' |
| | | defaultValue: '', |
| | | disabled:false |
| | | }, |
| | | { |
| | | title: 'èè¯ç»è®º', |
| | |
| | | customValue: ['Y', 'N'], |
| | | width: '200px', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: '' |
| | | defaultValue: '', |
| | | disabled:false |
| | | }, |
| | | { |
| | | title: 'ç¶æ', |
| | | key: 'status', |
| | | type: JVXETypes.input, |
| | | width: '200px', |
| | | placeholder: '请è¾å
¥${title}', |
| | | defaultValue: '' |
| | | } |
| | | // { |
| | | // title: 'ç¶æ', |
| | | // key: 'status', |
| | | // type: JVXETypes.input, |
| | | // width: '200px', |
| | | // placeholder: '请è¾å
¥${title}', |
| | | // defaultValue: '' |
| | | // } |
| | | ] |
| | | }, |
| | | url: { |
| | | add: '/eam/operationCertificateApply/add', |
| | | edit: '/eam/operationCertificateApply/edit', |
| | | addOperationCertificate:'/eam/operationCertificate/addOperationCertificate', |
| | | queryById: '/eam/operationCertificateApply/queryById', |
| | | operationCertificateApplyDetail: { |
| | | list: '/eam/operationCertificateApply/queryOperationCertificateApplyDetailByMainId' |
| | |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | | } |
| | | }, |
| | | }, |
| | | computed: { |
| | | formDisabled() { |
| | |
| | | }, |
| | | validateError(msg) { |
| | | this.$message.error(msg) |
| | | } |
| | | }, |
| | | request(formData) { |
| | | let url = this.url.add, method = 'post' |
| | | if (this.model.id) { |
| | | url = this.url.edit |
| | | method = 'put' |
| | | } |
| | | this.confirmLoading = true |
| | | console.log("formData===>",formData); |
| | | httpAction(url, formData, method).then((res) => { |
| | | if (res.success) { |
| | | httpAction(this.url.addOperationCertificate, formData.operationCertificateApplyDetailList, 'post').then((res) => { |
| | | if (res.success) { |
| | | this.$message.success(res.message) |
| | | }else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | this.$message.success(res.message) |
| | | this.$emit('ok') |
| | | this.close() |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | this.confirmLoading = false |
| | | }) |
| | | }, |
| | | |
| | | } |
| | | } |
| | |
| | | title:'', |
| | | width:800, |
| | | visible: false, |
| | | disableSubmit: false |
| | | disableSubmit: false, |
| | | isAchievement:false |
| | | } |
| | | }, |
| | | methods:{ |
| | |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.edit(record); |
| | | this.$refs.realForm.isAchievement = true; |
| | | }) |
| | | console.log("123123123123",this.isAchievement) |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |