|
@@ -132,12 +132,29 @@ export default {
|
|
|
_this.$emit('refresh')
|
|
|
_this.cancel()
|
|
|
} else {
|
|
|
+ if (res.errCode == 'VALIDATE_STOCK_LACK') {
|
|
|
+ _this.walidateStock(res.message)
|
|
|
+ }
|
|
|
_this.spinning = false
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ walidateStock (msg) {
|
|
|
+ const h = this.$createElement
|
|
|
+ const p = []
|
|
|
+ const m = msg.split('\n')
|
|
|
+ for (let i = 0; i < m.length; i++) {
|
|
|
+ p.push(h('div', m[i]))
|
|
|
+ }
|
|
|
+ this.$info({
|
|
|
+ title: '操作失败,以下配件库存不足',
|
|
|
+ content: h('div', {}, p),
|
|
|
+ centered: true,
|
|
|
+ onOk () {}
|
|
|
+ })
|
|
|
+ },
|
|
|
getData () {
|
|
|
this.spinning = true
|
|
|
shelfRecallDetailList({ recallBillSn: this.currentData.recallBillSn }).then(res => {
|