|
@@ -1763,6 +1763,21 @@ export default {
|
|
|
this.$refs['goodsForm'].validate((valid, done) => {
|
|
|
done();
|
|
|
if (valid) {
|
|
|
+ for (let item in this.tableData) {
|
|
|
+ if (item < Number(this.tableData.length) - 1) {
|
|
|
+ if (!this.tableData[item].corpId) return this.$message.error('请选择第' + Number(Number(item) + 1) + '行货运地点');
|
|
|
+ // if (!this.tableData[item].address) return this.$message.error('请输入第' + Number(Number(item) + 1) + '行详细地址');
|
|
|
+ // if (!this.tableData[item].contacts) return this.$message.error('请输入第' + Number(Number(item) + 1) + '行联系人');
|
|
|
+ // if (!this.tableData[item].tel) return this.$message.error('请输入第' + Number(Number(item) + 1) + '行电话');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ for (let item in this.entrustList) {
|
|
|
+ if (!this.entrustList[item].ctnType) return this.$message.error('请选择第' + Number(Number(item) + 1) + '行箱型');
|
|
|
+ if (!this.entrustList[item].ctnQuantity) return this.$message.error('请输入第' + Number(Number(item) + 1) + '行箱量');
|
|
|
+ if (!this.entrustList[item].arrivalTime) return this.$message.error('请输入第' + Number(Number(item) + 1) + '行货运日期');
|
|
|
+ // if (!this.entrustList[item].landAmountD) return this.$message.error('请输入第' + Number(Number(item) + 1) + '运费');
|
|
|
+ }
|
|
|
+ if (this.entrustList.length === 0) return this.$message.error('箱信息不能为空')
|
|
|
let data = JSON.parse(JSON.stringify(this.tableData))
|
|
|
data.forEach((item, index) => {
|
|
|
item.sort = index + 1
|