浏览代码

仓库电话自动带出

lichao 3 年之前
父节点
当前提交
cb62063118
共有 1 个文件被更改,包括 18 次插入1 次删除
  1. 18 1
      src/views/Warehousing/outStock/AddOrUpdate.vue

+ 18 - 1
src/views/Warehousing/outStock/AddOrUpdate.vue

@@ -193,6 +193,7 @@
               "
                 style="width: 80%"
                 placeholder="请选择"
+                @change="warehouseChange"
             >
               <el-option
                   v-for="(item, index) in form.fMblno && form.fCorpid && !form.fId?warehouseSwitching:warehouseOptions"
@@ -1152,6 +1153,13 @@
                       :disabled="browseStatus || scope.row.fBillstatus >= 40"
                   />
                 </span>
+                <span v-else-if="item.label == 'fSerialNumber'">
+                  <el-input
+                    v-model="scope.row.fSerialNumber"
+                    placeholder="流水号"
+                    :disabled="browseStatus || scope.row.fBillstatus >= 40"
+                  />
+                </span>
                 <span v-else-if="item.label == 'remark'">
                   <el-input
                       v-model="scope.row.remark"
@@ -2511,7 +2519,7 @@
             <div>
             </div>
             <div>
-              <div>流水号:{{ Printinglist.length > 0 ? Printinglist[0].fSerialNumber : '' }}</div>
+              <div>办单号:{{ Printinglist.length > 0 ? Printinglist[0].fSerialNumber : '' }}</div>
               <div>办单日期:{{ nowTime }}</div>
             </div>
           </div>
@@ -3864,6 +3872,8 @@ import upLoad from "../components/upLoad";
 import draggable from "vuedraggable";
 import {queryClerkRoleList} from "@/api/warehouseBusiness/warehouseInStock";
 import { listCharge } from "@/api/system/viewApproval";
+import { getDept } from "@/api/basicdata/dept";
+
 
 export default {
   name: "inStock",
@@ -7360,6 +7370,13 @@ export default {
         }
       })
     },
+    // 获取仓库信息
+    warehouseChange() {
+      getDept(this.form.fWarehouseid).then(res => {
+        this.$set(this.form, 'fContacts', res.data.fContacts)
+        this.$set(this.form, 'fTel', res.data.fTel)
+      })
+    },
   },
   watch: {
     // 监听 addOrUpdateVisible 改变