浏览代码

安全库存-字段更改

jingbb 11 月之前
父节点
当前提交
f2cdcc9319

+ 7 - 2
src/views/production/Popup/inventoryPopup.vue

@@ -15,6 +15,7 @@
             size="middle"
             bordered
             id='sonList1'
+            :loading="loading"
             :columns="columns"
             rowKey="rowIndex"
             :dataSource="dataSource"
@@ -45,6 +46,7 @@
             selectedRowKeys:[],
             selectedRows:[],
             dataSource:[],
+            loading:false,
             pagination:{
                 current: 1,
                 pageSize: 5,
@@ -96,9 +98,9 @@
                     ellipsis: true,
                 },
                 {
-                    title: '辅单位',
+                    title: '料品属性1',
                     align:"center",
-                    dataIndex: 'auxiliaryUnit',
+                    dataIndex: 'Code1',
                     ellipsis: true,
                 },
             ]
@@ -123,6 +125,7 @@
                 }
             },
             getData(){
+                this.loading = true 
                 getAction('/production/safetyStock/selectItemMaster',this.queryParam).then(res=>{
                         if(res.success){
                           this.dataSource = res.result.records
@@ -135,6 +138,8 @@
                           this.$message.error(res.message);
                           
                         }
+                }).finally(()=>{
+                    this.loading = false
                 })
             },
             handleTableChange(pagination, filters, sorter) {

+ 3 - 2
src/views/production/safetyStock/modules/safetyStockListAdd.vue

@@ -24,7 +24,7 @@
                 </a-col>
                 <a-col :md="8" :sm="24">
                     <a-form-model-item label="型号" name='model' :labelCol="{offset: 1}">
-                      <a-input placeholder="请输入" v-model="form.model"></a-input>
+                      <a-input placeholder="请输入" v-model="form.model" disabled></a-input>
                     </a-form-model-item>
                   </a-col>
                   <a-col :md="8" :sm="24">
@@ -35,7 +35,7 @@
                   
                   <a-col :md="8" :sm="24" >
                     <a-form-model-item label="料品属性" name='fixedLength' >
-                        <a-input placeholder="请输入" v-model="form.attribute" />
+                        <a-input placeholder="请输入" v-model="form.attribute" disabled/>
                     </a-form-model-item>
                   </a-col>
                   <a-col :md="8" :sm="24">
@@ -134,6 +134,7 @@
               this.$set(this.form,'inventoryName',data.Name)
               this.$set(this.form,'specs',data.SPECS)
               this.$set(this.form,'inventory',data.ID )
+              this.$set(this.form,'attribute',data.Code1 )
             },
             onSearch(){
             },