...
|
...
|
@@ -110,7 +110,7 @@ |
|
|
</Form-item>
|
|
|
|
|
|
<Form-item label="尺寸" prop="selectSize">
|
|
|
<CheckboxSize v-model="table.selectedSizes" :sort-id="product.smallSortId" @on-add="addSize" @on-remove="removeSize"></CheckboxSize>
|
|
|
<CheckboxSize v-model="product.selectSize" :sort-id="product.smallSortId" @on-add="addSize" @on-remove="removeSize"></CheckboxSize>
|
|
|
</Form-item>
|
|
|
|
|
|
<Row>
|
...
|
...
|
@@ -387,11 +387,11 @@ export default { |
|
|
salesPrice: [
|
|
|
{ required: true, trigger: 'blur', validator: validateMustLessRetailPrice},
|
|
|
],
|
|
|
selectSize: [
|
|
|
{ required: true, trigger: 'change', validator: validateColor},
|
|
|
],
|
|
|
selectColor: [
|
|
|
{ required: true, trigger: 'change', validator: validateSize},
|
|
|
{ required: true, trigger: 'NONE', validator: validateColor},
|
|
|
],
|
|
|
selectSize: [
|
|
|
{ required: true, trigger: 'NONE', validator: validateSize},
|
|
|
],
|
|
|
},
|
|
|
years: 2018
|
...
|
...
|
@@ -590,6 +590,8 @@ export default { |
|
|
this.refreshTable();
|
|
|
let changeSize = _.first(sizes);
|
|
|
|
|
|
this.table.selectedSizes.push(changeSize);
|
|
|
|
|
|
this.table.data.forEach((c) => {
|
|
|
this.addSizeData(c, changeSize);
|
|
|
});
|
...
|
...
|
@@ -613,6 +615,7 @@ export default { |
|
|
color.sizeId.splice(index, 1);
|
|
|
color.sizeCode.splice(index, 1);
|
|
|
color.operator.splice(index, 1);
|
|
|
this.table.selectedSizes.splice(index, 1);
|
|
|
}
|
|
|
},
|
|
|
addSizeData: function(color, findSize) {
|
...
|
...
|
@@ -755,22 +758,6 @@ export default { |
|
|
return this.product.maxSortName + '/' + this.product.middleSortName + '/' + this.product.smallSortName;
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
'table.selectedSizes': function(newVal, oldVal) {
|
|
|
if (newVal.length === 0) {
|
|
|
this.table.showValidateSize = true;
|
|
|
} else {
|
|
|
this.table.showValidateSize = false;
|
|
|
}
|
|
|
},
|
|
|
'table.selectedColors': function(newVal) {
|
|
|
if (newVal.length === 0) {
|
|
|
this.table.showValidateColor = true;
|
|
|
} else {
|
|
|
this.table.showValidateColor = false;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
CheckboxAge,
|
|
|
RadioSeason,
|
...
|
...
|
|