This commit is contained in:
赵正易
2024-03-26 18:00:43 +08:00
parent 0bc46b746d
commit 8c99ddd0ae
2 changed files with 24 additions and 15 deletions

View File

@@ -198,13 +198,19 @@
<el-col :lg="12">
<el-form-item label="原库存" prop="goodsNumLogic">
<el-input v-model="form.goodsNumLogic" placeholder="请输入原库存" />
<el-input v-model.number="form.goodsNumLogic" placeholder="请输入原库存" />
</el-form-item>
</el-col>
<el-col :lg="12">
<el-form-item label="出库数量" prop="goodsNumAction">
<el-input v-model="form.goodsNumAction" placeholder="请输入出库数量" />
<el-input v-model.number="form.goodsNumAction" placeholder="请输入出库数量" />
</el-form-item>
</el-col>
<el-col :lg="12">
<el-form-item label="仓库剩余" prop="goodsNumAction">
{{ (form.goodsNumLogic - form.goodsNumAction) }}
</el-form-item>
</el-col>
@@ -328,8 +334,10 @@ export default {
this.loading = true
listWmGoodsOutProduction(this.queryParams).then((res) => {
if (res.code == 200) {
this.dataList = res.data.result
this.total = res.data.totalNum
// this.dataList = res.data.result
// this.total = res.data.totalNum
this.dataList = res.data.item1
this.total = res.data.item2
this.loading = false
}
})
@@ -434,8 +442,6 @@ export default {
console.log(JSON.stringify(this.form))
this.$refs['form'].validate((valid) => {
if (valid) {
if (this.form.id != undefined && this.opertype === 2) {
updateWmGoodsOutProduction(this.form)
.then((res) => {
@@ -503,14 +509,17 @@ export default {
this.PackageCodeOptions = []
}
},
PackageCodeChange(select){
console.log(select);
this.form.partnumber = select.partnumber;
this.form.goodsNumLogic = select.goodsNumLogic;
this.form.locationCode = select.locationCode;
this.form.goodsNumAction = select.goodsNumAction;
PackageCodeChange(select) {
console.log('select', select)
this.form.fkNowProductionId = select.id
this.form.partnumber = select.partnumber
// 原仓库库存
this.form.goodsNumLogic = select.goodsNumAction
this.form.locationCode = select.locationCode
// 出库数量
this.form.goodsNumAction = select.goodsNumAction
this.form.packageCodeClient = select.packageCodeClient
}
},
},
}
</script>

View File

@@ -40,7 +40,7 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: 'http://192.168.60.251:8888/', // 后端接口地址
target: 'http://192.168.90.92:8888', // 后端接口地址
// target: 'http://192.168.0.31:8888/', // 后端接口地址
changeOrigin: true,
pathRewrite: {
@@ -49,7 +49,7 @@ module.exports = {
},
msgHub: {
target: 'http://192.168.60.251:8888/msgHub',
target: 'http://192.168.90.92:8888/msgHub',
// target: 'http://192.168.0.31:8888/msgHub',
ws: true,
changeOrigin: true,