Commit 8d33d392 by chenwq

业务性质

1 parent 92036186
...@@ -679,7 +679,10 @@ export const applyStatus = [ ...@@ -679,7 +679,10 @@ export const applyStatus = [
export const businessNature = [ export const businessNature = [
{ confId: 1, confName: "直营渠道" }, { confId: 1, confName: "直营渠道" },
{ confId: 2, confName: "直营4S店" }, { confId: 2, confName: "直营4S店" },
{ confId: 3, confName: "合资收购" } // { confId: 3, confName: "合资收购" },
{ confId: 4, confName: "投资收购-利丰" },
{ confId: 5, confName: "投资收购-内蒙古" },
{ confId: 6, confName: "服务商投资" }
] ]
// 店面配置 业务性质 // 店面配置 业务性质
export const businessNatureShow = { export const businessNatureShow = {
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
prop="businessType"> prop="businessType">
<el-select v-model="form.businessType" <el-select v-model="form.businessType"
placeholder="请选择" placeholder="请选择"
clearable
class="el_select itd"> class="el_select itd">
<el-option v-for="item in businessNature" <el-option v-for="item in businessNature"
:key="item.confId" :key="item.confId"
...@@ -417,7 +418,7 @@ export default { ...@@ -417,7 +418,7 @@ export default {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
getShopSetting({ merchantId }).then(res => { getShopSetting({ merchantId }).then(res => {
// this.setInfo = res // this.setInfo = res
let areaSupervisionList = [] let areaSupervisionList = []
res.areaSupervisionList?.forEach(item => { res.areaSupervisionList?.forEach(item => {
const target = this.supervisionOptionsList.find(ele => ele.userId == item.userId) const target = this.supervisionOptionsList.find(ele => ele.userId == item.userId)
if(target) areaSupervisionList.push(item.userId) if(target) areaSupervisionList.push(item.userId)
...@@ -452,7 +453,7 @@ export default { ...@@ -452,7 +453,7 @@ export default {
resolve() resolve()
}) })
}) })
}, },
checkSelectOption() { checkSelectOption() {
...@@ -524,7 +525,7 @@ export default { ...@@ -524,7 +525,7 @@ export default {
} }
}, },
async merchantStaffByRoleList() { async merchantStaffByRoleList() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
merchantStaffByRoleList({ roleName: '区域督导' }).then((result) => { merchantStaffByRoleList({ roleName: '区域督导' }).then((result) => {
let copyResult = deepClone(result) let copyResult = deepClone(result)
this.supervisionOptionsList = copyResult.map((item) => { this.supervisionOptionsList = copyResult.map((item) => {
...@@ -541,7 +542,7 @@ export default { ...@@ -541,7 +542,7 @@ export default {
}, },
// 获取全部员工 过滤出服务商负责人可选数据 // 获取全部员工 过滤出服务商负责人可选数据
async findMerchantStaffList() { async findMerchantStaffList() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
findMerchantStaffList({ merchantId: -1 }).then(res => { findMerchantStaffList({ merchantId: -1 }).then(res => {
// 服务商负责人(根据角色名过滤) // 服务商负责人(根据角色名过滤)
let arr = [] let arr = []
...@@ -555,13 +556,13 @@ export default { ...@@ -555,13 +556,13 @@ export default {
resolve() resolve()
}) })
}) })
}, },
// 根据4s店或者园区店查询员工信息 // 根据4s店或者园区店查询员工信息
async getSelectList(info) { async getSelectList(info) {
const { merchantId } = info const { merchantId } = info
// 取园区店下所有员工 0422版本 刘世权更改 // 取园区店下所有员工 0422版本 刘世权更改
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
getResidentStaffList({ merchantId }).then((result) => { getResidentStaffList({ merchantId }).then((result) => {
this.residentManagerOptionsList = result.map((item) => { this.residentManagerOptionsList = result.map((item) => {
return { return {
...@@ -574,7 +575,7 @@ export default { ...@@ -574,7 +575,7 @@ export default {
resolve() resolve()
}) })
}) })
}, },
chooseYear() { chooseYear() {
this.listByMerchantIdAndYear(this.year) this.listByMerchantIdAndYear(this.year)
...@@ -582,7 +583,7 @@ export default { ...@@ -582,7 +583,7 @@ export default {
// 根据年份获取产值列表 // 根据年份获取产值列表
async listByMerchantIdAndYear(year) { async listByMerchantIdAndYear(year) {
const { merchantId } = this.info const { merchantId } = this.info
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
listByMerchantIdAndYear({ yearStr: year, merchantId: merchantId }).then((result) => { listByMerchantIdAndYear({ yearStr: year, merchantId: merchantId }).then((result) => {
this.outputValueListByYear = result || [] this.outputValueListByYear = result || []
if (this.outputValueListByYear && this.outputValueListByYear.length > 0) { if (this.outputValueListByYear && this.outputValueListByYear.length > 0) {
...@@ -798,7 +799,7 @@ export default { ...@@ -798,7 +799,7 @@ export default {
}, },
async findSellerMerchantStaffList() { async findSellerMerchantStaffList() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
findSellerMerchantStaffList({}).then((result) => { findSellerMerchantStaffList({}).then((result) => {
this.sellerMerchantStaffList = result.map((item) => { this.sellerMerchantStaffList = result.map((item) => {
return { return {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!