Commit eb93be4d by 张立顺

Merge branch 'SAAS+V5.8.0' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into SAAS+V5.8.0
2 parents e0550492 c3bbcc3e
Showing 42 changed files with 1266 additions and 595 deletions
...@@ -8,6 +8,11 @@ node_modules ...@@ -8,6 +8,11 @@ node_modules
.cursor .cursor
.trae .trae
# 本地环境文件不上传
.env.local
.env.*.local
# Log files # Log files
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
......
...@@ -32,4 +32,4 @@ ...@@ -32,4 +32,4 @@
"javascript.suggest.autoImports": true, // 确保这个是 true "javascript.suggest.autoImports": true, // 确保这个是 true
"vue.updateImportsOnFileMove.enabled": true, "vue.updateImportsOnFileMove.enabled": true,
"i18n-ally.sourceLanguage": "zh-chs" "i18n-ally.sourceLanguage": "zh-chs"
}
\ No newline at end of file \ No newline at end of file
}
...@@ -9,76 +9,112 @@ ...@@ -9,76 +9,112 @@
import request from "./request"; import request from "./request";
// 分页查询潜客数据 // 分页查询潜客数据
export function potentialCustomersPage(data) { export function potentialCustomersPage (data) {
data.method = "dj.api.smartcarlife.sale.potentialCustomers.page"; data.method = "dj.api.smartcarlife.sale.potentialCustomers.page";
return request(data, "post"); return request(data, "post");
} }
// 潜客详情数据 // 潜客详情数据
export function potentialCustomersDetail(data) { export function potentialCustomersDetail (data) {
data.method = "dj.api.smartcarlife.sale.potentialCustomers.detail"; data.method = "dj.api.smartcarlife.sale.potentialCustomers.detail";
return request(data, "post"); return request(data, "post");
} }
// 首次绑定/重新绑定4S店 // 首次绑定/重新绑定4S店
export function bind4SStore(data) { export function bind4SStore (data) {
data.method = "dj.api.smartcarlife.sale.potentialCustomers.bind"; data.method = "dj.api.smartcarlife.sale.potentialCustomers.bind";
return request(data, "post"); return request(data, "post");
} }
// 潜客信息核验提交(与新增商户字段一致;method 待后端确认后替换) // 潜客信息核验提交(与新增商户字段一致;method 待后端确认后替换)
export function potentialCustomersInfoVerify(data) { export function potentialCustomersInfoVerify (data) {
data.method = 'dj.api.smartcarlife.sale.potentialCustomers.infoVerify' data.method = 'dj.api.smartcarlife.sale.potentialCustomers.infoVerify'
return request(data, "post") return request(data, "post")
} }
// 分页查询大区 // 分页查询大区
export function regionPage(data) { export function regionPage (data) {
data.method = "dj.api.smartcarlife.sale.region.page"; data.method = "dj.api.smartcarlife.sale.region.page";
return request(data, "post"); return request(data, "post");
} }
// 获取大区人员 // 获取大区人员
export function regionUserList(data) { export function regionUserList (data) {
data.method = "dj.api.smartcarlife.sale.region.userList"; data.method = "dj.api.smartcarlife.sale.region.userList";
return request(data, "post"); return request(data, "post");
} }
// 更新大区人员 // 更新大区人员
export function updateRegionUser(data) { export function updateRegionUser (data) {
data.method = "dj.api.smartcarlife.sale.region.updateRegionUser"; data.method = "dj.api.smartcarlife.sale.region.updateRegionUser";
return request(data, "post"); return request(data, "post");
} }
// 区域运营模块接口 // 区域运营模块接口
// 区域运营管理人员列表 // 区域运营管理人员列表
export function organizationUserList(data) { export function organizationUserList (data) {
data.method = "dj.api.script.province.organization.list"; data.method = "dj.api.script.province.organization.list";
return request(data, "post"); return request(data, "post");
} }
// 区域运营管理编辑 // 区域运营管理编辑
export function organizationUserUpdate(data) { export function organizationUserUpdate (data) {
data.method = "dj.api.script.province.organization.upd"; data.method = "dj.api.script.province.organization.upd";
return request(data, "post"); return request(data, "post");
} }
// 关店管理列表/rop-dj-smartcarlife/router/dj.api.smartcarlife.sale.closeStore.page // 关店管理列表/rop-dj-smartcarlife/router/dj.api.smartcarlife.sale.closeStore.page
export function closeStorePage(data) { export function closeStorePage (data) {
data.method = "dj.api.smartcarlife.sale.closeStore.page"; data.method = "dj.api.smartcarlife.sale.closeStore.page";
return request(data, "post"); return request(data, "post");
} }
//是否关店 //是否关店
export function closeStoreConfirm(data) { export function closeStoreConfirm (data) {
data.method = "dj.api.smartcarlife.sale.closeStore.confirm"; data.method = "dj.api.smartcarlife.sale.closeStore.confirm";
return request(data, "post"); return request(data, "post");
} }
// 关店详情 // 关店详情
export function closeStoreDetail(data) { export function closeStoreDetail (data) {
data.method = "dj.api.smartcarlife.sale.closeStore.detail"; data.method = "dj.api.smartcarlife.sale.closeStore.detail";
return request(data, "post"); return request(data, "post");
} }
/**
export function storeApprovePageQuery(data) { * 分页查询门店上架审批单
*/
export function storeApprovePageQuery (data) {
data.method = "dj.api.oaapproval.store.approve.pageQuery"; data.method = "dj.api.oaapproval.store.approve.pageQuery";
return request(data, "post"); return request(data, "post");
} }
/**
*创建门店上架审批单(草稿)
*/
export function storeApproveCreateDraft (data) {
data.method = "dj.api.oaapproval.store.approve.createDraft";
return request(data, "post");
}
/**
*查询门店上架审批单详情
*/
export function storeApproveQueryDetail (data) {
data.method = "dj.api.oaapproval.store.approve.queryDetail";
return request(data, "post");
}
/**
* 编辑门店上架审批单
*/
export function storeApproveEditDraft (data) {
data.method = "dj.api.oaapproval.store.approve.editDraft";
return request(data, "post");
}
/**
*
* 重新发起审批单
*/
export function storeApproveReSubmit (data) {
data.method = "dj.api.oaapproval.store.approve.reSubmit";
return request(data, "post");
}
...@@ -39,7 +39,7 @@ export const priceUnitTypeList = [ ...@@ -39,7 +39,7 @@ export const priceUnitTypeList = [
{ value: 19, label: "位" }, { value: 19, label: "位" },
{ value: 20, label: "页" }, { value: 20, label: "页" },
{ value: 21, label: "张" }, { value: 21, label: "张" },
{ value: 22, label: "车" } { value: 22, label: "车" },
]; ];
/** /**
...@@ -427,8 +427,8 @@ export function limitPrice( ...@@ -427,8 +427,8 @@ export function limitPrice(
}; };
regRule = regRule || "priceReg"; regRule = regRule || "priceReg";
if ( if (
newValue && newValue
((minValue && newValue < minValue) || (maxValue && newValue > maxValue)) && ((minValue && newValue < minValue) || (maxValue && newValue > maxValue))
) { ) {
return oldValue || ""; return oldValue || "";
} }
...@@ -437,18 +437,18 @@ export function limitPrice( ...@@ -437,18 +437,18 @@ export function limitPrice(
newValue = newValue + ""; newValue = newValue + "";
let interger = newValue.split(".")[0]; let interger = newValue.split(".")[0];
let point = newValue.split(".")[1]; let point = newValue.split(".")[1];
let intergerNum = let intergerNum
interger.length > intergerDigit = interger.length > intergerDigit
? oldValue.split(".")[0] ? oldValue.split(".")[0]
: interger; : interger;
let pointNum = let pointNum
point.length > pointDigit ? point.slice(0, pointDigit) : point; = point.length > pointDigit ? point.slice(0, pointDigit) : point;
newValue = pointDigit newValue = pointDigit
? intergerNum + "." + pointNum ? intergerNum + "." + pointNum
: newValue.split(".")[0]; : newValue.split(".")[0];
} else { } else {
newValue = newValue
newValue.length > intergerDigit = newValue.length > intergerDigit
? oldValue.slice(0, intergerDigit) ? oldValue.slice(0, intergerDigit)
: newValue; : newValue;
} }
...@@ -481,13 +481,13 @@ export const appointDays = 35; ...@@ -481,13 +481,13 @@ export const appointDays = 35;
export const afterTodayOptions = { export const afterTodayOptions = {
disabledDate(date) { disabledDate(date) {
if ( if (
date < new Date(new Date().toLocaleDateString()) || date < new Date(new Date().toLocaleDateString())
date > || date
new Date( > new Date(
new Date().setDate( new Date().setDate(
new Date().getDate() + (appointDays - 1), new Date().getDate() + (appointDays - 1),
), ),
) )
) { ) {
return true; return true;
} }
...@@ -549,8 +549,8 @@ export const sceneList = { ...@@ -549,8 +549,8 @@ export const sceneList = {
}; };
// 新场景 // 新场景
export const newSceneList = { export const newSceneList = {
1: "权益类", 0: "权益类",
2: "轻改类" 1: "轻改类",
}; };
// 导流方下拉选项对应 // 导流方下拉选项对应
export const attrToVal = [ export const attrToVal = [
...@@ -1111,9 +1111,9 @@ export const businessOptShowText = { ...@@ -1111,9 +1111,9 @@ export const businessOptShowText = {
}; };
// 预警管理 所属业务 显示文字 // 预警管理 所属业务 显示文字
export const orderBusinessType = { export const orderBusinessType = {
0: "轻改", "0": "轻改",
1: "权益", "1": "权益",
2: "延保", "2": "延保",
"-1": "其他", "-1": "其他",
}; };
...@@ -1679,14 +1679,14 @@ export const evaluationSourceOpt = [ ...@@ -1679,14 +1679,14 @@ export const evaluationSourceOpt = [
{ confId: 4, confValue: "车况生成" }, { confId: 4, confValue: "车况生成" },
]; ];
export const evaluationStatusOptMap = { export const evaluationStatusOptMap = {
10: "#FDB757", "10": "#FDB757",
20: "#2CCA74", "20": "#2CCA74",
30: "#2CCA74", "30": "#2CCA74",
31: "#2CCA74", "31": "#2CCA74",
32: "#2CCA74", "32": "#2CCA74",
40: "#2CCA74", "40": "#2CCA74",
50: "#2CCA74", "50": "#2CCA74",
100: "#8C8C8C", "100": "#8C8C8C",
"-1": "#EB4E4E", "-1": "#EB4E4E",
}; };
// 合同类型 // 合同类型
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<div class="glsk-form-dialog"> <div class="glsk-form-dialog">
<d2-dialog :append-to-body="appendToBody" <d2-dialog :append-to-body="appendToBody"
:btn-ok-label="dialogConfig.okText" :btn-ok-label="dialogConfig.okText"
:noCancel="dialogConfig.hideClose"
:is-visible="selectVisible" :is-visible="selectVisible"
:title="dialogConfig.title" :title="dialogConfig.title"
:width="dialogWidth" :width="dialogWidth"
...@@ -56,6 +57,7 @@ export default { ...@@ -56,6 +57,7 @@ export default {
return { return {
title: "提示", title: "提示",
okText: "确定", okText: "确定",
hideClose: false,
}; };
}, },
}, },
......
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
@close="onDialogClose" @close="onDialogClose"
> >
<div v-loading="loading" class="dialog-body-inner"> <div v-loading="loading" class="dialog-body-inner">
<div v-if="$scopedSlots.storeDetail">
<slot name="storeDetail" :customer-row="customerRow" />
</div>
<glsx-combi-form <glsx-combi-form
ref="editFormRef" ref="editFormRef"
class="info-verify-form" class="info-verify-form"
...@@ -82,7 +85,7 @@ ...@@ -82,7 +85,7 @@
import { deepClone } from "@/common/util"; import { deepClone } from "@/common/util";
import ProvinceCity from "@/components/province-city/index.vue"; import ProvinceCity from "@/components/province-city/index.vue";
import SelectBrand from "@/components/SelectBrand/index.vue"; import SelectBrand from "@/components/SelectBrand/index.vue";
import merchantVerifyFormMixin from "../mixins/merchantVerifyFormMixin"; import merchantVerifyFormMixin from "./merchantVerifyFormMixin";
export default { export default {
name: "InfoVerifyMerchantDialog", name: "InfoVerifyMerchantDialog",
...@@ -104,6 +107,11 @@ export default { ...@@ -104,6 +107,11 @@ export default {
type: Object, type: Object,
default: null, default: null,
}, },
/** 商户类型选项(字典 label),如客户信息核验仅 4S:['4S店'];园区店/服务商新增:['园区店'];不传则三种都展示 */
merchantTypeLabels: {
type: Array,
default: null,
},
}, },
computed: { computed: {
dialogVisible: { dialogVisible: {
......
...@@ -49,6 +49,7 @@ function buildEditFormData(vm) { ...@@ -49,6 +49,7 @@ function buildEditFormData(vm) {
optionLabel: "confLabel", optionLabel: "confLabel",
optionsName: "merchantTypeList", optionsName: "merchantTypeList",
optionList: [], optionList: [],
isHide: false,
style: DIALOG_FULL, style: DIALOG_FULL,
handleRadioChange: () => {}, handleRadioChange: () => {},
}, },
...@@ -286,6 +287,10 @@ export default { ...@@ -286,6 +287,10 @@ export default {
this.editFormData[this.findIdx("parentId")].isHide = false; this.editFormData[this.findIdx("parentId")].isHide = false;
this.editFormData[this.findIdx("channelId")].isHide = false; this.editFormData[this.findIdx("channelId")].isHide = false;
this.editFormData[this.findIdx("merchantModel")].isHide = false; this.editFormData[this.findIdx("merchantModel")].isHide = false;
const accIdx = this.findIdx("accounttypeId");
if (accIdx >= 0) {
this.$set(this.editFormData[accIdx], "isHide", false);
}
this.formRules.parentId[0].required = true; this.formRules.parentId[0].required = true;
this.formRules.channelId[0].required = true; this.formRules.channelId[0].required = true;
this.formRules.merchantModel[0].required = true; this.formRules.merchantModel[0].required = true;
...@@ -388,9 +393,12 @@ export default { ...@@ -388,9 +393,12 @@ export default {
async getMerchantType() { async getMerchantType() {
const params = { dictType: "account_type" }; const params = { dictType: "account_type" };
const res = await getMerchantTypeApi(params); const res = await getMerchantTypeApi(params);
const list = ["4S店", "园区店", "服务商"]; const labelOrder =
this.merchantTypeLabels && this.merchantTypeLabels.length
? this.merchantTypeLabels
: ["4S店", "园区店", "服务商"];
this.baseData.merchantTypeList = []; this.baseData.merchantTypeList = [];
list.forEach((item) => { labelOrder.forEach((item) => {
const obj = res.find((k) => k.dictLabel == item); const obj = res.find((k) => k.dictLabel == item);
if (obj) { if (obj) {
this.baseData.merchantTypeList.push({ this.baseData.merchantTypeList.push({
...@@ -399,7 +407,14 @@ export default { ...@@ -399,7 +407,14 @@ export default {
}); });
} }
}); });
this.editFormData[0].optionList = this.baseData.merchantTypeList; const accIdx = this.findIdx("accounttypeId");
this.editFormData[accIdx].optionList = this.baseData.merchantTypeList;
if (this.baseData.merchantTypeList.length === 1) {
this.editData.accounttypeId = this.baseData.merchantTypeList[0].confId;
this.$set(this.editFormData[accIdx], "isHide", true);
} else {
this.$set(this.editFormData[accIdx], "isHide", false);
}
}, },
async getAccountLevel() { async getAccountLevel() {
const params = { dictType: "account_level" }; const params = { dictType: "account_level" };
......
...@@ -166,6 +166,7 @@ ...@@ -166,6 +166,7 @@
<script> <script>
import { getBillTmplAdapter, getMetaTmpl, getShopList, getTmplList } from "@api/accountManage"; import { getBillTmplAdapter, getMetaTmpl, getShopList, getTmplList } from "@api/accountManage";
import { getMerchantPageSearch } from "@api/publicAccount"; import { getMerchantPageSearch } from "@api/publicAccount";
import { getScenesByParams } from "@api/senseManage";
import dayjs from "dayjs"; import dayjs from "dayjs";
import { mapActions, mapState } from "vuex"; import { mapActions, mapState } from "vuex";
import { import {
...@@ -203,6 +204,7 @@ export default { ...@@ -203,6 +204,7 @@ export default {
return { return {
loading: false, loading: false,
multipleLimit: 10, multipleLimit: 10,
sceneTypeList: [],
// 判断是否是模版模式 // 判断是否是模版模式
isTmpl: false, isTmpl: false,
localTmplList: deepClone(localTmplList), localTmplList: deepClone(localTmplList),
...@@ -286,24 +288,11 @@ export default { ...@@ -286,24 +288,11 @@ export default {
selectLoading: false, selectLoading: false,
// 基本数据 // 基本数据
baseData: { baseData: {
sceneTypeList: [{
confId: "1",
confLabel: "精品升级",
}, {
confId: "2",
confLabel: "次新车转化",
}, {
confId: "3",
confLabel: "售后众筹",
}, {
confId: "4",
confLabel: "积分商城",
}],
businessLineList: [{ businessLineList: [{
confId: "1", confId: "0",
confLabel: "权益类", confLabel: "权益类",
}, { }, {
confId: "2", confId: "1",
confLabel: "轻改类", confLabel: "轻改类",
}], }],
reconStatusList: [{ reconStatusList: [{
...@@ -349,11 +338,15 @@ export default { ...@@ -349,11 +338,15 @@ export default {
dowloadList: state => state.d2admin.user.dowloadList, dowloadList: state => state.d2admin.user.dowloadList,
}), }),
sceneTypeOptionList() { sceneTypeOptionList() {
// 选项 = 全部 + 当前业务线下的场景 // 选项 = 全部 + 当前业务线动态获取的场景列表
// 目前场景列表是静态配置;后续如改成按业务线动态加载,这里只需要替换 filteredList 的来源即可。 const inputList = Array.isArray(this.sceneTypeList) ? this.sceneTypeList : [];
const filteredList = Array.isArray(this.baseData.sceneTypeList) const filteredList = inputList
? this.baseData.sceneTypeList .map((item) => {
: []; const confId = item?.confId ?? item?.id;
const confLabel = item?.confLabel ?? item?.name;
return { confId, confLabel };
})
.filter(item => item.confId !== undefined && item.confId !== null && item.confId !== "");
return [ return [
{ confId: "", confLabel: "全部" }, { confId: "", confLabel: "全部" },
...filteredList, ...filteredList,
...@@ -367,6 +360,8 @@ export default { ...@@ -367,6 +360,8 @@ export default {
const sceneStr = val == null ? "" : String(val); const sceneStr = val == null ? "" : String(val);
const exists = this.baseData.businessLineList.some(i => i.confId === sceneStr); const exists = this.baseData.businessLineList.some(i => i.confId === sceneStr);
this.infoForm.businessLine = exists ? sceneStr : (this.baseData.businessLineList[0]?.confId || ""); this.infoForm.businessLine = exists ? sceneStr : (this.baseData.businessLineList[0]?.confId || "");
// 首次打开弹框时,确保能根据当前业务线拉取“业务场景”列表
this.syncSceneTypeList();
}, },
immediate: true, immediate: true,
}, },
...@@ -374,6 +369,7 @@ export default { ...@@ -374,6 +369,7 @@ export default {
handler() { handler() {
// 切换业务线时,业务场景默认回到“全部” // 切换业务线时,业务场景默认回到“全部”
this.infoForm.sceneType = [""]; this.infoForm.sceneType = [""];
this.syncSceneTypeList();
}, },
}, },
}, },
...@@ -399,6 +395,27 @@ export default { ...@@ -399,6 +395,27 @@ export default {
methods: { methods: {
...mapActions("d2admin/user", ["actionSetDownloadList"]), ...mapActions("d2admin/user", ["actionSetDownloadList"]),
syncSceneTypeList() {
const sceneType = Number(this.infoForm?.businessLine);
if (this.infoForm?.businessLine === "" || this.infoForm?.businessLine === null || this.infoForm?.businessLine === undefined || Number.isNaN(sceneType)) {
this.sceneTypeList = [];
return;
}
getScenesByParams({ sceneType }).then((res) => {
const list = Array.isArray(res)
? res
: (Array.isArray(res?.data) ? res.data : []);
const normalized = list
.map(item => ({
confId: item?.baseSceneCode,
confLabel: item?.name,
}))
.filter(item => item.confId !== undefined && item.confId !== null && item.confId !== "");
this.sceneTypeList = normalized;
}).catch(() => {
this.sceneTypeList = [];
});
},
handleSceneTypeChange(value) { handleSceneTypeChange(value) {
if (!Array.isArray(value)) { if (!Array.isArray(value)) {
return; return;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
:model="infoForm" :model="infoForm"
:rules="formRules" :rules="formRules"
label-width="120px"> label-width="120px">
<el-form-item label="业务线:" prop="businessLine"> <el-form-item label="业务场景:" prop="businessLine">
<el-select v-model="infoForm.businessLine" style="width:400px"> <el-select v-model="infoForm.businessLine" style="width:400px">
<el-option v-for="item in baseData.businessLineList" <el-option v-for="item in baseData.businessLineList"
:key="item.confId" :key="item.confId"
...@@ -94,6 +94,14 @@ ...@@ -94,6 +94,14 @@
:picker-options="pickerOptions0" :picker-options="pickerOptions0"
style="width:185px" /> style="width:185px" />
</el-form-item> </el-form-item>
<el-form-item label="对账状态:" prop="reconciliationStatus">
<el-select v-model="infoForm.reconciliationStatus" style="width:400px">
<el-option v-for="item in baseData.reconStatusList"
:key="item.confId"
:label="item.confLabel"
:value="item.confId" />
</el-select>
</el-form-item>
<el-form-item v-if="isTmpl" <el-form-item v-if="isTmpl"
label="套餐合并" label="套餐合并"
prop="packageMerge"> prop="packageMerge">
...@@ -255,7 +263,7 @@ export default { ...@@ -255,7 +263,7 @@ export default {
{ required: true, message: "请选择时间", trigger: "change" }, { required: true, message: "请选择时间", trigger: "change" },
{ required: true, trigger: "change", validator: validateLonlat }, { required: true, trigger: "change", validator: validateLonlat },
], ],
reconciliationStatus: [{ required: true, message: "请选择业务场景", trigger: "change" }], reconciliationStatus: [{ required: true, message: "请选择对账状态", trigger: "change" }],
packageMerge: [{ required: true, message: "请选择套餐合并", trigger: "change" }], packageMerge: [{ required: true, message: "请选择套餐合并", trigger: "change" }],
templateId: [{ required: false, message: "请选择对账模式", trigger: "change" }], templateId: [{ required: false, message: "请选择对账模式", trigger: "change" }],
fieldsJson: [{ required: false, message: "请选择对账字段", trigger: "change" }], fieldsJson: [{ required: false, message: "请选择对账字段", trigger: "change" }],
...@@ -265,10 +273,10 @@ export default { ...@@ -265,10 +273,10 @@ export default {
baseData: { baseData: {
businessLineList: [{ businessLineList: [{
confId: "1", confId: "1",
confLabel: "权益类", confLabel: "精品升级",
}, { }, {
confId: "2", confId: "0",
confLabel: "轻改类", confLabel: "会员权益升级",
}], }],
reconStatusList: [{ reconStatusList: [{
confId: "all", confId: "all",
......
...@@ -5,20 +5,9 @@ ...@@ -5,20 +5,9 @@
class="header" class="header"
style="background: #e7eaec"> style="background: #e7eaec">
<!-- @tab-click="tabClick" --> <!-- @tab-click="tabClick" -->
<el-tabs v-if="false" v-model="searchForm.sceneType">
<el-tab-pane :label="sceneList['1']" name="1" />
<el-tab-pane v-if="!specialAccout"
:label="sceneList['2']"
name="2" />
<el-tab-pane v-if="!specialAccout"
:label="sceneList['3']"
name="3" />
<el-tab-pane :label="sceneList['0']" name="0" />
<el-tab-pane :label="sceneList['4']" name="4" />
</el-tabs>
<el-tabs v-model="searchForm.sceneType"> <el-tabs v-model="searchForm.sceneType">
<el-tab-pane :label="newSceneList['0']" name="0" />
<el-tab-pane :label="newSceneList['1']" name="1" /> <el-tab-pane :label="newSceneList['1']" name="1" />
<el-tab-pane :label="newSceneList['2']" name="2" />
</el-tabs> </el-tabs>
<!-- <el-card class="finance_list_summary" :body-style="{ padding: 0 }" v-show="sunmmaryVisible"> --> <!-- <el-card class="finance_list_summary" :body-style="{ padding: 0 }" v-show="sunmmaryVisible"> -->
<!-- 汇总模块暂不显示 --> <!-- 汇总模块暂不显示 -->
...@@ -232,33 +221,15 @@ ...@@ -232,33 +221,15 @@
label="主订单编号" label="主订单编号"
width="170" width="170"
align="center" /> align="center" />
<!-- <el-table-column v-if="isSubOrder" <el-table-column prop="baseSceneName"
prop="orderCode"
label="子订单编号"
width="170"
align="center">
</el-table-column> -->
<!-- 仅会员权益场景显示 -->
<!-- <el-table-column v-if="searchForm.sceneType == 0" prop="businessType" label="所属业务" align="center">
<template slot-scope="scope">
<span v-if="scope.row.businessType">{{
scope.row.businessType == "2" ? "延保" : "权益"
}}</span>
<span v-else>-</span>
</template>
</el-table-column> -->
<el-table-column prop="businessType"
label="业务场景" label="业务场景"
width="170"
align="center"> align="center">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.businessType"> <span>{{ scope.row.baseSceneName || "-" }}</span>
{{
scope.row.businessType == "2" ? "延保" : "权益"
}}
</span>
<span v-else>-</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="customerName" <el-table-column prop="customerName"
label="客户姓名" label="客户姓名"
align="center"> align="center">
...@@ -715,7 +686,7 @@ export default { ...@@ -715,7 +686,7 @@ export default {
totalObj: {}, totalObj: {},
summayData: {}, summayData: {},
searchForm: { searchForm: {
sceneType: "1", sceneType: "0",
time: "", time: "",
yqMerchantId: "", yqMerchantId: "",
merchantId: "", merchantId: "",
...@@ -723,9 +694,10 @@ export default { ...@@ -723,9 +694,10 @@ export default {
divisionType: "", divisionType: "",
platformMerchantId: "", platformMerchantId: "",
outboundStatus: "", outboundStatus: "",
channelType: [""], channelType: "",
subSceneType: [""],
baseSceneCodeList: [""],
businessModel: "", businessModel: "",
businessType: "",
reconciliationFlag: "", reconciliationFlag: "",
}, },
searchSelectObj: { searchSelectObj: {
...@@ -753,24 +725,30 @@ export default { ...@@ -753,24 +725,30 @@ export default {
multiple: true, multiple: true,
collapseTags: true, collapseTags: true,
optionList: [], optionList: [],
optionId: "id", optionId: "baseSceneCode",
optionLabel: "name", optionLabel: "name",
optionsName: "subSceneTypeList", optionsName: "subSceneTypeList",
changeAttr: (value) => { changeAttr: (value) => {
if (!Array.isArray(value)) { if (!Array.isArray(value)) {
return; return;
} }
if (!value.length) { const ALL = "";
this.searchForm.baseSceneCode = [""]; let next = value
return; .filter(v => v !== undefined && v !== null)
.map(v => (typeof v === "string" ? v : String(v)));
// 去重(以 baseSceneCode 作为唯一值)
next = Array.from(new Set(next));
// 空选择:视为“全部”
if (!next.length) {
next = [ALL];
} }
if (value.includes("") && value.length > 1) { // 多选时,“全部”与具体值互斥;以最后一次选择为准(排他)
// 多选时,“全部”与具体值互斥;以最后一次选择为准 if (next.includes(ALL) && next.length > 1) {
this.searchForm.baseSceneCodeList next = next[next.length - 1] === ALL ? [ALL] : next.filter(v => v !== ALL);
= value[value.length - 1] === ""
? [""]
: value.filter(v => v !== "");
} }
// v-model 绑定在 subSceneType,同时同步给后端入参 baseSceneCodeList
this.searchForm.subSceneType = next;
this.searchForm.baseSceneCodeList = next;
}, },
}, },
{ {
...@@ -882,19 +860,8 @@ export default { ...@@ -882,19 +860,8 @@ export default {
optionLabel: "name", optionLabel: "name",
optionsName: "channelTypeList", optionsName: "channelTypeList",
changeAttr: (value) => { changeAttr: (value) => {
if (!Array.isArray(value)) { // 单选:element-ui el-select 的 v-model 应为 String/Number
return; this.searchForm.channelType = value ?? "";
}
if (!value.length) {
this.searchForm.channelType = [""];
return;
}
if (value.includes("") && value.length > 1) {
this.searchForm.channelType
= value[value.length - 1] === ""
? [""]
: value.filter(v => v !== "");
}
}, },
}, },
{ {
...@@ -907,15 +874,6 @@ export default { ...@@ -907,15 +874,6 @@ export default {
optionsName: "manageTypeList", optionsName: "manageTypeList",
}, },
{ {
label: "所属业务",
name: "businessType",
type: "select",
optionList: [],
optionId: "confId",
optionLabel: "confLabel",
optionsName: "businessTypeList",
},
{
label: "对账状态", label: "对账状态",
name: "reconciliationFlag", name: "reconciliationFlag",
type: "select", type: "select",
...@@ -1029,12 +987,6 @@ export default { ...@@ -1029,12 +987,6 @@ export default {
this.sellerName_visible = false; this.sellerName_visible = false;
this.shopProfitType_visible = false; this.shopProfitType_visible = false;
this.yq_visible = true; this.yq_visible = true;
if (val == 4) {
// 非会员权益隐藏所属业务筛选项
this.showFormData[this.findFormIdx("businessType")].isHide = true;
} else {
this.showFormData[this.findFormIdx("businessType")].isHide = false;
}
} else if (val == 1) { } else if (val == 1) {
/** /**
1.1场景 1.1场景
...@@ -1056,9 +1008,9 @@ export default { ...@@ -1056,9 +1008,9 @@ export default {
this.sellerName_visible = true; this.sellerName_visible = true;
this.shopProfitType_visible = false; this.shopProfitType_visible = false;
this.yq_visible = true; this.yq_visible = true;
this.showFormData[this.findFormIdx("businessType")].isHide = true; // 非会员权益隐藏所属业务筛选项
} }
this.handleReset(val); this.handleReset(val);
this.syncSubSceneTypeList();
this.getList(); this.getList();
this.getTotal(); this.getTotal();
}, },
...@@ -1092,17 +1044,33 @@ export default { ...@@ -1092,17 +1044,33 @@ export default {
this.baseData.PlatformMerchantList = res; this.baseData.PlatformMerchantList = res;
this.getOptionsList(); this.getOptionsList();
}); });
getScenesByParams({}).then((res) => {
const list = Array.isArray(res) ? res : (Array.isArray(res?.data) ? res.data : []);
this.baseData.subSceneTypeList = list.map(({ id, name }) => ({ id, name }));
this.getOptionsList();
});
this.getBaseData(); this.getBaseData();
}, },
methods: { methods: {
...mapActions({ close: "d2admin/page/close" }), ...mapActions({ close: "d2admin/page/close" }),
...mapActions("d2admin/user", ["actionSetDownloadList"]), ...mapActions("d2admin/user", ["actionSetDownloadList"]),
...mapActions("d2admin/base", ["get"]), ...mapActions("d2admin/base", ["get"]),
syncSubSceneTypeList() {
const sceneType = Number(this.searchForm?.sceneType);
if (sceneType === "" || sceneType === null || sceneType === undefined) {
this.baseData.subSceneTypeList = [];
this.getOptionsList();
return;
}
getScenesByParams({ sceneType }).then((res) => {
const list = Array.isArray(res)
? res
: (Array.isArray(res?.data) ? res.data : []);
const normalized = list
.map(item => ({
baseSceneCode: item?.baseSceneCode,
name: item?.name,
}))
.filter(item => item.baseSceneCode !== undefined && item.baseSceneCode !== null);
this.baseData.subSceneTypeList = normalized.map(({ baseSceneCode, name }) => ({ baseSceneCode, name }));
this.getOptionsList();
});
},
handleAccountConfirm() { handleAccountConfirm() {
this.fileVisible = true; this.fileVisible = true;
}, },
...@@ -1136,10 +1104,6 @@ export default { ...@@ -1136,10 +1104,6 @@ export default {
async getBaseData() { async getBaseData() {
this.baseData.channelTypeList = await this.get(BaseData.channelType); this.baseData.channelTypeList = await this.get(BaseData.channelType);
this.positionTypeList = await this.get(BaseData.positionTypeList); this.positionTypeList = await this.get(BaseData.positionTypeList);
this.baseData.businessTypeList = [
{ confId: "1", confLabel: "权益" },
{ confId: "2", confLabel: "延保" },
];
this.baseData.reconciliationFlagList = [ this.baseData.reconciliationFlagList = [
{ confId: "Y", confLabel: "已对账" }, { confId: "Y", confLabel: "已对账" },
{ confId: "N", confLabel: "未对账" }, { confId: "N", confLabel: "未对账" },
...@@ -1168,10 +1132,11 @@ export default { ...@@ -1168,10 +1132,11 @@ export default {
divisionType: "", divisionType: "",
platformMerchantId: "", platformMerchantId: "",
outboundStatus: "", outboundStatus: "",
channelType: [""], channelType: "",
subSceneType: [""],
baseSceneCodeList: [""],
businessModel: "", businessModel: "",
sceneType, sceneType,
businessType: "",
reconciliationFlag: "", reconciliationFlag: "",
}; };
this.searchSelectObj = { this.searchSelectObj = {
...@@ -1440,13 +1405,16 @@ export default { ...@@ -1440,13 +1405,16 @@ export default {
? this.searchForm.channelType.join(",") ? this.searchForm.channelType.join(",")
: this.searchForm.channelType; : this.searchForm.channelType;
} }
if (Array.isArray(this.searchForm.baseSceneCodeList) && this.searchForm.baseSceneCodeList.length) {
const selected = this.searchForm.baseSceneCodeList;
// “全部”= 不传;否则保持数组类型传给后端
if (!selected.includes("")) {
params.baseSceneCodeList = selected;
}
}
if (this.searchForm.sceneType) { if (this.searchForm.sceneType) {
params.sceneType = this.searchForm.sceneType; params.sceneType = this.searchForm.sceneType;
} }
// 会员权益场景添加所属业务筛选字段
if (this.searchForm?.sceneType == 0 && this.searchForm?.businessType) {
params.businessType = this.searchForm?.businessType;
}
if (this.searchForm.reconciliationFlag) { if (this.searchForm.reconciliationFlag) {
params.reconciliationFlag = this.searchForm?.reconciliationFlag; params.reconciliationFlag = this.searchForm?.reconciliationFlag;
} }
......
<template>
<div class="examine-record">
<div class="title">
审核记录
</div>
<template v-if="list && list.length">
<div v-if="list.length > 2 && useExpand"
class="up-down"
@click="handleToggleVisible">
<el-button size="mini"
type="text"
:icon="visible ? 'el-icon-arrow-up' : 'el-icon-arrow-down'" />
{{ visible ? "收起" : "展开" }}
</div>
<div style="width:100%;">
<div class="record-div">
<div v-for="(item, index) in getList"
:key="index"
class="record-div-d">
<span class="span-txt-one text-hide">
{{ item.status ? $$(statusForShow, [item.status], "text") : "" }}
</span>
<span class="span-txt-two status-wrapper">
<span :class="item.status ? examineStatusClass[item.status] : ''">
{{
item.status
? $$(statusForShow, [item.status], "status")
: ""
}}
</span>
<span v-if="item.rejectedStatus">
<span style="display: inline-block; margin: 0 8px">至</span>
<span>
{{
item.rejectedStatus
? $$(
rejectedForShow,
[item.rejectedStatus],
"rejectedStatus",
)
: ""
}}
</span>
</span>
</span>
<span class="span-txt-two reviewer item-wrapper ">
<span>审核人:</span>
<div class="value">
<el-tooltip class="item"
popper-class="remark-popper-class"
effect="dark"
:content="item.reviewedBy"
placement="bottom">
<el-button type="text" class="value-btn text-hide">
{{ item.reviewedBy }}
</el-button>
</el-tooltip>
</div>
</span>
<span class="span-txt-two ">
审核时间:{{ item.reviewedDateFormat || item.reviewedDate }}
</span>
<span v-if="item.remark" class="span-txt-two remark item-wrapper">
<span class="label">备注:</span>
<div class="value">
<el-tooltip class="item"
popper-class="remark-popper-class"
effect="dark"
:content="item.remark"
placement="bottom">
<el-button type="text" class="value-btn text-hide">
{{ item.remark }}
</el-button>
</el-tooltip>
</div>
</span>
<span v-if="[4, 6, 7, 9, 11].includes(item.status)"
class="span-txt-two reject-cause item-wrapper">
<span class="label">驳回原因:</span>
<div class="value">
<el-tooltip class="item"
popper-class="remark-popper-class"
effect="dark"
:content="item.rejectCause"
placement="bottom">
<el-button type="text" class="text-hide value-btn">
{{ item.rejectCause }}
</el-button>
</el-tooltip>
</div>
</span>
</div>
</div>
</div>
</template>
<div v-else class="emptyCom">
<img :src="emptyImg"
class="emptyImg"
alt="" />
<span class="tips">暂无数据</span>
</div>
</div>
</template>
<script>
import emptyImg from "@/assets/empty.png";
export default {
name: "",
props: {
list: {
required: true,
type: Array,
},
useExpand: {
type: Boolean,
default: true,
},
},
data() {
return {
visible: false,
emptyImg,
examineStatusClass: {
2: "greenSp",
4: "redSp",
5: "greenSp",
6: "redSp",
7: "redSp",
8: "greenSp",
9: "redSp",
10: "greenSp",
11: "redSp",
},
statusForShow: {
2: { text: "运营审核", status: "通过" },
4: { text: "运营审核", status: "驳回" },
5: { text: "商务审核", status: "通过" },
6: { text: "商务审核", status: "驳回" },
7: { text: "采购驳回", status: "驳回" },
8: { text: "总监审核", status: "通过" },
9: { text: "总监审核", status: "驳回" },
10: { text: "经理通过", status: "通过" },
11: { text: "经理驳回", status: "驳回" },
},
rejectedForShow: {
1: { rejectedStatus: "采购商户" },
2: { rejectedStatus: "运营审核" },
3: { rejectedStatus: "商务审核" },
6: { rejectedStatus: "经理审核" },
},
};
},
computed: {
getList() {
// 如果不使用展开功能, 直接返回整个list
if (!this.useExpand) {
return this.list;
}
if (this.visible) {
return this.list;
} else {
return this.list.slice(0, 2);
}
},
},
mounted() {
},
methods: {
handleToggleVisible() {
this.visible = !this.visible;
},
},
};
</script>
<style scoped lang="scss">
.examine-record {
position: relative;
width: 100%;
min-height: 60px;
border-radius: 4px;
border: 1px solid #fafafa;
background: #fafafa;
> .title {
padding: 16px 20px;
line-height: 20px;
font-weight: 600;
font-size: 16px;
color: #333333;
text-align: left;
}
.up-down {
position: absolute;
right: 20px;
top: 20px;
width: 42px;
height: 20px;
font-family: PingFangSC-Regular;
color: #2a58ad;
font-size: 12px;
cursor: pointer;
}
.record-div {
padding: 0 20px 16px;
font-size: 14px;
color: #666666;
overflow: hidden;
width: 100%;
box-sizing: border-box;
.record-div-d {
margin-top: 10px;
overflow: hidden;
width: 100%;
position: relative;
display: flex;
align-items: center;
padding: 4px 0 4px 24px;
box-sizing: border-box;
&::before {
position: absolute;
content: "";
left: 6px;
top: 50%;
transform: translateY(-50%);
width: 6px;
height: 6px;
background: #185efe;
border-radius: 6px;
}
> .span-txt-one {
max-width: 5em;
}
.span-txt-two {
margin-left: 12px;
flex-shrink: 0;
&.status-wrapper {
width: 180px;
}
&.reviewer {
width: 140px;
}
&.remark {
flex: 1;
}
&.reject-cause {
flex: 1;
}
&.item-wrapper {
overflow: hidden;
display: flex;
align-items: center;
.label {
flex-shrink: 0;
}
.value {
flex: 1;
text-align: left;
overflow: hidden;
.value-btn {
max-width: 100%;
padding: 0;
}
}
}
}
}
.greenSp {
color: #4aca74;
}
.redSp {
color: #eb4e4e;
}
}
.emptyCom {
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
align-items: center;
.emptyImg {
width: 64px;
}
.tips {
font-size: 14px;
color: #999999;
margin: 20px 0;
}
}
}
</style>
...@@ -326,7 +326,7 @@ export default { ...@@ -326,7 +326,7 @@ export default {
...this.dowloadList, ...this.dowloadList,
{ {
// name: '采购审核', // name: '采购审核',
name: '运营审核', name: '总监审核',
exportParam: JSON.stringify(params), exportParam: JSON.stringify(params),
status: 'waiting', status: 'waiting',
timeid: new Date().getTime() timeid: new Date().getTime()
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
:search-form="tableSearchForm" :search-form="tableSearchForm"
:table-params="tableParams" :table-params="tableParams"
:table-data="tableData" :table-data="tableData"
:selectable-fn="selectableFn"
:get-list-api="getListApi" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<template #auth-button="scope"> <template #auth-button="scope">
...@@ -281,6 +282,9 @@ export default { ...@@ -281,6 +282,9 @@ export default {
methods: { methods: {
...mapActions("d2admin/user", ["actionSetDownloadList"]), ...mapActions("d2admin/user", ["actionSetDownloadList"]),
selectableFn(row, index) {
return row.status == 2 && row.sendOutMerchantId != null;
},
getBaseData(res) { getBaseData(res) {
const allOpt = { const allOpt = {
id: "", id: "",
...@@ -303,18 +307,6 @@ export default { ...@@ -303,18 +307,6 @@ export default {
} }
}); });
}, },
// 根据所选场景获取类目
// handleChangeSelect(value) {
// this.searchForm.goodsType = ''
// this.baseData.productTypeList = []
// getProductTypeBySceneId({ sceneType: value }).then(res => {
// this.baseData.productTypeList = res
// this.getBaseData()
// })
// },
// selectableFn(row, index) {
// return row.status == 1 && row.sendOutMerchantId != null
// },
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve) => { return new Promise((resolve) => {
......
...@@ -136,14 +136,10 @@ ...@@ -136,14 +136,10 @@
:visible.sync="allocateVisible" :visible.sync="allocateVisible"
@editClose="allocateClose"> @editClose="allocateClose">
</AllocateDialog> </AllocateDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting" -->
<baseDialog :dialog-config="rejectConfig.config" <baseDialog :dialog-config="rejectConfig.config"
:is-show.sync="rejectVisible" :is-show.sync="rejectVisible"
@handleClick="handleRejectConfirm"> @handleClick="handleRejectConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> -->
<div class="reject-dialog" style="margin: 0;"> <div class="reject-dialog" style="margin: 0;">
<div class="edit-page edit-tmpl"> <div class="edit-page edit-tmpl">
<div class="title"> <div class="title">
商品信息 商品信息
...@@ -239,81 +235,8 @@ ...@@ -239,81 +235,8 @@
<p style="margin-left: 150px; color: #999999;"> <p style="margin-left: 150px; color: #999999;">
说明:驳回后,整个采购订单进行驳回,无法再重新进行发货操作。 说明:驳回后,整个采购订单进行驳回,无法再重新进行发货操作。
</p> </p>
<div class="examine-record"> <ExamineRecord :list="originalAuditDetaiList" style="margin-top:20px;" />
<div class="title">
审核记录
</div>
<div v-if="auditDetaiList && auditDetaiList.length"
class="up-down"
@click="handleUpDown">
<el-button :icon="isVisible ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"
size="mini"
type="text" />
{{ isVisible ? "收起" : "展开" }}
</div>
<div>
<div v-if="auditDetaiList && auditDetaiList.length" class="record-div">
<div v-for="(item, index) in auditDetaiList"
:key="index"
class="record-div-d">
<span class="dot"></span>
<span class="span-txt-one">{{ item.status ? $$(statusForShow, [item.status], 'text') : '' }}</span>
<span class="span-txt-two" style="display: inline-block; width: 116px;">
<span :class="item.status ? examineStatusClass[item.status] : ''">
{{ item.status ? $$(statusForShow, [item.status], 'status') : '' }}
</span>
<span v-if="item.rejectedStatus">
<span style="display: inline-block; margin: 0 8px;">至</span>
<span>{{ item.rejectedStatus ? $$(rejectedForShow, [item.rejectedStatus], 'rejectedStatus') : '' }}</span>
</span>
</span>
<span class="span-txt-two reviewer ellipsis">
审核人:
<el-tooltip class="item"
:content="item.reviewedBy"
effect="dark"
placement="bottom"
popper-class="remark-popper-class">
<el-button type="text">
{{ item.reviewedBy }}
</el-button>
</el-tooltip>
</span>
<span class="span-txt-two">审核时间:{{ item.reviewedDateFormat }}</span>
<span v-if="item.remark" class="span-txt-two">
备注:
<el-tooltip class="item"
:content="item.remark"
effect="dark"
placement="bottom"
popper-class="remark-popper-class">
<el-button type="text">
{{ item.remark ? (item.remark.length > 5 ? (`${item.remark.slice(0, 5)}...`) : item.remark) : '' }}
</el-button>
</el-tooltip>
</span>
<span v-if="[4, 6, 7, 9].includes(item.status)" class="span-txt-two">
驳回原因:
<el-tooltip class="item"
:content="item.rejectCause"
effect="dark"
placement="bottom"
popper-class="remark-popper-class">
<el-button type="text">
{{ item.rejectCause ? (item.rejectCause.length > 5 ? (`${item.rejectCause.slice(0, 5)}...`) : item.rejectCause) : '' }}
</el-button>
</el-tooltip>
</span>
</div>
</div>
<div v-else class="emptyCom">
<img alt=""
class="emptyImg"
:src="emptyImgUrl">
<span class="tips">暂无数据</span>
</div>
</div>
</div>
</div> </div>
<!-- <div class="footer"> <!-- <div class="footer">
<el-button @click="handleRejectClose">取消</el-button> <el-button @click="handleRejectClose">取消</el-button>
...@@ -369,7 +292,8 @@ import { deepClone, Util } from "@/common/util"; ...@@ -369,7 +292,8 @@ import { deepClone, Util } from "@/common/util";
import { baseConfig } from "@/main"; import { baseConfig } from "@/main";
import AllocateDialog from "./components/AllocateDialog"; import AllocateDialog from "./components/AllocateDialog";
import EditOrderDialog from "./components/EditOrderDialog"; import EditOrderDialog from "./components/EditOrderDialog";
import orderDeatilDialog from "./components/orderDetailDialog"; import ExamineRecord from "./components/examineRecord.vue";
import OrderDeatilDialog from "./components/orderDetailDialog";
import { import {
defaultDeliveryStatusOptions, defaultDeliveryStatusOptions,
defaultPutStatusOptions, defaultPutStatusOptions,
...@@ -379,13 +303,14 @@ import { ...@@ -379,13 +303,14 @@ import {
rejectNodeOptions, rejectNodeOptions,
signStatusType, signStatusType,
} from "./constant"; } from "./constant";
// import { limitPrice } from '@/common/format'
export default { export default {
name: "PurchaseAndDelivery", name: "PurchaseAndDelivery",
components: { components: {
OrderDeatilDialog: orderDeatilDialog, OrderDeatilDialog,
EditOrderDialog, EditOrderDialog,
AllocateDialog, AllocateDialog,
ExamineRecord,
}, },
data() { data() {
return { return {
...@@ -443,8 +368,8 @@ export default { ...@@ -443,8 +368,8 @@ export default {
7: "redSp", 7: "redSp",
8: "greenSp", 8: "greenSp",
9: "redSp", 9: "redSp",
10: 'greenSp', 10: "greenSp",
11: 'redSp' 11: "redSp",
}, },
examineStatus: 1, examineStatus: 1,
statusForShow: { statusForShow: {
...@@ -455,8 +380,8 @@ export default { ...@@ -455,8 +380,8 @@ export default {
7: { text: "采购驳回", status: "驳回" }, 7: { text: "采购驳回", status: "驳回" },
8: { text: "总监审核", status: "通过" }, 8: { text: "总监审核", status: "通过" },
9: { text: "总监审核", status: "驳回" }, 9: { text: "总监审核", status: "驳回" },
10: { text: '经理通过', status: '通过' }, 10: { text: "经理通过", status: "通过" },
11: { text: '经理驳回', status: '驳回' }, 11: { text: "经理驳回", status: "驳回" },
}, },
rejectedForShow: { rejectedForShow: {
1: { rejectedStatus: "采购商户" }, 1: { rejectedStatus: "采购商户" },
...@@ -1158,10 +1083,6 @@ export default { ...@@ -1158,10 +1083,6 @@ export default {
} }
}); });
}, },
handleUpDown() {
this.auditDetaiList = this.isVisible ? deepClone(this.originalAuditDetaiList.slice(0, 2)) : deepClone(this.originalAuditDetaiList);
this.isVisible = !this.isVisible;
},
rejectRefreshTable(pageObj) { rejectRefreshTable(pageObj) {
this.getDetail(pageObj); this.getDetail(pageObj);
}, },
...@@ -1180,7 +1101,6 @@ export default { ...@@ -1180,7 +1101,6 @@ export default {
return item; return item;
}); });
} }
this.auditDetaiList = deepClone(this.originalAuditDetaiList.slice(0, 2));
}); });
}, },
// 批量分配 // 批量分配
...@@ -1427,100 +1347,6 @@ export default { ...@@ -1427,100 +1347,6 @@ export default {
vertical-align: middle; vertical-align: middle;
} }
.examine-record {
position: relative;
width: 850px;
min-height: 60px;
border-radius: 4px;
border: 1px solid #fafafa;
background: #fafafa;
margin-top: 23px;
.title {
margin: 16px 20px;
width: 64px;
height: 19px;
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: 16px;
color: #333333;
text-align: center;
}
.up-down {
position: absolute;
right: 20px;
top: 20px;
width: 42px;
height: 20px;
font-family: PingFangSC-Regular;
color: #2a58ad;
font-size: 12px;
cursor: pointer;
}
.dot {
width: 6px;
height: 6px;
background: #185efe;
border-radius: 6px;
display: inline-block;
}
.record-div {
margin: 16px 20px;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 14px;
color: #666666;
letter-spacing: 0;
.record-div-d {
margin-top: 10px;
}
.span-txt-one {
margin-left: 14px;
width: 203px;
height: 21px;
}
.reviewer {
display: inline-block;
width: 140px;
}
.span-txt-two {
margin-left: 20px;
}
.greenSp {
color: #4aca74;
}
.redSp {
color: #eb4e4e;
}
}
.emptyCom {
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
align-items: center;
.emptyImg {
width: 64px;
}
.tips {
font-size: 14px;
color: #999999;
margin: 20px 0;
}
}
}
.footer { .footer {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
......
...@@ -34,17 +34,27 @@ ...@@ -34,17 +34,27 @@
</div> </div>
</div> </div>
<div v-if="isBtn" class="btns"> <div v-if="isBtn" class="btns">
<el-button type="text" @click="handleWorking(item)"> <el-button v-if="isPendingTrial(item)" type="text" @click="handleEdit(item, index)">
转入职 编辑
</el-button> </el-button>
<el-button v-if="isPendingTrial(item)" type="text" @click="handleResolve(item, index)">
<el-button type="text" @click="handleEdit(item, index)"> 处理
编辑 </el-button>
</el-button> <el-button v-if="isPendingTrial(item)" type="text" @click="handleDelete(index)">
<el-button type="text" @click="handleDelete(index)"> 删除
删除 </el-button>
</el-button> <el-button v-if="isProcessedTrial(item)" type="text" @click="handleWorking(item)">
转入职
</el-button>
<el-button v-if="isProcessedTrial(item)" type="text" @click="handleViewResult(item)">
查看结果
</el-button>
</div> </div>
<div else class="btns">
<el-button v-if="isProcessedTrial(item)" type="text" @click="handleViewResult(item)">
查看结果
</el-button>
</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -57,6 +67,9 @@ ...@@ -57,6 +67,9 @@
<!-- 新增试岗 --> <!-- 新增试岗 -->
<glsk-form-dialog v-if="isAddVisible" ref="addResumeDialog" :base-data="baseData" default-width="406px" :dialog-config="isAddDialogConfig" :edit-data="isAddForm" :edit-form-data="isAddFormData" :form-rules="isAddRules" label-width="150px" :select-visible="isAddVisible" :slot-arr="slotArr" @handleAddSelectTypeConfirm="handleAddSelectTypeConfirm" @handleClose="isAddDialogVisible" @handleConfirm="handleAddConfirm" @handleEditSelectTypeConfirm="handleEditSelectTypeConfirm"> <glsk-form-dialog v-if="isAddVisible" ref="addResumeDialog" :base-data="baseData" default-width="406px" :dialog-config="isAddDialogConfig" :edit-data="isAddForm" :edit-form-data="isAddFormData" :form-rules="isAddRules" label-width="150px" :select-visible="isAddVisible" :slot-arr="slotArr" @handleAddSelectTypeConfirm="handleAddSelectTypeConfirm" @handleClose="isAddDialogVisible" @handleConfirm="handleAddConfirm" @handleEditSelectTypeConfirm="handleEditSelectTypeConfirm">
</glsk-form-dialog> </glsk-form-dialog>
<!-- 试岗处理 -->
<glsk-form-dialog v-if="isResolveVisible" :base-data="baseData" default-width="406px" :dialog-config="isResolveDialogConfig" :edit-data="isResolveForm" :edit-form-data="isResolveFormData" :form-rules="isResolveRules" label-width="150px" :select-visible="isResolveVisible" @handleClose="isResolveDialogVisible" @handleConfirm="handleResolveConfirm">
</glsk-form-dialog>
</div> </div>
</template> </template>
...@@ -64,7 +77,6 @@ ...@@ -64,7 +77,6 @@
import GlOssApi from "glsk-oss-jssdk"; import GlOssApi from "glsk-oss-jssdk";
import { mapMutations } from "vuex"; import { mapMutations } from "vuex";
import { addDict, deleteDict, getDictList, updateDict } from "@/api/recruitment"; import { addDict, deleteDict, getDictList, updateDict } from "@/api/recruitment";
import { interviewResultOpt, processResultOpt } from "@/common/constants.js";
import { deepClone, Util } from "@/common/util"; import { deepClone, Util } from "@/common/util";
import { baseConfig } from "@/main"; import { baseConfig } from "@/main";
...@@ -89,6 +101,7 @@ export default { ...@@ -89,6 +101,7 @@ export default {
imgList: [], imgList: [],
detailVisible: false, detailVisible: false,
isAddVisible: false, isAddVisible: false,
isResolveVisible: false,
slotArr: [], slotArr: [],
trialOnboardingsData: [], trialOnboardingsData: [],
paramsObj: {}, paramsObj: {},
...@@ -98,6 +111,10 @@ export default { ...@@ -98,6 +111,10 @@ export default {
title: "新增简历", title: "新增简历",
okText: "确定", okText: "确定",
}, },
isResolveDialogConfig: {
title: "试岗处理",
okText: "确定",
},
isAddRules: { isAddRules: {
personName: [ personName: [
{ required: true, message: "请输入人员姓名", trigger: "blur" }, { required: true, message: "请输入人员姓名", trigger: "blur" },
...@@ -122,6 +139,11 @@ export default { ...@@ -122,6 +139,11 @@ export default {
{ required: true, message: "请选择试岗时间", trigger: "change" }, { required: true, message: "请选择试岗时间", trigger: "change" },
], ],
}, },
isResolveRules: {
processResult: [
{ required: true, message: "请选择处理结果", trigger: "change" },
],
},
isAddForm: { isAddForm: {
personName: "", personName: "",
phoneNumber: "", phoneNumber: "",
...@@ -174,9 +196,35 @@ export default { ...@@ -174,9 +196,35 @@ export default {
dateType: "date", dateType: "date",
}, },
], ],
isResolveForm: {
processResult: "",
processRemark: "",
},
isResolveFormData: [
{
label: "处理结果",
name: "processResult",
type: "radio",
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "trialProcessResultOpt",
},
{
label: "说明",
name: "processRemark",
type: "textarea",
isClear: true,
showLimit: true,
maxlength: 200,
rows: 4,
},
],
baseData: { baseData: {
interviewResultOpt, trialProcessResultOpt: [
processResultOpt, { confId: 1, confValue: "通过" },
{ confId: 0, confValue: "不通过" },
],
channelData: [], channelData: [],
}, },
}; };
...@@ -267,6 +315,13 @@ export default { ...@@ -267,6 +315,13 @@ export default {
this.uploadFileList = []; this.uploadFileList = [];
this.isAddVisible = !this.isAddVisible; this.isAddVisible = !this.isAddVisible;
}, },
isResolveDialogVisible() {
this.isResolveForm = {
processResult: "",
processRemark: "",
};
this.isResolveVisible = !this.isResolveVisible;
},
getCurrentDate() { getCurrentDate() {
const time = new Date(); const time = new Date();
const y = time.getFullYear(); const y = time.getFullYear();
...@@ -280,6 +335,7 @@ export default { ...@@ -280,6 +335,7 @@ export default {
data.trialTime data.trialTime
? (data.trialTime = Util.dateFormate(data.trialTime, "YYYY-MM-DD")) ? (data.trialTime = Util.dateFormate(data.trialTime, "YYYY-MM-DD"))
: ""; : "";
data.processResult = null;
this.$emit("handleAddConfirm", data, this.isAdd, this.index); this.$emit("handleAddConfirm", data, this.isAdd, this.index);
this.isAddDialogVisible(); this.isAddDialogVisible();
}, },
...@@ -313,6 +369,27 @@ export default { ...@@ -313,6 +369,27 @@ export default {
this.checkParams(this.isAddForm); this.checkParams(this.isAddForm);
this.updateParams(this.isAddForm); this.updateParams(this.isAddForm);
}, },
handleResolve(data, index) {
this.index = index;
this.recordInfo = deepClone(data);
this.isResolveForm = {
processResult: "",
processRemark: "",
};
this.recordInfo.frontUpdatedDate = Util.dateFormate(new Date(), "YYYY-MM-DD HH:mm:ss");
this.recordInfo.processorName = this.userInfo.detail.userName;
console.log(this.recordInfo)
this.isResolveVisible = true;
},
handleResolveConfirm(data) {
const params = {
...this.recordInfo,
processResult: data.processResult,
processRemark: data.processRemark,
};
this.$emit("handleAddConfirm", params, false, this.index);
this.isResolveDialogVisible();
},
checkParams(data) { checkParams(data) {
if (!data) if (!data)
return; return;
...@@ -429,6 +506,15 @@ export default { ...@@ -429,6 +506,15 @@ export default {
handleWorking(data) { handleWorking(data) {
this.$emit("handleWorking", data); this.$emit("handleWorking", data);
}, },
handleViewResult(data) {
this.$emit("handleViewResult", data);
},
isPendingTrial(item) {
return item?.processResult === null
},
isProcessedTrial(item) {
return !this.isPendingTrial(item)
},
handleDetailClose() { handleDetailClose() {
this.detailVisible = !this.detailVisible; this.detailVisible = !this.detailVisible;
}, },
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
:trialOnboardings="detailInfo.trialOnboardings" :trialOnboardings="detailInfo.trialOnboardings"
@handleAddConfirm="handleTrialConfirm" @handleAddConfirm="handleTrialConfirm"
@handleWorking="handleWorking" @handleWorking="handleWorking"
@handleViewResult="handleViewResult"
:isBtn="isBtn" :isBtn="isBtn"
></trialOnboard> ></trialOnboard>
<!-- 入职计划 --> <!-- 入职计划 -->
...@@ -40,6 +41,18 @@ ...@@ -40,6 +41,18 @@
>取消</el-button >取消</el-button
> >
</div> </div>
<glsk-form-dialog
v-if="trialViewResultVisible"
class="trial-view-result-dialog"
dialog-width="640px"
:dialog-config="trialViewDialogConfig"
:edit-data="trialViewResultForm"
:edit-form-data="trialViewResultFormData"
:select-visible="trialViewResultVisible"
@handleClose="handleTrialViewResultClose"
@handleConfirm="handleTrialViewResultClose"
>
</glsk-form-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -49,13 +62,73 @@ import { handleRecruitment } from "@/api/recruitment" ...@@ -49,13 +62,73 @@ import { handleRecruitment } from "@/api/recruitment"
export default { export default {
mixins: [recruitMixin], mixins: [recruitMixin],
data() { data() {
const editItemStyle = {
marginBottom: "10px",
}
const contentStyle = {
width: "406px",
display: 'inline-block',
'word-break': 'break-all',
'white-space': 'pre-wrap',
'line-height': '22px',
'margin-top': '4px'
}
return { return {
loading: false, loading: false,
btnLoding: false, btnLoding: false,
isBtn: true isBtn: true,
trialViewResultVisible: false,
trialViewDialogConfig: {
title: "查看结果",
okText: "返回",
hideClose: true
},
trialViewResultForm: {},
trialViewResultFormData: [
{
label: "处理结果",
name: "processResult",
type: "showTxt",
formatter: (row) => {
const obj = {
"1": "通过",
"0": "不通过"
}
return obj[String(row.processResult)] || "-"
},
style: editItemStyle
},
{
label: "说明",
name: "processRemark",
type: "showTxt",
formatter: (row) => row.processRemark || "-",
style: editItemStyle,
txtStyle: contentStyle,
},
{
label: "处理人",
name: "processorName",
type: "showTxt",
style: editItemStyle
},
{
label: "处理时间",
name: "frontUpdatedDate",
type: "showTxt",
formatter: (row) => {
const date = row.frontUpdatedDate || row.updatedDate
return date ? Util.dateFormate(new Date(date), "YYYY-MM-DD HH:mm") : "-"
},
style: editItemStyle
}
]
} }
}, },
methods: { methods: {
handleTrialViewResultClose() {
this.trialViewResultVisible = false
},
handleSave() { handleSave() {
this.btnLoding = true this.btnLoding = true
let params = { let params = {
...@@ -99,6 +172,11 @@ export default { ...@@ -99,6 +172,11 @@ export default {
this.$refs.entryInfo.handleEntry?.(true) this.$refs.entryInfo.handleEntry?.(true)
this.$refs.entryInfo.isEntryForm = deepClone({ ...obj, skillTagIds: [] }) this.$refs.entryInfo.isEntryForm = deepClone({ ...obj, skillTagIds: [] })
}, },
// 试岗计划 - 查看结果
handleViewResult(data) {
this.trialViewResultForm = deepClone({ ...data })
this.trialViewResultVisible = true
},
//转试岗 //转试岗
handleTrial(data) { handleTrial(data) {
let params = { let params = {
...@@ -253,4 +331,12 @@ export default { ...@@ -253,4 +331,12 @@ export default {
scrollbar-color: transparent transparent; scrollbar-color: transparent transparent;
scrollbar-width: thin; scrollbar-width: thin;
} }
::v-deep .trial-view-result-dialog .el-dialog__footer .el-button {
width: 56px !important;
padding: 8px 14px !important;
color: #666666 !important;
background: #e8e8e8 !important;
border-color: #e8e8e8 !important;
}
</style> </style>
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<trialOnboard <trialOnboard
:trialOnboardings="detailInfo.trialOnboardings" :trialOnboardings="detailInfo.trialOnboardings"
:isBtn="isBtn" :isBtn="isBtn"
@handleViewResult="handleViewResult"
></trialOnboard> ></trialOnboard>
<entryInfo <entryInfo
:onboardingPlans="detailInfo.onboardingPlans" :onboardingPlans="detailInfo.onboardingPlans"
...@@ -23,17 +24,87 @@ ...@@ -23,17 +24,87 @@
>关闭</el-button >关闭</el-button
> >
</div> </div>
<glsk-form-dialog
v-if="trialViewResultVisible"
class="trial-view-result-dialog"
dialog-width="640px"
:dialog-config="trialViewDialogConfig"
:edit-data="trialViewResultForm"
:edit-form-data="trialViewResultFormData"
:select-visible="trialViewResultVisible"
@handleClose="handleTrialViewResultClose"
@handleConfirm="handleTrialViewResultClose"
>
</glsk-form-dialog>
</div> </div>
</template> </template>
<script> <script>
import { Util, deepClone } from "@/common/util"
import { recruitMixin } from "./components/recruitMixin" import { recruitMixin } from "./components/recruitMixin"
export default { export default {
mixins: [recruitMixin], mixins: [recruitMixin],
data() { data() {
const editItemStyle = {
marginBottom: "10px",
}
const contentStyle = {
width: "406px",
display: 'inline-block',
'word-break': 'break-all',
'white-space': 'pre-wrap',
'line-height': '22px',
'margin-top': '4px'
}
return { return {
loading: false, loading: false,
detailInfo: {}, detailInfo: {},
isBtn: false isBtn: false,
trialViewResultVisible: false,
trialViewDialogConfig: {
title: "查看结果",
okText: "返回",
hideClose: true
},
trialViewResultForm: {},
trialViewResultFormData: [
{
label: "处理结果",
name: "processResult",
type: "showTxt",
formatter: (row) => {
const obj = {
"1": "通过",
"0": "不通过"
}
return obj[String(row.processResult)] || "-"
},
style: editItemStyle
},
{
label: "说明",
name: "processRemark",
type: "showTxt",
formatter: (row) => row.processRemark || "-",
style: editItemStyle,
txtStyle: contentStyle,
},
{
label: "处理人",
name: "processorName",
type: "showTxt",
style: editItemStyle
},
{
label: "处理时间",
name: "frontUpdatedDate",
type: "showTxt",
formatter: (row) => {
const date = row.frontUpdatedDate || row.updatedDate
return date ? Util.dateFormate(new Date(date), "YYYY-MM-DD HH:mm") : "-"
},
style: editItemStyle
}
]
} }
}, },
mounted() { mounted() {
...@@ -42,7 +113,15 @@ export default { ...@@ -42,7 +113,15 @@ export default {
methods: { methods: {
handleCancel() { handleCancel() {
this.$router.push("/recruitmentManagement") this.$router.push("/recruitmentManagement")
} },
// 试岗计划 - 查看结果
handleViewResult(data) {
this.trialViewResultForm = deepClone({ ...data })
this.trialViewResultVisible = true
},
handleTrialViewResultClose() {
this.trialViewResultVisible = false
},
} }
} }
</script> </script>
...@@ -131,4 +210,12 @@ export default { ...@@ -131,4 +210,12 @@ export default {
scrollbar-color: transparent transparent; scrollbar-color: transparent transparent;
scrollbar-width: thin; scrollbar-width: thin;
} }
::v-deep .trial-view-result-dialog .el-dialog__footer .el-button {
width: 56px !important;
padding: 8px 14px !important;
color: #666666 !important;
background: #e8e8e8 !important;
border-color: #e8e8e8 !important;
}
</style> </style>
...@@ -47,13 +47,13 @@ ...@@ -47,13 +47,13 @@
<template> <template>
<auth-button <auth-button
category="Button" category="Button"
:data="{approvalType:1}" :data="{approveType:1}"
:show-btn-ids="['9210401']" :show-btn-ids="['9210401']"
/> />
<span style="margin-left: 10px;"> <span style="margin-left: 10px;">
<auth-button <auth-button
category="Button" category="Button"
:data="{approvalType:2}" :data="{approveType:2}"
:show-btn-ids="[ '9210402']" :show-btn-ids="[ '9210402']"
/> />
</span> </span>
...@@ -331,7 +331,7 @@ export default { ...@@ -331,7 +331,7 @@ export default {
2: 'addAndModifyTheListing' 2: 'addAndModifyTheListing'
} }
const routeName = routeMap[query.approvalType] const routeName = routeMap[query.approveType]
if (!routeName) { if (!routeName) {
this.$message.warning('未知的审批类型') this.$message.warning('未知的审批类型')
return return
......
...@@ -431,7 +431,17 @@ export default { ...@@ -431,7 +431,17 @@ export default {
this.GlOssApi.multipartUpload(file, success, fail, bucketName, fileType); this.GlOssApi.multipartUpload(file, success, fail, bucketName, fileType);
}, },
exportTemplate () { exportTemplate () {
let { shelfType } = this.infoForm,
name = {
1: '门店上架模版-单店模式',
2: '门店上架模版-项目制批量上架'
}[shelfType]
const link = document.createElement("a");
link.href = `https://img02.glsx.com.cn/weapp/resource/saas/xlsx/${name}.xlsx`
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
window.URL.revokeObjectURL(link.href);
}, },
handleOnExceed (files, fileList) { handleOnExceed (files, fileList) {
this.$message({ this.$message({
......
...@@ -151,10 +151,10 @@ export default { ...@@ -151,10 +151,10 @@ export default {
}, },
] ]
}, },
{ label: '服务商2/F公司', key: 't-g', type: 'select', options: [] }, { label: '服务商2/F公司', key: 'serviceMerchant2fName', type: 'select', options: [] },
{ label: '服务商', key: 't-h', type: 'select', options: [] }, { label: '服务商', key: 'partnerName', type: 'select', options: [] },
{ label: '上级服务商', key: 't-i', type: 'input', options: [], maxlength: 50 }, { label: '上级服务商', key: 'parentServiceMerchantName', type: 'input', options: [], maxlength: 50 },
{ label: '园区店', key: 't-j', type: 'select', options: [] }, { label: '园区店', key: 'yqMerchantName', type: 'select', options: [] },
], ],
customerInformation: [ customerInformation: [
{ label: '区域运营', key: 'areaOpId', type: 'select', options: [] }, { label: '区域运营', key: 'areaOpId', type: 'select', options: [] },
......
...@@ -21,7 +21,7 @@ const SALES_CATEGORY_LIST = [ ...@@ -21,7 +21,7 @@ const SALES_CATEGORY_LIST = [
}, },
{ {
title: '预估经营数据', list: [ title: '预估经营数据', list: [
{ label: '转化率', key: 'g', type: 'input', filterRule: 'decimalRange', min: 0, max: 100, precision: 2 }, { label: '转化率', key: 'conversionRate', type: 'input', filterRule: 'decimalRange', min: 0, max: 100, precision: 2 },
{ label: '升级客单价', key: 'upgradePrice', type: 'input', filterRule: 'decimalRange', min: 0, max: 999999, precision: 2 }, { label: '升级客单价', key: 'upgradePrice', type: 'input', filterRule: 'decimalRange', min: 0, max: 999999, precision: 2 },
{ label: '产值', key: 'revenue', type: 'input', filterRule: 'decimalRange', min: 0, max: 999999, precision: 2 }, { label: '产值', key: 'revenue', type: 'input', filterRule: 'decimalRange', min: 0, max: 999999, precision: 2 },
] ]
......
...@@ -89,7 +89,7 @@ import BasicInformation from './components/BasicInformation.vue' ...@@ -89,7 +89,7 @@ import BasicInformation from './components/BasicInformation.vue'
import TrafficProviderInformation from './components/TrafficProviderInformation.vue' import TrafficProviderInformation from './components/TrafficProviderInformation.vue'
import BusinessInformation from './components/BusinessInformation.vue' import BusinessInformation from './components/BusinessInformation.vue'
import SalesCategory from './components/SalesCategory.vue' import SalesCategory from './components/SalesCategory.vue'
import { storeApproveQueryDetail } from '@/api/salesManagement.js'
export default { export default {
name: 'StepTwo', name: 'StepTwo',
......
...@@ -38,13 +38,74 @@ ...@@ -38,13 +38,74 @@
type="info" type="info"
>取消</el-button> >取消</el-button>
</div> </div>
<el-dialog
:close-on-click-modal="false"
:show-close="false"
title="提示"
:visible.sync="dialogVisible"
width="30%"
>
<template v-if="!updateStatus">
<div class="dialog-content">
<div>
<el-progress
:percentage="updatePercentage"
type="circle"
:width="80"
>
</el-progress>
</div>
<div class="dialog-tips-big">
正在处理中
</div>
<div class="dialog-tips-small">
说明:系统正在加急导入中,请耐心等待;导入过程中,请不要退出当前操作,否则将导致本次提交无效。
</div>
</div>
</template>
<template v-else>
<div
v-if="succNum > 0"
class="dialog-content"
>
<div class="dialog-tips-big">
处理成功,可返回列表查看。
</div>
</div>
<div
v-if="failNum > 0"
class="dialog-content"
>
<div class="dialog-tips-big">
处理失败,可点击右上角下载失败模版,查看失败原因。
</div>
</div>
</template>
<template #footer>
<span
class="dialog-footer"
v-if="updateStatus && updatePercentage === 100"
>
<el-button
type="primary"
@click="nextStep"
>
{{succNum > 0 ? '继续下一步' : '确定'}}
</el-button>
</span>
</template>
</el-dialog>
</div> </div>
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import { mapActions, mapState } from "vuex";
import StepOne from './components/StepOne.vue'; import StepOne from './components/StepOne.vue';
import StepTwo from './components/StepTwo/index.vue'; import StepTwo from './components/StepTwo/index.vue';
import { getWorkwechatTemplate, getBusisDetailBasic } from "@api/shelfManage.js"; import { getWorkwechatTemplate, getBusisDetailBasic } from "@api/shelfManage.js";
import { storeApproveCreateDraft, storeApproveEditDraft } from '@/api/salesManagement.js'
import { deepClone } from "@/common/util";
export default { export default {
name: 'tigaListingAndSalesContract', name: 'tigaListingAndSalesContract',
...@@ -63,10 +124,38 @@ export default { ...@@ -63,10 +124,38 @@ export default {
pageComplete: false, pageComplete: false,
pageType: '', pageType: '',
templateInfo: [], templateInfo: [],
shelfTypeDisabled: false shelfTypeDisabled: false,
dialogVisible: false,
updateStatus: "",
updatePercentage: 0,
succNum: 0,
failNum: 0,
} }
}, },
watch: {
updateList: {
handler (newVal) {
if (newVal.length > 0) {
for (let i = 0; i < newVal.length; i++) {
if (newVal[i].uuid == this.updateUuid) {
this.updatePercentage = deepClone(newVal[i].progress);
if (newVal[i].progress === 100) {
this.updateStatus = deepClone(newVal[i].ifSuccess) || false;
this.succNum = deepClone(newVal[i].succNum) || 0;
this.failNum = deepClone(newVal[i].failNum) || 0;
}
}
}
}
},
deep: true,
},
},
computed: { computed: {
...mapState({
dowloadList: state => state.d2admin.user.dowloadList,
updateList: state => state.d2admin.user.updateList,
}),
stepOneRef () { stepOneRef () {
return this.$refs.stepOneRef return this.$refs.stepOneRef
}, },
...@@ -75,15 +164,15 @@ export default { ...@@ -75,15 +164,15 @@ export default {
} }
}, },
mounted () { mounted () {
return this.getDetail() // return this.getDetail()
let { approvalType, pageType, id } = this.$route.query let { approveType, pageType, id } = this.$route.query
if (pageType) { if (pageType) {
this.pageType = pageType this.pageType = pageType
if (pageType == 'view') return this.getDetail(id) if (pageType == 'view') return this.getDetail(id)
else if (pageType == 'reapply') this.getReapplyInfo(id) else if (pageType == 'reapply') this.getReapplyInfo(id)
else this.getApprovalTemplate(approvalType) else this.getApprovalTemplate(approveType)
} else { } else {
this.getApprovalTemplate(approvalType) this.getApprovalTemplate(approveType)
} }
}, },
methods: { methods: {
...@@ -97,19 +186,6 @@ export default { ...@@ -97,19 +186,6 @@ export default {
const data = await getWorkwechatTemplate({ id: type }) const data = await getWorkwechatTemplate({ id: type })
if (data) { if (data) {
const { propertyList } = data const { propertyList } = data
// propertyList.push({
// controlId: 'AA',
// inputType: 6,
// placeholder: "请选择",
// require: 1,
// options: [
// { key: '1', value: '选项1' },
// { key: '2', value: '选项2' },
// { key: '3', value: '选项3' },
// { key: '4', value: '选项4' },
// ],
// title: '测试多选标题'
// })
if (propertyList && propertyList.length) this.templateInfo = propertyList.map((item) => { if (propertyList && propertyList.length) this.templateInfo = propertyList.map((item) => {
if (item.inputType === 7) { if (item.inputType === 7) {
item.uploadFileList = []; item.uploadFileList = [];
...@@ -165,10 +241,57 @@ export default { ...@@ -165,10 +241,57 @@ export default {
console.log(this.stepOneRef.infoForm, this.templateInfo) console.log(this.stepOneRef.infoForm, this.templateInfo)
this.stepOneRef.formRef.validate(async (valid) => { this.stepOneRef.formRef.validate(async (valid) => {
if (valid) { if (valid) {
let { infoForm } = this.stepOneRef let { infoForm } = this.stepOneRef,
this.stepTwoRef.basicinformationData = infoForm { approveType } = this.$route.query,
this.stepTwoRef.basicinformationFormList = this.templateInfo
this.step = 2 basicApproveInfo = this.templateInfo.map((item) => {
// 1.文本;2.多行文本;3.数字;4.金额;5.单选;6.多选;7.附件
if ([1, 2, 3, 4, 5].includes(item.inputType)) {
item.value = infoForm[item.controlId] || "";
} else if (item.inputType === 6) {
item.value = infoForm[item.controlId].join(",");
} else if (item.inputType === 7) {
if (item.files && item.files.length > 0) {
const urls = item.files.map(file => file.fileUrl);
const fileNames = item.files.map((file) => {
let name = file.fileUrl?.split("/").pop();
name = name?.split(".").slice(0, -1).join(".");
return name;
});
item.value = urls.join(",");
item.fileNames = fileNames.join(",");
}
}
return item;
})
const params = {
sceneType: infoForm.sceneType,
file: infoForm.fileInfo,
basicApproveInfo: JSON.stringify(basicApproveInfo),
approveType: approveType,
shelfType: infoForm.shelfType,
submitFlag: 0
}
if (infoForm.shelfType == 1) {
params.merchantId = infoForm.merchantId;
params.merchantName = infoForm.merchantName;
}
const res = await storeApproveCreateDraft(params)
this.dialogVisible = true;
this.updateUuid = res;
// this.updatePercentage = 0
// 异步处理文件上传 把id传入处理轮询
const list = [
...this.updateList,
{
name: infoForm.fileName,
ifSuccess: false,
uuid: res,
type: "upload",
},
];
this.actionSetDownloadList({ list, type: "updateList" });
} }
}) })
} else { } else {
...@@ -179,6 +302,13 @@ export default { ...@@ -179,6 +302,13 @@ export default {
} }
}) })
} }
},
nextStep () {
if (this.succNum > 0) {
this.stepTwoRef.basicinformationData = this.infoForm
this.stepTwoRef.basicinformationFormList = this.templateInfo
this.step = 2
} else this.dialogVisible = false
} }
} }
} }
......
...@@ -64,8 +64,34 @@ ...@@ -64,8 +64,34 @@
:visible.sync="infoVerifyVisible" :visible.sync="infoVerifyVisible"
:customer-row="infoVerifyRow" :customer-row="infoVerifyRow"
:submit-api="infoVerifySubmit" :submit-api="infoVerifySubmit"
:merchant-type-labels="['4S店']"
@success="handleSearch" @success="handleSearch"
/> >
<template #storeDetail="{ customerRow }">
<div
v-if="customerRow && customerRow.id"
class="info-verify-store-detail"
>
<div class="info-verify-store-detail__title">
门店详情
</div>
<div class="info-verify-store-detail__grid">
<div class="info-verify-store-detail__row">
<span class="info-verify-store-detail__label">门店名称</span>
<span class="info-verify-store-detail__value">{{ customerRow.storeName || '-' }}</span>
</div>
<div class="info-verify-store-detail__row">
<span class="info-verify-store-detail__label">所在地区</span>
<span class="info-verify-store-detail__value">{{ [customerRow.provinceName, customerRow.city].filter(Boolean).join(' ') || '-' }}</span>
</div>
<div class="info-verify-store-detail__row info-verify-store-detail__row--full">
<span class="info-verify-store-detail__label">详细地址</span>
<span class="info-verify-store-detail__value">{{ customerRow.address || '-' }}</span>
</div>
</div>
</div>
</template>
</info-verify-merchant-dialog>
<glsk-form-dialog v-if="editVisible" :selectVisible="editVisible" :dialogConfig="editDialogConfig" label-width="104px" <glsk-form-dialog v-if="editVisible" :selectVisible="editVisible" :dialogConfig="editDialogConfig" label-width="104px"
dialog-width="520px" :formRules="editRules" :editData="editData" :editFormData="editFormData" :slotArr="slotArr" dialog-width="520px" :formRules="editRules" :editData="editData" :editFormData="editFormData" :slotArr="slotArr"
:base-data="baseData" @handleClose="editVisible = false" @handleConfirm="handleEditConfirm"> :base-data="baseData" @handleClose="editVisible = false" @handleConfirm="handleEditConfirm">
...@@ -89,7 +115,7 @@ import { busTypeOpt, cooperModeOpt, flowSituateOpt, potentialCustomerOpt } from ...@@ -89,7 +115,7 @@ import { busTypeOpt, cooperModeOpt, flowSituateOpt, potentialCustomerOpt } from
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { potentialCustomersPage, regionUserList, bind4SStore, potentialCustomersInfoVerify } from '@api/salesManagement' import { potentialCustomersPage, regionUserList, bind4SStore, potentialCustomersInfoVerify } from '@api/salesManagement'
import CustomerDetailDialog from '../components/CustomerDetailDialog.vue' import CustomerDetailDialog from '../components/CustomerDetailDialog.vue'
import InfoVerifyMerchantDialog from './components/InfoVerifyMerchantDialog.vue' import InfoVerifyMerchantDialog from '@/components/merchantVerify/InfoVerifyMerchantDialog.vue'
import { getList } from "@api/merchant" import { getList } from "@api/merchant"
// import { tmplTypeList } from "../constant/baseData" // import { tmplTypeList } from "../constant/baseData"
import { getDistrictDetail, getBrandList } from "@/api/shopConfig.js" import { getDistrictDetail, getBrandList } from "@/api/shopConfig.js"
...@@ -793,4 +819,41 @@ export default { ...@@ -793,4 +819,41 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
} }
.info-verify-store-detail {
margin-bottom: 16px;
padding: 12px 14px;
background: #f7f8fa;
border-radius: 6px;
border: 1px solid #ebeef5;
}
.info-verify-store-detail__title {
font-size: 14px;
font-weight: 600;
color: #303133;
margin-bottom: 10px;
}
.info-verify-store-detail__grid {
display: flex;
flex-wrap: wrap;
gap: 8px 24px;
}
.info-verify-store-detail__row {
flex: 1 1 40%;
min-width: 200px;
font-size: 13px;
line-height: 1.5;
}
.info-verify-store-detail__row--full {
flex: 1 1 100%;
}
.info-verify-store-detail__label {
color: #909399;
margin-right: 8px;
}
</style> </style>
<!-- 库存管理 --> <!-- 库存管理 -->
<template> <template>
<div> <div>
<d2-container> <d2-container>
<template #header> <template #header>
<div class="header" <div class="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" :form-data="showFormData" :search-form="searchForm" />
style="padding: 10px 20px;"> <div class="up-btns">
<d2-search ref="showSearch" <el-button size="small" type="primary" @click="handleSearch">
class="show-search" 查询
:form-data="showFormData" </el-button>
:search-form="searchForm" /> <el-button size="small" @click="handleReset">
<div class="up-btns"> 重置
<el-button size="small" </el-button>
type="primary" </div>
@click="handleSearch"> </div>
查询 </template>
</el-button> <div class="d2-container-content">
<el-button size="small" <d2-table-header>
@click="handleReset"> <template #left>
重置 <span class="leftSpan">
</el-button> 合计:当前库存<span class="count-txt">{{ statisticsData }}</span>
</div> </span>
</div> </template>
</template> <div>
<div class="d2-container-content"> <auth-button category="Button" />
<d2-table-header> </div>
<template #left> </d2-table-header>
<span class="leftSpan"> <d2-table ref="recordTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi"
合计:当前库存<span class="count-txt">{{ statisticsData }}</span> :search-form="searchFormSearch" :table-params="tableParams">
</span> <template #auth-button="scope">
</template> <auth-button :data="scope.scope" />
<div> </template>
<auth-button category="Button" /> </d2-table>
</div> </div>
</d2-table-header> </d2-container>
<d2-table ref="recordTable" <!-- 查看 -->
:before-search-fn="beforeSearchFn" <StockMonthDialog v-if="stockMonthVisible" :record-info="recordInfo" :stock-month-visible="stockMonthVisible"
:get-list-api="getListApi" @dialogClose="dialogClose" />
:search-form="searchFormSearch" <StockDetailDialog v-if="stockDetailDialogVisible" :record-info="recordInfo"
:table-params="tableParams"> :visible.sync="stockDetailDialogVisible">
<template #auth-button="scope"> </StockDetailDialog>
<auth-button :data="scope.scope" /> <StatementOfAccountDialog v-if="statementOfAccountDialogVisible" :visible.sync="statementOfAccountDialogVisible"
</template> :yq-merchant-list="baseData.yqMerchantList" @handleRelateProConfirm="handleRelateProConfirm">
</d2-table> </StatementOfAccountDialog>
</div> </div>
</d2-container>
<!-- 查看 -->
<StockMonthDialog v-if="stockMonthVisible"
:record-info="recordInfo"
:stock-month-visible="stockMonthVisible"
@dialogClose="dialogClose" />
<StockDetailDialog v-if="stockDetailDialogVisible"
:record-info="recordInfo"
:visible.sync="stockDetailDialogVisible">
</StockDetailDialog>
<StatementOfAccountDialog v-if="statementOfAccountDialogVisible"
:visible.sync="statementOfAccountDialogVisible"
:yq-merchant-list="baseData.yqMerchantList"
@handleRelateProConfirm="handleRelateProConfirm">
</StatementOfAccountDialog>
</div>
</template> </template>
<script> <script>
...@@ -248,6 +232,7 @@ export default { ...@@ -248,6 +232,7 @@ export default {
// 库存记录统计 // 库存记录统计
stockMonthReportCount() { stockMonthReportCount() {
this.beforeSearchFn()
stockMonthReportCount(this.searchFormSearch).then((res) => { stockMonthReportCount(this.searchFormSearch).then((res) => {
this.statisticsData = res; this.statisticsData = res;
}); });
......
<!-- 商务审核 --> <!-- 商务审核 -->
<template> <template>
<div> <div>
<d2-container> <d2-container>
<template #header> <template #header>
<div class="header" style="padding: 10px 20px"> <div class="header" style="padding: 10px 20px">
<d2-search ref="showSearch" <d2-search ref="showSearch" class="show-search" :form-data="showFormData" :search-form="searchForm" />
class="show-search" <div class="up-btns">
:form-data="showFormData" <el-button :id="tableParams.btnId" size="small" type="primary">
:search-form="searchForm" /> 查询
<div class="up-btns"> </el-button>
<el-button :id="tableParams.btnId" <el-button size="small" @click="handleReset">
size="small" 重置
type="primary"> </el-button>
查询 </div>
</el-button> </div>
<el-button size="small" @click="handleReset"> </template>
重置 <div class="d2-container-content">
</el-button> <d2-table-header>
</div> <!-- <span slot="left"
</div>
</template>
<div class="d2-container-content">
<d2-table-header>
<!-- <span slot="left"
v-if="!userInfo.beSuper && userInfo.beYQMerchant"> v-if="!userInfo.beSuper && userInfo.beYQMerchant">
<auth-button category="Button" <auth-button category="Button"
:show-btn-ids="['9080501']" /> :show-btn-ids="['9080501']" />
</span> --> </span> -->
<auth-button category="Button" :show-btn-ids="['9081001']" /> <auth-button category="Button" :show-btn-ids="['9081001']" />
</d2-table-header> </d2-table-header>
<d2-table ref="recordTable" <d2-table ref="recordTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn" :search-form="searchFormSearch" :table-params="tableParams">
:get-list-api="getListApi" <template #auth-button="scope">
:search-form="searchFormSearch" <div>
:table-params="tableParams"> <span style="margin-right: 10px">
<template #auth-button="scope"> <auth-button :data="scope.scope" :show-btn-ids="['9081002']" />
<div> </span>
<span style="margin-right: 10px"> <span v-if="scope.scope.billStatus == 2" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9081002']" /> <auth-button :data="scope.scope" :show-btn-ids="['9081003']" />
</span> </span>
<span v-if="scope.scope.billStatus == 2" style="margin-right: 10px"> <span v-if="scope.scope.billStatus == 2" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9081003']" /> <auth-button :data="scope.scope" :show-btn-ids="['9081004']" />
</span> </span>
<span v-if="scope.scope.billStatus == 2" style="margin-right: 10px"> </div>
<auth-button :data="scope.scope" :show-btn-ids="['9081004']" /> </template>
</span> </d2-table>
</div> </div>
</template> </d2-container>
</d2-table> <!-- 查看 -->
</div> <TransferDetailDialog v-if="transferDetailVisible" :hide-contact="true" :is-store="true" :params-obj="transferObj"
</d2-container> :visible.sync="transferDetailVisible" />
<!-- 查看 --> </div>
<TransferDetailDialog v-if="transferDetailVisible"
:hide-contact="true"
:params-obj="transferObj"
:visible.sync="transferDetailVisible" />
</div>
</template> </template>
<script> <script>
...@@ -338,7 +328,7 @@ export default { ...@@ -338,7 +328,7 @@ export default {
if ( if (
this.baseData[item.optionsName].length this.baseData[item.optionsName].length
&& this.baseData[item.optionsName][0][ && this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel this.showFormData[index].optionLabel
] !== "全部" ] !== "全部"
) { ) {
const temp = {}; const temp = {};
...@@ -472,6 +462,7 @@ export default { ...@@ -472,6 +462,7 @@ export default {
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.leftSpan { .leftSpan {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
......
<!-- 运营审核 --> <!-- 运营审核 -->
<template> <template>
<div> <div>
<d2-container> <d2-container>
<template #header> <template #header>
<div class="header" style="padding: 10px 20px"> <div class="header" style="padding: 10px 20px">
<d2-search ref="showSearch" <d2-search ref="showSearch" class="show-search" :form-data="showFormData" :search-form="searchForm" />
class="show-search" <div class="up-btns">
:form-data="showFormData" <el-button :id="tableParams.btnId" size="small" type="primary">
:search-form="searchForm" /> 查询
<div class="up-btns"> </el-button>
<el-button :id="tableParams.btnId" <el-button size="small" @click="handleReset">
size="small" 重置
type="primary"> </el-button>
查询 </div>
</el-button> </div>
<el-button size="small" @click="handleReset"> </template>
重置 <div class="d2-container-content">
</el-button> <d2-table-header>
</div> <!-- <span slot="left"
</div>
</template>
<div class="d2-container-content">
<d2-table-header>
<!-- <span slot="left"
v-if="!userInfo.beSuper && userInfo.beYQMerchant"> v-if="!userInfo.beSuper && userInfo.beYQMerchant">
<auth-button category="Button" <auth-button category="Button"
:show-btn-ids="['9080501']" /> :show-btn-ids="['9080501']" />
</span> --> </span> -->
<auth-button category="Button" :show-btn-ids="['9080901']" /> <auth-button category="Button" :show-btn-ids="['9080901']" />
</d2-table-header> </d2-table-header>
<d2-table ref="recordTable" <d2-table ref="recordTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn" :search-form="searchFormSearch" :table-params="tableParams">
:get-list-api="getListApi" <template #auth-button="scope">
:search-form="searchFormSearch" <div>
:table-params="tableParams"> <span style="margin-right: 10px">
<template #auth-button="scope"> <auth-button :data="scope.scope" :show-btn-ids="['9080902']" />
<div> </span>
<span style="margin-right: 10px"> <span v-if="scope.scope.billStatus == 1" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9080902']" /> <auth-button :data="scope.scope" :show-btn-ids="['9080903']" />
</span> </span>
<span v-if="scope.scope.billStatus == 1" style="margin-right: 10px"> <span v-if="scope.scope.billStatus == 1" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9080903']" /> <auth-button :data="scope.scope" :show-btn-ids="['9080904']" />
</span> </span>
<span v-if="scope.scope.billStatus == 1" style="margin-right: 10px"> </div>
<auth-button :data="scope.scope" :show-btn-ids="['9080904']" /> </template>
</span> </d2-table>
</div> </div>
</template> </d2-container>
</d2-table> <!-- 查看 -->
</div> <TransferDetailDialog v-if="transferDetailVisible" :hide-contact="true" :is-store="false" :params-obj="transferObj"
</d2-container> :visible.sync="transferDetailVisible" />
<!-- 查看 --> </div>
<TransferDetailDialog v-if="transferDetailVisible"
:hide-contact="true"
:params-obj="transferObj"
:visible.sync="transferDetailVisible" />
</div>
</template> </template>
<script> <script>
...@@ -332,7 +322,7 @@ export default { ...@@ -332,7 +322,7 @@ export default {
if ( if (
this.baseData[item.optionsName].length this.baseData[item.optionsName].length
&& this.baseData[item.optionsName][0][ && this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel this.showFormData[index].optionLabel
] !== "全部" ] !== "全部"
) { ) {
const temp = {}; const temp = {};
...@@ -446,6 +436,7 @@ export default { ...@@ -446,6 +436,7 @@ export default {
color: #2a58ad; color: #2a58ad;
margin: 0 2px; margin: 0 2px;
} }
.leftSpan { .leftSpan {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -62,8 +62,8 @@ ...@@ -62,8 +62,8 @@
<auth-button :data="scope.scope" <auth-button :data="scope.scope"
:show-btn-ids="['9063002']" /> :show-btn-ids="['9063002']" />
</span> </span>
<!-- 自定义周期 --> <!-- 自定义周期:门店产值及个人成交排名 / BI数据分析表 / 无日报门店产值表 -->
<span v-if="scope.scope.report_type.includes('门店产值及个人成交排名') || scope.scope.report_type.includes('BI数据分析表')" <span v-if="isCustomPeriodReportType(scope.scope.report_type)"
style="margin-right: 10px;"> style="margin-right: 10px;">
<auth-button :data="scope.scope" <auth-button :data="scope.scope"
:show-btn-ids="['9063003']" /> :show-btn-ids="['9063003']" />
...@@ -279,6 +279,19 @@ export default { ...@@ -279,6 +279,19 @@ export default {
// }), // }),
// ...mapActions('d2admin/user', ['actionSetDownloadList']), // ...mapActions('d2admin/user', ['actionSetDownloadList']),
/**
* 是否展示「自定义周期」按钮(与 common/constants.js downloadReportManage_reportType 中报表名称一致)
*/
isCustomPeriodReportType(reportType) {
if (!reportType || typeof reportType !== "string") return false;
const keywords = [
"门店产值及个人成交排名",
"BI数据分析表",
"无日报门店产值表",
];
return keywords.some((k) => reportType.includes(k));
},
async getBaseData() { async getBaseData() {
this.getOptionsList(); this.getOptionsList();
}, },
......
...@@ -13,17 +13,32 @@ ...@@ -13,17 +13,32 @@
</div> </div>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header>
<span slot="left">服务商列表</span>
<el-button type="primary"
size="small"
@click="openInfoVerifyDialog">
新增
</el-button>
</d2-table-header>
<d2-table ref="serviceStoreTable" :search-form="searchForm" :table-params="tableParams" :get-list-api="getListApi" <d2-table ref="serviceStoreTable" :search-form="searchForm" :table-params="tableParams" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :show-btn-ids="['9060503']" :data="scope.scope" /> <auth-button slot="auth-button" slot-scope="scope" :show-btn-ids="['9060503']" :data="scope.scope" />
</d2-table> </d2-table>
</div> </div>
<info-verify-merchant-dialog :visible.sync="infoVerifyVisible"
:customer-row="null"
:submit-api="infoVerifySubmit"
:merchant-type-labels="['园区店']"
@success="onInfoVerifySuccess" />
</d2-container> </d2-container>
</template> </template>
<script> <script>
import { Util } from '@/common/util' import { Util } from '@/common/util'
import { getList } from '@api/serviceManage' import { getList } from '@api/serviceManage'
import { potentialCustomersInfoVerify } from '@api/salesManagement'
import InfoVerifyMerchantDialog from '@/components/merchantVerify/InfoVerifyMerchantDialog.vue'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { procureModeList } from "@/common/constants" import { procureModeList } from "@/common/constants"
export default { export default {
...@@ -163,11 +178,14 @@ export default { ...@@ -163,11 +178,14 @@ export default {
return cellValue.updatedDate ? Util.dateFormate(cellValue.updatedDate, 'YYYY-MM-DD HH:mm:ss') : '-' return cellValue.updatedDate ? Util.dateFormate(cellValue.updatedDate, 'YYYY-MM-DD HH:mm:ss') : '-'
} }
}] }]
} },
infoVerifyVisible: false,
infoVerifySubmit: potentialCustomersInfoVerify
} }
}, },
components: { components: {
InfoVerifyMerchantDialog
}, },
mounted() { }, mounted() { },
...@@ -192,6 +210,12 @@ export default { ...@@ -192,6 +210,12 @@ export default {
} }
this.$refs.serviceStoreTable.refreshTable() this.$refs.serviceStoreTable.refreshTable()
}, },
openInfoVerifyDialog() {
this.infoVerifyVisible = true
},
onInfoVerifySuccess() {
this.$refs.serviceStoreTable.refreshTable()
},
// 编辑服务商 // 编辑服务商
handleEdit(row) { handleEdit(row) {
this.close({ tagName: '/editService' }) this.close({ tagName: '/editService' })
......
...@@ -23,6 +23,11 @@ ...@@ -23,6 +23,11 @@
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header> <d2-table-header>
<span slot="left">园区店服务商关联列表</span> <span slot="left">园区店服务商关联列表</span>
<el-button type="primary"
size="small"
@click="openInfoVerifyDialog">
新增
</el-button>
<auth-button category="Button" /> <auth-button category="Button" />
</d2-table-header> </d2-table-header>
<d2-table ref="serviceStoreTable" <d2-table ref="serviceStoreTable"
...@@ -47,12 +52,19 @@ ...@@ -47,12 +52,19 @@
:info="recordInfo" :info="recordInfo"
v-if="sceneEntryVisible" v-if="sceneEntryVisible"
@dialogClose="sceneDialogClose" /> @dialogClose="sceneDialogClose" />
<info-verify-merchant-dialog :visible.sync="infoVerifyVisible"
:customer-row="null"
:submit-api="infoVerifySubmit"
:merchant-type-labels="['园区店']"
@success="onInfoVerifySuccess" />
</d2-container> </d2-container>
</template> </template>
<script> <script>
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { getYqMerchantinfoPage } from '@api/serviceManage' import { getYqMerchantinfoPage } from '@api/serviceManage'
import { potentialCustomersInfoVerify } from '@api/salesManagement'
import InfoVerifyMerchantDialog from '@/components/merchantVerify/InfoVerifyMerchantDialog.vue'
import { mapActions } from 'vuex' import { mapActions } from 'vuex'
import { BaseData, manageTypeList } from '@/common/constants.js' import { BaseData, manageTypeList } from '@/common/constants.js'
import qrcodeDialog from './qRcodeDialog' import qrcodeDialog from './qRcodeDialog'
...@@ -222,14 +234,17 @@ export default { ...@@ -222,14 +234,17 @@ export default {
qRcodeVisible: false, qRcodeVisible: false,
QRcodeDialog: false, QRcodeDialog: false,
recordInfo: {}, recordInfo: {},
sceneEntryVisible: false sceneEntryVisible: false,
infoVerifyVisible: false,
infoVerifySubmit: potentialCustomersInfoVerify
} }
}, },
components: { components: {
qrcodeDialog, qrcodeDialog,
wxQRcodeDialog, wxQRcodeDialog,
sceneEntryDialog sceneEntryDialog,
InfoVerifyMerchantDialog
}, },
mounted() { mounted() {
...@@ -316,6 +331,14 @@ export default { ...@@ -316,6 +331,14 @@ export default {
this.sceneEntryVisible = !this.sceneEntryVisible this.sceneEntryVisible = !this.sceneEntryVisible
}, },
openInfoVerifyDialog() {
this.infoVerifyVisible = true
},
onInfoVerifySuccess() {
this.$refs.serviceStoreTable.refreshTable()
},
// 上架 // 上架
handleLaunch(row) { handleLaunch(row) {
this.$router.push({ this.$router.push({
......
...@@ -74,18 +74,18 @@ const cdn = { ...@@ -74,18 +74,18 @@ const cdn = {
`${CDN_DOMAIN}/js.cookie.min.js`, `${CDN_DOMAIN}/js.cookie.min.js`,
`${CDN_DOMAIN}/nprogress.min.js`, `${CDN_DOMAIN}/nprogress.min.js`,
`${CDN_DOMAIN}/echarts.min.js`, `${CDN_DOMAIN}/echarts.min.js`,
// `${CDN_DOMAIN}/lodash.min.js`,
`${CDN_DOMAIN}/qs.min.js`, `${CDN_DOMAIN}/qs.min.js`,
`${CDN_DOMAIN}/ua-parser.min.js`, `${CDN_DOMAIN}/ua-parser.min.js`,
`${CDN_DOMAIN}/html2canvas.min.js`, `${CDN_DOMAIN}/html2canvas.min.js`,
`${CDN_DOMAIN}/element-ui.min.js`, `${CDN_DOMAIN}/element-ui.min.js`,
`${CDN_DOMAIN}/better-scroll.min.js`, `${CDN_DOMAIN}/better-scroll.min.js`,
`${CDN_DOMAIN}/dayjs.min.js`,
`${CDN_DOMAIN}/xlsx.min.js`,
// `${CDN_DOMAIN}/lodash.min.js`,
// `${CDN_DOMAIN}/better-scroll.min.js`, // `${CDN_DOMAIN}/better-scroll.min.js`,
// `https://cdn.bootcdn.net/ajax/libs/better-scroll/2.4.2/better-scroll.min.js`, // `https://cdn.bootcdn.net/ajax/libs/better-scroll/2.4.2/better-scroll.min.js`,
// `https://img01.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/better-scroll.min.js`, // `https://img01.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/better-scroll.min.js`,
`${CDN_DOMAIN}/dayjs.min.js`,
// `${CDN_DOMAIN}/vue-qr.js`, // `${CDN_DOMAIN}/vue-qr.js`,
`${CDN_DOMAIN}/xlsx.min.js`,
// `${CDN_DOMAIN}/flex.css` // `${CDN_DOMAIN}/flex.css`
], ],
}; };
...@@ -159,8 +159,9 @@ module.exports = { ...@@ -159,8 +159,9 @@ module.exports = {
dayjs: "dayjs", dayjs: "dayjs",
// "vue-qr": "vue-qr", // "vue-qr": "vue-qr",
xlsx: "XLSX", xlsx: "XLSX",
// 模块名须与 import 路径一致:import BScroll from 'better-scroll' // 与 CDN UMD 全局名一致(非 BScroll)
"better-scroll": "BScroll", // "better-scroll": "BetterScroll",
BScroll: "better-scroll",
// lodash: "_", // lodash: "_",
}; };
} }
...@@ -226,7 +227,7 @@ module.exports = { ...@@ -226,7 +227,7 @@ module.exports = {
configFile: path.resolve(__dirname, ".sentryclirc"), configFile: path.resolve(__dirname, ".sentryclirc"),
// 与部署路径一致,便于 Sentry 将 map 与线上资源对齐 // 与部署路径一致,便于 Sentry 将 map 与线上资源对齐
urlPrefix: `~${publicPath}`, urlPrefix: `~${publicPath}`,
}), })
); );
} }
...@@ -282,12 +283,12 @@ module.exports = { ...@@ -282,12 +283,12 @@ module.exports = {
// optional. Resolve result css code as you wish. // optional. Resolve result css code as you wish.
return resultCss.replace( return resultCss.replace(
/process.env.VUE_APP_ELEMENT_COLOR/g, /process.env.VUE_APP_ELEMENT_COLOR/g,
process.env.VUE_APP_ELEMENT_COLOR, process.env.VUE_APP_ELEMENT_COLOR
); );
}, },
matchColors: [ matchColors: [
...forElementUI.getElementUISeries( ...forElementUI.getElementUISeries(
process.env.VUE_APP_ELEMENT_COLOR, process.env.VUE_APP_ELEMENT_COLOR
), // Element-ui主色系列 ), // Element-ui主色系列
], ],
externalCssFiles: [ externalCssFiles: [
...@@ -301,7 +302,7 @@ module.exports = { ...@@ -301,7 +302,7 @@ module.exports = {
.when( .when(
process.env.NODE_ENV === "development", process.env.NODE_ENV === "development",
// sourcemap不包含列信息 // sourcemap不包含列信息
(config) => config.devtool("cheap-source-map"), (config) => config.devtool("cheap-source-map")
) )
// TRAVIS 构建 vue-loader 添加 filename // TRAVIS 构建 vue-loader 添加 filename
.when( .when(
...@@ -309,7 +310,7 @@ module.exports = { ...@@ -309,7 +310,7 @@ module.exports = {
process.env.NODE_ENV === "development", process.env.NODE_ENV === "development",
VueFilenameInjector(config, { VueFilenameInjector(config, {
propName: process.env.VUE_APP_SOURCE_VIEWER_PROP_NAME, propName: process.env.VUE_APP_SOURCE_VIEWER_PROP_NAME,
}), })
); );
// svg // svg
const svgRule = config.module.rule("svg"); const svgRule = config.module.rule("svg");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!