|
@@ -57,15 +57,18 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :ms="12" :lg="12">
|
|
<el-col :xs="24" :ms="12" :lg="12">
|
|
- <el-form-item label="产品品类" prop="name">
|
|
|
|
- <el-select v-model="value" placeholder="请选择">
|
|
|
|
|
|
+ <el-form-item label="产品品类" prop="mainId">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="searchForm.mainId"
|
|
|
|
+ :disabled="dataList.length ? true : false"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ @change="handelStop"
|
|
|
|
+ >
|
|
<el-option
|
|
<el-option
|
|
- v-for="(item, index) in walletList"
|
|
|
|
- :key="index"
|
|
|
|
- :label="item.mainName"
|
|
|
|
- :value="item.mainId"
|
|
|
|
- >
|
|
|
|
- </el-option>
|
|
|
|
|
|
+ v-for="item in dictList"
|
|
|
|
+ :label="item.dictValue"
|
|
|
|
+ :value="item.sysDictId"
|
|
|
|
+ ></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -115,15 +118,25 @@
|
|
<h4 style="display: inline-block; margin-right: 20px">
|
|
<h4 style="display: inline-block; margin-right: 20px">
|
|
货品信息
|
|
货品信息
|
|
</h4>
|
|
</h4>
|
|
- <el-upload
|
|
|
|
|
|
+ <template>
|
|
|
|
+ <el-upload
|
|
|
|
+ v-show="fang == true"
|
|
|
|
+ class="import-btn"
|
|
|
|
+ :action="baseURL + 'student/import'"
|
|
|
|
+ :http-request="handleImport"
|
|
|
|
+ :file-list="importFileList"
|
|
|
|
+ :show-file-list="false"
|
|
|
|
+ >
|
|
|
|
+ <el-button size="small">导入货品价格表</el-button>
|
|
|
|
+ </el-upload>
|
|
|
|
+ </template>
|
|
|
|
+ <el-button
|
|
|
|
+ size="small"
|
|
class="import-btn"
|
|
class="import-btn"
|
|
- :action="baseURL + 'student/import'"
|
|
|
|
- :http-request="handleImport"
|
|
|
|
- :file-list="importFileList"
|
|
|
|
- :show-file-list="false"
|
|
|
|
|
|
+ v-show="fang == false"
|
|
|
|
+ @click="handelStop"
|
|
|
|
+ >导入货品价格表</el-button
|
|
>
|
|
>
|
|
- <el-button size="small">导入货品价格表</el-button>
|
|
|
|
- </el-upload>
|
|
|
|
<el-button size="small" @click="hanleDownloadFiles"
|
|
<el-button size="small" @click="hanleDownloadFiles"
|
|
>下载模板</el-button
|
|
>下载模板</el-button
|
|
>
|
|
>
|
|
@@ -141,8 +154,7 @@
|
|
stripe
|
|
stripe
|
|
>
|
|
>
|
|
<el-table-column
|
|
<el-table-column
|
|
- fixed
|
|
|
|
- prop="num"
|
|
|
|
|
|
+ type="index"
|
|
label="序号"
|
|
label="序号"
|
|
width="50"
|
|
width="50"
|
|
align="center"
|
|
align="center"
|
|
@@ -169,7 +181,6 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
prop="saleTypeCode"
|
|
prop="saleTypeCode"
|
|
label="销售类型编码"
|
|
label="销售类型编码"
|
|
- width="500"
|
|
|
|
align="center"
|
|
align="center"
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -179,6 +190,8 @@
|
|
align="center"
|
|
align="center"
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column prop="discAmount" label="格力折扣" align="center">
|
|
|
|
+ </el-table-column>
|
|
<el-table-column prop="price" label="单价" align="center">
|
|
<el-table-column prop="price" label="单价" align="center">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="支付钱包" align="center">
|
|
<el-table-column label="支付钱包" align="center">
|
|
@@ -268,7 +281,7 @@
|
|
align="center"
|
|
align="center"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <!-- <el-button
|
|
|
|
|
|
+ <!-- <el-button
|
|
type="text"
|
|
type="text"
|
|
size="small"
|
|
size="small"
|
|
@click="isCondition=1"
|
|
@click="isCondition=1"
|
|
@@ -317,6 +330,7 @@ import {
|
|
getConditionList,
|
|
getConditionList,
|
|
deleteMaterialPolicy,
|
|
deleteMaterialPolicy,
|
|
} from "@/api/policy_list";
|
|
} from "@/api/policy_list";
|
|
|
|
+import { getDictList } from "@/api/common";
|
|
import { downloadFiles, handleImport } from "@/utils/util";
|
|
import { downloadFiles, handleImport } from "@/utils/util";
|
|
import Transfer from "./Transfer";
|
|
import Transfer from "./Transfer";
|
|
import AddCondition from "./AddCondition";
|
|
import AddCondition from "./AddCondition";
|
|
@@ -326,6 +340,7 @@ export default {
|
|
mixins: [Minxin],
|
|
mixins: [Minxin],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ fang: false,
|
|
input: "",
|
|
input: "",
|
|
baseURL: "",
|
|
baseURL: "",
|
|
isCondition: 0,
|
|
isCondition: 0,
|
|
@@ -336,6 +351,8 @@ export default {
|
|
remark: "",
|
|
remark: "",
|
|
startTime: "",
|
|
startTime: "",
|
|
title: "",
|
|
title: "",
|
|
|
|
+ mainId: "",
|
|
|
|
+ mainName: "",
|
|
type: "",
|
|
type: "",
|
|
},
|
|
},
|
|
listLoading: false,
|
|
listLoading: false,
|
|
@@ -362,6 +379,7 @@ export default {
|
|
},
|
|
},
|
|
],
|
|
],
|
|
conditionList: [],
|
|
conditionList: [],
|
|
|
|
+ dictList: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: mapState({
|
|
computed: mapState({
|
|
@@ -381,11 +399,10 @@ export default {
|
|
this.searchForm.code = this.comCode;
|
|
this.searchForm.code = this.comCode;
|
|
},
|
|
},
|
|
updated() {
|
|
updated() {
|
|
- console.log(this.comCode, "kkjk");
|
|
|
|
|
|
+ console.log(this.comCode, "kkjk");
|
|
this.searchForm.code = this.comCode;
|
|
this.searchForm.code = this.comCode;
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
-
|
|
|
|
this.getCommonApi();
|
|
this.getCommonApi();
|
|
if (this.$parent.isFlag) {
|
|
if (this.$parent.isFlag) {
|
|
// this.handletwoList()
|
|
// this.handletwoList()
|
|
@@ -400,7 +417,10 @@ export default {
|
|
handleCondition(id, index) {
|
|
handleCondition(id, index) {
|
|
deleteCondition({ id }).then((res) => {
|
|
deleteCondition({ id }).then((res) => {
|
|
this.conditionList.splice(index, 1);
|
|
this.conditionList.splice(index, 1);
|
|
- Object.assign(this.$children[9].$data,this.$children[9].$options.data())
|
|
|
|
|
|
+ Object.assign(
|
|
|
|
+ this.$children[9].$data,
|
|
|
|
+ this.$children[9].$options.data()
|
|
|
|
+ );
|
|
this.$successMsg("删除成功");
|
|
this.$successMsg("删除成功");
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -430,6 +450,9 @@ export default {
|
|
getWalletList(walletParams).then((res) => {
|
|
getWalletList(walletParams).then((res) => {
|
|
this.walletList = res.data.records;
|
|
this.walletList = res.data.records;
|
|
});
|
|
});
|
|
|
|
+ getDictList({ sysDictEnum: "PRODUCT_TYPE" }).then((res) => {
|
|
|
|
+ this.dictList = res.data;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
handleSubmitCon() {
|
|
handleSubmitCon() {
|
|
const params = {
|
|
const params = {
|
|
@@ -440,6 +463,13 @@ export default {
|
|
this.conditionList = res.data;
|
|
this.conditionList = res.data;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ handelStop() {
|
|
|
|
+ if (this.searchForm.mainId) {
|
|
|
|
+ this.fang = true;
|
|
|
|
+ } else {
|
|
|
|
+ this.$errorMsg("请选择产品品类");
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 导入
|
|
// 导入
|
|
async handleImport(param) {
|
|
async handleImport(param) {
|
|
this.importLoading = true;
|
|
this.importLoading = true;
|
|
@@ -491,9 +521,6 @@ export default {
|
|
},
|
|
},
|
|
// 提交审核
|
|
// 提交审核
|
|
handleAddPolicy(policyCustomers) {
|
|
handleAddPolicy(policyCustomers) {
|
|
- // console.log(this.fileList,'上传图片');
|
|
|
|
- // return
|
|
|
|
- console.log(policyCustomers, "选择的经销商");
|
|
|
|
if (policyCustomers.length) {
|
|
if (policyCustomers.length) {
|
|
var arr = [];
|
|
var arr = [];
|
|
|
|
|
|
@@ -510,15 +537,18 @@ export default {
|
|
remark: "",
|
|
remark: "",
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
+ this.dictList.forEach((k) => {
|
|
|
|
+ if (k.mainId == this.searchForm.sysDictId) {
|
|
|
|
+ this.searchForm.mainName = k.dictValue;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
const params = {
|
|
const params = {
|
|
adminCompanyId: "",
|
|
adminCompanyId: "",
|
|
code: "",
|
|
code: "",
|
|
customerCount: 0,
|
|
customerCount: 0,
|
|
-
|
|
|
|
examineBy: "",
|
|
examineBy: "",
|
|
examineRemark: "",
|
|
examineRemark: "",
|
|
examineStatus: "",
|
|
examineStatus: "",
|
|
-
|
|
|
|
id: "",
|
|
id: "",
|
|
imgSrc: this.fileList.length ? this.fileList[0].url : "",
|
|
imgSrc: this.fileList.length ? this.fileList[0].url : "",
|
|
policyCustomers: arr,
|
|
policyCustomers: arr,
|