修改生产界面

master
夜笙歌 7 months ago
parent 545077ea29
commit 1021187f1b

@ -25,8 +25,10 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div style="text-align: center"> <div style="text-align: center">
<el-button type="primary" @click="getMaterials" :disabled="!form.planCode">领料</el-button> <el-button :disabled="!form.planCode" type="primary" @click="getMaterials"></el-button>
<el-button :disabled="form.planDetailStatus === '已完成' || !form.planDetailStatus" type="primary" @click="finish"></el-button> <el-button :disabled="form.planDetailStatus === '已完成' || !form.planDetailStatus" type="primary"
@click="finish">完成
</el-button>
<el-popover <el-popover
v-if="($route.query && $route.query.id) === '2'" v-if="($route.query && $route.query.id) === '2'"
v-model="assignModel" v-model="assignModel"
@ -34,11 +36,16 @@
style="margin-left: 10px" style="margin-left: 10px"
trigger="click" trigger="click"
width="400"> width="400">
<el-table :data="stationData" highlight-current-row <el-form ref="form" :model="form2" label-width="80px">
@current-change="stationChange" <el-form-item label="名称">
> <el-input v-model="form2.name"></el-input>
<el-table-column align="center" label="工位名称" prop="stationName"/> </el-form-item>
</el-table> <el-form-item label="特殊资源">
<el-radio-group v-model="form2.nowStation">
<el-radio v-for="i in stationData" :label="i.stationName" :value="i.stationId"></el-radio>
</el-radio-group>
</el-form-item>
</el-form>
<div style="float:right;margin-top: 8px"> <div style="float:right;margin-top: 8px">
<el-button type="primary" @click="completeStation"> </el-button> <el-button type="primary" @click="completeStation"> </el-button>
</div> </div>
@ -375,8 +382,9 @@ export default {
dialogVisible: false, dialogVisible: false,
form: {}, form: {},
form1: {}, form1: {},
form2: {},
tableData: [], tableData: [],
nowStation: {}, nowStation: null,
stationData: [ stationData: [
{ {
stationName: '五楼装配工位1', stationName: '五楼装配工位1',
@ -588,7 +596,8 @@ export default {
this.$store.dispatch('LogOut').then(() => { this.$store.dispatch('LogOut').then(() => {
location.href = '/login?isStationId=true'; location.href = '/login?isStationId=true';
}) })
}).catch(() => {}); }).catch(() => {
});
}, },
next1() { next1() {
this.nowNum1 += 1 this.nowNum1 += 1
@ -631,7 +640,7 @@ export default {
this.nowStation = val this.nowStation = val
}, },
completeStation() { completeStation() {
console.log(this.nowStation) console.log(this.form2)
this.assignModel = false this.assignModel = false
}, },
getInfo(e) { getInfo(e) {

@ -382,7 +382,8 @@ export default {
this.$store.dispatch('LogOut').then(() => { this.$store.dispatch('LogOut').then(() => {
location.href = '/login?isStationId=true'; location.href = '/login?isStationId=true';
}) })
}).catch(() => {}); }).catch(() => {
});
}, },
next1() { next1() {
this.nowNum1 += 1 this.nowNum1 += 1

Loading…
Cancel
Save