fix:部门领料对接中鼎
This commit is contained in:
@@ -199,13 +199,21 @@ export default {
|
||||
return
|
||||
}
|
||||
const row = this.multipleSelection[0]
|
||||
this.$confirm('确认下推单据 ' + row.order_no + ' 生成出库单?出库完成后将按 PP055 回传 SAP。', '下推出库', {
|
||||
this.$confirm('确认下推单据 ' + row.order_no + ' ?中鼎仓库的明细将直接下推中鼎WMS,其余仓库生成出库单;完成后按 PP055 回传 SAP。', '下推出库', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
outPush({ id: row.id }).then(() => {
|
||||
this.$message.success('下推成功')
|
||||
outPush({ id: row.id }).then(res => {
|
||||
const data = (res && res.data) || {}
|
||||
const hasBills = data.billCodes && data.billCodes.length > 0
|
||||
if (data.zdPushed && hasBills) {
|
||||
this.$message.success('已生成出库单并下推中鼎WMS')
|
||||
} else if (data.zdPushed) {
|
||||
this.$message.success('已下推中鼎WMS,等待中鼎完成回调')
|
||||
} else {
|
||||
this.$message.success('下推成功')
|
||||
}
|
||||
this.crud.toQuery()
|
||||
})
|
||||
}).catch(() => {})
|
||||
|
||||
Reference in New Issue
Block a user