Qukaidi 4 سال پیش
والد
کامیت
aa2b593a09
1فایلهای تغییر یافته به همراه14 افزوده شده و 17 حذف شده
  1. 14 17
      src/views/Warehousing/goodsTransfer/AddOrUpdate.vue

+ 14 - 17
src/views/Warehousing/goodsTransfer/AddOrUpdate.vue

@@ -467,7 +467,7 @@
                   <el-date-picker
                     v-model="scope.row.fBsdate"
                     style="width: 138px"
-                    :disabled="browseStatus || scope.row.fBillstatus >= 40"
+                    :disabled="browseStatus || scope.row.fBillstatus == 6"
                     type="date"
                     value-format="timestamp"
                     placeholder="货转日期"
@@ -493,13 +493,13 @@
                   <el-input
                     @change="qtyChange(scope.row)"
                     v-model="scope.row.fQty"
-                    :disabled="browseStatus || scope.row.fBillstatus == 40"
+                    :disabled="browseStatus || scope.row.fBillstatus == 6"
                     placeholder="货转件数"
                   />
                 </span>
                 <span v-else-if="item.label == 'fGrossweight'">
                   <el-input
-                    :disabled="browseStatus || scope.row.fBillstatus == 40"
+                    :disabled="browseStatus || scope.row.fBillstatus == 6"
                     v-model="scope.row.fGrossweight"
                     @change="changeOutStock(scope.row)"
                     placeholder="货转毛重"
@@ -508,7 +508,7 @@
                 <span v-else-if="item.label == 'fNetweight'">
                   <el-input
                     v-model="scope.row.fNetweight"
-                    :disabled="browseStatus || scope.row.fBillstatus == 40"
+                    :disabled="browseStatus || scope.row.fBillstatus == 6"
                     @change="changeOutStock(scope.row)"
                     placeholder="货转净重"
                   />
@@ -518,13 +518,13 @@
                     oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
                     v-model="scope.row.fCntqty"
                     placeholder="箱量"
-                    :disabled="browseStatus || scope.row.fBillstatus >= 40"
+                    :disabled="browseStatus || scope.row.fBillstatus == 6"
                   />
                 </span>
                 <span v-else-if="item.label == 'fPackagespecs'">
                   <el-input
                     v-model="scope.row.fPackagespecs"
-                    :disabled="browseStatus || scope.row.fBillstatus >= 40"
+                    :disabled="browseStatus || scope.row.fBillstatus == 6"
                     placeholder="包装规格"
                   />
                 </span>
@@ -532,14 +532,14 @@
                   <el-input
                     v-model="scope.row.fGoodsval"
                     placeholder="货值"
-                    :disabled="browseStatus || scope.row.fBillstatus >= 40"
+                    :disabled="browseStatus || scope.row.fBillstatus == 6"
                   />
                 </span>
                 <span v-else-if="item.label == 'fLntype'">
                   <el-select
                     v-model="scope.row.fLntype"
                     placeholder="装卸方式"
-                    :disabled="browseStatus || scope.row.fBillstatus >= 40"
+                    :disabled="browseStatus || scope.row.fBillstatus == 6"
                     style="width: 80%"
                   >
                     <el-option
@@ -554,36 +554,35 @@
                   <el-input
                     v-model="scope.row.fForkliftman"
                     placeholder="叉车工"
-                    :disabled="browseStatus || scope.row.fBillstatus >= 40"
+                    :disabled="browseStatus || scope.row.fBillstatus == 6"
                   />
                 </span>
                 <span v-else-if="item.label == 'fStevedore'">
                   <el-input
                     v-model="scope.row.fStevedore"
                     placeholder="装卸工"
-                    :disabled="browseStatus || scope.row.fBillstatus >= 40"
+                    :disabled="browseStatus || scope.row.fBillstatus == 6"
                   />
                 </span>
                 <span v-else-if="item.label == 'fLocalcntrno'">
                   <el-input
                     v-model="scope.row.fLocalcntrno"
                     placeholder="库内箱号"
-                    :disabled="browseStatus || scope.row.fBillstatus >= 40"
+                    :disabled="browseStatus || scope.row.fBillstatus == 6"
                   />
                 </span>
                 <span v-else-if="item.label == 'fSealno'">
                   <el-input
                     v-model="scope.row.fSealno"
                     placeholder="封号"
-                    :disabled="browseStatus || scope.row.fBillstatus >= 40"
+                    :disabled="browseStatus || scope.row.fBillstatus == 6"
                   />
                 </span>
                 <span v-else-if="item.label == 'remark'">
                   <el-input
                     v-model="scope.row.remark"
                     placeholder="备注"
-                    :disabled="browseStatus"
-                    show-word-limit
+                    :disabled="browseStatus || scope.row.fBillstatus == 6"
                   />
                 </span>
                 <span v-else>{{ scope.row[item.label] }}</span>
@@ -600,9 +599,7 @@
                 <el-button
                   :disabled="
                     browseStatus ||
-                    scope.row.fBillstatus === 20 ||
-                    scope.row.fBillstatus === 30 ||
-                    scope.row.fBillstatus === 40
+                    scope.row.fBillstatus == 6
                   "
                   type="text"
                   @click.native.prevent="wDeleteRow(scope.$index, detailList)"