|
@@ -18,7 +18,7 @@
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
|
|
|
+ <!-- <el-col :xs="24" :sm="12" :lg="6">
|
|
<el-form-item label="产品大类" prop="mainId">
|
|
<el-form-item label="产品大类" prop="mainId">
|
|
<el-select
|
|
<el-select
|
|
class="selectStyle"
|
|
class="selectStyle"
|
|
@@ -35,9 +35,9 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- </el-col>
|
|
|
|
|
|
+ </el-col> -->
|
|
|
|
|
|
- <el-col :xs="24" :sm="24" :lg="12" class="tr">
|
|
|
|
|
|
+ <el-col :xs="24" :sm="24" :lg="18" class="tr">
|
|
<el-form-item label="">
|
|
<el-form-item label="">
|
|
<el-button size="small" @click="clearFn">清空</el-button>
|
|
<el-button size="small" @click="clearFn">清空</el-button>
|
|
<el-button size="small" type="primary" @click="searchFn"
|
|
<el-button size="small" type="primary" @click="searchFn"
|
|
@@ -83,13 +83,13 @@
|
|
min-width="160"
|
|
min-width="160"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column
|
|
|
|
|
|
+ <!-- <el-table-column
|
|
align="center"
|
|
align="center"
|
|
label="对应产品大类"
|
|
label="对应产品大类"
|
|
prop="mainName"
|
|
prop="mainName"
|
|
min-width="160"
|
|
min-width="160"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
- ></el-table-column>
|
|
|
|
|
|
+ ></el-table-column> -->
|
|
|
|
|
|
<el-table-column
|
|
<el-table-column
|
|
align="center"
|
|
align="center"
|
|
@@ -126,7 +126,7 @@
|
|
<el-form-item label="编码" prop="customerId">
|
|
<el-form-item label="编码" prop="customerId">
|
|
<el-input disabled v-model="addForm.number"></el-input>
|
|
<el-input disabled v-model="addForm.number"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="对应产品大类" prop="customerId">
|
|
|
|
|
|
+ <!-- <el-form-item label="对应产品大类" prop="customerId">
|
|
<el-select
|
|
<el-select
|
|
class="selectStyle"
|
|
class="selectStyle"
|
|
v-model="addForm.mainId"
|
|
v-model="addForm.mainId"
|
|
@@ -140,7 +140,7 @@
|
|
>
|
|
>
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item> -->
|
|
<el-form-item label="折让钱包" prop="customerId">
|
|
<el-form-item label="折让钱包" prop="customerId">
|
|
<el-radio-group v-model="addForm.isZr">
|
|
<el-radio-group v-model="addForm.isZr">
|
|
<el-radio :label="true">是</el-radio>
|
|
<el-radio :label="true">是</el-radio>
|
|
@@ -180,13 +180,13 @@ export default {
|
|
listTotal: 0, // 列表总数
|
|
listTotal: 0, // 列表总数
|
|
dataList: [],
|
|
dataList: [],
|
|
dialogForm: false,
|
|
dialogForm: false,
|
|
- categoryList: [],
|
|
|
|
|
|
+ // categoryList: [],
|
|
addForm: {
|
|
addForm: {
|
|
id: "",
|
|
id: "",
|
|
isRebate: null,
|
|
isRebate: null,
|
|
isZr: null,
|
|
isZr: null,
|
|
- mainId: "",
|
|
|
|
- mainName: "",
|
|
|
|
|
|
+ // mainId: "",
|
|
|
|
+ // mainName: "",
|
|
name: "",
|
|
name: "",
|
|
number: "",
|
|
number: "",
|
|
},
|
|
},
|
|
@@ -195,28 +195,28 @@ export default {
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.getDataList();
|
|
this.getDataList();
|
|
- this.getCategoryList();
|
|
|
|
|
|
+ // this.getCategoryList();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//确定
|
|
//确定
|
|
async btnOK() {
|
|
async btnOK() {
|
|
console.log(this.addForm);
|
|
console.log(this.addForm);
|
|
- console.log(this.categoryList);
|
|
|
|
- const res = this.categoryList.filter(
|
|
|
|
- (v) => v.productCategoryNumber == this.addForm.mainId
|
|
|
|
- );
|
|
|
|
|
|
+ // console.log(this.categoryList);
|
|
|
|
+ // const res = this.categoryList.filter(
|
|
|
|
+ // (v) => v.productCategoryNumber == this.addForm.mainId
|
|
|
|
+ // );
|
|
|
|
|
|
let data = {
|
|
let data = {
|
|
id: this.walletId,
|
|
id: this.walletId,
|
|
isRebate: this.addForm.isRebate,
|
|
isRebate: this.addForm.isRebate,
|
|
isZr: this.addForm.isZr,
|
|
isZr: this.addForm.isZr,
|
|
- mainId: this.addForm.mainId,
|
|
|
|
- mainName: res[0].productCategoryName,
|
|
|
|
|
|
+ // mainId: this.addForm.mainId,
|
|
|
|
+ // mainName: res[0].productCategoryName,
|
|
};
|
|
};
|
|
await getWalletBiandMain(data);
|
|
await getWalletBiandMain(data);
|
|
this.addForm.isRebate = null;
|
|
this.addForm.isRebate = null;
|
|
this.addForm.isZr = null;
|
|
this.addForm.isZr = null;
|
|
- this.addForm.mainId = "";
|
|
|
|
|
|
+ // this.addForm.mainId = "";
|
|
this.getDataList();
|
|
this.getDataList();
|
|
this.$message.success("设置成功");
|
|
this.$message.success("设置成功");
|
|
this.dialogForm = false;
|
|
this.dialogForm = false;
|
|
@@ -236,22 +236,21 @@ export default {
|
|
searchFn() {
|
|
searchFn() {
|
|
this.getDataList({ ...this.searchForm });
|
|
this.getDataList({ ...this.searchForm });
|
|
},
|
|
},
|
|
- //获取产品品类列表
|
|
|
|
- async getCategoryList() {
|
|
|
|
- const res = await getProductCategory();
|
|
|
|
- this.categoryList = res.data;
|
|
|
|
- },
|
|
|
|
|
|
+ // //获取产品品类列表
|
|
|
|
+ // async getCategoryList() {
|
|
|
|
+ // const res = await getProductCategory();
|
|
|
|
+ // this.categoryList = res.data;
|
|
|
|
+ // },
|
|
//设置产品大类
|
|
//设置产品大类
|
|
async setFn(value) {
|
|
async setFn(value) {
|
|
- console.log(value);
|
|
|
|
this.walletId = value.id;
|
|
this.walletId = value.id;
|
|
// this.addForm.name = value.name;
|
|
// this.addForm.name = value.name;
|
|
// this.addForm.number = value.number;
|
|
// this.addForm.number = value.number;
|
|
let res = await getWalletDetail({ walletId: value.id });
|
|
let res = await getWalletDetail({ walletId: value.id });
|
|
- console.log(res);
|
|
|
|
|
|
+ // console.log(res);
|
|
this.addForm.name = res.data.name;
|
|
this.addForm.name = res.data.name;
|
|
this.addForm.number = res.data.number;
|
|
this.addForm.number = res.data.number;
|
|
- this.addForm.mainId = res.data.mainId;
|
|
|
|
|
|
+ // this.addForm.mainId = res.data.mainId;
|
|
this.addForm.isRebate = res.data.isRebate;
|
|
this.addForm.isRebate = res.data.isRebate;
|
|
this.addForm.isZr = res.data.isZr;
|
|
this.addForm.isZr = res.data.isZr;
|
|
|
|
|