This commit is contained in:
shilixia 2021-11-10 15:14:31 +08:00
parent aeb36c2bea
commit ae49320b5f
2 changed files with 5 additions and 7 deletions

View File

@ -553,7 +553,7 @@
if (valid) { if (valid) {
const isEdit = this.dialogType === "edit"; const isEdit = this.dialogType === "edit";
if (isEdit) { if (isEdit) {
this.recordform.step=this.stepid; this.recordform.material=this.material;
this.recordform.type=2; this.recordform.type=2;
updaterecordform(this.recordform.id, this.recordform).then((res) => { updaterecordform(this.recordform.id, this.recordform).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
@ -563,7 +563,7 @@
} }
}); });
} else { } else {
this.recordform.step=this.stepid this.recordform.material=this.material;
this.recordform.type=2; this.recordform.type=2;
createrecordform(this.recordform).then((res) => { createrecordform(this.recordform).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {

View File

@ -11,7 +11,7 @@
<el-table <el-table
:data="subproductionplanList.results" :data="subproductionplanList.results"
border border
fit
stripe stripe
style="width: 100%" style="width: 100%"
height="300" height="300"
@ -74,10 +74,8 @@
<el-table-column label="生产进度"> <el-table-column label="生产进度">
<template slot-scope="scope">{{ scope.row.main_count_real }}/{{scope.row.main_count}}</template> <template slot-scope="scope">{{ scope.row.main_count_real }}/{{scope.row.main_count}}</template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间">
<template slot-scope="scope">{{ scope.row.create_time }}</template> <el-table-column align="center" label="操作" width="130px">
</el-table-column>
<el-table-column align="center" label="操作" width="220px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-link v-if="scope.row.state == 1" @click="handleNeed(scope)" <el-link v-if="scope.row.state == 1" @click="handleNeed(scope)"
>领料</el-link >领料</el-link