|
|
|
@ -1001,7 +1001,7 @@
|
|
|
|
|
</a-form>
|
|
|
|
|
</div>
|
|
|
|
|
<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>
|
|
|
|
|
</template>
|
|
|
|
|
</a-modal>
|
|
|
|
@ -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)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|