From e14ed882d12df3b48e59390eba364442cdff70bd Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期三, 28 五月 2025 15:46:32 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/dnc/base/modules/ProductStructure/GuideCardBatch/GuideCardBatchList.vue | 250 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 250 insertions(+), 0 deletions(-) diff --git a/src/views/dnc/base/modules/ProductStructure/GuideCardBatch/GuideCardBatchList.vue b/src/views/dnc/base/modules/ProductStructure/GuideCardBatch/GuideCardBatchList.vue new file mode 100644 index 0000000..1057724 --- /dev/null +++ b/src/views/dnc/base/modules/ProductStructure/GuideCardBatch/GuideCardBatchList.vue @@ -0,0 +1,250 @@ +<template> + <a-card :bordered="false"> + <!-- 鏌ヨ鍖哄煙 --> + <div class="table-page-search-wrapper"> + <a-form layout="inline" @keyup.enter.native="searchQuery"> + <a-row :gutter="24"> + <a-col :xl="6" :lg="7" :md="8" :sm="24"> + <a-form-item label="娴佹按鍙�"> + <a-input placeholder="璇疯緭鍏ユ祦姘村彿" v-model="queryParam.serialNumber"></a-input> + </a-form-item> + </a-col> + <a-col :xl="6" :lg="7" :md="8" :sm="24"> + <a-form-item label="澶瑰叿"> + <a-input placeholder="璇疯緭鍏ュす鍏�" v-model="queryParam.fixtureInformation"></a-input> + </a-form-item> + </a-col> + <a-col :xl="6" :lg="7" :md="8" :sm="24"> + <a-form-item label="鍔犲伐鎵规"> + <a-input placeholder="璇疯緭鍏ュ姞宸ユ壒娆�" v-model="queryParam.processingBatch"></a-input> + </a-form-item> + </a-col> + <a-col :xl="6" :lg="7" :md="8" :sm="24"> + <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> + <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button> + <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button> + </span> + </a-col> + </a-row> + </a-form> + </div> + <!-- 鏌ヨ鍖哄煙-END --> + + <!-- table鍖哄煙-begin --> + <div> + <a-table + ref="table" + size="middle" + :scroll="{x:true}" + bordered + rowKey="id" + :columns="columns" + :dataSource="dataSource" + :pagination="ipagination" + :loading="loading" + class="j-table-force-nowrap" + @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="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 @click="handleDetail(record)">鐢熸垚鏁版帶鍔犲伐绋嬪簭纭琛�</a> + + <a-divider type="vertical" /> + + <a @click="handleDetail(record)">鍙戣捣娴佺▼</a> + + <a-divider type="vertical" /> + + <a @click="handleDetail(record)">璇︽儏</a> + + </span> + + </a-table> + </div> + + <guide-card-batch-modal ref="modalForm" @ok="modalFormOk"></guide-card-batch-modal> + + <GuideCardBatchModalDrawer ref="modalEditForm" @ok="modalFormOk"></GuideCardBatchModalDrawer> + </a-card> +</template> + +<script> + + import '@assets/less/TableExpand.less' + import { mixinDevice } from '@/utils/mixin' + import { JeecgListMixin } from '@/mixins/JeecgListMixin' + import GuideCardBatchModal from './GuideCardBatchModal' + import GuideCardBatchModalDrawer from './GuideCardBatchModal.Style#Drawer.vue' + import { getAction } from '@api/manage' + + export default { + name: 'GuideCardBatchList', + mixins:[JeecgListMixin, mixinDevice], + props: { + guideCardBatchInfo: { + type: Object + }, + size: { + type: String + } + }, + components: { + GuideCardBatchModal, + GuideCardBatchModalDrawer + }, + data () { + return { + description: 'nc鏂囦欢瀵瑰簲鏁版帶绋嬪簭鍔犲伐纭琛ㄧ鐞嗛〉闈�', + // 琛ㄥご + columns: [ + { + title: '#', + dataIndex: '', + key:'rowIndex', + width:60, + align:"center", + customRender:function (t,r,index) { + return parseInt(index)+1; + } + }, + { + title:'娴佹按鍙�', + align:"center", + dataIndex: 'serialNumber' + }, + { + title:'澶瑰叿', + align:"center", + dataIndex: 'fixtureInformation' + }, + { + title:'鍔犲伐鎵规', + align:"center", + dataIndex: 'processingBatch' + }, + { + title:'鍔犲伐鏁伴噺', + align:"center", + dataIndex: 'processingQuantity' + }, + { + title:'鍔犲伐璁惧', + align:"center", + dataIndex: 'processingEquipment' + }, + { + title: '鎿嶄綔', + dataIndex: 'action', + align:"center", + fixed:"right", + width:147, + scopedSlots: { customRender: 'action' } + } + ], + url: { + list: "/dnc/guideCardBatch/list", + delete: "/dnc/guideCardBatch/delete", + deleteBatch: "/dnc/guideCardBatch/deleteBatch", + exportXlsUrl: "/dnc/guideCardBatch/exportXls", + importExcelUrl: "dnc/guideCardBatch/importExcel", + + }, + dictOptions:{}, + superFieldList:[], + } + }, + created() { + this.getSuperFieldList(); + }, + computed: { + importExcelUrl: function(){ + return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; + }, + }, + methods: { + initDictConfig(){ + }, + getGuideCardBatchList(){ + console.log('currentDocumentInfo', this.guideCardBatchInfo) + let params + params.docId=this.guideCardBatchInfo.docId; + params.serialNumber=this.queryParam.serialNumber; + params.fixtureInformation=this.guideCardBatchInfo.fixtureInformation; + params.processingBatch=this.guideCardBatchInfo.processingBatch; + this.loading = true + getAction(this.url.list,params).then((res) => { + if (res.success) { + this.dataSource = res.result.records||res.result; + if(res.result.total) + { + this.ipagination.total = res.result.total; + }else{ + this.ipagination.total = 0; + } + }else{ + this.$message.warning(res.message) + } + }).finally(() => { + this.loading = false + }) + }, + getSuperFieldList(){ + let fieldList=[]; + fieldList.push({type:'string',value:'serialNumber',text:'娴佹按鍙�',dictCode:''}) + fieldList.push({type:'string',value:'unit',text:'鍗曚綅',dictCode:''}) + fieldList.push({type:'string',value:'docName',text:'绋嬪簭鏂囦欢鍚�',dictCode:''}) + fieldList.push({type:'string',value:'partsCode',text:'闆朵欢鍥惧彿',dictCode:''}) + fieldList.push({type:'string',value:'partsName',text:'闆朵欢鍚嶇О',dictCode:''}) + fieldList.push({type:'string',value:'materielDesp',text:'闆朵欢鏉愭枡',dictCode:''}) + fieldList.push({type:'string',value:'fixtureInformation',text:'澶瑰叿',dictCode:''}) + fieldList.push({type:'string',value:'processWorkCode',text:'宸ュ簭锛堝伐姝ュ彿锛�',dictCode:''}) + fieldList.push({type:'string',value:'processingBatch',text:'鍔犲伐鎵规',dictCode:''}) + fieldList.push({type:'string',value:'processingQuantity',text:'鍔犲伐鏁伴噺',dictCode:''}) + fieldList.push({type:'string',value:'processingEquipment',text:'鍔犲伐璁惧',dictCode:''}) + fieldList.push({type:'Text',value:'picture',text:'鍥剧墖',dictCode:''}) + fieldList.push({type:'string',value:'remake',text:'璇存槑淇℃伅',dictCode:''}) + fieldList.push({type:'string',value:'compiler',text:'缂栧啓浜�',dictCode:''}) + fieldList.push({type:'date',value:'compilerTime',text:'缂栧啓鏃ユ湡'}) + fieldList.push({type:'string',value:'proofreader',text:'鏍″浜�',dictCode:''}) + fieldList.push({type:'date',value:'proofreaderTime',text:'鏍″鏃ユ湡'}) + fieldList.push({type:'string',value:'operator',text:'鎿嶄綔鑰�',dictCode:''}) + fieldList.push({type:'date',value:'inspectionTime',text:'棣栨鏃ユ湡'}) + fieldList.push({type:'string',value:'approver',text:'瀹℃壒浜�',dictCode:''}) + fieldList.push({type:'date',value:'approverTime',text:'瀹℃壒鏃ユ湡'}) + this.superFieldList = fieldList + }, + handleEdit(record) { + this.$refs.modalEditForm.edit(record); + this.$refs.modalEditForm.title = "涓婁紶/淇敼淇℃伅"; + this.$refs.modalEditForm.disableSubmit = false; + }, + } + } +</script> +<style scoped> + @import '~@assets/less/common.less'; +</style> \ No newline at end of file -- Gitblit v1.9.3