@@ -1075,6 +1089,7 @@ export default {
consigneeTemplate: '',
notifypartyTemplate: '',
modelType: '',
+ checkFlag: false,
modelName: '',
modelVisible: false,
shippername: '',
@@ -1601,6 +1616,7 @@ export default {
selectArr: [],
showSendModel: false,
sendType: '0',
+ checkList: [],
sendOption: [
{ label: '新增', value: '0' },
{ label: '修改', value: '1' },
@@ -2618,13 +2634,60 @@ export default {
{
Ids: this.sendArr.toString(),
type: this.sendType,
+ isCheck: true,
SENDREMARK: this.sendRemarkVal
},
{ arrayFormat: 'repeat' }
)
seaeEdiCustEDI(query)
.then((res) => {
+ if (res.success) {
+ let tip = ''
+ if (this.sendType == '0') {
+ tip = '新增发送成功'
+ } else if (this.sendType == '1') {
+ tip = '修改发送成功'
+ } else if (this.sendType == '2') {
+ tip = '删除发送成功'
+ }
+ this.$message.success(tip)
+ this.selectArr.map((item, index) => {
+ if (this.sendType == '0') {
+ this.orderList[item].state = '已直发'
+ } else if (this.sendType == '1') {
+ this.orderList[item].state = '已直发'
+ } else if (this.sendType == '2') {
+ this.orderList[item].state = '已删除'
+ }
+ })
+ this.sendClose()
+ } else {
+ if (res.message === '校验不通过') {
+ this.checkFlag = true
+ this.checkList = res.extras.checkResult
+ }
+ this.$message.error(res.message)
+ }
+ this.sendLoading = false
+ })
+ .catch((err) => {
this.sendLoading = false
+ console.log(err)
+ })
+ },
+ nextSend() {
+ this.sendLoading = true
+ const query = this.$qs.stringify(
+ {
+ Ids: this.sendArr.toString(),
+ type: this.sendType,
+ isCheck: false,
+ SENDREMARK: this.sendRemarkVal
+ },
+ { arrayFormat: 'repeat' }
+ )
+ seaeEdiCustEDI(query)
+ .then((res) => {
if (res.success) {
let tip = ''
if (this.sendType == '0') {
@@ -2646,8 +2709,13 @@ export default {
})
this.sendClose()
} else {
+ if (res.message === '校验不通过') {
+ this.checkFlag = true
+ this.checkList = res.extras.checkResult
+ }
this.$message.error(res.message)
}
+ this.sendLoading = false
})
.catch((err) => {
this.sendLoading = false
diff --git a/src/views/main/mskOrderList/index.vue b/src/views/main/mskOrderList/index.vue
index 46a8f4b..cd97b54 100644
--- a/src/views/main/mskOrderList/index.vue
+++ b/src/views/main/mskOrderList/index.vue
@@ -2,28 +2,38 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
+
+
+
+
+
+
{{ advanced ? '收起' : '展开' }}
@@ -32,17 +42,17 @@
-
+
-
+
-
+
@@ -54,24 +64,24 @@
-
+
-
+
-
-
-
+
-
+
-
+
+
+
@@ -83,24 +93,22 @@
-
+
-
-
-
+
-
+
-
+
@@ -112,7 +120,7 @@
-
+
@@ -129,82 +137,13 @@
-
-
+
-
-
+ {
+ confirm(e, row.id)
+ }
+ ">
+
+
+ {{ row.vessel }} / {{ row.voyno }}
+
+
+
+
+
+
+
+
+
+
@@ -243,14 +201,14 @@