|
@@ -369,6 +369,7 @@ export default {
|
|
|
},
|
|
|
handleRowClick(row, event, column) {
|
|
|
this.form = row
|
|
|
+ this.data2 = []
|
|
|
},
|
|
|
handleRowClick2(row, event, column) {
|
|
|
this.data2 = row.containersCommodityList
|
|
@@ -402,13 +403,20 @@ export default {
|
|
|
|
|
|
// },
|
|
|
openDialog(type) {
|
|
|
- this.data = []
|
|
|
+ this.data = [{
|
|
|
+ bookingNo:'1111'
|
|
|
+ }]
|
|
|
this.excelBox = true
|
|
|
},
|
|
|
importData() {
|
|
|
if (this.data.length == 0) {
|
|
|
return this.$message.error("请上传文件");
|
|
|
}
|
|
|
+ for (let item of this.data) {
|
|
|
+ if (!item.etd) {
|
|
|
+ return this.$message.error('booking No:' + item.bookingNo + '没有维护ETD,请维护一下');
|
|
|
+ }
|
|
|
+ }
|
|
|
this.loading = true
|
|
|
getDicinit('POST', '/blade-los/magicHandImport/submit', this.data).then(res => {
|
|
|
this.excelBox = false
|