更新装配、销售、精工车间、技术中心、仓储多个模块,整理文档和SQL脚本
This commit is contained in:
@@ -757,6 +757,7 @@ export default {
|
||||
this.initWebpack()
|
||||
this.getorderSelection()
|
||||
this.loadRKDCounter()
|
||||
this.getLocateName()
|
||||
// this.searchTable1()
|
||||
},
|
||||
methods: {
|
||||
@@ -1047,10 +1048,12 @@ export default {
|
||||
getLocateName() {
|
||||
var param = []
|
||||
var Data = this.CreateData('11', '仓储管理_库位_查询', param)
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
return this.ExecDatabase(Data).then(response => {
|
||||
this.locateName = []
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.locateName.push({
|
||||
label: response.data[i].货位名称,
|
||||
name: response.data[i].货位名称,
|
||||
value: String(response.data[i].货位流水号)
|
||||
})
|
||||
}
|
||||
@@ -1133,13 +1136,28 @@ export default {
|
||||
var data = response.data.rows || response.data
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
var inventory = data[i].库存 || data[i].货位存量 || 0
|
||||
locateName.push({
|
||||
label: data[i].货位名称 + '(库存:' + inventory + ')',
|
||||
name: data[i].货位名称,
|
||||
value: String(data[i].货位流水号)
|
||||
})
|
||||
if (Number(inventory) > 0) {
|
||||
locateName.push({
|
||||
label: data[i].货位名称 + '(库存:' + inventory + ')',
|
||||
name: data[i].货位名称,
|
||||
value: String(data[i].货位流水号)
|
||||
})
|
||||
}
|
||||
}
|
||||
if (locateName.length > 0) {
|
||||
this.$set(row, 'locateName', locateName)
|
||||
this.$set(row, 'locateSource', 'inventory')
|
||||
} else {
|
||||
var setAllLocate = function() {
|
||||
this.$set(row, 'locateName', this.locateName.slice())
|
||||
this.$set(row, 'locateSource', 'all')
|
||||
}.bind(this)
|
||||
if (this.locateName.length === 0) {
|
||||
this.getLocateName().then(setAllLocate)
|
||||
} else {
|
||||
setAllLocate()
|
||||
}
|
||||
}
|
||||
this.$set(row, 'locateName', locateName)
|
||||
})
|
||||
},
|
||||
getData() {
|
||||
|
||||
Reference in New Issue
Block a user