Commit 4355c566 authored by 沈翠玲's avatar 沈翠玲

生产排产

parent f7664204
......@@ -481,7 +481,7 @@
<el-dialog
title="作业分派"
:visible.sync="jobAssignmentVisible"
width="600px"
width="700px"
append-to-body
>
<el-form :model="Assignform" ref="Assignform" size="small" :inline="true">
......@@ -507,7 +507,19 @@
</el-form>
<el-table :data="AssignList" >
<el-table-column type="index" label="任务号" width="80" align="center" />
<el-table-column label="排产数量" width="120" prop="quantity" />
<el-table-column label="排产数量" width="130" prop="quantity" align="center">
<template slot-scope="scope">
<el-input-number
style="width: 120px"
:step="1"
:min="0"
v-model="scope.row.quantity"
placeholder="请输入排产数量"
/>
</template>
</el-table-column>
<el-table-column label="工序名称" width="150" prop="processName" />
<el-table-column label="工作中心" width="150" prop="workstationName" />
<el-table-column label="工作单元" width="150" prop="workunitName" />
</el-table>
<div slot="footer" class="dialog-footer">
......@@ -727,6 +739,8 @@ export default {
let datas = Object.assign({}, this.selectedRows[0]);
datas.taskWorkunit = this.AssignList[0];
delete datas.proWorkorderList;
delete datas.taskWorkunit.workstationName;
delete datas.taskWorkunit.processName;
putProtaskSplit(datas).then((res) => {
// console.log(res, 'res333')
if (res.code === 200) {
......@@ -737,7 +751,7 @@ export default {
},
handleCheckJobAssignment() {
if(!this.Assignform.quantity || this.Assignform.quantity === 0) return this.$modal.msgError("分派任务数量不可为0")
this.AssignList = [JSON.parse(JSON.stringify(this.Assignform))]
this.AssignList = [{workstationName: this.selectedRows[0].workstationName, processName: this.selectedRows[0].processName, ...JSON.parse(JSON.stringify(this.Assignform))}]
},
handleSubmitSplit() {
let datas = Object.assign({}, this.splitform);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment