diff --git a/src/views/main/BookingLedger/detail/modules/preOrder.vue b/src/views/main/BookingLedger/detail/modules/preOrder.vue index 5b6e889..00abb9b 100644 --- a/src/views/main/BookingLedger/detail/modules/preOrder.vue +++ b/src/views/main/BookingLedger/detail/modules/preOrder.vue @@ -35,7 +35,7 @@
- {{ sedDetail.state }} + {{ sedDetail.state }} @@ -1631,9 +1631,9 @@ export default { sendOption: [ { label: '新增', value: '0' }, { label: '修改', value: '1' }, - { label: '删除', value: '2' }, - { label: '保存', value: '3' }, - { label: '作废', value: '4' } + { label: '删除', value: '2' } + // { label: '保存', value: '3' }, + // { label: '作废', value: '4' } ], sendRemarkVal: '', sendArr: [] @@ -2194,15 +2194,15 @@ export default { let tempstr1 = '' this.selectArr.map((item, index) => { if (this.orderList[item].id !== 0) { - if (this.orderList[item].state === '已录入') { + // if (this.orderList[item].state === '已录入') { sendArr.push(this.orderList[item].id) - } else { - if (this.orderList[item].isHBL) { - tempstr1 += `分提单${this.orderList[item].hblno ? this.orderList[item].hblno : item},` - } else { - tempstr1 += `主提单${this.orderList[item].mblno ? this.orderList[item].mblno : item},` - } - } + // } else { + // if (this.orderList[item].isHBL) { + // tempstr1 += `分提单${this.orderList[item].hblno ? this.orderList[item].hblno : item},` + // } else { + // tempstr1 += `主提单${this.orderList[item].mblno ? this.orderList[item].mblno : item},` + // } + // } } else { if (this.orderList[item].isHBL) { tempstr += `分提单${this.orderList[item].hblno ? this.orderList[item].hblno : item},` @@ -2216,10 +2216,10 @@ export default { this.$message.error(`${tempstr}需要先保存再进行发送`) return false } - if (tempstr1) { - this.$message.error(`${tempstr1}已发送,无需重复发送`) - return false - } + // if (tempstr1) { + // this.$message.error(`${tempstr1}已发送,无需重复发送`) + // return false + // } if (sendArr.length === 0) { this.$message.error('暂无可发送舱单') return false @@ -2249,9 +2249,23 @@ export default { }, { arrayFormat: 'repeat' }) seaeEdiCustEDI(query).then((res) => { if (res.success) { - this.$message.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) => { - this.orderList[item].state = '已发送' + 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 {