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_MoveStockRequestBillEdit.vue |   48 +++++++++++++++++++++++++-----------------------
 1 files changed, 25 insertions(+), 23 deletions(-)

diff --git a/src/views/warehouse/transfer/Kf_MoveStockRequestBillEdit.vue b/src/views/warehouse/transfer/Kf_MoveStockRequestBillEdit.vue
index 2c96b12..14da118 100644
--- a/src/views/warehouse/transfer/Kf_MoveStockRequestBillEdit.vue
+++ b/src/views/warehouse/transfer/Kf_MoveStockRequestBillEdit.vue
@@ -138,7 +138,7 @@
           <el-row>
             <el-col :span="6">
               <el-form-item label="璋冨叆缁勭粐" prop="HSTOCKINORGID" >
-                <el-select v-model="form.HSTOCKINORGID" placeholder="璇烽�夋嫨璋冨叆缁勭粐" :disabled="OperationType == 3">
+                <el-select v-model="form.HSTOCKINORGID" placeholder="璇烽�夋嫨璋冨叆缁勭粐" :disabled="OperationType == 3" @change="StockInOrgChangeHandler">
                   <el-option
                     v-for="(item, index) in organizationList"
                     :key="index"
@@ -151,7 +151,7 @@
             </el-col>
             <el-col :span="6">
               <el-form-item label="璋冨嚭缁勭粐" prop="HSTOCKOUTORGID">
-                <el-select v-model="form.HSTOCKOUTORGID" placeholder="璇烽�夋嫨璋冨叆缁勭粐" :disabled="OperationType == 3">
+                <el-select v-model="form.HSTOCKOUTORGID" placeholder="璇烽�夋嫨璋冨嚭缁勭粐" :disabled="OperationType == 3" @change="StockOutOrgChangeHandler">
                   <el-option
                     v-for="(item, index) in organizationList"
                     :key="index"
@@ -564,7 +564,7 @@
       deptform: {}, //寮圭獥閫変腑鏁版嵁
       openData: false, //鏁版嵁寮圭獥
       dialogTitle: "",
-      organizationList: [], //缁勭粐鍒楄〃
+      organizationList: JSON.parse(sessionStorage.getItem('organizationList')), //缁勭粐鍒楄〃
       subDisabled: false, //缂栬緫椤甸潰淇濆瓨鎸夐挳鏄惁绂佺敤(true绂佺敤锛宖alse鍙敤)
       // OperationType: this.$route.query.OperationType,//淇濆瓨绫诲瀷锛堟柊澧�1淇敼2锛�
       HInterID: 0,
@@ -628,21 +628,19 @@
     };
   },
   created() {
-    this.fetchData();
-    this.getdata();
+    this.getdata()
   },
   methods: {
-    fetchData() {
-      axios
-        .get(this.baseURL + "/Web/GetOrganizations", {})
-        .then((response) => {
-          if (response.data.count == 1) {
-            this.organizationList = response.data.data; //缁勭粐鍒楄〃
-          }
-        })
-        .catch((error) => {
-          this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-        });
+    StockInOrgChangeHandler(e) {
+      for(let i=0;i<this.editData.length;i++) {
+        this.editData[i].HSTOCKORGINID = e
+      }
+    },
+    StockOutOrgChangeHandler(e) {
+      for(let i=0;i<this.editData.length;i++) {
+        this.editData[i].HOtherOrgID = e
+        this.editData[i].HSTOCKORGID = e
+      }
     },
     getdata() {
       this.formShow = false;
@@ -738,7 +736,7 @@
           this.gySupplierShow = false;
           this.openData = false;
         } else if (num == "gyProperty") {
-          this.editData[this.zbIndex].HPropertyID = deptRow.HItemID;
+          this.editData[this.zbIndex].HAuxPropID = deptRow.HItemID;
           this.editData[this.zbIndex]["杈呭姪灞炴��"] = deptRow["杈呭姪灞炴�у悕绉�"];
 
           this.propertyShow = false;
@@ -842,7 +840,7 @@
       console.log(this.form.HDeptID && this.form.HDeptID != 0);
       if (this.form.HDeptID && this.form.HDeptID != 0) {
         axios
-          .get(this.baseURL + "/Gy_Department/list", {
+          .get(this.$baseUrl + "/Gy_Department/list", {
             params: {
               sWhere: "and HItemID = '" + this.form.HDeptID + "'",
               user: sessionStorage["HUserName"],
@@ -880,7 +878,7 @@
     },
     getHBillNo() {
       axios
-        .get(this.baseURL + "/Web/GetMAXNum", {
+        .get(this.$baseUrl + "/Web/GetMAXNum", {
           params: {
             HBillType: "1243",
           },
@@ -902,7 +900,7 @@
       console.log(this.linterid);
       //涓昏〃
       axios
-        .get(this.baseURL + "/Kf_MoveStockRequestBill/cx", {
+        .get(this.$baseUrl + "/Kf_MoveStockRequestBill/cx", {
           params: { HInterID: rowHmainid },
         })
         .then((response) => {
@@ -977,7 +975,8 @@
                 HEXTAUXUNITID: data[i].HEXTAUXUNITID,
                 杈呭崟浣�: data[i].杈呭崟浣�,
                 HSTOCKORGID: data[i]["HSTOCKORGID"],
-                HPropertyID: data[i]["HPropertyID"],
+                HOtherOrgID: data[i]["HSTOCKORGID"],
+                HAuxPropID: data[i]["HAuxPropID"],
                 杈呭姪灞炴��: data[i]["杈呭姪灞炴��"],
               });
             }
@@ -1034,7 +1033,9 @@
           杈呭崟浣�: "",
           HRemark: "",
           HSTOCKORGID: sessionStorage["OrganizationID"],
-          HPropertyID: 0,
+          HOtherOrgID: sessionStorage["OrganizationID"],
+          HSTOCKORGINID: this.form.HSTOCKINORGID,
+          HAuxPropID: 0,
           杈呭姪灞炴��: "",
         };
         if (index) {
@@ -1150,7 +1151,7 @@
               axios({
                 method: "post",
                 url:
-                  this.baseURL + "/Kf_MoveStockRequestBill/Kf_MoveStockRequestBillEdit",
+                  this.$baseUrl + "/Kf_MoveStockRequestBill/Kf_MoveStockRequestBillEdit",
                 data: {
                   sMainSub: sMainSub,
                 },
@@ -1179,6 +1180,7 @@
       this.gyEmployeeShow = false;
       this.gySupplierShow = false;
       this.materialShow = false;
+      this.propertyShow = false;
     },
     //  鎵撳紑鏁版嵁鍒楄〃寮圭獥
     openDataDialog(num, row) {

--
Gitblit v1.9.1