瀏覽代碼

修改订单

YY 2 年之前
父節點
當前提交
5f4a3888ab

+ 3 - 13
src/components/orderParts/detail/group_order.vue

@@ -17,10 +17,8 @@
           </el-tab-pane>
           <el-tab-pane label="发货信息">
             <card-2
-              :transport="transport"
               :address="address"
               :form="form"
-              :list="list"
               :activities="activities"
               :shop_transport_typeList="shop_transport_typeList"
               :transport_typeList="transport_typeList"
@@ -35,8 +33,6 @@
 </template>
 
 <script>
-const _ = require('lodash');
-const moment = require('moment');
 import { mapState, mapGetters, createNamespacedHelpers } from 'vuex';
 const { mapActions } = createNamespacedHelpers('groupOrder');
 const { mapActions: dictData } = createNamespacedHelpers('dictData');
@@ -61,14 +57,11 @@ export default {
       spec: {}, //规格信息
       pay: {}, //支付信息
       total_detail: [],
-      // 运单号
-      transport: [],
       // 快递公司
       shop_transport_typeList: [],
       // 快递类型
       transport_typeList: [],
       activities: [], //物流信息
-      list: [],
     };
   },
   async created() {
@@ -94,7 +87,6 @@ export default {
           let name = this.transport_typeList.find((i) => i.value == res.data.transport_type);
           if (name) res.data.transport_type_name = name.label;
         }
-        this.$set(this, `form`, res.data);
         if (res.data.transport && res.data.transport.length > 0) {
           for (const p1 of res.data.transport) {
             let arr = await this.dictQuery({ code: 'transport_company', value: p1.shop_transport_type });
@@ -106,13 +98,11 @@ export default {
               }
             }
           }
-          this.$set(this, `transport`, res.data.transport);
           let info = { order: this.id };
-          res = await this.sotCreate(info);
-          if (this.$checkRes(res)) {
-            if (res.errcode == '0') this.$set(this, `activities`, res.data);
-          }
+          let aee = await this.sotCreate(info);
+          if (this.$checkRes(aee)) if (aee.errcode == '0') this.$set(this, `activities`, aee.data);
         }
+        this.$set(this, `form`, res.data);
       }
       this.loadings = false;
     },

+ 6 - 4
src/components/orderParts/detail/parts/card-4.vue

@@ -5,7 +5,7 @@
         <el-col :span="9" class="one">
           <!-- 快递列表 -->
           <el-col :span="24" v-if="form.transport_type == '0'">
-            <el-col v-for="(item, index) in transport" :key="index" class="transport">
+            <el-col v-for="(item, index) in form.transport" :key="index" class="transport">
               <el-col :span="24" class="bode">
                 <el-col :span="6">寄出运单号</el-col>
                 <el-col :span="18" class="other">{{ item.shop_transport_no || '暂无单号' }}</el-col>
@@ -88,7 +88,6 @@ const { mapActions } = createNamespacedHelpers('groupOrder');
 export default {
   name: 'card-2',
   props: {
-    transport: { type: Array },
     shop_transport_typeList: { type: Array },
     activities: { type: Array },
     transport_typeList: { type: Array },
@@ -146,8 +145,11 @@ export default {
         let form = this.form;
         let data = { _id: form._id, transport: [] };
         let res;
-        if (data.id) res = await this.update(data);
-        if (this.$checkRes(res)) this.$message({ type: `success`, message: `维护信息成功` });
+        if (data._id) res = await this.update(data);
+        if (this.$checkRes(res)) {
+          this.$message({ type: `success`, message: `维护信息成功` });
+          this.search();
+        }
       });
     },
     // 确认收货-确认全部发货

+ 4 - 1
src/components/salesParts/guide_detail.vue

@@ -43,6 +43,10 @@
             <el-col :span="6">运费</el-col>
             <el-col :span="18" class="other">{{ spec.freight || '包邮' }}</el-col>
           </el-col>
+          <el-col :span="24">
+            <el-col :span="6">实付金额</el-col>
+            <el-col :span="18" class="other" style="color: red; font-size: 20px">{{ info.pay }}</el-col>
+          </el-col>
           <el-col :span="24">
             <el-col :span="6">申请时间</el-col>
             <el-col :span="18" class="other">{{ info.apply_time }}</el-col>
@@ -55,7 +59,6 @@
             <el-col :span="6">售后类型</el-col>
             <el-col :span="18" class="other">{{ info.zhType }}</el-col>
           </el-col>
-
           <el-col :span="24" v-if="info.type == '1' || info.type == '2' || info.type == '4' || info.type == '5'">
             <el-col :span="6">退款金额</el-col>
             <el-col :span="18" class="other" style="color: red">{{ info.money || '' }}</el-col>