소스 검색

修改确认收货问题

YY 2 년 전
부모
커밋
a6221a17e1
2개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 2
      src/views/platmanag/order/parts/card-3.vue
  2. 1 2
      src/views/selfShop/order/parts/card-3.vue

+ 1 - 2
src/views/platmanag/order/parts/card-3.vue

@@ -81,8 +81,7 @@ export default {
         type: 'warning',
       }).then(async () => {
         let res;
-        data.status = '3';
-        if (data._id) res = await this.update(data);
+        if (data._id) res = await this.update({ status: '3' });
         if (this.$checkRes(res)) {
           this.$message({ type: `success`, message: `确认收货成功` });
           this.search();

+ 1 - 2
src/views/selfShop/order/parts/card-3.vue

@@ -81,8 +81,7 @@ export default {
         type: 'warning',
       }).then(async () => {
         let res;
-        data.status = '3';
-        if (data._id) res = await this.update(data);
+        if (data._id) res = await this.update({ status: '3' });
         if (this.$checkRes(res)) {
           this.$message({ type: `success`, message: `确认收货成功` });
           this.search();