浏览代码

Merge branch 'xiaoqin' into mergeBranch

codeMan 2 年之前
父节点
当前提交
d1ac49581e
共有 1 个文件被更改,包括 19 次插入3 次删除
  1. 19 3
      src/HDrpManagement/dispatch/modules/edit.vue

+ 19 - 3
src/HDrpManagement/dispatch/modules/edit.vue

@@ -67,9 +67,14 @@
                 </el-table-column>
                 <el-table-column
                   label="操作"
-                  width="90">
+                  width="120">
                   <template slot-scope="scope">
-                    <el-button type="text" @click="(defaultData.re_info = scope.row,visible = false)" size="mini">选 择</el-button>
+                    <el-button class="inline-16" type="text" @click="(defaultData.re_info = scope.row,visible = false)" size="mini">选 择</el-button>
+                    <el-popconfirm
+                      title="确定删除吗?"
+                      @confirm="deleteContacts(scope.row)">
+                      <el-button class="inline-16" size="small" type="text" slot="reference">删 除</el-button>
+                    </el-popconfirm>
                   </template>
                 </el-table-column>
               </el-table>
@@ -190,7 +195,18 @@ export default {
       this.defaultData.freightstatus = this.data.freightstatus
       this.defaultData.remarks = this.data.remarks
     },
-
+    async deleteContacts (row) {
+      const res = await this.$api.requested({
+        "id": "20221009155903",
+        "version":1,
+        "content": {
+          "contactsid":row.contactsid
+        }
+      })
+      this.tool.showMessage(res,()=>{
+        this.receiveAddress()
+      })
+    },
    // 收货信息:合作企业联系人
    async receiveAddress () {
       this.addressparam.content.sys_enterpriseid = this.data.sys_enterpriseid