Sfoglia il codice sorgente

MRP运算-审核后数据不可修改数量

jingbb 10 mesi fa
parent
commit
8e13d52b1f

+ 2 - 0
src/views/production/mrp/modules/MRPEdit.vue

@@ -245,6 +245,7 @@
                 getAction('/MRPOperationList/madeOperationList/queryMadeOperationListPurchaseByMainId',{id:id}).then(res=>{
                     if(res.success){
                       this.$refs.ProRequirements.dataSource = res.result
+                      this.$refs.ProRequirements.title = this.title
                     }else{
                       this.$message.error(res.message);
                     }
@@ -254,6 +255,7 @@
                 getAction('/MRPOperationList/madeOperationList/queryMadeOperationListDepositByMainId',{id:id}).then(res=>{
                     if(res.success){
                       this.$refs.TraRequirements.dataSource = res.result
+                      this.$refs.TraRequirements.title = this.title
                     }else{
                       this.$message.error(res.message);
                     }

+ 3 - 2
src/views/production/mrp/modules/ProRequirements.vue

@@ -16,12 +16,12 @@
             >
             <template slot="purchaseQuantity" slot-scope="text, record, index">
                 <a-form-model-item prop="purchaseQuantity" class='sonItem'>
-                    <a-input placeholder="请输入" v-model="record.purchaseQuantity"></a-input>
+                    <a-input placeholder="请输入" v-model="record.purchaseQuantity" :disabled="title!=='编辑'"></a-input>
                 </a-form-model-item>
             </template>
             <template slot="purchaseUnQuantity" slot-scope="text, record, index">
                 <a-form-model-item prop="purchaseUnQuantity" class='sonItem'>
-                    <a-input placeholder="请输入" v-model="record.purchaseUnQuantity"></a-input>
+                    <a-input placeholder="请输入" v-model="record.purchaseUnQuantity" :disabled="title!=='编辑'"></a-input>
                 </a-form-model-item>
             </template>
             </a-table>
@@ -45,6 +45,7 @@
         selectedRowKeys:[],
         selectedRows:[],
         dataSource:[],
+        title:'',
         columns: [
                 {
                     title: '行号',

+ 2 - 1
src/views/production/mrp/modules/TraRequirements.vue

@@ -16,7 +16,7 @@
             >
             <template slot="quantity" slot-scope="text, record, index">
                 <a-form-model-item prop="quantity" class='sonItem'>
-                    <a-input placeholder="请输入" v-model="record.quantity"></a-input>
+                    <a-input placeholder="请输入" v-model="record.quantity" :disabled="title!=='编辑'"></a-input>
                 </a-form-model-item>
             </template>
             </a-table>
@@ -40,6 +40,7 @@
         selectedRowKeys:[],
         selectedRows:[],
         dataSource:[],
+        title:'',
         columns: [
                 {
                     title: '行号',