|
@@ -88,6 +88,10 @@ export default {
|
|
let chooseRow = []
|
|
let chooseRow = []
|
|
if (_this.chooseVal) {
|
|
if (_this.chooseVal) {
|
|
if (_this.chooseVal === 'a1') {
|
|
if (_this.chooseVal === 'a1') {
|
|
|
|
+ if (!_this.selectDealerSn || !_this.selectDealerName) {
|
|
|
|
+ _this.$message.warning('请选择发货经销商!')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
chooseRow.push({
|
|
chooseRow.push({
|
|
dealerSn: _this.selectDealerSn,
|
|
dealerSn: _this.selectDealerSn,
|
|
dealerName: _this.selectDealerName
|
|
dealerName: _this.selectDealerName
|
|
@@ -97,9 +101,11 @@ export default {
|
|
}
|
|
}
|
|
_this.confirmLoading = true
|
|
_this.confirmLoading = true
|
|
queryTransferDealerStock({ salesBillSn: _this.itemSn, transferDealerSn: _this.chooseVal === 'a1' ? _this.selectDealerSn : _this.chooseVal }).then(res => {
|
|
queryTransferDealerStock({ salesBillSn: _this.itemSn, transferDealerSn: _this.chooseVal === 'a1' ? _this.selectDealerSn : _this.chooseVal }).then(res => {
|
|
- _this.confirmLoading = false
|
|
|
|
- _this.cancel()
|
|
|
|
- _this.$emit('ok', chooseRow[0], res.data)
|
|
|
|
|
|
+ if (res.status == 200) {
|
|
|
|
+ _this.confirmLoading = false
|
|
|
|
+ _this.cancel()
|
|
|
|
+ _this.$emit('ok', chooseRow[0], res.data)
|
|
|
|
+ }
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
_this.$message.info('请选择发货经销商类型!')
|
|
_this.$message.info('请选择发货经销商类型!')
|