1
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user