瀏覽代碼

仓储模块修改

wengyuwen 4 年之前
父節點
當前提交
be6f064b50

+ 5 - 1
src/views/reportManagement/whgenleg/index.vue

@@ -150,7 +150,8 @@
         </template>
       </el-table-column>
       <el-table-column label="提单号" align="center" prop="fMblno" show-overflow-tooltip width="120"/>
-      <el-table-column label="品牌" align="center" prop="fMarks" width="120"/>
+      <el-table-column label="货物属性" align="center" prop="fBusinessTypes" width="120"/>
+      <el-table-column label="属性详情" align="center" prop="fMarks" width="120"/>
       <el-table-column label="品名" align="center" prop="fGoodsids" width="120"/>
       <el-table-column label="库区" align="center" prop="fWarehouseLocationids" width="120"/>
       <el-table-column
@@ -331,6 +332,8 @@ export default {
         fCntrno: null,
         fStatus: null,
         fMarks: null,
+        fBusinessType:null,
+        fBusinessTypes:null
       },
       // 表单参数
       form: {},
@@ -408,6 +411,7 @@ export default {
     getList() {
       this.loading = true;
       listWhgenleg(this.queryParams).then(response => {
+        console.log(response)
         this.whgenlegList = response.rows;
         this.total = response.total;
         this.loading = false;

+ 118 - 8
src/views/warehouseBusiness/goodsTransfer/index.vue

@@ -497,9 +497,9 @@
             <el-form-item label="提单号" prop="fMblno">
               <el-input
                 v-model="form.fMblno"
-                :disabled="notChange"
+                disabled
                 style="width: 80%"
-                placeholder="手工输入"
+                placeholder=""
               />
             </el-form-item>
           </el-col>
@@ -617,7 +617,7 @@
           header-align="center"
           width="140px"
           align="center"
-          label="*商品属性"
+          label="*货物属性"
         >
           <template slot-scope="scope">
             <el-select v-model="scope.row.fBusinessType"
@@ -1135,6 +1135,56 @@
           </template>
         </el-table-column>
         <el-table-column
+          prop="fMblno"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="提单号"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fMblno"
+              :disabled="browseStatus"
+              placeholder="提单号"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+
+        <el-table-column
+          prop="fProductName"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="品名"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fProductName"
+              :disabled="browseStatus"
+              placeholder="品名"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+
+        <el-table-column
+          prop="fMarks"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="品牌"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fMarks"
+              :disabled="browseStatus"
+              placeholder="品牌"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+        <el-table-column
           prop="remarks"
           header-align="center"
           align="center"
@@ -1363,6 +1413,56 @@
           </template>
         </el-table-column>
         <el-table-column
+          prop="fMblno"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="提单号"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fMblno"
+              :disabled="browseStatus"
+              placeholder="提单号"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+
+        <el-table-column
+          prop="fProductName"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="品名"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fProductName"
+              :disabled="browseStatus"
+              placeholder="品名"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+
+        <el-table-column
+          prop="fMarks"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="品牌"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fMarks"
+              :disabled="browseStatus"
+              placeholder="品牌"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+        <el-table-column
           prop="remarks"
           header-align="center"
           align="center"
@@ -1403,7 +1503,7 @@
         <el-button type="primary" :disabled="notChange" @click="saveForm">保 存</el-button>
         <el-button v-if="approve === true" @click="goApproval">审批</el-button>
         <el-button type="success" @click="backrRconciliation" v-if="form.fBillstatus == '6'">撤销请核</el-button>
-        <el-button type="primary" v-if="notChange" @click="addOrUpdateHandle()">查看审批流</el-button>
+        <el-button type="primary" :disabled="notChange" v-if="form.fBillstatus > 3" @click="addOrUpdateHandle()">查看审批流</el-button>
         <el-button type="primary" :disabled="notChange" @click="submitForm">提交审核</el-button>
         <el-button type="danger" :disabled="disappear" v-if="form.fBillstatus == '4' && Operator == Lander" @click="backApproval">撤销审批</el-button>
         <el-button v-if="cancelButton === true" @click="cancel">取 消</el-button>
@@ -2000,12 +2100,16 @@
         }
         let fMarks = []
         let fProductName = []
+        let fMblno = []
         for (let li in this.dataList) {
           fMarks.push(this.dataList[li].fMarks)
           fProductName.push(this.dataList[li].fGoodsids)
+          fMblno.push(this.dataList[li].fMblno)
         }
         this.$set(this.form, 'fMarks', Array.from(new Set(fMarks)).join(","))
         this.$set(this.form, 'fProductName', Array.from(new Set(fProductName)).join(","))
+        this.$set(this.form, 'fMblno', Array.from(new Set(fMblno)).join(","))
+
       },
       // 收货单打印界面
       showEditDialog_s() {
@@ -2027,7 +2131,10 @@
           fCxrate: null,
           fTaxrate: this.fTaxrate,
           fRate: null,
-          remarks: null
+          remarks: null,
+          fMblno:this.form.fMblno,
+          fProductName:this.form.fProductName,
+          fMarks:this.form.fMarks
         })
       },
       addpayment() {
@@ -2042,7 +2149,10 @@
           fTaxrate: this.fTaxrate,
           fCxrate: null,
           fRate: null,
-          remarks: null
+          remarks: null,
+          fMblno:this.form.fMblno,
+          fProductName:this.form.fProductName,
+          fMarks:this.form.fMarks
         })
       },
       queryUser() {
@@ -2636,8 +2746,8 @@
             formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
             warehouseSubmission(formData).then((response) => {
               this.msgSuccess('提交成功')
-              this.browseStatus = true
-              this.notChange = true
+              // this.browseStatus = true
+              // this.notChange = true
               this.cancel()
               this.getList()
             })

+ 136 - 23
src/views/warehouseBusiness/inStock/index.vue

@@ -348,7 +348,7 @@
             size="mini"
             type="text"
             icon="el-icon-delete"
-            v-if="scope.row.fBillstatus == 4 || scope.row.fBillstatus == 5"
+            v-if="scope.row.fBillstatus === 4 || scope.row.fBillstatus === 5"
             @click="handleUpdate(scope.row, true)"
           >审核进度
           </el-button>
@@ -565,7 +565,7 @@
               <el-input
                 v-model="form.fDriverName"
                 style="width: 80%"
-                :disabled="browseStatus"
+                :disabled="browseStatus || formBrowseStatus"
                 placeholder="司机姓名"
               />
             </el-form-item>
@@ -575,7 +575,7 @@
               <el-input
                 v-model="form.fDriverIdCar"
                 style="width: 80%"
-                :disabled="browseStatus"
+                :disabled="browseStatus || formBrowseStatus"
                 placeholder="司机身份证"
               />
             </el-form-item>
@@ -585,7 +585,7 @@
               <el-input
                 v-model="form.fDriverTel"
                 style="width: 80%"
-                :disabled="browseStatus"
+                :disabled="browseStatus || formBrowseStatus"
                 placeholder="司机电话"
               />
             </el-form-item>
@@ -608,7 +608,7 @@
                 style="width: 100%"
                 v-model="form.remark"
                 type="textarea"
-                :disabled="browseStatus"
+                :disabled="browseStatus || formBrowseStatus"
                 placeholder="请输入内容"
               />
             </el-form-item>
@@ -972,7 +972,6 @@
                 scope.row.fBillstatus === 40
               "
               remote
-              :remote-method="goodsRemoteMethod"
               @change="changefGoodsid(scope.row)"
               placeholder="请选择品名"
             >
@@ -990,7 +989,7 @@
           header-align="center"
           width="140px"
           align="center"
-          label="*商品属性"
+          label="*货物属性"
         >
           <template slot-scope="scope">
             <el-select v-model="scope.row.fBusinessType"
@@ -1013,7 +1012,7 @@
           header-align="center"
           align="center"
           width="140px"
-          label="*属性描述"
+          label="*属性详情"
         >
           <template slot-scope="scope">
             <el-input
@@ -1701,6 +1700,57 @@
             />
           </template>
         </el-table-column>
+
+        <el-table-column
+          prop="fMblno"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="提单号"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fMblno"
+              :disabled="browseStatus"
+              placeholder="提单号"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+
+        <el-table-column
+          prop="fProductName"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="品名"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fProductName"
+              :disabled="browseStatus"
+              placeholder="品名"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+
+        <el-table-column
+          prop="fMarks"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="品牌"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fMarks"
+              :disabled="browseStatus"
+              placeholder="品牌"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
         <el-table-column
           prop="remarks"
           header-align="center"
@@ -1944,6 +1994,57 @@
             />
           </template>
         </el-table-column>
+
+          <el-table-column
+            prop="fMblno"
+            header-align="center"
+            align="center"
+            width="130px"
+            label="提单号"
+          >
+            <template slot-scope="scope">
+              <el-input
+                v-model="scope.row.fMblno"
+                :disabled="browseStatus"
+                placeholder="提单号"
+                show-word-limit
+              />
+            </template>
+          </el-table-column>
+d
+          <el-table-column
+            prop="fProductName"
+            header-align="center"
+            align="center"
+            width="140px"
+            label="品名"
+          >
+            <template slot-scope="scope">
+              <el-input
+                v-model="scope.row.fProductName"
+                :disabled="browseStatus"
+                placeholder="品名"
+                show-word-limit
+              />
+            </template>
+          </el-table-column>
+
+        <el-table-column
+          prop="fMarks"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="品牌"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fMarks"
+              :disabled="browseStatus"
+              placeholder="品牌"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
         <el-table-column
           prop="remarks"
           header-align="center"
@@ -2628,6 +2729,7 @@ export default {
   },
   data() {
     return {
+      approval:[],
       doNot:false,
       // 修改查看状态
       browseStatus: false,
@@ -2942,12 +3044,12 @@ export default {
     adoPt(){
       this.approval = this.$route.query.data
       if (this.approval){
+        this.reset();
         this.doNot = true
         this.closeButton = false
         this.approval = JSON.parse(this.approval)
         this.approVal = true
-        this.browseStatus = status;
-        this.reset();
+        this.browseStatus = true;
         this.detailsHidden = false;
         this.formBrowseStatus = false;
         this.dataList = [];
@@ -3353,6 +3455,9 @@ export default {
         fCxrate: null,
         fRate: null,
         remarks: null,
+        fMblno:this.form.fMblno,
+        fProductName:this.form.fProductName,
+        fMarks:this.form.fMarks
       });
     },
     addpayment() {
@@ -3369,6 +3474,9 @@ export default {
         fCxrate: null,
         fRate: null,
         remarks: null,
+        fMblno:this.form.fMblno,
+        fProductName:this.form.fProductName,
+        fMarks:this.form.fMarks
       });
     },
     queryUser() {
@@ -3722,6 +3830,7 @@ export default {
     handleAdd(status) {
       this.browseStatus = status;
       this.queryUser();
+      this.goodsRemoteMethod()
       this.open = true;
       this.detailsHidden = false;
       this.dataList = [];
@@ -3734,12 +3843,13 @@ export default {
     },
     /** 修改按钮操作 */
     handleUpdate(row, status) {
-      this.browseStatus = status;
       this.reset();
+      this.browseStatus = status;
       this.detailsHidden = false;
       this.formBrowseStatus = false;
       const fId = row.fId || this.ids;
       this.dataList = [];
+      this.goodsRemoteMethod()
       getWarehousebills(fId).then((response) => {
         if (response.data.warehousebills) {
           this.form = response.data.warehousebills;
@@ -3747,7 +3857,7 @@ export default {
           if (this.form.fBillstatus > 2) {
             this.approvalStatus = false;
           } else {
-            this.approvalStatus = true;
+            this.fMblno = true;
           }
         }
         if (response.data.warehouseBillsItem) {
@@ -3773,6 +3883,11 @@ export default {
         }
         if (response.data.warehouseBillsItem) {
           this.dataList = response.data.warehouseBillsItem;
+          for(let list in this.dataList){
+            if (this.dataList[list].fBillstatus > 10) {
+              this.formBrowseStatus = true;
+            }
+          }
         }
         if (response.data.enclosures) {
           this.relevantAttachments = response.data.enclosures;
@@ -3784,12 +3899,9 @@ export default {
         this.$set(this.form, "createTime", Date.parse(this.form.createTime));
         this.$set(this.form, "fPlannetweight", this.form.fPlannetweight.toFixed(2));
         this.$set(this.form, "fPlangrossweight", this.form.fPlangrossweight.toFixed(2));
-
-        console.log(JSON.stringify(this.form))
         for (let list in this.dataList) {
           this.$set(this.dataList[list], "fBsdate", Date.parse(this.dataList[list].fBsdate));
         }
-        this.goodsOptions = response.data.goodsList;
         this.kqhouseOptions = response.data.warehouseAreas;
         this.warehouseDrList = response.data.warehousebillsfeesDr;
         for (let dr in this.warehouseDrList) {
@@ -4182,7 +4294,9 @@ export default {
       let fMarks = []
       let fGoodsid = []
       for (let li in this.dataList) {
-        fMarks.push(this.dataList[li].fMarks)
+        if (this.dataList[li].fMarks) {
+          fMarks.push(this.dataList[li].fMarks)
+        }
         fGoodsid.push(this.dataList[li].fGoodsids)
       }
       this.$set(this.form, 'fMarks', Array.from(new Set(fMarks)).join(","))
@@ -4346,11 +4460,13 @@ export default {
     },
     returnData() {
       this.addOrUpdateVisib = false
+      this.open = false
       this.cancelTwo()
     },
     addOrUpdateHandle(form) {
       this.addOrUpdateVisible = true
-      let id = form.fId
+      this.addOrUpdateVisib = false
+      let id = '448'
       let actId = '110'
       this.$nextTick(() => {
         this.$refs.addOrUpdate.init(id, actId)
@@ -4383,12 +4499,9 @@ export default {
         this.Pledgebank = response.rows;
       });
     },
-    /* 远程模糊查询商品 */
-    goodsRemoteMethod(name) {
-      if (name == null || name === "") {
-        return false;
-      }
-      let queryParams = { pageNum: 1, pageSize: 10, fName: name };
+    /* 弹窗获取所有商品信息 */
+    goodsRemoteMethod() {
+      let queryParams = { pageNum: 1, pageSize: 10, fStatus: 0, delFlag: 0 };
       listGoods(queryParams).then((response) => {
         this.goodsOptions = response.rows;
       });

+ 136 - 18
src/views/warehouseBusiness/outStock/index.vue

@@ -401,8 +401,8 @@
               <el-input
                 v-model="form.fMblno"
                 style="width: 80%"
-                :disabled="browseStatus || formBrowseStatus"
-                placeholder="手工输入"
+                disabled
+                placeholder=""
               />
             </el-form-item>
           </el-col>
@@ -624,12 +624,12 @@
           </el-col>
           <el-col :span="8">
             <el-form-item label="品名" prop="fProductName">
-              <el-input
-                v-model="form.fProductName"
-                style="width: 80%"
-                disabled
-                placeholder="品名"
-              />
+                <el-input
+                  v-model="form.fProductName"
+                  style="width: 80%"
+                  disabled
+                  placeholder="品名"
+                />
             </el-form-item>
           </el-col>
         </el-row>
@@ -823,7 +823,7 @@
           header-align="center"
           width="140px"
           align="center"
-          label="*商品属性"
+          label="*货物属性"
         >
           <template slot-scope="scope">
             <el-select v-model="scope.row.fBusinessType"
@@ -846,7 +846,7 @@
           header-align="center"
           align="center"
           width="140px"
-          label="*属性描述"
+          label="*属性详情"
         >
         </el-table-column>
         <el-table-column
@@ -1481,6 +1481,57 @@
             />
           </template>
         </el-table-column>
+
+        <el-table-column
+          prop="fMblno"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="提单号"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fMblno"
+              :disabled="browseStatus"
+              placeholder="提单号"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+
+        <el-table-column
+          prop="fProductName"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="品名"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fProductName"
+              :disabled="browseStatus"
+              placeholder="品名"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+
+        <el-table-column
+          prop="fMarks"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="品牌"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fMarks"
+              :disabled="browseStatus"
+              placeholder="品牌"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
         <el-table-column
           prop="remarks"
           header-align="center"
@@ -1727,6 +1778,57 @@
             />
           </template>
         </el-table-column>
+
+        <el-table-column
+          prop="fMblno"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="提单号"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fMblno"
+              :disabled="browseStatus"
+              placeholder="提单号"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+
+        <el-table-column
+          prop="fProductName"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="品名"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fProductName"
+              :disabled="browseStatus"
+              placeholder="品名"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+
+        <el-table-column
+          prop="fMarks"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="品牌"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fMarks"
+              :disabled="browseStatus"
+              placeholder="品牌"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
         <el-table-column
           prop="remarks"
           header-align="center"
@@ -1788,7 +1890,7 @@
         >请核</el-button
         >
         <el-button type="danger" v-if="form.fBillstatus === 6" @click="revoke">撤销请核</el-button>
-        <el-button type="danger" v-if="form.fBillstatus === 4 && current === before" @click="revokeTwo">撤销请核</el-button>
+        <el-button type="danger" v-if="form.fBillstatus === 4 && current === before" :disabled="doNot" @click="revokeTwo">撤销请核</el-button>
         <el-button @click="cancelTwo" v-if="approVal === true">取 消</el-button>
         <el-button @click="cancel" v-else>取 消</el-button>
       </div>
@@ -2365,6 +2467,7 @@ export default {
   },
   data() {
     return {
+      doNot:false,
       WarehouseInformation:[],
       addOrUpdateVisible: false,
       addOrUpdateVisib: false,
@@ -2633,11 +2736,13 @@ export default {
     adoPt(){
       this.approval = this.$route.query.data
       if (this.approval){
+        this.reset();
+        this.doNot = true
         this.closeButton = false
         this.approval = JSON.parse(this.approval)
         this.approVal = true
         this.browseStatus = status;
-        this.reset();
+
         this.detailsHidden = false;
         this.formBrowseStatus = false;
         this.dataList = [];
@@ -2680,15 +2785,17 @@ export default {
           this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
           this.$set(this.form, "createTime", Date.parse(this.form.createTime));
           this.$set(this.form, "fTrademodeid", this.form.fTrademodeid + "");
+          console.log(this.form.fPlannetweight)
           this.$set(
             this.form,
             "fPlannetweight",
-            this.form.fPlannetweight.toFixed(2)
+            this.form.fPlannetweight
           );
+
           this.$set(
             this.form,
             "fPlangrossweight",
-            this.form.fPlangrossweight.toFixed(2)
+            this.form.fPlangrossweight
           );
           for (let list in this.dataList) {
             this.$set(
@@ -3230,6 +3337,9 @@ export default {
         fExrate: 1,
         fTaxrate: this.fTaxrate,
         remarks: null,
+        fMblno:this.form.fMblno,
+        fProductName:this.form.fProductName,
+        fMarks:this.form.fMarks
       });
     },
     addpayment() {
@@ -3244,6 +3354,9 @@ export default {
         fExrate: 1,
         fTaxrate: this.fTaxrate,
         remarks: null,
+        fMblno:this.form.fMblno,
+        fProductName:this.form.fProductName,
+        fMarks:this.form.fMarks
       });
     },
     queryUser() {
@@ -3381,6 +3494,7 @@ export default {
       this.editDialogClosed_ss = false
       this.storageAgreements = false
       this.browseStatus = false
+      this.doNot = false
       this.resetForm("form");
     },
     /** 搜索按钮操作 */
@@ -3420,8 +3534,8 @@ export default {
     },
     /** 修改按钮操作 */
     handleUpdate(row, status) {
-      this.browseStatus = status;
       this.reset();
+      this.browseStatus = status;
       this.detailsHidden = false;
       this.formBrowseStatus = false;
       const fId = row.fId || this.ids;
@@ -3908,13 +4022,17 @@ export default {
         return false
       }
       let fMarks = []
-      let fGoodsid = []
+      let fProductName = []
+      let fMblno = []
       for (let li in this.dataList) {
         fMarks.push(this.dataList[li].fMarks)
-        fGoodsid.push(this.dataList[li].fGoodsids)
+        fProductName.push(this.dataList[li].fGoodsids)
+        fMblno.push(this.dataList[li].fMblno)
       }
       this.$set(this.form, 'fMarks', Array.from(new Set(fMarks)).join(","))
-      this.$set(this.form, 'fProductName', Array.from(new Set(fGoodsid)).join(","))
+      this.$set(this.form, 'fProductName', Array.from(new Set(fProductName)).join(","))
+      this.$set(this.form, 'fMblno', Array.from(new Set(fMblno)).join(","))
+
     },
     // 保存
     saveForm () {

+ 158 - 35
src/views/warehouseBusiness/stockTransfer/index.vue

@@ -348,7 +348,7 @@
                 v-model="form.fCorpid"
                 filterable
                 remote
-                :disabled="notChange || formBrowseStatus"
+                :disabled="browseStatus || formBrowseStatus"
                 @change="changefCorpid(form)"
                 style="width: 80%"
                 :remote-method="corpsRemoteMethod"
@@ -368,7 +368,7 @@
               <el-select
                 v-model="form.fStltypeid"
                 placeholder="请选择结算方式"
-                :disabled="notChange || formBrowseStatus"
+                :disabled="browseStatus || formBrowseStatus"
                 clearable
                 style="width: 80%"
               >
@@ -386,8 +386,8 @@
               <el-input
                 v-model="form.fMblno"
                 style="width: 80%"
-                :disabled="notChange || formBrowseStatus"
-                placeholder="手工输入"
+                disabled
+                placeholder=""
               />
             </el-form-item>
           </el-col>
@@ -399,7 +399,7 @@
                 v-model="form.fBsdate"
                 style="width: 80%"
                 type="date"
-                :disabled="notChange || formBrowseStatus"
+                :disabled="browseStatus || formBrowseStatus"
                 @change="changefBsdate"
                 value-format="timestamp"
                 placeholder="业务日期"
@@ -413,7 +413,7 @@
                 v-model="form.fStorekeeper"
                 filterable
                 remote
-                :disabled="notChange || formBrowseStatus"
+                :disabled="browseStatus || formBrowseStatus"
                 style="width: 80%"
                 :remote-method="userRemoteMethod"
                 placeholder="请输入模糊查找"
@@ -433,8 +433,8 @@
                 v-model="form.fWarehouseid"
                 filterable
                 remote
-                @change="changefWarehouseid"
-                :disabled="notChange || formBrowseStatus"
+                @change="changefWarehouseid(form)"
+                :disabled="browseStatus || formBrowseStatus"
                 style="width: 80%"
                 :remote-method="warehouseRemoteMethod"
                 placeholder="请输入模糊查找"
@@ -465,7 +465,7 @@
               <el-select
                 v-model="form.fIfdamage"
                 placeholder="请选择是否破损"
-                :disabled="notChange || formBrowseStatus"
+                :disabled="browseStatus || formBrowseStatus"
                 clearable
                 style="width: 80%"
               >
@@ -483,7 +483,7 @@
               <el-select
                 v-model="form.fIfweigh"
                 placeholder="请选择是否过磅"
-                :disabled="notChange || formBrowseStatus"
+                :disabled="browseStatus || formBrowseStatus"
                 clearable
                 style="width: 80%"
               >
@@ -503,7 +503,7 @@
               <el-select
                 v-model="form.fTrademodeid"
                 placeholder="请选择贸易方式"
-                :disabled="notChange || formBrowseStatus"
+                :disabled="browseStatus || formBrowseStatus"
                 clearable
                 style="width: 80%"
               >
@@ -553,7 +553,7 @@
               <el-input
                 v-model="form.fDriverName"
                 style="width: 80%"
-                :disabled="browseStatus"
+                :disabled="browseStatus || formBrowseStatus"
                 placeholder="司机姓名"
               />
             </el-form-item>
@@ -563,7 +563,7 @@
               <el-input
                 v-model="form.fDriverIdCar"
                 style="width: 80%"
-                :disabled="browseStatus"
+                :disabled="browseStatus || formBrowseStatus"
                 placeholder="司机身份证"
               />
             </el-form-item>
@@ -575,7 +575,7 @@
               <el-input
                 v-model="form.fDriverTel"
                 style="width: 80%"
-                :disabled="browseStatus"
+                :disabled="browseStatus || formBrowseStatus"
                 placeholder="司机电话"
               />
             </el-form-item>
@@ -584,7 +584,7 @@
             <el-form-item label="备注" prop="remark">
               <el-input
                 v-model="form.remark"
-                :disabled="notChange || formBrowseStatus"
+                :disabled="browseStatus || formBrowseStatus"
                 type="textarea"
                 placeholder="请输入内容"
               />
@@ -597,7 +597,7 @@
               <el-form-item label="仓库联系人" prop="fContacts">
                 <el-input
                   v-model="form.fContacts"
-                  :disabled="notChange || formBrowseStatus"
+                  :disabled="browseStatus || formBrowseStatus"
                   style="width: 80%"
                   placeholder="仓库联系人"
                 />
@@ -607,7 +607,7 @@
               <el-form-item label="仓库电话" prop="ftel">
                 <el-input
                   v-model="form.fTel"
-                  :disabled="notChange || formBrowseStatus"
+                  :disabled="browseStatus || formBrowseStatus"
                   style="width: 80%"
                   placeholder="请输仓库入电话"
                 />
@@ -735,7 +735,7 @@
           header-align="center"
           width="140px"
           align="center"
-          label="*商品属性"
+          label="*货物属性"
         >
           <template slot-scope="scope">
             <el-select v-model="scope.row.fBusinessType"
@@ -1420,6 +1420,56 @@
           </template>
         </el-table-column>
         <el-table-column
+          prop="fMblno"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="提单号"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fMblno"
+              :disabled="browseStatus"
+              placeholder="提单号"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+
+        <el-table-column
+          prop="fProductName"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="品名"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fProductName"
+              :disabled="browseStatus"
+              placeholder="品名"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+
+        <el-table-column
+          prop="fMarks"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="品牌"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fMarks"
+              :disabled="browseStatus"
+              placeholder="品牌"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+        <el-table-column
           prop="remarks"
           header-align="center"
           align="center"
@@ -1654,6 +1704,56 @@
           </template>
         </el-table-column>
         <el-table-column
+          prop="fMblno"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="提单号"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fMblno"
+              :disabled="browseStatus"
+              placeholder="提单号"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+
+        <el-table-column
+          prop="fProductName"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="品名"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fProductName"
+              :disabled="browseStatus"
+              placeholder="品名"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+
+        <el-table-column
+          prop="fMarks"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="品牌"
+        >
+          <template slot-scope="scope">
+            <el-input
+              v-model="scope.row.fMarks"
+              :disabled="browseStatus"
+              placeholder="品牌"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+        <el-table-column
           prop="remarks"
           header-align="center"
           align="center"
@@ -1688,7 +1788,7 @@
       <div slot="footer" class="dialog-footer">
         <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
         <approval-comments v-if="addOrUpdateVisib" ref="ApprovalComments" @refreshDataList="returnData"></approval-comments>
-        <el-button type="primary" v-if="notChange" @click="addOrUpdateHandle()">查看审批流</el-button>
+        <el-button type="primary" :disabled="approvalStatus" v-if="form.fBillstatus > 3" @click="addOrUpdateHandle()">查看审批流</el-button>
         <el-button v-if="approve === true" @click="goApproval">审批</el-button>
         <el-button type="danger" :disabled="disappear" v-if="form.fBillstatus == '4' && Operator == Lander" @click="backApproval">撤销审批</el-button>
         <el-button type="success" @click="backrRconciliation" v-if="form.fBillstatus == '6'">撤销请核</el-button>
@@ -1999,6 +2099,7 @@ export default {
   },
   data() {
     return {
+      approvalStatus:false,
       Lander:'',
       Operator:'',
       cancelButton:true,
@@ -2693,8 +2794,9 @@ export default {
           fWarehouselocids: this.dialogWhgenlegList[whgen].fWarehouseLocationids,
           fWarehouseLocationids: this.dialogWhgenlegList[whgen].fWarehouseLocationids,
           fTransferWarehouselocid: this.dialogWhgenlegList[whgen].fWarehouseLocationid,
-          remark: null
+          remark: null,
         });
+        console.log(this.fTransferWarehouselocid)
       }
       this.whgenlegVisible = false;
     },
@@ -2706,8 +2808,11 @@ export default {
         if(!this.printinglist[warehouseCr].fId) {
           this.$message.error("请先保存!");
           return false;
+        } else if (!this.printinglist[warehouseCr].fQty || this.printinglist[warehouseCr].fQty === 0) {
+          this.$message.error('请填写调拨件数')
+          return false
         } else if (this.printinglist[warehouseCr].fTransferWarehouselocid === this.printinglist[warehouseCr].fWarehouselocid) {
-          this.$message.error('调拨库区不德与原库区相同')
+          this.$message.error('调拨库区不与原库区相同')
           return false
         } else if (!this.printinglist[warehouseCr].fTruckno || this.printinglist[warehouseCr].fTruckno !== fTruckno) {
           this.$message.error('请填写车号或选择车相同车号')
@@ -2788,6 +2893,9 @@ export default {
         fExrate: 1,
         fTaxrate: this.fTaxrate,
         remarks: null,
+        fMblno:this.form.fMblno,
+        fProductName:this.form.fProductName,
+        fMarks:this.form.fMarks
       });
     },
     addpayment() {
@@ -2802,6 +2910,9 @@ export default {
         fExrate: 1,
         fTaxrate: this.fTaxrate,
         remarks: null,
+        fMblno:this.form.fMblno,
+        fProductName:this.form.fProductName,
+        fMarks:this.form.fMarks
       });
     },
     queryUser() {
@@ -2987,11 +3098,11 @@ export default {
       this.title = "调拨单";
       this.formBrowseStatus = false;
     },
-    check_s(row,status,res){
-      this.disappear = true
-      this.notChange = true
-      this.browseStatus = status;
+    check_s(row,status){
+      // this.disappear = true
+      // this.notChange = true
       this.reset();
+      this.browseStatus = status;
       this.detailsHidden = false;
       let data = row || this.ids;
       getStockTransfer(data.fId).then((response) => {
@@ -3138,12 +3249,14 @@ export default {
     },
     /** 修改按钮操作 */
     handleUpdate(row, status) {
-      this.notChange = false
-      this.browseStatus = status;
       this.reset();
+      console.log(this.formBrowseStatus)
+      this.browseStatus = status;
       this.detailsHidden = false;
-      let data = row || this.ids;
-      getStockTransfer(data.fId).then((response) => {
+      this.formBrowseStatus = false;
+      let fId = row.fId || this.ids;
+      this.dataList = [];
+      getStockTransfer(fId).then((response) => {
         if (response.data.warehousebills) {
           this.form = response.data.warehousebills;
           this.$set(this.form, "fEta", Date.parse(this.form.fEta));
@@ -3152,6 +3265,11 @@ export default {
           this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
           this.$set(this.form, "fTrademodeid", this.form.fTrademodeid + '');
           this.$set(this.form, 'createTime', Date.parse(this.form.createTime))
+          if(this.form.fBillstatus > 2){
+            this.approvalStatus = false
+          }else{
+            this.approvalStatus = true
+          }
         }
         if (response.data.corps) {
           this.fMblnoOptions = response.data.corps;
@@ -3170,7 +3288,7 @@ export default {
             if (!this.form.fMblno) {
               this.$set(this.form, "fMblno", this.dataList[list].fMblno);
             }
-            if (this.dataList[list].fBillstatus >= 6) {
+            if (this.dataList[list].fBillstatus > 10) {
               this.formBrowseStatus = true;
             }
             this.$set(this.dataList[list], "fBsdate", Date.parse(this.dataList[list].fBsdate));
@@ -3230,9 +3348,9 @@ export default {
       }
     },
     // change仓库
-    changefWarehouseid() {
+    changefWarehouseid(row) {
       for (let corp in this.warehouseOptions) {
-        if (this.form.fWarehouseid === this.warehouseOptions[corp].fId) {
+        if (row.fWarehouseid === this.warehouseOptions[corp].fId) {
           this.fAddr = this.warehouseOptions[corp].fAddr;
           this.$set(this.form, "fTel", this.warehouseOptions[corp].fTel);
           this.$set(this.form, "fContacts", this.warehouseOptions[corp].fContacts);
@@ -3596,13 +3714,18 @@ export default {
         return false
       }
       let fMarks = []
-      let fGoodsid = []
+      let fProductName = []
+      let fMblno = []
       for (let li in this.dataList) {
         fMarks.push(this.dataList[li].fMarks)
-        fGoodsid.push(this.dataList[li].fGoodsids)
+        fProductName.push(this.dataList[li].fGoodsids)
+        fMblno.push(this.dataList[li].fMblno)
+
       }
       this.$set(this.form, 'fMarks', Array.from(new Set(fMarks)).join(","))
-      this.$set(this.form, 'fProductName', Array.from(new Set(fGoodsid)).join(","))
+      this.$set(this.form, 'fProductName', Array.from(new Set(fProductName)).join(","))
+      this.$set(this.form, 'fMblno', Array.from(new Set(fMblno)).join(","))
+
     },
     // 保存
     saveForm () {