|
@@ -496,7 +496,7 @@
|
|
|
<el-option
|
|
|
v-for="item in productionOptions"
|
|
|
:key="item.productName"
|
|
|
- :label="item.productName"
|
|
|
+ :label="item.productName+'--'+item.productNo"
|
|
|
:value="item.productName"
|
|
|
>
|
|
|
<!-- <span class="discribe" style="float: left">{{
|
|
@@ -513,6 +513,11 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="productSpecifications" label="规格">
|
|
|
<template slot-scope="scope">
|
|
|
+ <el-form-item
|
|
|
+ :prop="'productSpecifications-' + scope.$index"
|
|
|
+ :name="'productSpecifications-' + scope.$index"
|
|
|
+ style="margin: 0px; padding: 0px"
|
|
|
+ >
|
|
|
<el-select
|
|
|
v-model="scope.row.productSpecifications"
|
|
|
@change="handleSpecificationsChange(scope.row)"
|
|
@@ -534,6 +539,7 @@
|
|
|
>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
+ </el-form-item>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="colours" width="150" label="色泽">
|
|
@@ -1543,7 +1549,7 @@ export default {
|
|
|
initTableValidate() {
|
|
|
let length = this.productionTableData.length;
|
|
|
for (let i = 0; i < length; i++) {
|
|
|
- this.rules["productNo-" + i] = [
|
|
|
+ this.rules["productName-" + i] = [
|
|
|
{
|
|
|
// required: true,
|
|
|
message: "请选择货品",
|
|
@@ -1551,6 +1557,14 @@ export default {
|
|
|
validator: this.validateTableField,
|
|
|
},
|
|
|
];
|
|
|
+ this.rules["productSpecifications-" + i] = [
|
|
|
+ {
|
|
|
+ // required: true,
|
|
|
+ message: "请选择规格",
|
|
|
+ trigger: "blur",
|
|
|
+ validator: this.validateTableField,
|
|
|
+ },
|
|
|
+ ];
|
|
|
this.rules["productNumber-" + i] = [
|
|
|
{
|
|
|
// required: true,
|