From f717acb6ec61ee9fc6e5a991739257cb58714240 Mon Sep 17 00:00:00 2001 From: shaoleiliu-netizen123 <480188199@qq.com> Date: Fri, 28 Aug 2026 09:46:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/NCcode/index.vue | 6 +----- src/views/biz/device/index.vue | 10 +++++----- src/views/lllustrated/index.vue | 11 ++++++++++- .../production/componets/AssingWorkTreeTable.vue | 4 ++-- 4 files changed, 18 insertions(+), 13 deletions(-) diff --git a/src/views/NCcode/index.vue b/src/views/NCcode/index.vue index 364a68c..978b75f 100644 --- a/src/views/NCcode/index.vue +++ b/src/views/NCcode/index.vue @@ -727,10 +727,6 @@ function flchang(n:any) { function flremove(n:any) { let reg = new RegExp(`${n.file.id},?`) formData.fileId = formData.fileId.replace(reg,'') - - console.log(n,'flremove') - console.log(flist.value,'flist-r') - console.log(formData.fileId) } function addhand(type:any,row?:any) { @@ -977,7 +973,7 @@ const selectedDeviceIds = ref([]) function handlerConnectionDevice(row:any) { deviceDocumentConnectionVisible.value = true title.value = row.ncName + "关联设备" - deviceDocumentConnection.sourceId = row.id + deviceDocumentConnection.sourceId = row.ncCode getDeviceList(deviceDocumentConnection.sourceId) } diff --git a/src/views/biz/device/index.vue b/src/views/biz/device/index.vue index e378c40..c976f42 100644 --- a/src/views/biz/device/index.vue +++ b/src/views/biz/device/index.vue @@ -377,7 +377,7 @@ const deviceDocumentConnection = ref({}) const connectionLoading = ref(false) const connectionPagination = reactive({ page: 1, - pageSize: 2, + pageSize: 10, itemCount: 0, showSizePicker: true, pageSizes: [10, 20, 50] @@ -406,7 +406,7 @@ function rowKey(row:RowData){ return row.id } -const handleUpateCheck = async (keys:Array,)=>{ +const handleUpateCheck = async (keys:Array,row)=>{ selectedDocumentIds.value = keys loadCreateApi() } @@ -610,9 +610,9 @@ const documentColumns:DataTableColumns = [ {title: '文档类型', key: 'type',width:80, render: (row) => { var opt = row.type; - if (opt == 1) return "图纸" - if (opt == 2) return "文件" - if (opt == 3) return "NC代码" + if (opt == 0) return "图纸" + if (opt == 1) return "文件" + if (opt == 2) return "NC代码" return "-" } }, diff --git a/src/views/lllustrated/index.vue b/src/views/lllustrated/index.vue index 44e4616..955ade2 100644 --- a/src/views/lllustrated/index.vue +++ b/src/views/lllustrated/index.vue @@ -210,6 +210,7 @@ v-model:file-list="flist" @finish="flchang" accept=".pdf,.png,.jpg" + @remove="flremove" > @@ -784,6 +785,7 @@ function addhand(type: any, row?: any) { //slehand('') formData.id = row.id formData.drawingCode = row.drawingCode + formData.drawingName = row.drawingName formData.processId = row.processId formData.drawingType = row.drawingType formData.fileId = row.fileId + ',' @@ -828,6 +830,7 @@ function addhand(type: any, row?: any) { } else { formData.id = '' formData.drawingCode = '' + formData.drawingName = '' formData.processId = '' formData.drawingType = 0 formData.status = 1 @@ -986,6 +989,12 @@ function issuehand(row: any) { } +function flremove(n:any) { + let reg = new RegExp(`${n.file.id},?`) + formData.fileId = formData.fileId.replace(reg,'') +} + + function isssavehand() { if (issarr.length > 0) { drawingIssue({ @@ -1051,7 +1060,7 @@ const selectedDeviceIds = ref([]) function handlerConnectionDevice(row:any) { deviceDocumentConnectionVisible.value = true title.value = row.drawingName + "关联设备" - deviceDocumentConnection.sourceId = row.id + deviceDocumentConnection.sourceId = row.drawingCode getDeviceList(deviceDocumentConnection.sourceId) } diff --git a/src/views/production/componets/AssingWorkTreeTable.vue b/src/views/production/componets/AssingWorkTreeTable.vue index b93c88b..73045ba 100644 --- a/src/views/production/componets/AssingWorkTreeTable.vue +++ b/src/views/production/componets/AssingWorkTreeTable.vue @@ -231,7 +231,7 @@ const AssingWorkColumns :DataTableColumns = [ { title: '物料编码', key: 'materialCode', - width: 120, + width: 180, ellipsis: false, className: 'material-full-cell', render(row: any) { @@ -241,7 +241,7 @@ const AssingWorkColumns :DataTableColumns = [ { title: '物料名称', key: 'materialName', - width: 120, + width: 180, ellipsis: false, className: 'material-full-cell', render(row: any) {