Prechádzať zdrojové kódy

采购入库才判断可入库数量

lxf 1 rok pred
rodič
commit
7225836049

+ 1 - 1
src/views/shengde/warehouse/putInStorage/material.vue

@@ -14,7 +14,7 @@
             <span>{{ `${scope.row.productLong} * ${scope.row.productWide} * ${scope.row.productHigh}` }}</span>
           </template>
         </el-table-column>
-        <el-table-column label="可入库数量" prop="approveQuantity" width="100" />
+        <el-table-column label="可入库数量" prop="approveQuantity" width="100" v-if="form.type == '1'" />
         <el-table-column label="入库数量" width="180">
           <template slot-scope="scope">
             <el-form-item :prop="'details.' + scope.$index + '.quantity'" :rules="formRules.quantity" :inline-message="true">

+ 1 - 1
src/views/shengde/warehouse/putInStorage/register.vue

@@ -77,7 +77,7 @@ export default {
       }
       if (flagStorage && flagProduct && flagMaterial) {
         if (this.form.details && this.form.details.length > 0) {
-          if (this.form.purchaseContractId) {
+          if (this.form.purchaseContractId && this.form.type === '1') {
             for (let i = 0; i < this.form.details.length; i++) {
               if (this.form.details[i].quantity > this.form.details[i].approveQuantity) {
                 return this.msgInfo('入库数量不能大于可入库数量')