소스 검색

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

xieyong 1 일 전
부모
커밋
642b6a1a0e
2개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  1. 3 3
      src/views/beEntrusted/components/goodsDetail.vue
  2. 5 3
      src/views/entrust/components/goodsDetail.vue

+ 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) => {