修改
This commit is contained in:
parent
29584f6da1
commit
65201aa7d8
@ -129,7 +129,10 @@ export default {
|
||||
{ required: true, message: "请输入商品度量单位", trigger: "blur" },
|
||||
],
|
||||
goodsPictureUrl: [
|
||||
{ required: true, message: "请输入选择图片", trigger: "blur" },
|
||||
{ required: true, message: "请选择图片", trigger: "blur" },
|
||||
],
|
||||
sort: [
|
||||
{ required: true, message: "请输入商品顺序", trigger: "blur" },
|
||||
],
|
||||
},
|
||||
};
|
||||
@ -193,7 +196,7 @@ export default {
|
||||
attributePitureUrl: "",
|
||||
goodsPrice: "",
|
||||
goodsStock: "",
|
||||
sort: "",
|
||||
sort: null,
|
||||
ids: this.ids,
|
||||
};
|
||||
this.goodDetailsLists.push(obj);
|
||||
@ -234,7 +237,7 @@ export default {
|
||||
});
|
||||
}
|
||||
if (this.imgsurl.pictureUrlList.length > 0) {
|
||||
updatePicture(this.imgsurl).then((res) => { });
|
||||
updatePicture(this.imgsurl).then((res) => {});
|
||||
}
|
||||
this.imgsurl = { pictureUrlList: [] };
|
||||
this.open = false;
|
||||
@ -246,9 +249,9 @@ export default {
|
||||
attributePitureUrl: "",
|
||||
goodsPrice: "",
|
||||
goodsStock: "",
|
||||
sort: "",
|
||||
},],
|
||||
},];
|
||||
sort: null,
|
||||
}, ],
|
||||
}, ];
|
||||
},
|
||||
|
||||
handleQuery2() {
|
||||
@ -298,9 +301,9 @@ export default {
|
||||
attributePitureUrl: "",
|
||||
goodsPrice: "",
|
||||
goodsStock: "",
|
||||
sort: "",
|
||||
sort: null,
|
||||
ids: 9999999,
|
||||
},];
|
||||
}, ];
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
@ -341,9 +344,9 @@ export default {
|
||||
attributePitureUrl: "",
|
||||
goodsPrice: "",
|
||||
goodsStock: "",
|
||||
sort: "",
|
||||
sort: null,
|
||||
ids: 9999999,
|
||||
},];
|
||||
}, ];
|
||||
this.open = true;
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
@ -430,7 +433,7 @@ export default {
|
||||
// console.log('this.OrderDetailsList :>> ', this.OrderDetailsList);
|
||||
});
|
||||
})
|
||||
.catch(() => { });
|
||||
.catch(() => {});
|
||||
},
|
||||
// handleDelete(row) {
|
||||
// const ids = row.id || this.ids;
|
||||
|
||||
@ -267,6 +267,13 @@
|
||||
style="width: 210px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="商品顺序" prop="goodsUnit">
|
||||
<el-input
|
||||
v-model.number="form.sort"
|
||||
placeholder="值越小排名越靠前"
|
||||
style="width: 210px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="商品图片" prop="goodsPictureUrl">
|
||||
<stationAcatar
|
||||
@imgUrl="imgUrl"
|
||||
@ -309,11 +316,12 @@
|
||||
></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="显示顺序" align="center">
|
||||
<el-table-column label="商品属性顺序" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model="scope.row.attributeDetailsSort"
|
||||
v-model.number="scope.row.attributeDetailsSort"
|
||||
maxlength="10"
|
||||
placeholder="值越小排名越靠前"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
></el-input>
|
||||
</template>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user