Parcourir la source

修改明细禁用

lichao il y a 3 ans
Parent
commit
0355c80c5d
2 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 0 1
      src/views/dealer/purchase/detail.vue
  2. 6 1
      src/views/dealer/sales/detail.vue

+ 0 - 1
src/views/dealer/purchase/detail.vue

@@ -953,7 +953,6 @@ export default {
           })
           e.storageQuantity = form.stock;
           e.purchaseAmount = form.purchaseAmount;
-          row.storageQuantity =  res.data.data
           row.cname = e.cname;
           row.code = e.code;
           row.corpId = e.corpId;

+ 6 - 1
src/views/dealer/sales/detail.vue

@@ -158,6 +158,7 @@
                 size="small"
                 style="width:60%"
                 @change="cnameChange(row, index)"
+                :disabled="!form.storageId"
               >
                 <el-option
                   v-for="item in goodsoptions"
@@ -184,6 +185,7 @@
               :controls="false"
               :precision="0"
               @input="amountChange(row)"
+              :disabled="!form.storageId"
               style="width: 100%"
             />
             <span v-else>{{ row.orderQuantity | IntegerFormat }}</span>
@@ -197,6 +199,7 @@
               :precision="2"
               @input="amountChange(row)"
               style="width: 100%"
+              :disabled="!form.storageId"
             ></el-input-number>
             <span v-else>{{ row.price }}</span>
           </template>
@@ -206,9 +209,9 @@
               v-if="row.$cellEdit"
               v-model="row.unit"
               size="small"
-              :disabled="!form.lotNo"
               clearable
               filterable
+              :disabled="!form.storageId"
             >
               <el-option
                 v-for="(item, index) in unitOption"
@@ -235,6 +238,7 @@
               allow-create
               clearable
               @change="lotNoChange(row)"
+              :disabled="!form.storageId"
             >
               <el-option
                 v-for="(item, index) in row.arr"
@@ -250,6 +254,7 @@
               v-if="row.$cellEdit"
               v-model="row.remarks"
               size="small"
+              :disabled="!form.storageId"
             />
             <span v-else>{{ row.remarks }}</span>
           </template>