qukaidi hace 4 años
padre
commit
3b311f45df
Se han modificado 1 ficheros con 6 adiciones y 4 borrados
  1. 6 4
      src/views/Warehousing/inStock/AddOrUpdate.vue

+ 6 - 4
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -29,7 +29,7 @@
               placeholder="请输入关键词"
               style="width: 80%"
               @change="changefStltype"
-              :disabled="detailList.length"
+              :disabled="detailList.length>0"
             >
               <el-option
                 v-for="(item, index) in fMblnoOptions"
@@ -62,7 +62,7 @@
           <el-form-item label="提单号" prop="fMblno">
             <el-input
               v-model="form.fMblno"
-              :disabled="browseStatus || formBrowseStatus||detailList.length"
+              :disabled="browseStatus || formBrowseStatus||detailList.length>0"
               style="width: 80%"
               placeholder="请输入提单号"
             />
@@ -119,7 +119,7 @@
               filterable
               v-model="form.fGoodsid"
               style="width: 80%"
-              :disabled="browseStatus || formBrowseStatus||detailList.length"
+              :disabled="browseStatus || formBrowseStatus||detailList.length>0"
               placeholder="请选择品名"
             >
               <el-option
@@ -136,7 +136,7 @@
             <el-select
               v-model="form.fWarehouseid"
               filterable
-              :disabled="browseStatus || formBrowseStatus||detailList.length"
+              :disabled="browseStatus || formBrowseStatus||detailList.length>0"
               style="width: 80%"
               placeholder="请选择"
             >
@@ -4314,6 +4314,8 @@ export default {
       treeselect(this.form.fWarehouseid).then((response) => {
         this.fWarehouseidOptions = response.data;
       });
+      // console.log(row)
+      this.allfPlanqty+=row.fQty
       row.fBsdate = new Date(row.fBsdate).getTime();
       row.fBusinessType = row.fBusinessType.toString();
       row.fCntrtype = Number(row.fCntrtype);