zhangqi 1 år sedan
förälder
incheckning
1bb8292f93

+ 1 - 0
src/DRP/HDrpManagement/orderManage/detail/index.vue

@@ -513,6 +513,7 @@ const checkBill = async (id,msg)=>{
     onCancel() {},
   })
 }
+const zero_price = ref(false)
 const onSubmit = async (id,msg)=>{
   if (orderData.value.type == '特殊订单') {
     const rs = await Api.requested({

+ 3 - 6
src/components/tableImport/index.vue

@@ -168,12 +168,9 @@ const getExcelMode = async () => {
   const res = await Api.requested(props.modeParam)
   excelMode.value = res.data
 }
-const FailedData = ()=>{
-  if (props.failedData) {
-    message.error({content:'部分数据未导入成功,请下载导入失败的数据查看!',key:1,duration:3})
-    return true
-  }
-}
+watch(() => props.failedData, value => {
+  message.error({content:'部分数据未导入成功,请下载导入失败的数据查看!',key:1})
+})
 onMounted(() => {
 })
 </script>

+ 14 - 1
src/customized/cucu/orderManage/detail/index.vue

@@ -435,11 +435,23 @@ const checkBill = async (id,msg)=>{
     onCancel() {},
   })
 }
+const zero_price = ref(false)
 const onSubmit = async (id,msg)=>{
+  if (orderData.value.type == '特殊订单') {
+    const rs = await Api.requested({
+      id:2024060515370903,
+      content:{
+        "sa_orderid": orderData.value.sa_orderid,
+      }
+    })
+    if (rs.data.length > 0) {
+      zero_price.value = true
+    }
+  }
   Modal.confirm({
     title: '提示',
     icon: createVNode(ExclamationCircleOutlined),
-    content: `确定提交该订单吗?`,
+    content:zero_price.value?'存在单价为0的商品,是否继续提交?':`确定提交该订单吗?`,
     okText: '确认',
     cancelText: '取消',
     async onOk() {
@@ -457,6 +469,7 @@ const onSubmit = async (id,msg)=>{
     onCancel() {},
   })
 }
+
 const quickSendProduct = ()=>{
   Modal.confirm({
     title: '一键发货',