包装保存验证, 添加真提单号等必填项验证

szh_zidingyibiaoti
lilu 2 years ago
parent fe044a0df7
commit 8198d590dd

@ -1230,6 +1230,7 @@ export default {
let pkgs = 0 let pkgs = 0
let kgs = 0 let kgs = 0
let cbm = 0 let cbm = 0
let kindpkgs = ''
this.bookingDetails.ctnInputs.forEach(item => { this.bookingDetails.ctnInputs.forEach(item => {
if (parseFloat(item.pkgs)) { if (parseFloat(item.pkgs)) {
pkgs = pkgs + parseFloat(item.pkgs) pkgs = pkgs + parseFloat(item.pkgs)
@ -1240,6 +1241,7 @@ export default {
if (parseFloat(item.cbm)) { if (parseFloat(item.cbm)) {
cbm = cbm + parseFloat(item.cbm) cbm = cbm + parseFloat(item.cbm)
} }
kindpkgs = item.kindpkgs
}) })
let that = this let that = this
let confirm = text => { let confirm = text => {
@ -1279,6 +1281,13 @@ export default {
WText = `尺码` WText = `尺码`
} }
} }
if (kindpkgs !== this.bookingDetails.kindpkgs) {
if (WText) {
WText = `${WText},包装`
} else {
WText = `包装`
}
}
if (WText) { if (WText) {
confirm(WText) confirm(WText)
} else { } else {

@ -302,9 +302,10 @@ export default {
const data = this.packageList[val] const data = this.packageList[val]
this.tableData[rowIndex].kindpkgs = data.name this.tableData[rowIndex].kindpkgs = data.name
row['kindpkgs'] = data.name row['kindpkgs'] = data.name
console.log('== 设置了包装内容 ==', row['kindpkgs'])
this.tableData.map((item, index) => { this.tableData.map((item, index) => {
if (index !== rowIndex) {
item.kindpkgs = this.packageList[val].name || '' item.kindpkgs = this.packageList[val].name || ''
console.log('== 设置其他箱 - 包装 ==', index, item.kindpkgs)
if ( if (
document document
.getElementsByClassName('kindpkgsView') .getElementsByClassName('kindpkgsView')
@ -318,7 +319,6 @@ export default {
document.getElementsByClassName('kindpkgsView')[index].getElementsByTagName('input')[0].val = document.getElementsByClassName('kindpkgsView')[index].getElementsByTagName('input')[0].val =
this.packageList[val].name || '' this.packageList[val].name || ''
} }
}
}) })
this.$forceUpdate() this.$forceUpdate()
} else { } else {

@ -8,6 +8,7 @@ export default {
hblno: [{ required: false, message: '请输入分提单号', trigger: 'change' }], hblno: [{ required: false, message: '请输入分提单号', trigger: 'change' }],
custno: [{ required: false, message: '请输入订舱编号', trigger: 'change' }], custno: [{ required: false, message: '请输入订舱编号', trigger: 'change' }],
contractno: [{ required: false, message: '请输入运费协议号', trigger: 'change' }], contractno: [{ required: false, message: '请输入运费协议号', trigger: 'change' }],
tmblno: [{ required: false, message: '请输入真提单号', trigger: 'change' }], // VOLTA WHL CSL
EPCode: [{ required: false, message: '请输入EP号', trigger: 'change' }], // esl EPCode: [{ required: false, message: '请输入EP号', trigger: 'change' }], // esl
vessel: [{ required: false, message: '请输入船名', trigger: 'change' }], vessel: [{ required: false, message: '请输入船名', trigger: 'change' }],
lanecode: [{ required: false, message: '请输入航线代码', trigger: 'change' }], // esl lanecode: [{ required: false, message: '请输入航线代码', trigger: 'change' }], // esl
@ -23,6 +24,7 @@ export default {
doc: [{ required: false, message: '请选择单证人员', trigger: 'change' }], doc: [{ required: false, message: '请选择单证人员', trigger: 'change' }],
custservice: [{ required: false, message: '请选择客服人员', trigger: 'change' }], custservice: [{ required: false, message: '请选择客服人员', trigger: 'change' }],
route: [{ required: false, message: '请选择航线操作', trigger: 'change' }], route: [{ required: false, message: '请选择航线操作', trigger: 'change' }],
lineManage: [{ required: false, message: '请选择航线管理', trigger: 'change' }],
dzRemark: [{ required: false, message: '请选择单证备注', trigger: 'change' }], dzRemark: [{ required: false, message: '请选择单证备注', trigger: 'change' }],
czRemark: [{ required: false, message: '请选择操作备注', trigger: 'change' }] czRemark: [{ required: false, message: '请选择操作备注', trigger: 'change' }]
}, },
@ -36,6 +38,7 @@ export default {
trucker: [{ required: false, message: '请输入车队', trigger: 'change' }], trucker: [{ required: false, message: '请输入车队', trigger: 'change' }],
agentname: [{ required: false, message: '请输入国外代理', trigger: 'change' }], agentname: [{ required: false, message: '请输入国外代理', trigger: 'change' }],
warehouse: [{ required: false, message: '请选择仓库', trigger: 'change' }], warehouse: [{ required: false, message: '请选择仓库', trigger: 'change' }],
shippingMethod: [{ required: false, message: '请选择装运方式', trigger: 'change' }],
eta: [{ required: false, message: '请选择预抵日期', trigger: 'change' }], eta: [{ required: false, message: '请选择预抵日期', trigger: 'change' }],
closingdate: [{ required: false, message: '请选择截港时间', trigger: 'change' }], closingdate: [{ required: false, message: '请选择截港时间', trigger: 'change' }],
closedocdate: [{ required: false, message: '请选择截单时间', trigger: 'change' }], closedocdate: [{ required: false, message: '请选择截单时间', trigger: 'change' }],

Loading…
Cancel
Save