|
|
@ -158,7 +158,7 @@
|
|
|
|
<!-- 添加或修改线体管理对话框 -->
|
|
|
|
<!-- 添加或修改线体管理对话框 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="90px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="90px">
|
|
|
|
<el-row gutter="10">
|
|
|
|
<el-row :gutter="10">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="标准用人" prop="useMan">
|
|
|
|
<el-form-item label="标准用人" prop="useMan">
|
|
|
|
<el-input v-model="form.useMan" type="number" placeholder="请输入标准用人" />
|
|
|
|
<el-input v-model="form.useMan" type="number" placeholder="请输入标准用人" />
|
|
|
@ -175,14 +175,13 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<el-row gutter="10">
|
|
|
|
<el-row :gutter="10">
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-form-item
|
|
|
|
<el-form-item
|
|
|
|
v-for="(item, index) in processItems"
|
|
|
|
v-for="(item, index) in processItems"
|
|
|
|
:label="'第' + (index+1) +'道工艺'"
|
|
|
|
:label="'第' + (index+1) +'道工艺'"
|
|
|
|
:key="item.key"
|
|
|
|
:key="item.key"
|
|
|
|
:prop="'processItems.'+index+'.value'"
|
|
|
|
:prop="'processItems.'+index+'.value'"
|
|
|
|
:rules="{required: true, message: '请输入工艺', trigger: 'blur'}"
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-input v-model="item.value" style="width: 35%;" placeholder="请输入工艺"></el-input>
|
|
|
|
<el-input v-model="item.value" style="width: 35%;" placeholder="请输入工艺"></el-input>
|
|
|
|
<label for="dis-people" style="padding: 0 10px;">人员分配</label>
|
|
|
|
<label for="dis-people" style="padding: 0 10px;">人员分配</label>
|
|
|
@ -364,8 +363,10 @@ export default {
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
if (this.form.id != null) {
|
|
|
|
if (this.form.id != null) {
|
|
|
|
this.form.processList = this.form.processItems.map(item => item.value);
|
|
|
|
this.form.processItems?.forEach(item => {
|
|
|
|
this.form.qualityList = this.form.processItems.map(item => item.quality);
|
|
|
|
this.form.processList.push(item.value);
|
|
|
|
|
|
|
|
this.form.qualityList.push(item.quality);
|
|
|
|
|
|
|
|
});
|
|
|
|
updateMesLine(this.form).then((response) => {
|
|
|
|
updateMesLine(this.form).then((response) => {
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
this.open = false;
|
|
|
|
this.open = false;
|
|
|
|