From 7fb0a8f0ab16c149484bf043754cd10cfa94de2f Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期一, 19 一月 2026 14:48:05 +0800
Subject: [PATCH] 增加了业务员,保管员和验收员的对应的显示

---
 src/views/warehouse/transfer/Kf_MoveStockRequestBillList.vue |  174 ++++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 115 insertions(+), 59 deletions(-)

diff --git a/src/views/warehouse/transfer/Kf_MoveStockRequestBillList.vue b/src/views/warehouse/transfer/Kf_MoveStockRequestBillList.vue
index b96e193..6f508d2 100644
--- a/src/views/warehouse/transfer/Kf_MoveStockRequestBillList.vue
+++ b/src/views/warehouse/transfer/Kf_MoveStockRequestBillList.vue
@@ -40,7 +40,7 @@
             </el-form-item>
             <el-form-item label="瑙勬牸鍨嬪彿" prop="SpecificationModel">
               <el-input v-model="queryParams.SpecificationModel" placeholder="璇疯緭鍏�" @keyup.enter.native="handleQuery" />
-            </el-form-item>            
+            </el-form-item>
             <el-form-item label="婧愬崟鍗曞彿" prop="HSourceBillNo">
               <el-input v-model="queryParams.HSourceBillNo" placeholder="璇疯緭鍏�" @keyup.enter.native="handleQuery" />
             </el-form-item>
@@ -132,10 +132,10 @@
         <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single"
           @click="handleEdit(row = rowForm, OperationType = 3)">缂栬緫</el-button>
       </el-col>
-      <el-col :span="1.5">
+      <!-- <el-col :span="1.5">
         <el-button type="primary" icon="el-icon-document-copy" size="mini" :disabled="single"
           @click="handleEdit(row = rowForm, OperationType = 1, copyType = 1)">澶嶅埗</el-button>
-      </el-col>
+      </el-col> -->
       <el-col :span="1.5">
         <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete">鍒犻櫎
         </el-button>
@@ -147,6 +147,22 @@
       <el-col :span="1.5">
         <el-button type="primary" icon="el-icon-edit-outline" size="mini" :disabled="single"
           @click="set_CheckBill(2, form = rowForm)">杩斿鏍�</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="set_CloseBill(0)">鍏抽棴
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="set_CloseBill(1)">鍙嶅叧闂�
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="set_DropBill(1)">浣滃簾
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="set_DropBill(2)">鍙嶄綔搴�
+        </el-button>
       </el-col>
       <!-- <el-col :span="1.5">
         <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport">瀵煎嚭</el-button>
@@ -172,7 +188,7 @@
               <el-checkbox v-model="checked" v-if="item.type == 'checkbox'"></el-checkbox>
               <div :style="item.style">
                 <span v-if="column.property.includes('鏃ユ湡')">{{ parseTime(row[column.property], '{y}-{m}-{d}') }}</span>
-                <el-button type="text" @click="handleEdit(row, OperationType = 3)"
+                <el-button type="text" @click.stop="handleEdit(row, OperationType = 3)"
                   v-else-if="column.property == '鍗曟嵁鍙�'">{{
                     row.鍗曟嵁鍙�
                   }}</el-button>
@@ -182,10 +198,10 @@
           </el-table-column>
         </template>
       </el-table>
-      <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" :pageSizes="pageSizes" @pagination="getList" />
+      <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" :pageSizes="pageSizes"
+        @pagination="getList" />
       <el-dialog title="闅愯棌鍒楄缃�" :visible.sync="openRowHide" width="816px" append-to-body>
-        <RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose"
-          v-if="rowHideShow" />
+        <RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose" v-if="rowHideShow" />
       </el-dialog>
       <!-- 缂栬緫 -->
       <el-dialog title="缂栬緫璋冩嫧鐢宠鍗�" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
@@ -193,8 +209,8 @@
           :copyType="copyType" @editClose="editClose" v-if="editShow" />
       </el-dialog>
       <el-dialog title="鎵撳嵃妯℃澘閫夋嫨" :visible.sync="openPrintList" width="800px" append-to-body>
-        <PrintList :linterid=this.rowForm.hmainid :MyMsg=this.rowForm.hmainid :Type='HModName'
-          :HModName='HModName' @rowEditClose="rowSetClose" v-if="printListShow" />
+        <PrintList :linterid=this.rowForm.hmainid :MyMsg=this.rowForm.hmainid :Type='HModName' :HModName='HModName'
+          @rowEditClose="rowSetClose" v-if="printListShow" />
         <!-- <div>111</div> -->
       </el-dialog>
     </div>
@@ -270,15 +286,15 @@
       // 鏌ヨ鍙傛暟
       queryParams: {
         HBillNo: '',
-        HBillno2:'',
+        HBillno2: '',
         HInitTimeCycle: 29,
-        HDeptID:'',
-        MaterialCode:'',
-        MaterialName:'',
-        SpecificationModel:'',
-        HSourceBillNo:'',
-        Warehouse:'',
-        Hmaker:'',
+        HDeptID: '',
+        MaterialCode: '',
+        MaterialName: '',
+        SpecificationModel: '',
+        HSourceBillNo: '',
+        Warehouse: '',
+        Hmaker: '',
         ColName1: '',
         ColName2: '',
         ColName: '',
@@ -316,8 +332,8 @@
 
   methods: {
     //閲嶆柊鍚屾
-    set_ResCnz(){
-      axios.get(this.baseURL + "/Cg_POOrderBill/Resynchronize", {
+    set_ResCnz() {
+      axios.get(this.$baseUrl + "/Cg_POOrderBill/Resynchronize", {
         params: { "HBillNo": '', "HBillType": 1243 }
       }).then(response => {
         let result = response.data
@@ -399,7 +415,7 @@
         this.pageSize = 50
       }
       // 閿�鍞嚭搴撳崟鍒楄〃
-      axios.get(this.baseURL + '/Kf_MoveStockRequestBill/GetMoveStockRequestBillList', {
+      axios.get(this.$baseUrl + '/Kf_MoveStockRequestBill/GetMoveStockRequestBillList', {
         params: {
           "sWhere": this.sWhere,
           "user": sessionStorage["HUserName"],
@@ -422,7 +438,7 @@
             //鑾峰彇涓嶉渶瑕佹樉绀虹殑鍒楋紙H寮�澶寸殑鍒椾笉鏄剧ず锛�
             var patrn = new RegExp(/^h/i);
             if (patrn.test(data1.list[key].ColmCols)) {
-                this.titleData[key] = data1.list[key].ColmCols;
+              this.titleData[key] = data1.list[key].ColmCols;
             }
           }
           //鍦ㄥ垪琛ㄥ乏杈规坊鍔犲嬀閫夋
@@ -449,20 +465,20 @@
     },
     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,
         },
-      }).then(res => {        
+      }).then(res => {
         let data1 = res.data
-        if (data1.data.length != 0) {       
+        if (data1.data.length != 0) {
           var dataCol = [];//鏁版嵁搴撴煡璇㈠嚭鐨勫垪鏁版嵁
           var newCols = [[]];//瀵瑰簲鏁版嵁搴撳垪椤哄簭col
           newCols[0].push(option.cols[0][0]);//鏀惧叆绗竴涓猚heckbox
           dataCol = data1.data[0].HGridString.split(',');
           //鍒楄缃垪鏁颁笌椤甸潰鍒楁暟鏄惁涓�鑷�
-          if (dataCol.length == option.cols[0].length - 1) {                
+          if (dataCol.length == option.cols[0].length - 1) {
             //閬嶅巻瀵绘壘鍒楄缃搴斿垪鎸夐『搴忔彃鍏�
             for (var j = 0; j < option.cols[0].length - 1; j++) {
               for (var i = 0; i < option.cols[0].length - 1; i++) {
@@ -688,26 +704,27 @@
         this.sWhere += " and 鍗曟嵁鍙� like '%" + this.queryParams.HBillNo + "%'";
       }
       if (this.queryParams.HDeptID) {
-          this.sWhere += " and 閮ㄩ棬 like '%" + this.queryParams.HDeptID + "%'";
+        this.sWhere += " and 閮ㄩ棬 like '%" + this.queryParams.HDeptID + "%'";
       }
       if (this.queryParams.MaterialCode) {
-          this.sWhere += " and 鐗╂枡浠g爜 like '%" + this.queryParams.MaterialCode + "%'";
+        this.sWhere += " and 鐗╂枡浠g爜 like '%" + this.queryParams.MaterialCode + "%'";
       }
       if (this.queryParams.MaterialName) {
-          this.sWhere += " and 鐗╂枡鍚嶇О like '%" + this.queryParams.MaterialName + "%'";
+        this.sWhere += " and 鐗╂枡鍚嶇О like '%" + this.queryParams.MaterialName + "%'";
       }
       if (this.queryParams.SpecificationModel) {
-          this.sWhere += " and 瑙勬牸鍨嬪彿 like '%" + this.queryParams.SpecificationModel + "%'";
+        this.sWhere += " and 瑙勬牸鍨嬪彿 like '%" + this.queryParams.SpecificationModel + "%'";
       }
       if (this.queryParams.HSourceBillNo) {
-          this.sWhere += " and 婧愬崟鍗曞彿 like '%" + this.queryParams.HSourceBillNo + "%'";
+        this.sWhere += " and 婧愬崟鍗曞彿 like '%" + this.queryParams.HSourceBillNo + "%'";
       }
       if (this.queryParams.Warehouse) {
-          this.sWhere += " and 浠撳簱鍚嶇О like '%" + this.queryParams.Warehouse + "%'";
+        this.sWhere += " and 浠撳簱鍚嶇О like '%" + this.queryParams.Warehouse + "%'";
       }
       if (this.queryParams.Hmaker) {
-          this.sWhere += " and 鍒跺崟浜� like '%" + this.queryParams.Hmaker + "%'";
+        this.sWhere += " and 鍒跺崟浜� like '%" + this.queryParams.Hmaker + "%'";
       }
+      this.clearData()
       this.getList()
     },
     /** 閲嶇疆鎸夐挳鎿嶄綔 */
@@ -716,13 +733,13 @@
       this.queryParams = {
         HBillNo: '',
         HInitTimeCycle: 29,
-        HDeptID:'',
-        MaterialCode:'',
-        MaterialName:'',
-        SpecificationModel:'',
-        HSourceBillNo:'',
-        Warehouse:'',
-        Hmaker:'',
+        HDeptID: '',
+        MaterialCode: '',
+        MaterialName: '',
+        SpecificationModel: '',
+        HSourceBillNo: '',
+        Warehouse: '',
+        Hmaker: '',
         ColName1: '',
         ColName2: '',
         ColName: '',
@@ -734,16 +751,24 @@
         ColContent: '',
       }
       this.riqiChange()
+      this.clearData()
       this.resetForm("queryForm")
       this.getList()
     },
-
+    clearData() {
+      this.single = true
+      this.multiple = true
+      this.OperationType = 0
+      this.copyType = 0
+      this.ids = []
+    },
     //閫�鍑�
     close() {
       // this.reset()
       this.tableShow = true
       this.openEdit = false
       this.editShow = false
+      this.clearData()
       this.getList()
     },
     //鎵撳紑鏂板缁勪欢寮圭獥
@@ -763,12 +788,14 @@
       this.open = val
       this.editShow = false
       this.openEdit = val
+      this.clearData()
       this.getList()
     },
     /** 鍒犻櫎鎸夐挳鎿嶄綔 */
     handleDelete() {
       this.$modal.confirm('纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠').then(() => {
-        axios.get(this.baseURL + "/Kf_MoveStockRequestBill/DeltetKf_MoveStockRequestBill", {
+        if (this.rowForm.鐘舵�� == "鍒涘缓") {
+          axios.get(this.$baseUrl + "/Kf_MoveStockRequestBill/DeltetKf_MoveStockRequestBill", {
             params: { 'HInterID': this.rowForm.hmainid.toString() }
           }).then(response => {
             if (response.data.count == 1) {
@@ -780,13 +807,18 @@
           }).catch(error => {
             this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
           });
+        } else {
+          this.$modal.msgError("姝ゆ暟鎹笉鏄垱寤虹姸鎬�,涓嶈兘鍒犻櫎锛�");
+        }
       }).catch(() => { })
+
+
     },
     // 鍙嶅鏍�/瀹℃牳鏁版嵁
     set_CheckBill(num, form) {
       var InterID = form.hmainid || form.HInterID
       //閫昏緫瀹℃牳鏂规硶
-      axios.get(this.baseURL + "/Kf_MoveStockRequestBill/AuditKf_MoveStockRequestBill", {
+      axios.get(this.$baseUrl + "/Kf_MoveStockRequestBill/AuditKf_MoveStockRequestBill", {
         params: { "HInterID": InterID, "Type": num, "user": sessionStorage["HUserName"] }
       }).then(response => {
         let result = response.data
@@ -797,6 +829,44 @@
         else {
           this.$modal.msgError("閿欒:" + result.code + result.Message,);
         }
+        this.clearData()
+      }).catch(error => {
+        this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+      });
+    },
+    set_CloseBill(num) {
+      //閫昏緫鍏抽棴鏂规硶
+      axios.get(this.$baseUrl + "/Kf_MoveStockRequestBill/CloseKf_MoveStockRequestBill", {
+        params: { "HInterID": this.rowForm.hmainid, "Type": num, "user": sessionStorage["HUserName"] }
+      }).then(response => {
+        let result = response.data
+        if (result.code == 1) {
+          this.$modal.msgSuccess(result.Message);
+          this.getList();
+        }
+        else {
+          this.$modal.msgError("閿欒:" + result.code + result.Message,);
+        }
+        this.clearData()
+      }).catch(error => {
+        console.log(error)
+        this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+      });
+    },
+    set_DropBill(num) {
+      //閫昏緫浣滃簾鏂规硶
+      axios.get(this.$baseUrl + "/Kf_MoveStockRequestBill/DropKf_MoveStockRequestBill", {
+        params: { "HInterID": this.rowForm.hmainid.toString(), "Type": num, "user": sessionStorage["HUserName"] }
+      }).then(response => {
+        let result = response.data
+        if (result.count == 1) {
+          this.$modal.msgSuccess(result.Message);
+          this.getList();
+        }
+        else {
+          this.$modal.msgError("閿欒:" + result.code + result.Message,);
+        }
+        this.clearData()
       }).catch(error => {
         this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
       });
@@ -815,22 +885,8 @@
       } else if (this.rowForm.鐘舵�� != "宸插鏍�" && !this.defaintOperationByCompanyName()) {
         this.$modal.msgError("鎵撳嵃澶辫触!鍘熷洜锛氬崟鎹姸鎬佷笉涓�'宸插鏍�'鐘舵��!!");
       } else {
-        axios.get(this.baseURL + "/Kf_SellOutBill/CheckSellOutBill_IsExist", {
-          params: { "HInterID": this.rowForm.hmainid }
-        }).then(response => {
-          var result = response.data
-          if (result.count == 1) {
-            this.printListShow = true
-            this.openPrintList = true
-            // this.$router.push({ path:'/printList', query: { linterid: this.rowForm.hmainid,MyMsg:this.rowForm.hmainid,Type:'Kf_SellOutBillList' }})
-          } else {
-            this.$modal.msgError(result.code + result.Message)
-          }
-        }).catch(error => {
-          this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-        });
-
-
+   this.printListShow = true;
+                this.openPrintList = true;
       }
       //  var content= ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=Kf_SellOutBillList', 'yes']
     },
@@ -838,7 +894,7 @@
     //#region 鑾峰彇鍏徃鍚嶏紝鏍规嵁鍏徃杩涜瀹氬埗鍖栧紑鍙�
     defaintOperationByCompanyName() {
       var result = false;
-      axios.get(this.baseURL + '/Xt_getInfo/getCompanyName').then(response => {
+      axios.get(this.$baseUrl + '/Xt_getInfo/getCompanyName').then(response => {
         var data1 = response.data
         if (data1.count == 1) {
           if (data1.data == "姘村姟") {

--
Gitblit v1.9.1