shish hace 6 años
padre
commit
fed6cbee63
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. 7 2
      store/src/admin/order/detail.vue

+ 7 - 2
store/src/admin/order/detail.vue

@@ -149,7 +149,11 @@
           <block v-else-if="data.status == 4"></block>
           <block v-else-if="data.status == 4"></block>
           <block v-else-if="data.status == 6"></block>
           <block v-else-if="data.status == 6"></block>
           <block v-else-if="data.status == 5">
           <block v-else-if="data.status == 5">
-            <button v-if="data.sendType != 1" class="admin-button-com default" @click="seeSendFn">配送详情</button>
+            <button
+              v-if="data.sendType != 1"
+              class="admin-button-com default"
+              @click="seeSendFn"
+            >配送详情</button>
           </block>
           </block>
           <block v-else>
           <block v-else>
             <button class="admin-button-com middle" @click.stop="freeShippingFn">自取</button>
             <button class="admin-button-com middle" @click.stop="freeShippingFn">自取</button>
@@ -260,7 +264,8 @@ export default {
       if (e.index === 0) {
       if (e.index === 0) {
         this.modalCancel();
         this.modalCancel();
       } else {
       } else {
-        this.data.status = 2;
+        this.data.status = 5;
+        this.data.sendType = 1;
         freeShipping({ id: this.data.id }).then(res => {
         freeShipping({ id: this.data.id }).then(res => {
           this.$msg("操作成功!");
           this.$msg("操作成功!");
           this.modalCancel();
           this.modalCancel();