盘盈出入库成本中心修改

This commit is contained in:
王帅 2025-05-28 08:39:22 +08:00
parent 19d23bfb37
commit 8106f6bbc8
2 changed files with 22 additions and 3 deletions

View File

@ -107,7 +107,7 @@
commitDate: '', commitDate: '',
opCode: '', opCode: '',
costName: '', costName: '',
itemsCostName: [{text: '财务部中心',value: '1010103000'}] itemsCostName: [{text: '财务部中心',value: '1010109040'}]
} }
}, },
@ -129,6 +129,7 @@
} }
}) })
this.getTimeData(); this.getTimeData();
this.getCostCenter();
}, },
methods: { methods: {
@ -153,7 +154,15 @@
this[nextfocus] = true this[nextfocus] = true
}) })
}, },
getCostCenter(){
let erpFactory = JSON.parse(uni.getStorageSync('loginInfoObject')).org
this.$MyRequest('/CostCenter/getCostCenter',{erpFactory: erpFactory},'GET').then(res => {
this.itemsCostName = res.data.data.map(item => ({
text: item.costName,
value: item.costCode,
}));
})
},
ScanBarCode() { ScanBarCode() {
this.focusBarCode = false this.focusBarCode = false
console.log(this.BoxListInfo.length) console.log(this.BoxListInfo.length)

View File

@ -187,7 +187,7 @@
commitDate: '', commitDate: '',
opCode: '', opCode: '',
costName: '', costName: '',
itemsCostName: [{text: '财务部中心',value: '1010103000'}] itemsCostName: [{text: '财务部中心',value: '1010109040'}]
} }
}, },
@ -209,6 +209,7 @@
this.orgObject = JSON.parse(uni.getStorageSync('orgObject')) this.orgObject = JSON.parse(uni.getStorageSync('orgObject'))
this.getTimeData(); this.getTimeData();
this.getERPLocation(); this.getERPLocation();
this.getCostCenter();
// let Things = 20 // let Things = 20
// for (var i = 0; i < Things; i++) { // for (var i = 0; i < Things; i++) {
// this.BoxListInfo.push({aa:"1"}) // this.BoxListInfo.push({aa:"1"})
@ -228,6 +229,15 @@
maskClick(e) { maskClick(e) {
console.log('maskClick事件:', e); console.log('maskClick事件:', e);
}, },
getCostCenter(){
let erpFactory = JSON.parse(uni.getStorageSync('loginInfoObject')).org
this.$MyRequest('/CostCenter/getCostCenter',{erpFactory: erpFactory},'GET').then(res => {
this.itemsCostName = res.data.data.map(item => ({
text: item.costName,
value: item.costCode,
}));
})
},
onLeftClick() { onLeftClick() {
uni.showModal({ uni.showModal({
title: this.titleModal, // title: this.titleModal, //