预配舱单

szh_zidingyibiaoti
lilu 2 years ago
parent 490f7fea7d
commit 8c919349f0

@ -1001,7 +1001,7 @@
</a-form> </a-form>
</div> </div>
<template slot="footer"> <template slot="footer">
<a-button type="primary" @click="sendSubmit"></a-button> <a-button type="primary" :loading="sendLoading" @click="sendSubmit"></a-button>
<a-button type="primary" @click="sendClose"></a-button> <a-button type="primary" @click="sendClose"></a-button>
</template> </template>
</a-modal> </a-modal>
@ -1636,7 +1636,8 @@ export default {
// { label: '', value: '4' } // { label: '', value: '4' }
], ],
sendRemarkVal: '', sendRemarkVal: '',
sendArr: [] sendArr: [],
sendLoading: false
} }
}, },
watch: { watch: {
@ -2227,10 +2228,6 @@ export default {
this.sendArr = sendArr this.sendArr = sendArr
this.showSendModel = true this.showSendModel = true
}, },
// sendChange (e) {
// this.sendType = e.target.value
// console.log('radio1 checked', e.target.value);
// },
sendSubmit () { sendSubmit () {
console.log('== 发送 ==', this.sendArr, this.sendType, this.sendRemarkVal) console.log('== 发送 ==', this.sendArr, this.sendType, this.sendRemarkVal)
console.log('== 即将发送单号 ==', this.sendArr) console.log('== 即将发送单号 ==', this.sendArr)
@ -2242,12 +2239,14 @@ export default {
this.$message.error('请输入备注') this.$message.error('请输入备注')
return false return false
} }
this.sendLoading = true
const query = this.$qs.stringify({ const query = this.$qs.stringify({
Ids: this.sendArr.toString(), Ids: this.sendArr.toString(),
type: this.sendType, type: this.sendType,
SENDREMARK: this.sendRemarkVal SENDREMARK: this.sendRemarkVal
}, { arrayFormat: 'repeat' }) }, { arrayFormat: 'repeat' })
seaeEdiCustEDI(query).then((res) => { seaeEdiCustEDI(query).then((res) => {
this.sendLoading = false
if (res.success) { if (res.success) {
let tip = '' let tip = ''
if (this.sendType == '0') { if (this.sendType == '0') {
@ -2272,6 +2271,7 @@ export default {
this.$message.error(res.message) this.$message.error(res.message)
} }
}).catch((err) => { }).catch((err) => {
this.sendLoading = false
console.log(err) console.log(err)
}) })
}, },

Loading…
Cancel
Save