Ver Fonte

no message

linwenxin há 10 meses atrás
pai
commit
c37a20d961
1 ficheiros alterados com 19 adições e 7 exclusões
  1. 19 7
      src/views/mallManagement/order/order_list/index.vue

+ 19 - 7
src/views/mallManagement/order/order_list/index.vue

@@ -370,13 +370,25 @@
                         >
                           <el-button slot="reference" type="text" size="small">取消订单</el-button>
                         </el-popconfirm>
-                        <el-button
-                          type="text"
-                          size="small"
-                          v-if="['SPTG', 'DFH'].includes(order.orderStatus) && $restrict('deliver')"
-                          @click="showLogistics(order, 'add')"
-                          >发货</el-button
-                        >
+
+                        <template v-if="['SPTG', 'DFH'].includes(order.orderStatus) && $restrict('deliver')">
+                          <el-popconfirm
+                            v-if="['PART_PAID', 'NO_PAID'].includes(order.payStatus)"
+                            title="是否确定操作发货?"
+                            @confirm="
+                              () => {
+                                showLogistics(order, 'add')
+                              }
+                            "
+                            style="margin-left: 10px"
+                          >
+                            <el-button slot="reference" size="small" type="primary">发货</el-button>
+                          </el-popconfirm>
+                          <el-button type="text" size="small" v-else @click="showLogistics(order, 'add')"
+                            >发货</el-button
+                          >
+                        </template>
+
                         <el-button
                           type="text"
                           size="small"