diff --git a/src/views/main/BookingLedger/detail/modules/preOrder.vue b/src/views/main/BookingLedger/detail/modules/preOrder.vue index 00abb9b..35bf18d 100644 --- a/src/views/main/BookingLedger/detail/modules/preOrder.vue +++ b/src/views/main/BookingLedger/detail/modules/preOrder.vue @@ -1001,7 +1001,7 @@ @@ -1636,7 +1636,8 @@ export default { // { label: '作废', value: '4' } ], sendRemarkVal: '', - sendArr: [] + sendArr: [], + sendLoading: false } }, watch: { @@ -2227,10 +2228,6 @@ export default { this.sendArr = sendArr this.showSendModel = true }, - // sendChange (e) { - // this.sendType = e.target.value - // console.log('radio1 checked', e.target.value); - // }, sendSubmit () { console.log('== 发送 ==', this.sendArr, this.sendType, this.sendRemarkVal) console.log('== 即将发送单号 ==', this.sendArr) @@ -2242,12 +2239,14 @@ export default { this.$message.error('请输入备注') return false } + this.sendLoading = true const query = this.$qs.stringify({ Ids: this.sendArr.toString(), type: this.sendType, SENDREMARK: this.sendRemarkVal }, { arrayFormat: 'repeat' }) seaeEdiCustEDI(query).then((res) => { + this.sendLoading = false if (res.success) { let tip = '' if (this.sendType == '0') { @@ -2272,6 +2271,7 @@ export default { this.$message.error(res.message) } }).catch((err) => { + this.sendLoading = false console.log(err) }) },