提单确认 调整

zth
张同海 3 weeks ago
parent 1c6b3b8303
commit 9d0f5fec8e

@ -104,7 +104,7 @@
id: '',
permissionName: '',
orderNo: '',
status: '',
status: 0,
})
const state = reactive({
initSetp1: true,
@ -231,7 +231,7 @@
ApiData.columnView = ''
ApiData.content = ''
ApiData.orderNo = ''
ApiData.status = ''
ApiData.status = 0
ApiData.markerNotifyURL = ''
ApiData.callbackURL = ''
ApiData.auditType = ''

@ -14,7 +14,6 @@
class="LeftUnit"
@click="ClickTasksUnit(item)"
>
<!-- active -->
<div class="activeBox" :class="activeId == item.id ? 'active' : ''">
<span v-if="item.isMainBL" class="type MainBL"></span>
<span v-else class="type NoMainBL"></span>
@ -30,7 +29,11 @@
</div>
</div>
<div class="bottom">
<a-steps :current="activeSteps" class="steps">
<!-- isMainBL.value && -->
<div v-if="isMainBL && activeStepsArr.length == 0">
<a-button type="primary" @click="FnSetSteps"> </a-button>
</div>
<a-steps :current="activeSteps" class="steps" v-else>
<a-step v-for="(item, index) in activeStepsArr" :key="item.id">
<template #title>{{ item.typeName }}</template>
<template #description>
@ -144,23 +147,22 @@
ApiData = { ...item }
}
})
// if (!isMainBL.value) {
if (!(isMainBL.value && activeStepsArr.value.length == 0)) {
ApiData.steps[activeSteps.value].isCompleted = true
// }
}
// ( )
ApiData.autoSync = true
let res: any = null
// if (isMainBL.value) {
// res = await SetTaskStatus(ApiData)
// } else {
if (isMainBL.value && activeStepsArr.value.length == 0) {
res = await SetTaskStatus(ApiData)
} else {
res = await SetSteps(ApiData)
// }
}
if (res.succeeded) {
createMessage.success(res.message)
init(true)
}
}
function FnSetTaskStatus() {}
</script>
<style lang="less" scoped>
.Main {

Loading…
Cancel
Save