From 7713e63365e74047c08f3416b5a95108fdee7002 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期一, 20 一月 2025 10:53:02 +0800 Subject: [PATCH] 产品结构树: 1、工序和工步层级新增加工设备型号和加工设备类型字段 2、各层级详细信息调整创建人及修改人字段 3、指派到设备窗口布局完成100% --- src/views/dnc/common/ImportFileModal.vue | 42 ++++++++++++++++++++++++++++++------------ 1 files changed, 30 insertions(+), 12 deletions(-) diff --git a/src/views/dnc/common/ImportFileModal.vue b/src/views/dnc/common/ImportFileModal.vue index 6dd4ce0..d5d1af0 100644 --- a/src/views/dnc/common/ImportFileModal.vue +++ b/src/views/dnc/common/ImportFileModal.vue @@ -49,7 +49,7 @@ /** * 鐐瑰嚮瀵煎叆鏂囨。鎴朜C绋嬪簭鏃惰Е鍙� * @param treeNodeInfo 鐐瑰嚮鏍戣妭鐐瑰彸閿彍鍗曞鍏ョ▼搴忔椂浼犲叆鏍戣妭鐐逛俊鎭� - * @param tableRowInfo 鐐瑰嚮琛ㄦ牸琛屽彸閿彍鍗曞鍏ョ▼搴忔椂浼犲叆琛屼俊鎭� + * @param tableRowInfo 鍙抽敭琛ㄦ牸琛屾椂浼犲叆琛屼俊鎭� */ handleImport(treeNodeInfo, tableRowInfo) { this.isUploadMultiple = true @@ -69,6 +69,11 @@ this.visible = true }, + /** + * 鐐瑰嚮鏂囨。鐢熷懡鍛ㄦ湡鐨勫叆搴撴椂瑙﹀彂 + * @param _ + * @param tableRowInfo 鍙抽敭琛ㄦ牸琛屾椂浼犲叆琛屼俊鎭� + */ handlePush(_, tableRowInfo) { this.isUploadMultiple = false console.log('tableRowInfo', tableRowInfo) @@ -80,22 +85,21 @@ this.visible = true }, - handleRemove(file) { - const index = this.fileList.indexOf(file) - const newFileList = this.fileList.slice() - newFileList.splice(index, 1) - this.fileList = newFileList - }, - + /** + * 閫夋嫨濂芥枃浠剁偣鍑荤‘瀹氬悗 + * @param file 鏂囦欢瀵硅薄 + */ beforeUpload(file) { if (this.isUploadMultiple) { if (!this.fileList.find(item => item.name === file.name)) this.fileList = [...this.fileList, file] - } else { - this.fileList.splice(0, 1, file) } + else this.fileList.splice(0, 1, file) return false }, + /** + * 鐐瑰嚮涓婁紶鑷虫湇鍔″櫒鎸夐挳鏃惰Е鍙� + */ handleUpload() { const { fileList, $notification, isUploadMultiple, uploadParams, $bus } = this this.uploading = true @@ -144,8 +148,11 @@ if (uploadedFileCount === fileList.length) { // 鑷冲皯鏈変竴涓枃浠朵笂浼犳垚鍔熷悗灏遍渶瑕侀噸鏂板姞杞芥枃妗e垪琛� if (uploadSuccessFileCount > 0) { - $bus.$emit('importFileSuccess', uploadParams) - if (!isUploadMultiple) this.visible = false //鏃犳硶杩炵画鍏ュ簱澶氫釜鐗堟湰鍥犳鍏ュ簱鎴愬姛鍚庡嵆鍙��鍑虹獥鍙� + $bus.$emit('reloadDocumentListData', uploadParams) + if (!isUploadMultiple) { + $bus.$emit('reloadMainBottomTableData', 'documentVersion') + this.visible = false //鏃犳硶杩炵画鍏ュ簱澶氫釜鐗堟湰鍥犳鍏ュ簱鎴愬姛鍚庡嵆鍙��鍑虹獥鍙� + } } this.uploading = false } @@ -154,6 +161,17 @@ }, /** + * 鍒犻櫎鏂囦欢鍒楄〃椤规椂瑙﹀彂 + * @param file 鏂囦欢瀵硅薄 + */ + handleRemove(file) { + const index = this.fileList.indexOf(file) + const newFileList = this.fileList.slice() + newFileList.splice(index, 1) + this.fileList = newFileList + }, + + /** * 鎺у埗鏂囦欢涓婁紶绐楀彛鍏抽棴骞舵竻绌烘枃浠跺垪琛� */ handleModalClose() { -- Gitblit v1.9.3