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

View File

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