linwenxin пре 10 месеци
родитељ
комит
9324a7abf3
1 измењених фајлова са 13 додато и 1 уклоњено
  1. 13 1
      src/views/mallManagement/order/order_detail/index.vue

+ 13 - 1
src/views/mallManagement/order/order_detail/index.vue

@@ -35,7 +35,19 @@
                     </el-popconfirm>
                   </template>
                   <template v-if="['SPTG', 'DFH'].includes(orderDetail.orderStatus)">
-                    <el-button size="small" type="primary" @click="showDialog('send')">发货</el-button>
+                    <el-popconfirm
+                      v-if="['PART_PAID', 'NO_PAID'].includes(orderDetail.payStatus)"
+                      title="是否确定操作发货?"
+                      @confirm="
+                        () => {
+                          showDialog('send')
+                        }
+                      "
+                      style="margin-left: 10px"
+                    >
+                      <el-button slot="reference" size="small" type="primary">发货</el-button>
+                    </el-popconfirm>
+                    <el-button v-else size="small" type="primary" @click="showDialog('send')">发货</el-button>
                   </template>
                   <template v-if="['DFH'].includes(orderDetail.orderStatus)">
                     <el-popconfirm title="确定取消订单吗?" @confirm="cancelOrder" style="margin-left: 10px">