Browse Source

轮胎 2024-3-22

caojunjie 1 year ago
parent
commit
999e99e06b

+ 50 - 0
src/api/tirePartsMall/basicData/customerInformation/limitrecord.js

@@ -0,0 +1,50 @@
+import request from '@/router/axios';
+
+export const limitrecordList = (current, size, params) => {
+  return request({
+    url: '/api/blade-sales-part/limitrecord/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const limitrecordDetail = (id) => {
+  return request({
+    url: '/api/blade-sales-part/limitrecord/detail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
+
+export const limitrecordRemove = (ids) => {
+  return request({
+    url: '/api/blade-sales-part/limitrecord/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const limitrecordSubmit = (row) => {
+  return request({
+    url: '/api/blade-sales-part/limitrecord/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/blade-sales-part/limitrecord/submit',
+    method: 'post',
+    data: row
+  })
+}
+

+ 335 - 0
src/views/tirePartsMall/basicData/customerInformation/components/limitrecord.vue

@@ -0,0 +1,335 @@
+<template>
+  <basic-container>
+    <avue-crud :option="option"
+               :table-loading="loading"
+               :data="data"
+               :page.sync="page"
+               :permission="permissionList"
+               :before-open="beforeOpen"
+               v-model="form"
+               ref="crud"
+               @row-update="rowUpdate"
+               @row-save="rowSave"
+               @row-del="rowDel"
+               @search-change="searchChange"
+               @search-reset="searchReset"
+               @selection-change="selectionChange"
+               @current-change="currentChange"
+               @size-change="sizeChange"
+               @refresh-change="refreshChange"
+               @on-load="onLoad">
+      <template slot="menuLeft">
+        <el-button type="danger"
+                   size="small"
+                   icon="el-icon-delete"
+                   plain
+                   v-if="permission.limitrecord_delete"
+                   @click="handleDelete">删 除
+        </el-button>
+      </template>
+    </avue-crud>
+  </basic-container>
+</template>
+
+<script>
+  import {limitrecordList, limitrecordDetail, limitrecordSubmit, limitrecordRemove} from "@/api/tirePartsMall/basicData/customerInformation/limitrecord";
+  import {mapGetters} from "vuex";
+
+  export default {
+    data() {
+      return {
+        form: {},
+        query: {},
+        loading: true,
+        page: {
+          pageSize: 10,
+          currentPage: 1,
+          total: 0
+        },
+        selectionList: [],
+        option: {
+          height:'auto',
+          calcHeight: 30,
+          tip: false,
+          searchShow: true,
+          searchMenuSpan: 6,
+          border: true,
+          index: true,
+          viewBtn: true,
+          selection: true,
+          dialogClickModal: false,
+          column: [
+            {
+              label: "",
+              prop: "id",
+              rules: [{
+                required: true,
+                message: "请输入",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "创建人",
+              prop: "createUser",
+              rules: [{
+                required: true,
+                message: "请输入创建人",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "创建部门",
+              prop: "createDept",
+              rules: [{
+                required: true,
+                message: "请输入创建部门",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "创建时间",
+              prop: "createTime",
+              rules: [{
+                required: true,
+                message: "请输入创建时间",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "修改人",
+              prop: "updateUser",
+              rules: [{
+                required: true,
+                message: "请输入修改人",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "修改时间",
+              prop: "updateTime",
+              rules: [{
+                required: true,
+                message: "请输入修改时间",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "是否已删除(0 否 1是)",
+              prop: "isDeleted",
+              rules: [{
+                required: true,
+                message: "请输入是否已删除(0 否 1是)",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "备注",
+              prop: "remarks",
+              rules: [{
+                required: true,
+                message: "请输入备注",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "活动状态(0录入 1已发布 2已失效)",
+              prop: "status",
+              rules: [{
+                required: true,
+                message: "请输入活动状态(0录入 1已发布 2已失效)",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "所属公司id",
+              prop: "salesCompanyId",
+              rules: [{
+                required: true,
+                message: "请输入所属公司id",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "所属公司名称",
+              prop: "salesCompanyName",
+              rules: [{
+                required: true,
+                message: "请输入所属公司名称",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "原额度",
+              prop: "amountOld",
+              rules: [{
+                required: true,
+                message: "请输入原额度",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "本次修改额度",
+              prop: "amountUpdate",
+              rules: [{
+                required: true,
+                message: "请输入本次修改额度",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "修改后额度",
+              prop: "amountNew",
+              rules: [{
+                required: true,
+                message: "请输入修改后额度",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "客户id",
+              prop: "pid",
+              rules: [{
+                required: true,
+                message: "请输入客户id",
+                trigger: "blur"
+              }]
+            },
+          ]
+        },
+        data: []
+      };
+    },
+    computed: {
+      ...mapGetters(["permission"]),
+      permissionList() {
+        return {
+          addBtn: this.vaildData(this.permission.limitrecord_add, false),
+          viewBtn: this.vaildData(this.permission.limitrecord_view, false),
+          delBtn: this.vaildData(this.permission.limitrecord_delete, false),
+          editBtn: this.vaildData(this.permission.limitrecord_edit, false)
+        };
+      },
+      ids() {
+        let ids = [];
+        this.selectionList.forEach(ele => {
+          ids.push(ele.id);
+        });
+        return ids.join(",");
+      }
+    },
+    methods: {
+      rowSave(row, done, loading) {
+        limitrecordSubmit(row).then(() => {
+          this.onLoad(this.page);
+          this.$message({
+            type: "success",
+            message: "操作成功!"
+          });
+          done();
+        }, error => {
+          loading();
+          window.console.log(error);
+        });
+      },
+      rowUpdate(row, index, done, loading) {
+        limitrecordSubmit(row).then(() => {
+          this.onLoad(this.page);
+          this.$message({
+            type: "success",
+            message: "操作成功!"
+          });
+          done();
+        }, error => {
+          loading();
+          console.log(error);
+        });
+      },
+      rowDel(row) {
+        this.$confirm("确定将选择数据删除?", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        })
+          .then(() => {
+            return limitrecordRemove(row.id);
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!"
+            });
+          });
+      },
+      handleDelete() {
+        if (this.selectionList.length === 0) {
+          this.$message.warning("请选择至少一条数据");
+          return;
+        }
+        this.$confirm("确定将选择数据删除?", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        })
+          .then(() => {
+            return limitrecordRemove(this.ids);
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!"
+            });
+            this.$refs.crud.toggleSelection();
+          });
+      },
+      beforeOpen(done, type) {
+        if (["edit", "view"].includes(type)) {
+          limitrecordDetail(this.form.id).then(res => {
+            this.form = res.data.data;
+          });
+        }
+        done();
+      },
+      searchReset() {
+        this.query = {};
+        this.onLoad(this.page);
+      },
+      searchChange(params, done) {
+        this.query = params;
+        this.page.currentPage = 1;
+        this.onLoad(this.page, params);
+        done();
+      },
+      selectionChange(list) {
+        this.selectionList = list;
+      },
+      selectionClear() {
+        this.selectionList = [];
+        this.$refs.crud.toggleSelection();
+      },
+      currentChange(currentPage){
+        this.page.currentPage = currentPage;
+      },
+      sizeChange(pageSize){
+        this.page.pageSize = pageSize;
+      },
+      refreshChange() {
+        this.onLoad(this.page, this.query);
+      },
+      onLoad(page, params = {}) {
+        this.loading = true;
+        limitrecordList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+          const data = res.data.data;
+          this.page.total = data.total;
+          this.data = data.records;
+          this.loading = false;
+          this.selectionClear();
+        });
+      }
+    }
+  };
+</script>
+
+<style>
+</style>

+ 51 - 13
src/views/tirePartsMall/basicData/customerInformation/detailsPage.vue

@@ -35,6 +35,13 @@
                 @click="dialogVisibleCK = true"></i>
             </div>
           </template>
+          <template slot="creditLimit">
+              <div style="display:flex;">
+                  <el-input v-model="form.creditLimit" disabled size="small" placeholder="请输入额度"></el-input>
+                  <i class="el-icon-circle-plus-outline" style="font-size:18px;line-height: 32px;margin-left:4px"
+                     @click="limitPopupfun"></i>
+              </div>
+          </template>
         </avue-form>
       </trade-card>
       <trade-card title="客户联系人" v-loading="loadingBtn">
@@ -120,6 +127,10 @@
         <el-button type="primary" @click="confirmSynchronizationThree">确 定</el-button>
       </span>
     </el-dialog>
+
+    <el-dialog title="额度修改记录" :visible.sync="dialogVisibleED" append-to-body width="60%">
+        <limitrecord></limitrecord>
+    </el-dialog>
   </div>
 </template>
 
@@ -145,6 +156,7 @@ import {
   typeSave,
   customerListAll
 } from "@/api/tirePartsMall/basicData/warehouse";
+import limitrecord from "@/views/tirePartsMall/basicData/customerInformation/components/limitrecord.vue";
 
 export default {
   name: "index",
@@ -367,7 +379,9 @@ export default {
       loadingBtn: false,
       addressTitle: null,
       addressVisible: false,
-      form: {},
+      form: {
+          ifLimitAmount:0
+      },
       form2: {},
       form3: {},
       form4: {},
@@ -456,25 +470,42 @@ export default {
               message: " ",
               trigger: "blur"
             }]
-          }, {
+          },
+          {
+              label: "是否使用额度",
+              prop: "ifLimitAmount",
+              span: 8,
+              type: "switch",
+              dicData:[{
+                  label:'否',
+                  value:0
+              },{
+                  label:'是',
+                  value:1
+              }],
+          },
+          {
             label: "信用额度",
-            prop:
-              "creditLimit", span: 8,
-            type: "number", controls: false,
-            precision: 2
-          }
-          ,
+            prop: "creditLimit",
+            span: 8,
+            type: "number",
+            controls: false,
+            precision: 2,
+          },
           {
             label: "使用信用额度",
-            prop: "useCreditLimit", span: 8,
+            prop: "useCreditLimit",
+            span: 8,
             type: "number",
             disabled: true,
             controls: false,
             precision: 2
           }, {
             label: "备注",
-            prop: "remarks", type: "textarea",
-            minRows: 2, span: 24,
+            prop: "remarks",
+            type: "textarea",
+            minRows: 2,
+            span: 24,
           }
         ]
       },
@@ -551,11 +582,14 @@ export default {
           prop: 'remarks',
           cell: true
         }]
-      }
+      },
+
+        dialogVisibleED:false, // 额度弹窗的开启
     }
   },
   components: {
-    corpType
+    corpType,
+    limitrecord
   },
   props: {
     detailData: {
@@ -592,6 +626,10 @@ export default {
     }, 100)
   },
   methods: {
+    // 额度弹窗开启
+    limitPopupfun(){
+        this.dialogVisibleED = true
+    },
     // 启用或禁用
     editEnable() {
       let data = this.form

+ 41 - 0
src/views/tirePartsMall/purchasingManagement/warehouseEntryOrder/detailsPage.vue

@@ -30,6 +30,7 @@
                     <el-tab-pane label="入库明细" name="sale_detail">
                         <avue-crud :option="optionContacts" v-model="formContacts" ref="formContacts"
                             :data="form.shipItemsList" :key="key" @row-save="rowSave" @row-update="rowUpdate"
+                            @selection-change="selectionContacts"
                             @resetColumn="resetColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 274.1)"
                             @saveColumn="saveColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 274.1)">
 
@@ -61,6 +62,9 @@
                                 </el-button> -->
                                 <el-button type="primary" icon="el-icon-printer" size="small"
                                     @click="handlePrint">打印</el-button>
+                                <el-button type="danger" plain size="small"
+                                           :disabled="disabled || form.statusName == '已入库' || isEdit || isEdits"
+                                           @click="batchDelete" >一键删除</el-button>
                             </template>
                         </avue-crud>
                     </el-tab-pane>
@@ -331,6 +335,7 @@ export default {
                 showSummary: true,
                 saveBtn:false, // 表格弹窗保存按钮
                 cellBtn:false, // 行编辑
+                selection:true,
                 sumColumnList: [
                     {
                         name: 'sendNum',
@@ -488,6 +493,7 @@ export default {
                     overHidde: true
                 }]
             },
+            selectionMultilist:[], // 多选数据
             optionPaymentDetails: {},
             optionPaymentDetailsBack: {
                 align: "center",
@@ -949,6 +955,41 @@ export default {
             }
             );
         },
+        // 明细信息多选
+        selectionContacts(list){
+            this.selectionMultilist = list
+        },
+        // 一键删除
+        batchDelete(){
+            if (this.selectionMultilist.length == 0) {
+                return this.$message.warning('请选择要删除的数据')
+            }
+            this.$confirm("确定将选择数据删除?", {
+                confirmButtonText: "确定",
+                cancelButtonText: "取消",
+                type: "warning"
+            }).then(()=>{
+                    let multiList = this.selectionMultilist
+                    let arr = this.form.shipItemsList
+                    // 获取有id 的数据
+                    const itemsWithId = multiList.filter(item => item.hasOwnProperty('id'));
+                    let arrIds = itemsWithId.map(item=>item.id) // 获取id 数据
+                    // 把选中的删除掉
+                    multiList.forEach((item)=>{
+                        for (let index in arr) {
+                            if (JSON.stringify(item) == JSON.stringify(arr[index])) {
+                                arr.splice(Number(index),1)
+                            }
+                        }
+                    })
+                    // 有id 的处理
+                    if(itemsWithId.length != 0) {
+                        tradingBox(arrIds.join(',')).then(res => {
+                            this.$message.success("操作成功!");
+                        });
+                    }
+            })
+        },
         rowSave(form, done, loading) {
             console.log(form)
             done(form)

+ 59 - 6
src/views/tirePartsMall/salesManagement/purchaseOrder/detailsPage.vue

@@ -79,16 +79,21 @@
                     <el-tab-pane label="采购明细" name="sale_detail">
                         <avue-crud :option="optionContacts" v-model="formContacts" ref="formContacts"
                             :data="form.orderItemsList" :key="key" @row-save="rowSave" @row-update="rowUpdate"
-                            @row-close="rowClose" :before-close="beforeClose"
+                            @row-close="rowClose" :before-close="beforeClose" @selection-change="selectionContacts"
                             @resetColumn="resetColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 269.1)"
                             @saveColumn="saveColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 269.1)">
                             <template slot-scope="{scope,row}" slot="menuLeft">
                                 <el-button type="primary" icon="el-icon-plus" size="small" :disabled="isAddBtn"
                                     @click="rowAdd(row)">添加商品</el-button>
-                                    <el-button type="success" size="small" :disabled="isAddBtn" icon="el-icon-bottom" @click="excelBox = true">导入
+                                <el-button type="success" size="small" :disabled="isAddBtn" icon="el-icon-bottom"
+                                           @click="excelDialogfun('名称')">名称导入
+                                </el-button>
+                                <el-button type="success" size="small" :disabled="isAddBtn" icon="el-icon-bottom"
+                                           @click="excelDialogfun('code')">Code导入
                                 </el-button>
                                 <el-button type="primary" icon="el-icon-printer" size="small"
                                            @click="handlePrint">打印</el-button>
+                                <el-button type="danger" plain size="small" @click="batchDelete" >一键删除</el-button>
                             </template>
                             <template slot="goodsId" slot-scope="{ row }">
                                 <!--<el-select v-if="row.$cellEdit" v-model="row.goodsId" allow-create filterable default-first-option >-->
@@ -195,6 +200,7 @@
                 :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
                 <check-schedule :checkId="checkId" :batchNo="batchNo" @choceScheduleFun="choceScheduleFun"></check-schedule>
             </el-dialog>
+
             <el-dialog title="导入明细" append-to-body :visible.sync="excelBox" v-if="excelBox" width="555px"
             :close-on-click-modal="false" v-dialog-drag>
             <avue-form :option="excelOption" v-model="excelForm" table-loading="excelLoading" :upload-before="uploadBefore"
@@ -209,6 +215,7 @@
                 温馨提示 第一次导入时请先下载模板
             </p>
         </el-dialog>
+
         </div>
 
         <el-dialog title="选择商品" append-to-body class="el-dialogDeep" :visible.sync="dialogVisible" width="80%"
@@ -432,6 +439,7 @@ export default {
                     }
                 ]
             },
+            templateUrl:'/api/blade-sales-part/ship/export-item', // 模板url
             form: {
                 orderItemsList: [],
                 paymentRecordsList: [],
@@ -652,8 +660,6 @@ export default {
                 border: true,
                 align: 'center',
                 index: true,
-                showSummary: true,
-
                 addBtnText: "添加商品",
                 updateBtnText: '保存',
                 refreshBtn: false,
@@ -674,6 +680,7 @@ export default {
                 dialogWidth: "80%",
                 summaryText: "合计",
                 showSummary: true,
+                selection:true,
                 sumColumnList: [{
                     name: "goodsNum",
                     type: "sum"
@@ -888,6 +895,7 @@ export default {
                 }
                 ]
             },
+            selectionMultilist:[], // 多选数据
             optionPaymentDetails: {},
             optionPaymentDetailsBack: {
                 align: 'center',
@@ -2012,7 +2020,6 @@ export default {
                 type: "warning"
             }).then(() => {
                 if (row.id) {
-
                     delOrderItem({ ids: row.id }).then(res => {
                         this.form.orderItemsList.splice(index, 1);
                         this.$message.success("操作成功!");
@@ -2024,6 +2031,41 @@ export default {
             }
             );
         },
+        // 明细信息多选
+        selectionContacts(list){
+            this.selectionMultilist = list
+        },
+        // 一键删除
+        batchDelete(){
+            if (this.selectionMultilist.length == 0) {
+                return this.$message.warning('请选择要删除的数据')
+            }
+            this.$confirm("确定将选择数据删除?", {
+                confirmButtonText: "确定",
+                cancelButtonText: "取消",
+                type: "warning"
+            }).then(()=>{
+                    let multiList = this.selectionMultilist
+                    let arr = this.form.orderItemsList
+                    // 获取有id 的数据
+                    const itemsWithId = multiList.filter(item => item.hasOwnProperty('id'));
+                    let arrIds = itemsWithId.map(item=>item.id) // 获取id 数据
+                    // 把选中的删除掉
+                    multiList.forEach((item)=>{
+                        for (let index in arr) {
+                            if (JSON.stringify(item) == JSON.stringify(arr[index])) {
+                                arr.splice(Number(index),1)
+                            }
+                        }
+                    })
+                    // 有id 的处理
+                    if(itemsWithId.length != 0) {
+                        delOrderItem({ ids: arrIds.join(',') }).then(res => {
+                            this.$message.success("操作成功!");
+                        });
+                    }
+            })
+        },
         rowSave(form, done, loading) {
             form.subTotalMoney = form.goodsNum * form.price
             form.goodsName = form.$goodsId
@@ -2072,7 +2114,7 @@ export default {
         },
         derivation() {
             window.open(
-                `/api/blade-sales-part/ship/export-item?${this.website.tokenHeader
+                `${this.templateUrl}?${this.website.tokenHeader
                 }=${getToken()}`
             );
         },
@@ -2080,6 +2122,17 @@ export default {
             done();
             loading = true;
         },
+        // 采购明细 导入按钮
+        excelDialogfun(name){
+            if (name == '名称') {
+                this.findObject(this.excelOption.column, "excelFile").action = '/api/blade-sales-part/ship/import-item'
+                this.templateUrl = '/api/blade-sales-part/ship/export-item'
+            }else if (name == 'code') {
+                this.findObject(this.excelOption.column, "excelFile").action = '/api/blade-sales-part/ship/import-item-code'
+                this.templateUrl = '/api/blade-sales-part/ship/export-item-code'
+            }
+            this.excelBox = true
+        },
         //打印
         handlePrint() {
             this.switchDialog = !this.switchDialog;

+ 39 - 2
src/views/tirePartsMall/salesManagement/saleOrder/detailsPage.vue

@@ -64,7 +64,7 @@
                     <el-tab-pane label="销售明细" name="sale_detail">
                         <avue-crud :option="optionContacts" v-model="formContacts" ref="formContacts"
                             :data="form.orderItemsList" :key="key" @row-save="rowSave" @row-update="rowUpdate"
-                            @row-close="rowClose" :before-close="beforeClose"
+                            @row-close="rowClose" :before-close="beforeClose" @selection-change="selectionContacts"
                             @resetColumn="resetColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 269.1)"
                             @saveColumn="saveColumnTwo('formContacts', 'optionContacts', 'optionContactsBack', 269.1)">
                             <template slot-scope="{scope,row}" slot="menuLeft">
@@ -72,6 +72,7 @@
                                     @click="rowAdd(row)">添加商品</el-button>
                                 <el-button type="primary" icon="el-icon-printer" size="small"
                                     @click="handlePrint">打印</el-button>
+                                <el-button type="danger" plain size="small" @click="batchDelete" >一键删除</el-button>
                             </template>
 
                             <!--<template slot="goodsId" slot-scope="{ row }">-->
@@ -640,6 +641,7 @@ export default {
                 dialogWidth: "80%",
                 summaryText: "合计",
                 showSummary: true,
+                selection:true,
                 sumColumnList: [{
                     name: "goodsNum",
                     type: "sum"
@@ -875,6 +877,7 @@ export default {
                 }
                 ]
             },
+            selectionMultilist:[], // 多选数据
             optionPaymentDetails: {},
             optionPaymentDetailsBack: {
                 align: 'center',
@@ -2296,7 +2299,6 @@ export default {
                 type: "warning"
             }).then(() => {
                 if (row.id) {
-
                     delOrderItem({ ids: row.id }).then(res => {
                         this.form.orderItemsList.splice(index, 1);
                         this.$message.success("操作成功!");
@@ -2308,6 +2310,41 @@ export default {
             }
             );
         },
+        // 明细信息多选
+        selectionContacts(list){
+            this.selectionMultilist = list
+        },
+        // 一键删除
+        batchDelete(){
+            if (this.selectionMultilist.length == 0) {
+                return this.$message.warning('请选择要删除的数据')
+            }
+            this.$confirm("确定将选择数据删除?", {
+                confirmButtonText: "确定",
+                cancelButtonText: "取消",
+                type: "warning"
+            }).then(()=>{
+                    let multiList = this.selectionMultilist
+                    let arr = this.form.orderItemsList
+                    // 获取有id 的数据
+                    const itemsWithId = multiList.filter(item => item.hasOwnProperty('id'));
+                    let arrIds = itemsWithId.map(item=>item.id) // 获取id 数据
+                    // 把选中的删除掉
+                    multiList.forEach((item)=>{
+                        for (let index in arr) {
+                            if (JSON.stringify(item) == JSON.stringify(arr[index])) {
+                                arr.splice(Number(index),1)
+                            }
+                        }
+                    })
+                    // 有id 的处理
+                    if(itemsWithId.length != 0) {
+                        delOrderItem({ ids: arrIds.join(',')}).then(res => {
+                            this.$message.success("操作成功!");
+                        });
+                    }
+            })
+        },
         rowSave(form, done, loading) {
             if (this.isStatus) {
                 done(form)