修改生产界面

master
夜笙歌 8 months ago
parent cd75a5272b
commit bc6f67a32a

@ -43,3 +43,28 @@ export function getPlanDrawings(query) {
params: query params: query
}) })
} }
export function applyRawOutstock(query) {
return request({
url: '/wms/api/applyRawOutstock',
method: 'post',
data: query
})
}
export function getStockTotal(query) {
return request({
url: '/wms/api/getStockTotal',
method: 'get',
params: query
})
}
export function getWarehouses(query) {
return request({
url: '/wms/api/getWarehouses',
method: 'get',
params: query
})
}

@ -166,7 +166,7 @@
</el-row> </el-row>
</div> </div>
<el-dialog title="板材领料" :visible.sync="getMaterialsModel"> <el-dialog :visible.sync="getMaterialsModel" title="板材领料">
<el-form :model="form"> <el-form :model="form">
<el-form-item label="库位码" label-width="120px"> <el-form-item label="库位码" label-width="120px">
<el-input v-model="form.name" autocomplete="off"></el-input> <el-input v-model="form.name" autocomplete="off"></el-input>
@ -236,8 +236,8 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-input-number <el-input-number
:min="0"
v-model="scope.row.planAmount" v-model="scope.row.planAmount"
:min="0"
controls-position="right" controls-position="right"
style="width: 100%" style="width: 100%"
> >
@ -272,9 +272,11 @@ import {
getNewestProductPlanDetail, getNewestProductPlanDetail,
getProductPlans, getProductPlans,
startNextProductPlanDetail, startNextProductPlanDetail,
getPlanDrawings getPlanDrawings,
applyRawOutstock,
getStockTotal,
getWarehouses
} from "@/api/board/fifthFloor"; } from "@/api/board/fifthFloor";
import {applyRawOutstock, getStockTotal, getWarehouses} from "@/api/board/firstFloor";
const setState = (e) => { const setState = (e) => {
if (e === '1') { if (e === '1') {
@ -945,7 +947,7 @@ export default {
}, },
receiveMaterial() { receiveMaterial() {
applyRawOutstock(this.form).then(e => { applyRawOutstock(this.form1).then(e => {
if (e.code === 200) { if (e.code === 200) {
this.dialogVisible = false this.dialogVisible = false
this.$message({ this.$message({
@ -1111,6 +1113,7 @@ export default {
border-radius: 0; border-radius: 0;
} }
} }
.roundBorder { .roundBorder {
position: absolute; position: absolute;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);

Loading…
Cancel
Save