Przeglądaj źródła

列表增加了分类按钮,但还没实现功能

shish 6 lat temu
rodzic
commit
14fea17b8b

+ 6 - 0
store/src/admin/home/order.vue

@@ -78,6 +78,9 @@
                   >发货</div>
                 </template>
               </template>
+              <template v-if="item.payStatus == 1 && item.classify == 0">
+                <div class="admin-button-com mini" @click.stop="classifyOrder()" >分类</div>
+              </template>
             </div>
           </div>
         </div>
@@ -232,6 +235,9 @@ export default {
     // 关闭弹窗
     modalCancel() {
       this.freeShipModal = false;
+    },
+    classifyOrder(){
+      
     }
   }
 };

+ 1 - 1
store/src/admin/order/components/sel-confirm.vue

@@ -47,7 +47,7 @@
 								</div>
 							</block>
 							<block v-else>
-								<div>配送:门店</div>
+								<div>配送:门店</div>
 							</block>
 						</div>
 					</div>

+ 1 - 1
store/src/admin/order/components/sel-express-confirm.vue

@@ -39,7 +39,7 @@
                 </div>
               </block>
               <block v-else>
-                <div>配送:门店</div>
+                <div>配送:门店</div>
               </block>
             </div>
           </div>

+ 8 - 4
store/src/admin/order/components/sel-ship-confirm.vue

@@ -14,9 +14,12 @@
             <div class="axis-title">{{ orderComData[0].actionName }}</div>
             <div class="axis-det">
               <div class="app-color-0 app-bold">{{ orderComData[0].finishTime | formatTime }}</div>
-              <button class="admin-button-com big blue confirm-btn" @click="confirmFn">归类</button>
-              <div>分类: {{ orderComData[0].classify.category }}</div>
-              <div>用途:{{ orderComData[0].classify.usage }}</div>
+              <template v-if="$util.isEmpty(orderComData[0].classify)">
+              <button class="admin-button-com small blue confirm-btn" @click="confirmFn">归类</button>
+              </template>
+              <template v-else>
+              <div>{{ orderComData[0].classify.usage }}  {{ orderComData[0].classify.category }}</div>
+              </template>
             </div>
           </div>
         </template>
@@ -36,7 +39,7 @@
                 <div>状态:{{ orderComData[1].sendInfo.status | constantfilter('SEND_STATUS') }}</div>
               </block>
               <block v-else>
-                <div>配送:门店</div>
+                <div>配送:门店</div>
               </block>
             </div>
           </div>
@@ -178,6 +181,7 @@ export default {
 					id: this.orderData.id,
 					...this.form
 				}).then(res => {
+          this.selModal = false;
 					this.$msg('订单归类成功!')
 					setTimeout(() => {
 						this.$emit('nextPageSuccess', {