From a674e9834bec0ce5a18b751c7434323cc7199ce5 Mon Sep 17 00:00:00 2001 From: lixiangyu <lixiangyu@xalxzn.com> Date: 星期四, 11 九月 2025 17:57:34 +0800 Subject: [PATCH] feat(cms): CuttingReceiveDetailList.vue刀具领用功能中新增领用单提交功能 CuttingReceiveList.vue 刀具领用 提交按钮的前端样式和刀具领用归还按钮的前端样式 --- src/views/cms/CuttingReceiveDetailList.vue | 259 ++++++++++++++++++++++++++------------------------- 1 files changed, 133 insertions(+), 126 deletions(-) diff --git a/src/views/cms/CuttingReceiveDetailList.vue b/src/views/cms/CuttingReceiveDetailList.vue index dc1113d..1688387 100644 --- a/src/views/cms/CuttingReceiveDetailList.vue +++ b/src/views/cms/CuttingReceiveDetailList.vue @@ -1,46 +1,48 @@ <template> - <a-card :bordered="false"> - <!-- table鍖哄煙-begin --> - <div> - <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> - <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>椤� - <a style="margin-left: 24px" @click="onClearSelected">娓呯┖</a> - </div> + <a-card :bordered="false"> + <!-- table鍖哄煙-begin --> + <div> + <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> + <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a + style="font-weight: 600">{{ selectedRowKeys.length }}</a>椤� + <a style="margin-left: 24px" @click="onClearSelected">娓呯┖</a> + </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"> + <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> + <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"> + <span slot="action" slot-scope="text, record"> <a @click="handleEdit(record)">缂栬緫</a> <a-divider type="vertical" /> @@ -59,104 +61,109 @@ </a-dropdown> </span> - </a-table> - </div> + </a-table> + </div> - <cutting-receive-detail-modal ref="modalForm" @ok="modalFormOk"></cutting-receive-detail-modal> - </a-card> + <cutting-receive-detail-modal ref="modalForm" @ok="modalFormOk"></cutting-receive-detail-modal> + </a-card> </template> <script> - import '@/assets/less/TableExpand.less' - import { mixinDevice } from '@/utils/mixin' - import { JeecgListMixin } from '@/mixins/JeecgListMixin' +import '@/assets/less/TableExpand.less' +import { mixinDevice } from '@/utils/mixin' +import { JeecgListMixin } from '@/mixins/JeecgListMixin' - export default { - name: 'CuttingReceiveDetailList', - mixins:[JeecgListMixin, mixinDevice], - components: { - }, - data () { +export default { + name: 'CuttingReceiveDetailList', + mixins: [JeecgListMixin, mixinDevice], + components: {}, + data() { return { - description: '棰嗙敤鍗曟槑缁嗙鐞嗛〉闈�', - // 琛ㄥご - columns: [ - { - title: '#', - dataIndex: '', - key:'rowIndex', - width:60, - align:"center", - customRender:function (t,r,index) { - return parseInt(index)+1; + description: '棰嗙敤鍗曟槑缁嗙鐞嗛〉闈�', + // 琛ㄥご + columns: [ + { + title: '#', + dataIndex: '', + key: 'rowIndex', + width: 60, + align: 'center', + customRender: function(t, r, index) { + return parseInt(index) + 1 + } + }, + { + title: '鍒�鍏风紪鐮�', + align: 'center', + dataIndex: 'cuttingCode' + }, + { + title: '鍒�鍏峰悕绉�', + align: 'center', + dataIndex: 'cuttingName' + }, + { + title: '鍒�鍏锋潯鐮�', + align: 'center', + dataIndex: 'cuttingBarcode' + }, + { + title: '宸ヤ欢鏉愯川', + align: 'center', + dataIndex: 'workpieceMaterial' + }, + { + title: '浣跨敤瀵垮懡', + align: 'center', + dataIndex: 'usedLife' } - }, - { - title:'鍒�鍏风紪鐮�', - align:"center", - dataIndex: 'cuttingCode' - }, - { - title:'鍒�鍏峰悕绉�', - align:"center", - dataIndex: 'cuttingName' - }, - { - title:'宸ヤ欢鏉愯川', - align:"center", - dataIndex: 'workpieceMaterial' - }, - { - title:'浣跨敤瀵垮懡', - align:"center", - dataIndex: 'usedLife' - }, - ], - url: { - list: "/cms/cuttingReceive/detailList", - delete: "/cms/cuttingReceiveDetail/delete", - deleteBatch: "/cms/cuttingReceiveDetail/deleteBatch", - exportXlsUrl: "/cms/cuttingReceiveDetail/exportXls", - importExcelUrl: "cms/cuttingReceiveDetail/importExcel", + ], + url: { + list: '/cms/cuttingReceive/detailList', + delete: '/cms/cuttingReceiveDetail/delete', + deleteBatch: '/cms/cuttingReceiveDetail/deleteBatch', + exportXlsUrl: '/cms/cuttingReceiveDetail/exportXls', + importExcelUrl: 'cms/cuttingReceiveDetail/importExcel' - }, - dictOptions:{}, - superFieldList:[], - disableMixinCreated:true + }, + dictOptions: {}, + superFieldList: [], + disableMixinCreated: true } - }, - created() { - this.getSuperFieldList(); - }, - computed: { - importExcelUrl: function(){ - return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; - }, - }, - methods: { - initDictConfig(){ - }, - getSuperFieldList(){ - let fieldList=[]; - fieldList.push({type:'string',value:'orderId',text:'棰嗙敤鍗旾D'}) - fieldList.push({type:'string',value:'cuttingId',text:'鍒�鍏稩D'}) - fieldList.push({type:'string',value:'cuttingCode',text:'鍒�鍏风紪鐮�'}) // 娣诲姞杩欎竴琛� - fieldList.push({type:'string',value:'cuttingName',text:'鍒�鍏峰悕绉�'}) // 娣诲姞杩欎竴琛� - fieldList.push({type:'string',value:'inventoryId',text:'搴撳瓨ID'}) - fieldList.push({type:'string',value:'workpieceMaterial',text:'宸ヤ欢鏉愯川'}) - fieldList.push({type:'int',value:'usedLife',text:'浣跨敤瀵垮懡'}) - this.superFieldList = fieldList + }, + created() { + this.getSuperFieldList() + }, + computed: { + importExcelUrl: function() { + return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}` } - }, - mounted() { - this.$bus.$on('getToolingStorageData', (data) => { - this.queryParam.orderId = data.id; - this.searchQuery(); - }) - } - } + }, + methods: { + initDictConfig() { + }, + getSuperFieldList() { + let fieldList = [] + fieldList.push({ type: 'string', value: 'orderId', text: '棰嗙敤鍗旾D' }) + fieldList.push({ type: 'string', value: 'cuttingId', text: '鍒�鍏稩D' }) + fieldList.push({ type: 'string', value: 'cuttingCode', text: '鍒�鍏风紪鐮�' }) // 娣诲姞杩欎竴琛� + fieldList.push({ type: 'string', value: 'cuttingName', text: '鍒�鍏峰悕绉�' }) // 娣诲姞杩欎竴琛� + fieldList.push({ type: 'string', value: 'cuttingBarcode', text: '鍒�鍏锋潯鐮�' }) // 娣诲姞杩欎竴琛� + fieldList.push({ type: 'string', value: 'inventoryId', text: '搴撳瓨ID' }) + fieldList.push({ type: 'string', value: 'workpieceMaterial', text: '宸ヤ欢鏉愯川' }) + fieldList.push({ type: 'int', value: 'usedLife', text: '浣跨敤瀵垮懡' }) + this.superFieldList = fieldList + } + }, + mounted() { + this.$bus.$on('getToolingStorageData', (data) => { + this.queryParam.orderId = data.id + this.searchQuery() + }) + } +} </script> <style scoped> - @import '~@assets/less/common.less'; +@import '~@assets/less/common.less'; </style> \ No newline at end of file -- Gitblit v1.9.3