|
|
@@ -63,21 +63,19 @@
|
|
|
<el-input
|
|
|
type="number"
|
|
|
v-model.number="row.formingNum"
|
|
|
- @input="writeNum(row.formingNum,row)"
|
|
|
+ @input="writeNum(row.formingNum, row)"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="成型重量" prop="" width="120">
|
|
|
<template v-slot="{ row, $index }">
|
|
|
- <!-- :prop="`tableData.${$index}.formingWeight`" -->
|
|
|
- <el-form-item
|
|
|
- :rules="rule.formingWeight"
|
|
|
- >
|
|
|
+ <!-- :prop="`tableData.${$index}.formingWeight`" -->
|
|
|
+ <el-form-item :rules="rule.formingWeight">
|
|
|
<el-input
|
|
|
type="number"
|
|
|
v-model.number="row.formingWeight"
|
|
|
- readonly
|
|
|
+ readonly
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
@@ -281,9 +279,13 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- writeNum(val,row){
|
|
|
- this.$set(row,'formingWeight',val*Number(this.infoData.productUnitWeight))
|
|
|
- },
|
|
|
+ writeNum (val, row) {
|
|
|
+ this.$set(
|
|
|
+ row,
|
|
|
+ 'formingWeight',
|
|
|
+ val * Number(this.infoData.productUnitWeight)
|
|
|
+ );
|
|
|
+ },
|
|
|
// 发布
|
|
|
handleRelease () {
|
|
|
this.$refs.formRef.validate((value) => {
|
|
|
@@ -302,10 +304,14 @@
|
|
|
Object.assign({}, i, {
|
|
|
status: 4,
|
|
|
model: this.infoData.model,
|
|
|
- brandNo: this.infoData.brandNo
|
|
|
+ brandNo: this.infoData.brandNo,
|
|
|
+ categoryId: this.infoData.categoryId
|
|
|
})
|
|
|
),
|
|
|
- ...this.deleteList
|
|
|
+ ...this.deleteList.map((i) => ({
|
|
|
+ ...i,
|
|
|
+ categoryId: this.infoData.categoryId
|
|
|
+ }))
|
|
|
]);
|
|
|
if (data) {
|
|
|
this.$message.success('发布成功!');
|
|
|
@@ -342,7 +348,8 @@
|
|
|
row.executorName = executorName.substring(1);
|
|
|
},
|
|
|
addOrder () {
|
|
|
- if(this.tableData.length>0) return this.$message.warning('工单只能添加一条!');
|
|
|
+ if (this.tableData.length > 0)
|
|
|
+ return this.$message.warning('工单只能添加一条!');
|
|
|
this.$refs.equipmentDailogRef.open(1);
|
|
|
},
|
|
|
editOrder (row) {
|