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
.cursor
.trae
# 本地环境文件不上传
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
......
......@@ -32,4 +32,4 @@
"javascript.suggest.autoImports": true, // 确保这个是 true
"vue.updateImportsOnFileMove.enabled": true,
"i18n-ally.sourceLanguage": "zh-chs"
}
\ No newline at end of file
}
......@@ -9,76 +9,112 @@
import request from "./request";
// 分页查询潜客数据
export function potentialCustomersPage(data) {
export function potentialCustomersPage (data) {
data.method = "dj.api.smartcarlife.sale.potentialCustomers.page";
return request(data, "post");
}
// 潜客详情数据
export function potentialCustomersDetail(data) {
export function potentialCustomersDetail (data) {
data.method = "dj.api.smartcarlife.sale.potentialCustomers.detail";
return request(data, "post");
}
// 首次绑定/重新绑定4S店
export function bind4SStore(data) {
export function bind4SStore (data) {
data.method = "dj.api.smartcarlife.sale.potentialCustomers.bind";
return request(data, "post");
}
// 潜客信息核验提交(与新增商户字段一致;method 待后端确认后替换)
export function potentialCustomersInfoVerify(data) {
data.method = 'dj.api.smartcarlife.sale.potentialCustomers.infoVerify'
return request(data, "post")
export function potentialCustomersInfoVerify (data) {
data.method = 'dj.api.smartcarlife.sale.potentialCustomers.infoVerify'
return request(data, "post")
}
// 分页查询大区
export function regionPage(data) {
export function regionPage (data) {
data.method = "dj.api.smartcarlife.sale.region.page";
return request(data, "post");
}
// 获取大区人员
export function regionUserList(data) {
export function regionUserList (data) {
data.method = "dj.api.smartcarlife.sale.region.userList";
return request(data, "post");
}
// 更新大区人员
export function updateRegionUser(data) {
export function updateRegionUser (data) {
data.method = "dj.api.smartcarlife.sale.region.updateRegionUser";
return request(data, "post");
}
// 区域运营模块接口
// 区域运营管理人员列表
export function organizationUserList(data) {
export function organizationUserList (data) {
data.method = "dj.api.script.province.organization.list";
return request(data, "post");
}
// 区域运营管理编辑
export function organizationUserUpdate(data) {
export function organizationUserUpdate (data) {
data.method = "dj.api.script.province.organization.upd";
return request(data, "post");
}
// 关店管理列表/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";
return request(data, "post");
}
//是否关店
export function closeStoreConfirm(data) {
export function closeStoreConfirm (data) {
data.method = "dj.api.smartcarlife.sale.closeStore.confirm";
return request(data, "post");
}
// 关店详情
export function closeStoreDetail(data) {
export function closeStoreDetail (data) {
data.method = "dj.api.smartcarlife.sale.closeStore.detail";
return request(data, "post");
}
export function storeApprovePageQuery(data) {
/**
* 分页查询门店上架审批单
*/
export function storeApprovePageQuery (data) {
data.method = "dj.api.oaapproval.store.approve.pageQuery";
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 = [
{ value: 19, label: "位" },
{ value: 20, label: "页" },
{ value: 21, label: "张" },
{ value: 22, label: "车" }
{ value: 22, label: "车" },
];
/**
......@@ -427,8 +427,8 @@ export function limitPrice(
};
regRule = regRule || "priceReg";
if (
newValue &&
((minValue && newValue < minValue) || (maxValue && newValue > maxValue))
newValue
&& ((minValue && newValue < minValue) || (maxValue && newValue > maxValue))
) {
return oldValue || "";
}
......@@ -437,18 +437,18 @@ export function limitPrice(
newValue = newValue + "";
let interger = newValue.split(".")[0];
let point = newValue.split(".")[1];
let intergerNum =
interger.length > intergerDigit
let intergerNum
= interger.length > intergerDigit
? oldValue.split(".")[0]
: interger;
let pointNum =
point.length > pointDigit ? point.slice(0, pointDigit) : point;
let pointNum
= point.length > pointDigit ? point.slice(0, pointDigit) : point;
newValue = pointDigit
? intergerNum + "." + pointNum
: newValue.split(".")[0];
} else {
newValue =
newValue.length > intergerDigit
newValue
= newValue.length > intergerDigit
? oldValue.slice(0, intergerDigit)
: newValue;
}
......@@ -481,13 +481,13 @@ export const appointDays = 35;
export const afterTodayOptions = {
disabledDate(date) {
if (
date < new Date(new Date().toLocaleDateString()) ||
date >
new Date(
new Date().setDate(
new Date().getDate() + (appointDays - 1),
),
)
date < new Date(new Date().toLocaleDateString())
|| date
> new Date(
new Date().setDate(
new Date().getDate() + (appointDays - 1),
),
)
) {
return true;
}
......@@ -549,8 +549,8 @@ export const sceneList = {
};
// 新场景
export const newSceneList = {
1: "权益类",
2: "轻改类"
0: "权益类",
1: "轻改类",
};
// 导流方下拉选项对应
export const attrToVal = [
......@@ -1111,9 +1111,9 @@ export const businessOptShowText = {
};
// 预警管理 所属业务 显示文字
export const orderBusinessType = {
0: "轻改",
1: "权益",
2: "延保",
"0": "轻改",
"1": "权益",
"2": "延保",
"-1": "其他",
};
......@@ -1679,14 +1679,14 @@ export const evaluationSourceOpt = [
{ confId: 4, confValue: "车况生成" },
];
export const evaluationStatusOptMap = {
10: "#FDB757",
20: "#2CCA74",
30: "#2CCA74",
31: "#2CCA74",
32: "#2CCA74",
40: "#2CCA74",
50: "#2CCA74",
100: "#8C8C8C",
"10": "#FDB757",
"20": "#2CCA74",
"30": "#2CCA74",
"31": "#2CCA74",
"32": "#2CCA74",
"40": "#2CCA74",
"50": "#2CCA74",
"100": "#8C8C8C",
"-1": "#EB4E4E",
};
// 合同类型
......
......@@ -3,6 +3,7 @@
<div class="glsk-form-dialog">
<d2-dialog :append-to-body="appendToBody"
:btn-ok-label="dialogConfig.okText"
:noCancel="dialogConfig.hideClose"
:is-visible="selectVisible"
:title="dialogConfig.title"
:width="dialogWidth"
......@@ -56,6 +57,7 @@ export default {
return {
title: "提示",
okText: "确定",
hideClose: false,
};
},
},
......
......@@ -11,6 +11,9 @@
@close="onDialogClose"
>
<div v-loading="loading" class="dialog-body-inner">
<div v-if="$scopedSlots.storeDetail">
<slot name="storeDetail" :customer-row="customerRow" />
</div>
<glsx-combi-form
ref="editFormRef"
class="info-verify-form"
......@@ -82,7 +85,7 @@
import { deepClone } from "@/common/util";
import ProvinceCity from "@/components/province-city/index.vue";
import SelectBrand from "@/components/SelectBrand/index.vue";
import merchantVerifyFormMixin from "../mixins/merchantVerifyFormMixin";
import merchantVerifyFormMixin from "./merchantVerifyFormMixin";
export default {
name: "InfoVerifyMerchantDialog",
......@@ -104,6 +107,11 @@ export default {
type: Object,
default: null,
},
/** 商户类型选项(字典 label),如客户信息核验仅 4S:['4S店'];园区店/服务商新增:['园区店'];不传则三种都展示 */
merchantTypeLabels: {
type: Array,
default: null,
},
},
computed: {
dialogVisible: {
......
......@@ -49,6 +49,7 @@ function buildEditFormData(vm) {
optionLabel: "confLabel",
optionsName: "merchantTypeList",
optionList: [],
isHide: false,
style: DIALOG_FULL,
handleRadioChange: () => {},
},
......@@ -286,6 +287,10 @@ export default {
this.editFormData[this.findIdx("parentId")].isHide = false;
this.editFormData[this.findIdx("channelId")].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.channelId[0].required = true;
this.formRules.merchantModel[0].required = true;
......@@ -388,9 +393,12 @@ export default {
async getMerchantType() {
const params = { dictType: "account_type" };
const res = await getMerchantTypeApi(params);
const list = ["4S店", "园区店", "服务商"];
const labelOrder =
this.merchantTypeLabels && this.merchantTypeLabels.length
? this.merchantTypeLabels
: ["4S店", "园区店", "服务商"];
this.baseData.merchantTypeList = [];
list.forEach((item) => {
labelOrder.forEach((item) => {
const obj = res.find((k) => k.dictLabel == item);
if (obj) {
this.baseData.merchantTypeList.push({
......@@ -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() {
const params = { dictType: "account_level" };
......
......@@ -166,6 +166,7 @@
<script>
import { getBillTmplAdapter, getMetaTmpl, getShopList, getTmplList } from "@api/accountManage";
import { getMerchantPageSearch } from "@api/publicAccount";
import { getScenesByParams } from "@api/senseManage";
import dayjs from "dayjs";
import { mapActions, mapState } from "vuex";
import {
......@@ -203,6 +204,7 @@ export default {
return {
loading: false,
multipleLimit: 10,
sceneTypeList: [],
// 判断是否是模版模式
isTmpl: false,
localTmplList: deepClone(localTmplList),
......@@ -286,24 +288,11 @@ export default {
selectLoading: false,
// 基本数据
baseData: {
sceneTypeList: [{
confId: "1",
confLabel: "精品升级",
}, {
confId: "2",
confLabel: "次新车转化",
}, {
confId: "3",
confLabel: "售后众筹",
}, {
confId: "4",
confLabel: "积分商城",
}],
businessLineList: [{
confId: "1",
confId: "0",
confLabel: "权益类",
}, {
confId: "2",
confId: "1",
confLabel: "轻改类",
}],
reconStatusList: [{
......@@ -349,11 +338,15 @@ export default {
dowloadList: state => state.d2admin.user.dowloadList,
}),
sceneTypeOptionList() {
// 选项 = 全部 + 当前业务线下的场景
// 目前场景列表是静态配置;后续如改成按业务线动态加载,这里只需要替换 filteredList 的来源即可。
const filteredList = Array.isArray(this.baseData.sceneTypeList)
? this.baseData.sceneTypeList
: [];
// 选项 = 全部 + 当前业务线动态获取的场景列表
const inputList = Array.isArray(this.sceneTypeList) ? this.sceneTypeList : [];
const filteredList = inputList
.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 [
{ confId: "", confLabel: "全部" },
...filteredList,
......@@ -367,6 +360,8 @@ export default {
const sceneStr = val == null ? "" : String(val);
const exists = this.baseData.businessLineList.some(i => i.confId === sceneStr);
this.infoForm.businessLine = exists ? sceneStr : (this.baseData.businessLineList[0]?.confId || "");
// 首次打开弹框时,确保能根据当前业务线拉取“业务场景”列表
this.syncSceneTypeList();
},
immediate: true,
},
......@@ -374,6 +369,7 @@ export default {
handler() {
// 切换业务线时,业务场景默认回到“全部”
this.infoForm.sceneType = [""];
this.syncSceneTypeList();
},
},
},
......@@ -399,6 +395,27 @@ export default {
methods: {
...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) {
if (!Array.isArray(value)) {
return;
......
......@@ -13,7 +13,7 @@
:model="infoForm"
:rules="formRules"
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-option v-for="item in baseData.businessLineList"
:key="item.confId"
......@@ -94,6 +94,14 @@
:picker-options="pickerOptions0"
style="width:185px" />
</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"
label="套餐合并"
prop="packageMerge">
......@@ -255,7 +263,7 @@ export default {
{ required: true, message: "请选择时间", trigger: "change" },
{ required: true, trigger: "change", validator: validateLonlat },
],
reconciliationStatus: [{ required: true, message: "请选择业务场景", trigger: "change" }],
reconciliationStatus: [{ required: true, message: "请选择对账状态", trigger: "change" }],
packageMerge: [{ required: true, message: "请选择套餐合并", trigger: "change" }],
templateId: [{ required: false, message: "请选择对账模式", trigger: "change" }],
fieldsJson: [{ required: false, message: "请选择对账字段", trigger: "change" }],
......@@ -265,10 +273,10 @@ export default {
baseData: {
businessLineList: [{
confId: "1",
confLabel: "权益类",
confLabel: "精品升级",
}, {
confId: "2",
confLabel: "轻改类",
confId: "0",
confLabel: "会员权益升级",
}],
reconStatusList: [{
confId: "all",
......
......@@ -5,20 +5,9 @@
class="header"
style="background: #e7eaec">
<!-- @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-tab-pane :label="newSceneList['0']" name="0" />
<el-tab-pane :label="newSceneList['1']" name="1" />
<el-tab-pane :label="newSceneList['2']" name="2" />
</el-tabs>
<!-- <el-card class="finance_list_summary" :body-style="{ padding: 0 }" v-show="sunmmaryVisible"> -->
<!-- 汇总模块暂不显示 -->
......@@ -232,33 +221,15 @@
label="主订单编号"
width="170"
align="center" />
<!-- <el-table-column v-if="isSubOrder"
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"
<el-table-column prop="baseSceneName"
label="业务场景"
width="170"
align="center">
<template #default="scope">
<span v-if="scope.row.businessType">
{{
scope.row.businessType == "2" ? "延保" : "权益"
}}
</span>
<span v-else>-</span>
<span>{{ scope.row.baseSceneName || "-" }}</span>
</template>
</el-table-column>
<el-table-column prop="customerName"
label="客户姓名"
align="center">
......@@ -715,7 +686,7 @@ export default {
totalObj: {},
summayData: {},
searchForm: {
sceneType: "1",
sceneType: "0",
time: "",
yqMerchantId: "",
merchantId: "",
......@@ -723,9 +694,10 @@ export default {
divisionType: "",
platformMerchantId: "",
outboundStatus: "",
channelType: [""],
channelType: "",
subSceneType: [""],
baseSceneCodeList: [""],
businessModel: "",
businessType: "",
reconciliationFlag: "",
},
searchSelectObj: {
......@@ -753,24 +725,30 @@ export default {
multiple: true,
collapseTags: true,
optionList: [],
optionId: "id",
optionId: "baseSceneCode",
optionLabel: "name",
optionsName: "subSceneTypeList",
changeAttr: (value) => {
if (!Array.isArray(value)) {
return;
}
if (!value.length) {
this.searchForm.baseSceneCode = [""];
return;
const ALL = "";
let next = value
.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) {
// 多选时,“全部”与具体值互斥;以最后一次选择为准
this.searchForm.baseSceneCodeList
= value[value.length - 1] === ""
? [""]
: value.filter(v => v !== "");
// 多选时,“全部”与具体值互斥;以最后一次选择为准(排他)
if (next.includes(ALL) && next.length > 1) {
next = next[next.length - 1] === ALL ? [ALL] : next.filter(v => v !== ALL);
}
// v-model 绑定在 subSceneType,同时同步给后端入参 baseSceneCodeList
this.searchForm.subSceneType = next;
this.searchForm.baseSceneCodeList = next;
},
},
{
......@@ -882,19 +860,8 @@ export default {
optionLabel: "name",
optionsName: "channelTypeList",
changeAttr: (value) => {
if (!Array.isArray(value)) {
return;
}
if (!value.length) {
this.searchForm.channelType = [""];
return;
}
if (value.includes("") && value.length > 1) {
this.searchForm.channelType
= value[value.length - 1] === ""
? [""]
: value.filter(v => v !== "");
}
// 单选:element-ui el-select 的 v-model 应为 String/Number
this.searchForm.channelType = value ?? "";
},
},
{
......@@ -907,15 +874,6 @@ export default {
optionsName: "manageTypeList",
},
{
label: "所属业务",
name: "businessType",
type: "select",
optionList: [],
optionId: "confId",
optionLabel: "confLabel",
optionsName: "businessTypeList",
},
{
label: "对账状态",
name: "reconciliationFlag",
type: "select",
......@@ -1029,12 +987,6 @@ export default {
this.sellerName_visible = false;
this.shopProfitType_visible = false;
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) {
/**
1.1场景
......@@ -1056,9 +1008,9 @@ export default {
this.sellerName_visible = true;
this.shopProfitType_visible = false;
this.yq_visible = true;
this.showFormData[this.findFormIdx("businessType")].isHide = true; // 非会员权益隐藏所属业务筛选项
}
this.handleReset(val);
this.syncSubSceneTypeList();
this.getList();
this.getTotal();
},
......@@ -1092,17 +1044,33 @@ export default {
this.baseData.PlatformMerchantList = res;
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();
},
methods: {
...mapActions({ close: "d2admin/page/close" }),
...mapActions("d2admin/user", ["actionSetDownloadList"]),
...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() {
this.fileVisible = true;
},
......@@ -1136,10 +1104,6 @@ export default {
async getBaseData() {
this.baseData.channelTypeList = await this.get(BaseData.channelType);
this.positionTypeList = await this.get(BaseData.positionTypeList);
this.baseData.businessTypeList = [
{ confId: "1", confLabel: "权益" },
{ confId: "2", confLabel: "延保" },
];
this.baseData.reconciliationFlagList = [
{ confId: "Y", confLabel: "已对账" },
{ confId: "N", confLabel: "未对账" },
......@@ -1168,10 +1132,11 @@ export default {
divisionType: "",
platformMerchantId: "",
outboundStatus: "",
channelType: [""],
channelType: "",
subSceneType: [""],
baseSceneCodeList: [""],
businessModel: "",
sceneType,
businessType: "",
reconciliationFlag: "",
};
this.searchSelectObj = {
......@@ -1440,13 +1405,16 @@ export default {
? this.searchForm.channelType.join(",")
: 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) {
params.sceneType = this.searchForm.sceneType;
}
// 会员权益场景添加所属业务筛选字段
if (this.searchForm?.sceneType == 0 && this.searchForm?.businessType) {
params.businessType = this.searchForm?.businessType;
}
if (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 {
...this.dowloadList,
{
// name: '采购审核',
name: '运营审核',
name: '总监审核',
exportParam: JSON.stringify(params),
status: 'waiting',
timeid: new Date().getTime()
......
......@@ -35,6 +35,7 @@
:search-form="tableSearchForm"
:table-params="tableParams"
:table-data="tableData"
:selectable-fn="selectableFn"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<template #auth-button="scope">
......@@ -281,6 +282,9 @@ export default {
methods: {
...mapActions("d2admin/user", ["actionSetDownloadList"]),
selectableFn(row, index) {
return row.status == 2 && row.sendOutMerchantId != null;
},
getBaseData(res) {
const allOpt = {
id: "",
......@@ -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() {
return new Promise((resolve) => {
......
......@@ -136,14 +136,10 @@
:visible.sync="allocateVisible"
@editClose="allocateClose">
</AllocateDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting" -->
<baseDialog :dialog-config="rejectConfig.config"
:is-show.sync="rejectVisible"
@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="edit-page edit-tmpl">
<div class="title">
商品信息
......@@ -239,81 +235,8 @@
<p style="margin-left: 150px; color: #999999;">
说明:驳回后,整个采购订单进行驳回,无法再重新进行发货操作。
</p>
<div class="examine-record">
<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>
<ExamineRecord :list="originalAuditDetaiList" style="margin-top:20px;" />
</div>
<!-- <div class="footer">
<el-button @click="handleRejectClose">取消</el-button>
......@@ -369,7 +292,8 @@ import { deepClone, Util } from "@/common/util";
import { baseConfig } from "@/main";
import AllocateDialog from "./components/AllocateDialog";
import EditOrderDialog from "./components/EditOrderDialog";
import orderDeatilDialog from "./components/orderDetailDialog";
import ExamineRecord from "./components/examineRecord.vue";
import OrderDeatilDialog from "./components/orderDetailDialog";
import {
defaultDeliveryStatusOptions,
defaultPutStatusOptions,
......@@ -379,13 +303,14 @@ import {
rejectNodeOptions,
signStatusType,
} from "./constant";
// import { limitPrice } from '@/common/format'
export default {
name: "PurchaseAndDelivery",
components: {
OrderDeatilDialog: orderDeatilDialog,
OrderDeatilDialog,
EditOrderDialog,
AllocateDialog,
ExamineRecord,
},
data() {
return {
......@@ -443,8 +368,8 @@ export default {
7: "redSp",
8: "greenSp",
9: "redSp",
10: 'greenSp',
11: 'redSp'
10: "greenSp",
11: "redSp",
},
examineStatus: 1,
statusForShow: {
......@@ -455,8 +380,8 @@ export default {
7: { text: "采购驳回", status: "驳回" },
8: { text: "总监审核", status: "通过" },
9: { text: "总监审核", status: "驳回" },
10: { text: '经理通过', status: '通过' },
11: { text: '经理驳回', status: '驳回' },
10: { text: "经理通过", status: "通过" },
11: { text: "经理驳回", status: "驳回" },
},
rejectedForShow: {
1: { rejectedStatus: "采购商户" },
......@@ -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) {
this.getDetail(pageObj);
},
......@@ -1180,7 +1101,6 @@ export default {
return item;
});
}
this.auditDetaiList = deepClone(this.originalAuditDetaiList.slice(0, 2));
});
},
// 批量分配
......@@ -1427,100 +1347,6 @@ export default {
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 {
display: flex;
justify-content: flex-end;
......
......@@ -34,17 +34,27 @@
</div>
</div>
<div v-if="isBtn" class="btns">
<el-button type="text" @click="handleWorking(item)">
转入职
</el-button>
<el-button type="text" @click="handleEdit(item, index)">
编辑
</el-button>
<el-button type="text" @click="handleDelete(index)">
删除
</el-button>
<el-button v-if="isPendingTrial(item)" type="text" @click="handleEdit(item, index)">
编辑
</el-button>
<el-button v-if="isPendingTrial(item)" type="text" @click="handleResolve(item, index)">
处理
</el-button>
<el-button v-if="isPendingTrial(item)" type="text" @click="handleDelete(index)">
删除
</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 else class="btns">
<el-button v-if="isProcessedTrial(item)" type="text" @click="handleViewResult(item)">
查看结果
</el-button>
</div>
</div>
</div>
</template>
......@@ -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>
<!-- 试岗处理 -->
<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>
</template>
......@@ -64,7 +77,6 @@
import GlOssApi from "glsk-oss-jssdk";
import { mapMutations } from "vuex";
import { addDict, deleteDict, getDictList, updateDict } from "@/api/recruitment";
import { interviewResultOpt, processResultOpt } from "@/common/constants.js";
import { deepClone, Util } from "@/common/util";
import { baseConfig } from "@/main";
......@@ -89,6 +101,7 @@ export default {
imgList: [],
detailVisible: false,
isAddVisible: false,
isResolveVisible: false,
slotArr: [],
trialOnboardingsData: [],
paramsObj: {},
......@@ -98,6 +111,10 @@ export default {
title: "新增简历",
okText: "确定",
},
isResolveDialogConfig: {
title: "试岗处理",
okText: "确定",
},
isAddRules: {
personName: [
{ required: true, message: "请输入人员姓名", trigger: "blur" },
......@@ -122,6 +139,11 @@ export default {
{ required: true, message: "请选择试岗时间", trigger: "change" },
],
},
isResolveRules: {
processResult: [
{ required: true, message: "请选择处理结果", trigger: "change" },
],
},
isAddForm: {
personName: "",
phoneNumber: "",
......@@ -174,9 +196,35 @@ export default {
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: {
interviewResultOpt,
processResultOpt,
trialProcessResultOpt: [
{ confId: 1, confValue: "通过" },
{ confId: 0, confValue: "不通过" },
],
channelData: [],
},
};
......@@ -267,6 +315,13 @@ export default {
this.uploadFileList = [];
this.isAddVisible = !this.isAddVisible;
},
isResolveDialogVisible() {
this.isResolveForm = {
processResult: "",
processRemark: "",
};
this.isResolveVisible = !this.isResolveVisible;
},
getCurrentDate() {
const time = new Date();
const y = time.getFullYear();
......@@ -280,6 +335,7 @@ export default {
data.trialTime
? (data.trialTime = Util.dateFormate(data.trialTime, "YYYY-MM-DD"))
: "";
data.processResult = null;
this.$emit("handleAddConfirm", data, this.isAdd, this.index);
this.isAddDialogVisible();
},
......@@ -313,6 +369,27 @@ export default {
this.checkParams(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) {
if (!data)
return;
......@@ -429,6 +506,15 @@ export default {
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() {
this.detailVisible = !this.detailVisible;
},
......
......@@ -17,6 +17,7 @@
:trialOnboardings="detailInfo.trialOnboardings"
@handleAddConfirm="handleTrialConfirm"
@handleWorking="handleWorking"
@handleViewResult="handleViewResult"
:isBtn="isBtn"
></trialOnboard>
<!-- 入职计划 -->
......@@ -40,6 +41,18 @@
>取消</el-button
>
</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>
</template>
<script>
......@@ -49,13 +62,73 @@ import { handleRecruitment } from "@/api/recruitment"
export default {
mixins: [recruitMixin],
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 {
loading: 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: {
handleTrialViewResultClose() {
this.trialViewResultVisible = false
},
handleSave() {
this.btnLoding = true
let params = {
......@@ -99,6 +172,11 @@ export default {
this.$refs.entryInfo.handleEntry?.(true)
this.$refs.entryInfo.isEntryForm = deepClone({ ...obj, skillTagIds: [] })
},
// 试岗计划 - 查看结果
handleViewResult(data) {
this.trialViewResultForm = deepClone({ ...data })
this.trialViewResultVisible = true
},
//转试岗
handleTrial(data) {
let params = {
......@@ -253,4 +331,12 @@ export default {
scrollbar-color: transparent transparent;
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>
......@@ -8,6 +8,7 @@
<trialOnboard
:trialOnboardings="detailInfo.trialOnboardings"
:isBtn="isBtn"
@handleViewResult="handleViewResult"
></trialOnboard>
<entryInfo
:onboardingPlans="detailInfo.onboardingPlans"
......@@ -23,17 +24,87 @@
>关闭</el-button
>
</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>
</template>
<script>
import { Util, deepClone } from "@/common/util"
import { recruitMixin } from "./components/recruitMixin"
export default {
mixins: [recruitMixin],
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 {
loading: false,
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() {
......@@ -42,7 +113,15 @@ export default {
methods: {
handleCancel() {
this.$router.push("/recruitmentManagement")
}
},
// 试岗计划 - 查看结果
handleViewResult(data) {
this.trialViewResultForm = deepClone({ ...data })
this.trialViewResultVisible = true
},
handleTrialViewResultClose() {
this.trialViewResultVisible = false
},
}
}
</script>
......@@ -131,4 +210,12 @@ export default {
scrollbar-color: transparent transparent;
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>
......@@ -47,13 +47,13 @@
<template>
<auth-button
category="Button"
:data="{approvalType:1}"
:data="{approveType:1}"
:show-btn-ids="['9210401']"
/>
<span style="margin-left: 10px;">
<auth-button
category="Button"
:data="{approvalType:2}"
:data="{approveType:2}"
:show-btn-ids="[ '9210402']"
/>
</span>
......@@ -331,7 +331,7 @@ export default {
2: 'addAndModifyTheListing'
}
const routeName = routeMap[query.approvalType]
const routeName = routeMap[query.approveType]
if (!routeName) {
this.$message.warning('未知的审批类型')
return
......
......@@ -431,7 +431,17 @@ export default {
this.GlOssApi.multipartUpload(file, success, fail, bucketName, fileType);
},
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) {
this.$message({
......
......@@ -151,10 +151,10 @@ export default {
},
]
},
{ label: '服务商2/F公司', key: 't-g', type: 'select', options: [] },
{ label: '服务商', key: 't-h', type: 'select', options: [] },
{ label: '上级服务商', key: 't-i', type: 'input', options: [], maxlength: 50 },
{ label: '园区店', key: 't-j', type: 'select', options: [] },
{ label: '服务商2/F公司', key: 'serviceMerchant2fName', type: 'select', options: [] },
{ label: '服务商', key: 'partnerName', type: 'select', options: [] },
{ label: '上级服务商', key: 'parentServiceMerchantName', type: 'input', options: [], maxlength: 50 },
{ label: '园区店', key: 'yqMerchantName', type: 'select', options: [] },
],
customerInformation: [
{ label: '区域运营', key: 'areaOpId', type: 'select', options: [] },
......
......@@ -21,7 +21,7 @@ const SALES_CATEGORY_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: 'revenue', type: 'input', filterRule: 'decimalRange', min: 0, max: 999999, precision: 2 },
]
......
......@@ -89,7 +89,7 @@ import BasicInformation from './components/BasicInformation.vue'
import TrafficProviderInformation from './components/TrafficProviderInformation.vue'
import BusinessInformation from './components/BusinessInformation.vue'
import SalesCategory from './components/SalesCategory.vue'
import { storeApproveQueryDetail } from '@/api/salesManagement.js'
export default {
name: 'StepTwo',
......
......@@ -38,13 +38,74 @@
type="info"
>取消</el-button>
</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>
</template>
<script type='text/ecmascript-6'>
import { mapActions, mapState } from "vuex";
import StepOne from './components/StepOne.vue';
import StepTwo from './components/StepTwo/index.vue';
import { getWorkwechatTemplate, getBusisDetailBasic } from "@api/shelfManage.js";
import { storeApproveCreateDraft, storeApproveEditDraft } from '@/api/salesManagement.js'
import { deepClone } from "@/common/util";
export default {
name: 'tigaListingAndSalesContract',
......@@ -63,10 +124,38 @@ export default {
pageComplete: false,
pageType: '',
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: {
...mapState({
dowloadList: state => state.d2admin.user.dowloadList,
updateList: state => state.d2admin.user.updateList,
}),
stepOneRef () {
return this.$refs.stepOneRef
},
......@@ -75,15 +164,15 @@ export default {
}
},
mounted () {
return this.getDetail()
let { approvalType, pageType, id } = this.$route.query
// return this.getDetail()
let { approveType, pageType, id } = this.$route.query
if (pageType) {
this.pageType = pageType
if (pageType == 'view') return this.getDetail(id)
else if (pageType == 'reapply') this.getReapplyInfo(id)
else this.getApprovalTemplate(approvalType)
else this.getApprovalTemplate(approveType)
} else {
this.getApprovalTemplate(approvalType)
this.getApprovalTemplate(approveType)
}
},
methods: {
......@@ -97,19 +186,6 @@ export default {
const data = await getWorkwechatTemplate({ id: type })
if (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 (item.inputType === 7) {
item.uploadFileList = [];
......@@ -165,10 +241,57 @@ export default {
console.log(this.stepOneRef.infoForm, this.templateInfo)
this.stepOneRef.formRef.validate(async (valid) => {
if (valid) {
let { infoForm } = this.stepOneRef
this.stepTwoRef.basicinformationData = infoForm
this.stepTwoRef.basicinformationFormList = this.templateInfo
this.step = 2
let { infoForm } = this.stepOneRef,
{ approveType } = this.$route.query,
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 {
......@@ -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 @@
:visible.sync="infoVerifyVisible"
:customer-row="infoVerifyRow"
:submit-api="infoVerifySubmit"
:merchant-type-labels="['4S店']"
@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"
dialog-width="520px" :formRules="editRules" :editData="editData" :editFormData="editFormData" :slotArr="slotArr"
:base-data="baseData" @handleClose="editVisible = false" @handleConfirm="handleEditConfirm">
......@@ -89,7 +115,7 @@ import { busTypeOpt, cooperModeOpt, flowSituateOpt, potentialCustomerOpt } from
import { mapActions, mapState } from 'vuex'
import { potentialCustomersPage, regionUserList, bind4SStore, potentialCustomersInfoVerify } from '@api/salesManagement'
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 { tmplTypeList } from "../constant/baseData"
import { getDistrictDetail, getBrandList } from "@/api/shopConfig.js"
......@@ -793,4 +819,41 @@ export default {
text-overflow: ellipsis;
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>
<!-- 库存管理 -->
<template>
<div>
<d2-container>
<template #header>
<div class="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
:form-data="showFormData"
:search-form="searchForm" />
<div class="up-btns">
<el-button size="small"
type="primary"
@click="handleSearch">
查询
</el-button>
<el-button size="small"
@click="handleReset">
重置
</el-button>
</div>
</div>
</template>
<div class="d2-container-content">
<d2-table-header>
<template #left>
<span class="leftSpan">
合计:当前库存<span class="count-txt">{{ statisticsData }}</span>
</span>
</template>
<div>
<auth-button category="Button" />
</div>
</d2-table-header>
<d2-table ref="recordTable"
:before-search-fn="beforeSearchFn"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams">
<template #auth-button="scope">
<auth-button :data="scope.scope" />
</template>
</d2-table>
</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>
<div>
<d2-container>
<template #header>
<div class="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" :form-data="showFormData" :search-form="searchForm" />
<div class="up-btns">
<el-button size="small" type="primary" @click="handleSearch">
查询
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
</template>
<div class="d2-container-content">
<d2-table-header>
<template #left>
<span class="leftSpan">
合计:当前库存<span class="count-txt">{{ statisticsData }}</span>
</span>
</template>
<div>
<auth-button category="Button" />
</div>
</d2-table-header>
<d2-table ref="recordTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi"
:search-form="searchFormSearch" :table-params="tableParams">
<template #auth-button="scope">
<auth-button :data="scope.scope" />
</template>
</d2-table>
</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>
<script>
......@@ -248,6 +232,7 @@ export default {
// 库存记录统计
stockMonthReportCount() {
this.beforeSearchFn()
stockMonthReportCount(this.searchFormSearch).then((res) => {
this.statisticsData = res;
});
......
<!-- 商务审核 -->
<template>
<div>
<d2-container>
<template #header>
<div class="header" style="padding: 10px 20px">
<d2-search ref="showSearch"
class="show-search"
:form-data="showFormData"
:search-form="searchForm" />
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
</template>
<div class="d2-container-content">
<d2-table-header>
<!-- <span slot="left"
<div>
<d2-container>
<template #header>
<div class="header" style="padding: 10px 20px">
<d2-search ref="showSearch" class="show-search" :form-data="showFormData" :search-form="searchForm" />
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
</template>
<div class="d2-container-content">
<d2-table-header>
<!-- <span slot="left"
v-if="!userInfo.beSuper && userInfo.beYQMerchant">
<auth-button category="Button"
:show-btn-ids="['9080501']" />
</span> -->
<auth-button category="Button" :show-btn-ids="['9081001']" />
</d2-table-header>
<d2-table ref="recordTable"
:before-search-fn="beforeSearchFn"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams">
<template #auth-button="scope">
<div>
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9081002']" />
</span>
<span v-if="scope.scope.billStatus == 2" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9081003']" />
</span>
<span v-if="scope.scope.billStatus == 2" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9081004']" />
</span>
</div>
</template>
</d2-table>
</div>
</d2-container>
<!-- 查看 -->
<TransferDetailDialog v-if="transferDetailVisible"
:hide-contact="true"
:params-obj="transferObj"
:visible.sync="transferDetailVisible" />
</div>
<auth-button category="Button" :show-btn-ids="['9081001']" />
</d2-table-header>
<d2-table ref="recordTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi"
:search-form="searchFormSearch" :table-params="tableParams">
<template #auth-button="scope">
<div>
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9081002']" />
</span>
<span v-if="scope.scope.billStatus == 2" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9081003']" />
</span>
<span v-if="scope.scope.billStatus == 2" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9081004']" />
</span>
</div>
</template>
</d2-table>
</div>
</d2-container>
<!-- 查看 -->
<TransferDetailDialog v-if="transferDetailVisible" :hide-contact="true" :is-store="true" :params-obj="transferObj"
:visible.sync="transferDetailVisible" />
</div>
</template>
<script>
......@@ -338,7 +328,7 @@ export default {
if (
this.baseData[item.optionsName].length
&& this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel
this.showFormData[index].optionLabel
] !== "全部"
) {
const temp = {};
......@@ -472,6 +462,7 @@ export default {
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
......
<!-- 运营审核 -->
<template>
<div>
<d2-container>
<template #header>
<div class="header" style="padding: 10px 20px">
<d2-search ref="showSearch"
class="show-search"
:form-data="showFormData"
:search-form="searchForm" />
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
</template>
<div class="d2-container-content">
<d2-table-header>
<!-- <span slot="left"
<div>
<d2-container>
<template #header>
<div class="header" style="padding: 10px 20px">
<d2-search ref="showSearch" class="show-search" :form-data="showFormData" :search-form="searchForm" />
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
</div>
</template>
<div class="d2-container-content">
<d2-table-header>
<!-- <span slot="left"
v-if="!userInfo.beSuper && userInfo.beYQMerchant">
<auth-button category="Button"
:show-btn-ids="['9080501']" />
</span> -->
<auth-button category="Button" :show-btn-ids="['9080901']" />
</d2-table-header>
<d2-table ref="recordTable"
:before-search-fn="beforeSearchFn"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams">
<template #auth-button="scope">
<div>
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9080902']" />
</span>
<span v-if="scope.scope.billStatus == 1" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9080903']" />
</span>
<span v-if="scope.scope.billStatus == 1" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9080904']" />
</span>
</div>
</template>
</d2-table>
</div>
</d2-container>
<!-- 查看 -->
<TransferDetailDialog v-if="transferDetailVisible"
:hide-contact="true"
:params-obj="transferObj"
:visible.sync="transferDetailVisible" />
</div>
<auth-button category="Button" :show-btn-ids="['9080901']" />
</d2-table-header>
<d2-table ref="recordTable" :before-search-fn="beforeSearchFn" :get-list-api="getListApi"
:search-form="searchFormSearch" :table-params="tableParams">
<template #auth-button="scope">
<div>
<span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9080902']" />
</span>
<span v-if="scope.scope.billStatus == 1" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9080903']" />
</span>
<span v-if="scope.scope.billStatus == 1" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9080904']" />
</span>
</div>
</template>
</d2-table>
</div>
</d2-container>
<!-- 查看 -->
<TransferDetailDialog v-if="transferDetailVisible" :hide-contact="true" :is-store="false" :params-obj="transferObj"
:visible.sync="transferDetailVisible" />
</div>
</template>
<script>
......@@ -332,7 +322,7 @@ export default {
if (
this.baseData[item.optionsName].length
&& this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel
this.showFormData[index].optionLabel
] !== "全部"
) {
const temp = {};
......@@ -446,6 +436,7 @@ export default {
color: #2a58ad;
margin: 0 2px;
}
.leftSpan {
display: inline-block;
box-sizing: border-box;
......
......@@ -62,8 +62,8 @@
<auth-button :data="scope.scope"
:show-btn-ids="['9063002']" />
</span>
<!-- 自定义周期 -->
<span v-if="scope.scope.report_type.includes('门店产值及个人成交排名') || scope.scope.report_type.includes('BI数据分析表')"
<!-- 自定义周期:门店产值及个人成交排名 / BI数据分析表 / 无日报门店产值表 -->
<span v-if="isCustomPeriodReportType(scope.scope.report_type)"
style="margin-right: 10px;">
<auth-button :data="scope.scope"
:show-btn-ids="['9063003']" />
......@@ -279,6 +279,19 @@ export default {
// }),
// ...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() {
this.getOptionsList();
},
......
......@@ -13,17 +13,32 @@
</div>
</div>
<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"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :show-btn-ids="['9060503']" :data="scope.scope" />
</d2-table>
</div>
<info-verify-merchant-dialog :visible.sync="infoVerifyVisible"
:customer-row="null"
:submit-api="infoVerifySubmit"
:merchant-type-labels="['园区店']"
@success="onInfoVerifySuccess" />
</d2-container>
</template>
<script>
import { Util } from '@/common/util'
import { getList } from '@api/serviceManage'
import { potentialCustomersInfoVerify } from '@api/salesManagement'
import InfoVerifyMerchantDialog from '@/components/merchantVerify/InfoVerifyMerchantDialog.vue'
import { mapActions } from 'vuex'
import { procureModeList } from "@/common/constants"
export default {
......@@ -163,11 +178,14 @@ export default {
return cellValue.updatedDate ? Util.dateFormate(cellValue.updatedDate, 'YYYY-MM-DD HH:mm:ss') : '-'
}
}]
}
},
infoVerifyVisible: false,
infoVerifySubmit: potentialCustomersInfoVerify
}
},
components: {
InfoVerifyMerchantDialog
},
mounted() { },
......@@ -192,6 +210,12 @@ export default {
}
this.$refs.serviceStoreTable.refreshTable()
},
openInfoVerifyDialog() {
this.infoVerifyVisible = true
},
onInfoVerifySuccess() {
this.$refs.serviceStoreTable.refreshTable()
},
// 编辑服务商
handleEdit(row) {
this.close({ tagName: '/editService' })
......
......@@ -23,6 +23,11 @@
<div class="d2-container-content">
<d2-table-header>
<span slot="left">园区店服务商关联列表</span>
<el-button type="primary"
size="small"
@click="openInfoVerifyDialog">
新增
</el-button>
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="serviceStoreTable"
......@@ -47,12 +52,19 @@
:info="recordInfo"
v-if="sceneEntryVisible"
@dialogClose="sceneDialogClose" />
<info-verify-merchant-dialog :visible.sync="infoVerifyVisible"
:customer-row="null"
:submit-api="infoVerifySubmit"
:merchant-type-labels="['园区店']"
@success="onInfoVerifySuccess" />
</d2-container>
</template>
<script>
import { Util, deepClone } from '@/common/util'
import { getYqMerchantinfoPage } from '@api/serviceManage'
import { potentialCustomersInfoVerify } from '@api/salesManagement'
import InfoVerifyMerchantDialog from '@/components/merchantVerify/InfoVerifyMerchantDialog.vue'
import { mapActions } from 'vuex'
import { BaseData, manageTypeList } from '@/common/constants.js'
import qrcodeDialog from './qRcodeDialog'
......@@ -222,14 +234,17 @@ export default {
qRcodeVisible: false,
QRcodeDialog: false,
recordInfo: {},
sceneEntryVisible: false
sceneEntryVisible: false,
infoVerifyVisible: false,
infoVerifySubmit: potentialCustomersInfoVerify
}
},
components: {
qrcodeDialog,
wxQRcodeDialog,
sceneEntryDialog
sceneEntryDialog,
InfoVerifyMerchantDialog
},
mounted() {
......@@ -316,6 +331,14 @@ export default {
this.sceneEntryVisible = !this.sceneEntryVisible
},
openInfoVerifyDialog() {
this.infoVerifyVisible = true
},
onInfoVerifySuccess() {
this.$refs.serviceStoreTable.refreshTable()
},
// 上架
handleLaunch(row) {
this.$router.push({
......
......@@ -74,18 +74,18 @@ const cdn = {
`${CDN_DOMAIN}/js.cookie.min.js`,
`${CDN_DOMAIN}/nprogress.min.js`,
`${CDN_DOMAIN}/echarts.min.js`,
// `${CDN_DOMAIN}/lodash.min.js`,
`${CDN_DOMAIN}/qs.min.js`,
`${CDN_DOMAIN}/ua-parser.min.js`,
`${CDN_DOMAIN}/html2canvas.min.js`,
`${CDN_DOMAIN}/element-ui.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`,
// `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`,
`${CDN_DOMAIN}/dayjs.min.js`,
// `${CDN_DOMAIN}/vue-qr.js`,
`${CDN_DOMAIN}/xlsx.min.js`,
// `${CDN_DOMAIN}/flex.css`
],
};
......@@ -159,8 +159,9 @@ module.exports = {
dayjs: "dayjs",
// "vue-qr": "vue-qr",
xlsx: "XLSX",
// 模块名须与 import 路径一致:import BScroll from 'better-scroll'
"better-scroll": "BScroll",
// 与 CDN UMD 全局名一致(非 BScroll)
// "better-scroll": "BetterScroll",
BScroll: "better-scroll",
// lodash: "_",
};
}
......@@ -226,7 +227,7 @@ module.exports = {
configFile: path.resolve(__dirname, ".sentryclirc"),
// 与部署路径一致,便于 Sentry 将 map 与线上资源对齐
urlPrefix: `~${publicPath}`,
}),
})
);
}
......@@ -282,12 +283,12 @@ module.exports = {
// optional. Resolve result css code as you wish.
return resultCss.replace(
/process.env.VUE_APP_ELEMENT_COLOR/g,
process.env.VUE_APP_ELEMENT_COLOR,
process.env.VUE_APP_ELEMENT_COLOR
);
},
matchColors: [
...forElementUI.getElementUISeries(
process.env.VUE_APP_ELEMENT_COLOR,
process.env.VUE_APP_ELEMENT_COLOR
), // Element-ui主色系列
],
externalCssFiles: [
......@@ -301,7 +302,7 @@ module.exports = {
.when(
process.env.NODE_ENV === "development",
// sourcemap不包含列信息
(config) => config.devtool("cheap-source-map"),
(config) => config.devtool("cheap-source-map")
)
// TRAVIS 构建 vue-loader 添加 filename
.when(
......@@ -309,7 +310,7 @@ module.exports = {
process.env.NODE_ENV === "development",
VueFilenameInjector(config, {
propName: process.env.VUE_APP_SOURCE_VIEWER_PROP_NAME,
}),
})
);
// 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!