提单确认必填逻辑

szh-new
lijingjia 2 months ago
parent bb4c6f00d8
commit 4f25822a98

@ -317,15 +317,15 @@
const content = JSON.parse(data.content).columns
//
const status = route.query.status
if (status == 'WAIT_BILL_CONFIRM') {
if (content && content.length) {
content.forEach(item => {
if (item.field == 'vessel' || item.field == 'innerVoyno' || item.field == 'mblno' || item.field == 'hblno' || item.field == 'shipperContent' || item.field == 'consigneeContent' || item.field == 'notifyPartyContent' || item.field == 'kgs' || item.field == 'cbm' || item.field == 'pkgs' || item.field == 'goodsName' || item.field == 'description' || item.field == 'mblFrt' || item.field == 'issueDate' || item.field == 'issueType' || item.field == 'service') {
item.required = true
}
})
}
}
// if (status == 'WAIT_BILL_CONFIRM') {
// if (content && content.length) {
// content.forEach(item => {
// if (item.field == 'vessel' || item.field == 'innerVoyno' || item.field == 'mblno' || item.field == 'hblno' || item.field == 'shipperContent' || item.field == 'consigneeContent' || item.field == 'notifyPartyContent' || item.field == 'kgs' || item.field == 'cbm' || item.field == 'pkgs' || item.field == 'goodsName' || item.field == 'description' || item.field == 'mblFrt' || item.field == 'issueDate' || item.field == 'issueType' || item.field == 'service') {
// item.required = true
// }
// })
// }
// }
// :
if (status && status != 'WAIT_ORDER_AUDIT' && status != 'ORDER_AUDIT_REJECTED') {
if (content && content.length) {

Loading…
Cancel
Save