From 74feb99b1b4e2eb3706bbb503d07fb087ca39d4a Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期四, 02 四月 2026 15:15:02 +0800
Subject: [PATCH] 出运单增加过滤发货通知单和物流状态

---
 src/views/scMould/basicModeling/Gy_MouldFileList.vue |   45 +++++++++++++++++++++++++++++----------------
 1 files changed, 29 insertions(+), 16 deletions(-)

diff --git a/src/views/scMould/basicModeling/Gy_MouldFileList.vue b/src/views/scMould/basicModeling/Gy_MouldFileList.vue
index 01eddec..a4cad85 100644
--- a/src/views/scMould/basicModeling/Gy_MouldFileList.vue
+++ b/src/views/scMould/basicModeling/Gy_MouldFileList.vue
@@ -237,6 +237,7 @@
   components: { RowSettings, Edit, BtnSettings },
   props: {
     openPage: { type: String, },
+    multiple: { type: Boolean, default: false },
   },
   data() {
     return {
@@ -406,7 +407,7 @@
       this.getList()
     },
     getTreeselect() {
-      axios.get(this.baseURL + '/Gy_Mould/TreeList', {
+      axios.get(this.$baseUrl + '/Gy_Mould/TreeList', {
         params: {
           "sWhere": this.sWhere,
           "user": sessionStorage["HUserName"],
@@ -475,6 +476,7 @@
     },
     //鍒楄〃鏁版嵁
     getList() {
+      this.clearData()
       this.pageSize = 50
       this.tableShow = false
       this.loading = true
@@ -483,7 +485,7 @@
       }
       this.sWhere += " and HUSEORGID = '" + this.queryParams.HUSEORGID + "'"
       //鐢熶骇璧勬枡鍒楄〃
-      axios.get(this.baseURL + '/Gy_Mould/page', {
+      axios.get(this.$baseUrl + '/Gy_Mould/page', {
         params: {
           "sWhere": this.sWhere,
           "ModRightNameSelect": this.HModName,
@@ -597,7 +599,7 @@
     },
     DisPlay_HideColumn(HModName, user, option, dataOption) {
       this.totalNameList = []
-      axios.get(this.baseURL + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', {
+      axios.get(this.$baseUrl + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', {
         params: {
           "HModName": HModName,
           "user": user,
@@ -759,17 +761,19 @@
       }
     },
     // 澶氶�夋閫変腑鏁版嵁
-    handleSelectionChange(selection) {
-      // this.rowForm = {}
+      handleSelectionChange(selection) {
       if (this.openPage) {
-        //鍒楄〃鍗曢��
-        if (selection.length > 1) {
+        if (!this.multiple && selection.length > 1) {
           const del_row = selection.shift()
-          this.$refs.tableData.toggleRowSelection(del_row, false) //璁剧疆杩欎竴琛屽彇娑堥�変腑
+          this.$refs.tableData.toggleRowSelection(del_row, false)
         }
-        this.rowForm = {}
-        this.ids = selection.map(item => item.hmainid)
-        this.rowForm = selection[0]
+        if (this.multiple) {
+          this.ids = selection.map(item => item.hmainid)
+          this.rowForm = selection
+        } else {
+          this.ids = selection.map(item => item.hmainid)
+          this.rowForm = selection[0]
+        }
       } else {
         this.ids = selection.map(item => item.hmainid)
         this.single = selection.length != 1
@@ -876,7 +880,7 @@
     //鏍规嵁鐢ㄦ埛鑾峰彇鐢ㄦ埛鍏宠仈缁勭粐鐨勮繃婊ゆ潯浠�
     getOrgIDByUser() {
       var res = "";
-      axios.get(this.baseURL + '/Xt_User/getOrgIDListByUser', {
+      axios.get(this.$baseUrl + '/Xt_User/getOrgIDListByUser', {
         params: {
           HModName: this.HModName,
           user: sessionStorage["HUserName"],
@@ -951,7 +955,7 @@
       this.$modal.confirm('纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠').then(() => {
         var ModRightNameDelete = 'Gy_MouldFile_Delete'
         if (!this.rowForm.瀹℃牳浜�) {
-          axios.get(this.baseURL + "/Gy_Mould_Edit/Delete_Json", {
+          axios.get(this.$baseUrl + "/Gy_Mould_Edit/Delete_Json", {
             params: { 'HItemID': this.rowForm.hmainid.toString(), "ModRightNameDelete": ModRightNameDelete, 'user': sessionStorage["HUserName"] }
           }).then(response => {
             if (response.data.count == 1) {
@@ -975,7 +979,7 @@
       if (form.HBillStatus == 0 && num == 1) {
         this.$modal.msgSuccess('鍗曟嵁宸蹭负鏈鏍哥姸鎬�,鏃犻渶鍙嶅鏍革紒');
       } else {
-        axios.get(this.baseURL + "/Gy_Mould/AuditProcessReportList", {
+        axios.get(this.$baseUrl + "/Gy_Mould/AuditProcessReportList", {
           params: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
         }).then(response => {
           let result = response.data
@@ -996,7 +1000,7 @@
     set_De_Stop(num, form) {
       var InterID = form.hmainid || form.HInterID
       //閫昏緫瀹℃牳鏂规硶
-      axios.get(this.baseURL + "/Gy_Source/StopGy_Source", {
+      axios.get(this.$baseUrl + "/Gy_Source/StopGy_Source", {
         params: { "HInterID": InterID, "IsStop": num, "CurUserName": sessionStorage["HUserName"] }
       }).then(response => {
         let result = response.data
@@ -1060,7 +1064,7 @@
       var sMainSub = sSubStr + '&鍜�' + sessionStorage["HUserName"];
       axios({
         method: 'post',
-        url: this.baseURL + "/Gy_Source/Gy_Source_btnSave",
+        url: this.$baseUrl + "/Gy_Source/Gy_Source_btnSave",
         data: {
           'sMainSub': sMainSub
         },
@@ -1096,6 +1100,15 @@
         this.uploadData = this.getPage(this.uploadPage, this.alluploadList)
       }, 100)
     },
+         //娓呴櫎閫変腑鏁版嵁鐨勭紦瀛�
+        clearData() {
+            this.ids = []
+            this.multiple = true
+            this.single = true
+            this.OperationType = 0
+            this.copyType = 0
+        },
+
   }
 };
 </script>

--
Gitblit v1.9.1