Merge branch 'xiaozy_产品列表' of http://121.196.213.68:3000/xiaozhiyong/refinery-admin into lixuan

This commit is contained in:
lixuan
2023-02-22 14:19:41 +08:00
35 changed files with 5799 additions and 133 deletions

View File

@@ -3,7 +3,7 @@
:title="controlWindows.addInfo.title"
direction="ltr"
size="40%"
:visible="controlWindows.create"
:visible.sync="controlWindows.create"
@opened="openDrawer"
:before-close="closeWindow"
>
@@ -226,13 +226,20 @@ export default {
}
},
openDrawer() {
this.form = {}
let { id } = this.controlWindows.addInfo;
if (id) {
//回显
this.form = JSON.parse(JSON.stringify(this.controlWindows.addInfo));
this.configAutocomplete.echoId = id;
this.configAutocomplete.echoName = this.form.refineryName;
console.log("this.form", this.form.floorPrice);
this.form.salePrice = this.form.salePrice2company
this.productData()
// this.productDataList(this.form.productName)
this.productRowData = this.productNameList.filter(
(item) => item.id == e
);
console.log("this.form", this.form,this.productRowData,this.productNameList);
}
},
submit() {
@@ -278,6 +285,7 @@ export default {
closeWindow() {
this.$emit("closeWindow");
this.form = {};
this.controlWindows.addInfo = {};
this.$refs.form.clearValidate();
this.controlWindows.create = false;
},