Browse Source

fix(goodsDetail): 更新发货和详情逻辑,调整detailType的值

xieyong 1 ngày trước cách đây
mục cha
commit
642b6a1a0e

+ 3 - 3
src/views/beEntrusted/components/goodsDetail.vue

@@ -268,11 +268,11 @@
           id,
           detailType,
         }
-        if(this.type === 'send' || this.type === 'detail') {
-          obj.detailType = 1;
+        if(this.type === 'send') {
+          obj.detailType = 3;
         }
         if(this.type === 'detail'){
-          obj.status = 2;
+          obj.detailType = 2;
         }
         await pleaseEntrustGoodsDetail(obj).then((res) => {
           this.goodsList = [];

+ 5 - 3
src/views/entrust/components/goodsDetail.vue

@@ -245,12 +245,14 @@
           id,
           detailType
         };
-        if(this.type === "detail" || this.type === "receipt") {
+        if(this.type === "detail") {
           params.detailType = 1;
         }
-        if(this.type === 'receipt') {
-          params.status = 2;
+
+        if(this.type === "receipt") {
+          params.detailType = 4;
         }
+
         await pleaseEntrustGoodsDetail(params).then(async (res) => {
           this.goodsList = [];
           res.data.forEach((item) => {