Browse Source

托书-编剧-按钮

jbb 1 year ago
parent
commit
cc2952f908
2 changed files with 8 additions and 4 deletions
  1. 7 4
      src/views/book/addBookDrawer.vue
  2. 1 0
      src/views/book/book-list.vue

+ 7 - 4
src/views/book/addBookDrawer.vue

@@ -237,8 +237,8 @@
       <!--操作按钮区域 参照装箱单  増行-->
       <a-card :bordered="true" style="margin:10px 0  40px 0;">
         <div class="table-operator">
-          <a-button type="primary" @click="referPackingList('0')" icon="ordered-list">参照装箱单-成衣</a-button>
-          <a-button type="primary" @click="referPackingList('1')" icon="ordered-list">参照装箱单-面料</a-button>
+          <a-button type="primary" @click="referPackingList('0')" icon="ordered-list" :disabled="defaultMethod=='edit'&&syStuta=='1'">参照装箱单-成衣</a-button>
+          <a-button type="primary" @click="referPackingList('1')" icon="ordered-list" :disabled="defaultMethod=='edit'&&syStuta=='1'">参照装箱单-面料</a-button>
           <a-button type="primary" @click="syShippingOrderMerge" :disabled="query=='1'" icon="plus" style="margin-left: 20px">合并</a-button>
         </div>
 
@@ -275,8 +275,9 @@
 
               <!-- 操作 -->
               <span slot="operationSlot" slot-scope="text, record,index">
-                <a-popconfirm title="确定删除吗?" ok-text="是" cancel-text="否" @confirm="handleDelete(index)">
-                  <a href="javascript:void(0);" style="color:red;">删除</a>
+                <a-popconfirm title="确定删除吗?" ok-text="是" cancel-text="否" @confirm="handleDelete(index)" :disabled="defaultMethod=='edit'&&syStuta=='1'">
+                  <a href="javascript:void(0);" style="color:red;" v-if="!(defaultMethod=='edit'&&syStuta=='1')">删除</a>
+                  <a href="javascript:void(0);" style="color:gray;" v-if="(defaultMethod=='edit'&&syStuta=='1')">删除</a>
                 </a-popconfirm>
               </span>
             </a-table>
@@ -693,6 +694,7 @@ export default {
       defaultMethod : 'add',
       confirmLoading: false,
       visible: false,
+      syStuta:'',
       dateFormat: 'YYYY-MM-DD',
       allMount:0,
       allGross:0,
@@ -1295,6 +1297,7 @@ export default {
       this.FreightOption=[]
       this.visible = false
       this.defaultMethod = 'add'
+      this.syStuta = ''
       this.resumeColumns()
       this.$refs.form.resetFields()
     },

+ 1 - 0
src/views/book/book-list.vue

@@ -559,6 +559,7 @@ export default {
             if(pattern == '1'){
               this.$refs.addBookDrawer.visible = true
               this.$refs.addBookDrawer.defaultMethod = 'edit'
+              this.$refs.addBookDrawer.syStuta = record.syStuta
               if(data.latestDateOfShipment!==''&&data.latestDateOfShipment){
                  data.latestDateOfShipment = (moment(data.latestDateOfShipment)).format('YYYY-MM-DD')
               }