浏览代码

物流单详情tab页删除按钮调整

qymljy 3 周之前
父节点
当前提交
5dd10dab6b

+ 4 - 1
src/HDrpManagement/logistics/details/index.vue

@@ -24,7 +24,7 @@
           <defalutInfo :mainData="mainData" ref="info"></defalutInfo>
         </div>
         <div slot="slot1" >
-          <dispatchTable ref="dispatch" @onInit="onInit" @rowClick="rowClick" :needQuery="true" :status="mainData.status"></dispatchTable>
+          <dispatchTable ref="dispatch" @onInit="onInit" @rowClick="rowClick" :needQuery="true" :status="mainData.status" :delSuccess="delSuccess"></dispatchTable>
           <dismx ref="dismx" style="margin-top: 10px" type="edit" :status="mainData.status" :logistics_qty_editable="logistics_qty_editable"></dismx>
         </div>
         <div  slot="slot2">
@@ -233,6 +233,9 @@
       onInit (data) {
         this.$refs.dismx.listData(data.sa_orderid,data.sa_logistics_itemsid)
       },
+      delSuccess(data){
+        this.$refs.dismx.listData(data.sa_orderid,data.sa_logistics_itemsid)
+      },
       async queryEdit(){
         const res = await this.$api.requested({
           classname: "sysmanage.site.site",

+ 4 - 4
src/HDrpManagement/logistics/modules/dispatchTable.vue

@@ -1,6 +1,6 @@
 <template>
 <div>
-  <tableDetail :layout="tablecols" :data="tableData" :opwidth="200" :custom="true" :checkbox="true" @rowClick="rowClick">
+  <tableDetail :layout="tablecols" :data="tableData" :opwidth="200" :custom="true" :checkbox="true" @rowClick="rowClick" fixedName="operation">
     <template v-slot:customcol="scope">
       <div v-if="scope.column.columnname === 'shipmentstatus'" :style="{color:tool.getStatusColor(scope.column.data[scope.column.columnname])}">
         {{scope.column.data[scope.column.columnname]}}
@@ -43,7 +43,7 @@
             }
           })
           this.tool.showMessage(res,()=>{
-            this.listData()
+            this.listData('删除')
             this.$emit('delSuccess')
           })
         } else {
@@ -52,7 +52,7 @@
           })
         }
       },
-      async listData(){
+      async listData(val){
         const res = await this.$api.requested({
         "id": 20221122133004,
           "content": {
@@ -67,7 +67,7 @@
         if(res.data && res.data.length > 0) this.$emit('onInit',res.data[0]);
         this.tableData = res.data
         this.$emit('isCorrelation',res.data.length,res.data)
-        console.log(this.tableData);
+        console.log(this.tableData,'333333');
 
         res.data.length > 0?this.rowClick(res.data[0]):''
       },