Browse Source

生产总订单-订单操作时隐藏保存按钮

jingbb 10 months ago
parent
commit
f14d15028b

+ 3 - 2
src/views/production/productionTotalOrder/modules/productionTotalOrderAdd.vue

@@ -1,6 +1,6 @@
 <template>
     <a-modal
-      :title="defaultMethod=='add'?'新增':'编辑'"
+      :title="title"
        width="95%"
       :visible="visible"
       :maskClosable="false"
@@ -10,7 +10,7 @@
       >
       <template slot="footer">
         <a-button  @click="handleCancel">关闭</a-button>
-        <a-button type="primary"  @click="handleOk" >保存</a-button>
+        <a-button type="primary"  @click="handleOk" v-if="title!=='订单操作'">保存</a-button>
      </template>
       <a-card :bordered="false" class="top" style="margin-bottom:1%;margin-top:1%" :loading = 'loading'>
         <div class="table-page-search-wrapper">
@@ -192,6 +192,7 @@
             loading:false,
             // ipagination:{},
             selectedRowKeys:[],
+            title:'新增',
             selectedRows:[],
             activeKey:'finishProduct',
             refKeys:['finishProduct','material','TemporaryStorage','SurplusMaterials'],

+ 3 - 0
src/views/production/productionTotalOrder/productionTotalOrderList.vue

@@ -388,6 +388,7 @@
                 this.$refs.productionTotalOrderAdd.visible=true
                 this.$refs.productionTotalOrderAdd.defaultMethod='add'
                 this.$refs.productionTotalOrderAdd.form.state='开立'
+                this.$refs.productionTotalOrderAdd.title = '新增'
             },
             editList(){
               if(this.selectedRowKeys.length==0){
@@ -398,6 +399,7 @@
                 this.$refs.productionTotalOrderAdd.visible=true
                 this.$refs.productionTotalOrderAdd.defaultMethod='edit'
                 this.$refs.productionTotalOrderAdd.getMainData(this.selectedRowKeys[0])
+                this.$refs.productionTotalOrderAdd.title = '编辑'
               }
             },
             actionList(){
@@ -409,6 +411,7 @@
                 this.$refs.productionTotalOrderAdd.visible=true
                 this.$refs.productionTotalOrderAdd.defaultMethod='edit'
                 this.$refs.productionTotalOrderAdd.getMainData(this.selectedRowKeys[0])
+                this.$refs.productionTotalOrderAdd.title = '订单操作'
               }
             },
             detailList(){