Commit b17e2d18 by 前端

Merge branch 'SAAS+V5.7.4' into 'develop'

上线合并

See merge request !613
2 parents edc7bdc2 1bb78a76
Showing 49 changed files with 1828 additions and 837 deletions
......@@ -8,6 +8,10 @@ node_modules
.cursor
.trae
# 本地环境文件不上传
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
......
......@@ -8,7 +8,6 @@
"glsx"
],
"workbench.tree.indent": 24,
"eslint.enable": true,
"explorer.compactFolders": false,
"scm.compactFolders": false,
"problems.decorations.enabled": false,
......@@ -25,12 +24,9 @@
// "source.organizeImports": "explicit",
"source.fixAll.eslint": "explicit"
},
"[vue]": {
},
"[javascript]": {
},
"[javascriptreact]": {
},
"[vue]": {},
"[javascript]": {},
"[javascriptreact]": {},
"i18n-ally.sourceLanguage": "zh-chs",
"javascript.suggest.autoImports": true
}
......@@ -4249,7 +4249,7 @@
"dependencies": {
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.11.1",
"resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-15.11.1.tgz",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.11.1.tgz",
"integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
"dev": true,
"requires": {
......@@ -4262,9 +4262,15 @@
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmmirror.com/hash-sum/-/hash-sum-1.0.2.tgz",
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
},
"vue-hot-reload-api": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
"integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==",
"dev": true
}
}
},
......@@ -4811,27 +4817,6 @@
"lodash": "^4.17.4"
}
},
"@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.11.1",
"resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-15.11.1.tgz",
"integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
"dev": true,
"requires": {
"@vue/component-compiler-utils": "^3.1.0",
"hash-sum": "^1.0.2",
"loader-utils": "^1.1.0",
"vue-hot-reload-api": "^2.3.0",
"vue-style-loader": "^4.1.0"
},
"dependencies": {
"hash-sum": {
"version": "1.0.2",
"resolved": "https://registry.npmmirror.com/hash-sum/-/hash-sum-1.0.2.tgz",
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true
}
}
},
"@vue/vue2-jest": {
"version": "27.0.0",
"resolved": "https://registry.npmmirror.com/@vue/vue2-jest/-/vue2-jest-27.0.0.tgz",
......@@ -19502,12 +19487,6 @@
}
}
},
"vue-hot-reload-api": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
"integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==",
"dev": true
},
"vue-lazyload": {
"version": "1.2.3",
"resolved": "https://registry.npmmirror.com/vue-lazyload/-/vue-lazyload-1.2.3.tgz",
......
......@@ -14,16 +14,12 @@
"report": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --report"
},
"dependencies": {
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.17.12",
"@babel/plugin-proposal-optional-chaining": "7.13.12",
"@sentry/browser": "^7.12.1",
"@sentry/integrations": "^7.12.1",
"@sentry/tracing": "^7.3.0",
"@sentry/vue": "^7.3.0",
"@sentry/webpack-plugin": "^1.18.9",
"ali-oss": "^6.22.0",
"axios": "^0.18.0",
"baseline-browser-mapping": "^2.9.13",
"better-scroll": "^1.15.2",
"bignumber.js": "^9.1.1",
"caniuse-lite": "^1.0.30001763",
......@@ -39,26 +35,22 @@
"glsk-oss-jssdk": "^1.0.6",
"glsk-toolkit": "^1.0.5",
"glsx-common-sdk": "^0.3.0",
"hash.js": "^1.0.0",
"hotkeys-js": "^3.6.2",
"html2canvas": "^1.4.1",
"js-cookie": "^2.2.0",
"js-md5": "^0.7.3",
"jspdf": "^2.5.1",
"lodash": "^4.17.23",
"lodash-es": "^4.17.22",
"lowdb": "^1.0.0",
"nanoid": "^5.1.6",
"nprogress": "^0.2.0",
"number-precision": "^1.6.0",
"print-js": "^1.6.0",
"qrcodejs2": "^0.0.2",
"qs": "^6.8.0",
"rfdc": "^1.3.0",
"screenfull": "^4.2.0",
"sha1": "^1.1.1",
"sortablejs": "^1.15.6",
"speed-measure-webpack-plugin": "^1.5.0",
"svg-sprite-loader": "^6.0.11",
"ua-parser-js": "^0.7.19",
"vue": "^2.6.10",
......@@ -68,13 +60,14 @@
"vuex": "^3.0.1",
"wangeditor": "4.7.15",
"webpack-theme-color-replacer": "^1.4.2",
"webpack5-svg-sprite-loader": "^5.1.1",
"xlsx": "^0.16.9",
"yarn": "^1.22.19"
"xlsx": "^0.16.9"
},
"devDependencies": {
"@antfu/eslint-config": "^6.7.3",
"@babel/core": "^7.12.16",
"@sentry/webpack-plugin": "^1.18.9",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.17.12",
"@babel/plugin-proposal-optional-chaining": "7.13.12",
"@kazupon/vue-i18n-loader": "^0.4.1",
"@vue/babel-helper-vue-jsx-merge-props": "^1.4.0",
"@vue/cli-plugin-babel": "~5.0.8",
......@@ -94,6 +87,7 @@
"sass": "~1.62.0",
"sass-loader": "^7.3.1",
"script-loader": "^0.7.2",
"speed-measure-webpack-plugin": "^1.5.0",
"vue-template-compiler": "^2.5.21",
"webpack": "^5.74.0"
},
......
import request from "./request"
const path = 'dj.api.smartcarlife.'
import request from "./request";
const path = "dj.api.smartcarlife.";
// 获取套餐管理 列表数据
export function getPackageManageList(data) {
data.method = `${path}merchantPackageGoodsInfo.page`
return request(data)
data.method = `${path}merchantPackageGoodsInfo.page`;
return request(data);
}
// 新增编辑套餐
export function addOrUpdatePackage(data) {
data.method = `${path}merchantPackageGoodsInfo.insertOrUpdate`
return request(data)
data.method = `${path}merchantPackageGoodsInfo.insertOrUpdate`;
return request(data, "post");
}
// 获取套餐详情
export function getPackageDetailInfo(data) {
data.method = `${path}merchantPackageGoodsInfo.getById`
return request(data)
data.method = `${path}merchantPackageGoodsInfo.getById`;
return request(data);
}
// 批量审核套餐
export function batchCheckPackage(data) {
data.method = `${path}merchantPackageGoodsInfo.updateBatchWaitAudit`
return request(data)
data.method = `${path}merchantPackageGoodsInfo.updateBatchWaitAudit`;
return request(data);
}
// 上下架套餐
export function upOrDownPackage(data) {
data.method = `${path}merchantPackageGoodsInfo.updateStatus`
return request(data)
data.method = `${path}merchantPackageGoodsInfo.updateStatus`;
return request(data);
}
// 删除套餐
export function delPackageById(data) {
data.method = `${path}merchantPackageGoodsInfo.deleteById`
return request(data)
data.method = `${path}merchantPackageGoodsInfo.deleteById`;
return request(data);
}
// 根据套餐ID列表查询套餐下商品信息
export function getGoodsByPackageIdList(data) {
data.method = `${path}merchantPackageGoodsInfo.getGoodsByPackageIdList`
return request(data, "post")
data.method = `${path}merchantPackageGoodsInfo.getGoodsByPackageIdList`;
return request(data, "post");
}
// 根据套餐ID列表查询套餐关联商户列表
export function queryRelatedMerchantByPackageIdList(data) {
data.method = `${path}merchantPackageGoodsInfo.queryRelatedMerchantByPackageIdList`
return request(data, "post")
data.method = `${path}merchantPackageGoodsInfo.queryRelatedMerchantByPackageIdList`;
return request(data, "post");
}
// 批量修改套餐库存管控模式
export function batchEditInventoryTypeByPackageId(data) {
data.method = `${path}merchantPackageGoodsInfo.batchEditInventoryTypeByPackageId`
return request(data, "post")
data.method = `${path}merchantPackageGoodsInfo.batchEditInventoryTypeByPackageId`;
return request(data, "post");
}
......@@ -178,6 +178,11 @@ export function operatorBatchAudit(data) {
data.method = `dj.api.smarcarlife.operatorreview.operatorBatchAudit.json`;
return request(data);
}
// 批量经理审核
export function managerBatchAudit(data) {
data.method = `dj.api.smarcarlife.managerreview.managerAudit.json`;
return request(data);
}
// 运营驳回
export function operatorreviewOperatorReject(data) {
......@@ -215,6 +220,19 @@ export function businessreviewBusinessAudit(data) {
return request(data);
}
// 经理审核
export function managerreviewManagerAudit(data) {
data.method = `${path}managerreview.managerAudit`;
return request(data);
}
// 经理驳回
export function managerReviewReject(data) {
data.method = `${path}managerreview.managerReject`;
return request(data);
}
// 批量商务审核
export function businessBatchAudit(data) {
data.method = `dj.api.smarcarlife.businessreview.businessBatchAudit.json`;
......@@ -322,3 +340,9 @@ export function downloadDeliveryPdf(data) {
data.method = "dj.api.smarcarlife.warehousedeliver.detail.pdf.batch.async";
return request(data, "post");
}
// 经理审核分页查询
export function getManagerReviewPageApi(data) {
data.method = `dj.api.smarcarlife.managerreview.page`;
return request(data);
}
import request from "./request"
import RequestMethods from "./request.methods"
const path = "dj.api.smartcarlife."
// 查询分类列表
export function getClassLabelList(data) {
data.method = `dj.api.script.extract.class.label.list`
return request(data, RequestMethods.POST)
}
// 话术统计列表
export function geRecordSummaryList(data) {
data.method = `dj.api.script.extract.record.summary`
return request(data, RequestMethods.POST)
}
// 查询场景标签列表
export function getSceceLabelList(data) {
data.method = `dj.api.script.extract.scene.label.list`
return request(data, RequestMethods.POST)
}
// 话术明细列表
export function getRecordList(data) {
data.method = `dj.api.script.extract.record.list`
return request(data, RequestMethods.POST)
}
// 话术明细列表导出
export function recordExport(data) {
data.method = `dj.api.script.extract.record.list.export`
return request(data, RequestMethods.POST)
}
// 详情
export function getRecordDetail(data) {
data.method = `dj.api.script.extract.record.detail`
return request(data, RequestMethods.POST)
}
//话术操作记录
export function getOperateList(data) {
data.method = `dj.api.script.extract.record.log`
return request(data, RequestMethods.POST)
}
// 话术埋点列表
export function getRecordBrowseList(data) {
data.method = `dj.api.script.extract.record.browse.list`
return request(data, RequestMethods.POST)
}
// 话术埋点导出
export function recordBrowseExport(data) {
data.method = `dj.api.script.extract.record.browse.list.export`
return request(data, RequestMethods.POST)
}
//话术违规列表
export function findViolationReceptionByConditionPage(data) {
data.method = `dj.api.mindworkplate.violation.findViolationReceptionByConditionPage`
return request(data, RequestMethods.POST)
}
// 违规录音列表导出
export function findViolationReceptionByConditionExport(data) {
data.method = `dj.api.mindworkplate.violation.findViolationReceptionByConditionExport`
return request(data, RequestMethods.POST)
}
// 查询违规录音详情
export function findViolationByBatchId(data) {
data.method = `dj.api.mindworkplate.violation.findViolationByBatchId`
return request(data, RequestMethods.POST)
}
// 多条件查询话术详情列表
export function getConditionPage(data) {
data.method = 'dj.api.script.extract.condition.page'
return request(data, RequestMethods.POST)
}
// 话术条数
export function getTotalCount(data) {
data.method = 'dj.api.script.extract.total.count'
return request(data, RequestMethods.POST)
}
// 获取场景标签列表
export function getSingleLabelList(data) {
data.method = 'dj.api.script.extract.scene.label.single.list'
return request(data, RequestMethods.POST)
}
// 多话术查询话术详情列表导出
export function conditionExport(data) {
data.method = 'dj.api.script.extract.condition.export'
return request(data, RequestMethods.POST)
}
\ No newline at end of file
import request from "./request"
import RequestMethods from "./request.methods"
const path = "dj.api.smartcarlife."
// 查询分类列表
export function getClassLabelList(data) {
data.method = `dj.api.script.extract.class.label.list`
return request(data, RequestMethods.POST)
}
// 话术统计列表
export function geRecordSummaryList(data) {
data.method = `dj.api.script.extract.record.summary`
return request(data, RequestMethods.POST)
}
// 查询场景标签列表
export function getSceceLabelList(data) {
data.method = `dj.api.script.extract.scene.label.list`
return request(data, RequestMethods.POST)
}
// 话术明细列表
export function getRecordList(data) {
data.method = `dj.api.script.extract.record.list`
return request(data, RequestMethods.POST)
}
// 话术明细列表导出
export function recordExport(data) {
data.method = `dj.api.script.extract.record.list.export`
return request(data, RequestMethods.POST)
}
// 详情
export function getRecordDetail(data) {
data.method = `dj.api.script.extract.record.detail`
return request(data, RequestMethods.POST)
}
//话术操作记录
export function getOperateList(data) {
data.method = `dj.api.script.extract.record.log`
return request(data, RequestMethods.POST)
}
// 话术埋点列表
export function getRecordBrowseList(data) {
data.method = `dj.api.script.extract.record.browse.list`
return request(data, RequestMethods.POST)
}
// 话术埋点导出
export function recordBrowseExport(data) {
data.method = `dj.api.script.extract.record.browse.list.export`
return request(data, RequestMethods.POST)
}
//话术违规列表
export function findViolationReceptionByConditionPage(data) {
data.method = `dj.api.mindworkplate.violation.findViolationReceptionByConditionPage`
return request(data, RequestMethods.POST)
}
// 违规录音列表导出
export function findViolationReceptionByConditionExport(data) {
data.method = `dj.api.mindworkplate.violation.findViolationReceptionByConditionExport`
return request(data, RequestMethods.POST)
}
// 查询违规录音详情
export function findViolationByBatchId(data) {
data.method = `dj.api.mindworkplate.violation.findViolationByBatchId`
return request(data, RequestMethods.POST)
}
// 多条件查询话术详情列表
export function getConditionPage(data) {
data.method = 'dj.api.script.extract.condition.page'
return request(data, RequestMethods.POST)
}
// 话术条数
export function getTotalCount(data) {
data.method = 'dj.api.script.extract.total.count'
return request(data, RequestMethods.POST)
}
// 获取场景标签列表
export function getSingleLabelList(data) {
data.method = 'dj.api.script.extract.scene.label.single.list'
return request(data, RequestMethods.POST)
}
// 多话术查询话术详情列表导出
export function conditionExport(data) {
data.method = 'dj.api.script.extract.condition.export'
return request(data, RequestMethods.POST)
}
/**
* 查询话术违规车辆品牌列表
*/
export function getCarBrandsList(data = {}) {
data.method = 'dj.api.mindworkplate.violation.carbrands'
return request(data, RequestMethods.POST)
}
......@@ -404,7 +404,10 @@ export const warehouseStatusList = [
// 获取最近n个月,默认6个月
export function getCurrentSixMonth(n = 5) {
return [new Date(new Date().setMonth(new Date().getMonth() - n)), new Date()];
return [
new Date(new Date().setMonth(new Date().getMonth() - n)),
new Date(),
];
}
// 新值,旧值,整数部分位数,小数部分位数,最小值,最大值,规则
......@@ -423,8 +426,8 @@ export function limitPrice(
};
regRule = regRule || "priceReg";
if (
newValue
&& ((minValue && newValue < minValue) || (maxValue && newValue > maxValue))
newValue &&
((minValue && newValue < minValue) || (maxValue && newValue > maxValue))
) {
return oldValue || "";
}
......@@ -433,16 +436,18 @@ export function limitPrice(
newValue = newValue + "";
let interger = newValue.split(".")[0];
let point = newValue.split(".")[1];
let intergerNum
= interger.length > intergerDigit ? oldValue.split(".")[0] : interger;
let pointNum
= point.length > pointDigit ? point.slice(0, pointDigit) : point;
let intergerNum =
interger.length > intergerDigit
? oldValue.split(".")[0]
: interger;
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;
}
......@@ -475,9 +480,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;
}
......@@ -728,10 +737,11 @@ export const afterSaleStatusList = [
export const invouceType = [
{ confId: 0, confName: "待签收" },
{ confId: 1, confName: "未入库" },
{ confId: 1, confName: "已签收(未入库)" },
{ confId: 2, confName: "已入库" },
{ confId: 3, confName: "部分入库" },
];
// 服务商管理 采购模式
export const procureModeList = [
{ confId: 1, confName: "直营" },
......@@ -912,7 +922,10 @@ export const downloadReportManage_reportType = [
{ confId: "sellerPerformance", confValue: "零售人员业绩提成数据表" },
{ confId: "multiCategoryOperation", confValue: "多品类运营" },
{ confId: "multiCategoryOperationMerchant", confValue: "多品类运营-门店" },
{ confId: "selleruseruserdipadanalysis", confValue: "驻店人员平板使用分析" },
{
confId: "selleruseruserdipadanalysis",
confValue: "驻店人员平板使用分析",
},
{ confId: "dailybehaviorsummary", confValue: "日行为汇总表" },
{ confId: "weeklybehaviorsummary", confValue: "周行为汇总表" },
{ confId: "businessDataSummary", confValue: "业务数据汇总" },
......@@ -936,6 +949,10 @@ export const downloadReportManage_reportType = [
confId: "BIAnalysisReport",
confValue: "BI数据分析表",
},
{
confId: "noDailyReportMerchantOutputReport",
confValue: "无日报门店产值表",
},
];
// 下载报表 业务类型
......@@ -1089,9 +1106,9 @@ export const businessOptShowText = {
};
// 预警管理 所属业务 显示文字
export const orderBusinessType = {
"0": "轻改",
"1": "权益",
"2": "延保",
0: "轻改",
1: "权益",
2: "延保",
"-1": "其他",
};
......@@ -1657,14 +1674,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",
};
// 合同类型
......@@ -2036,6 +2053,16 @@ export const connectionFlagOpt = [
confValue: "未关联",
},
];
export const trialStatusOpt = [
{
confId: 1,
confValue: "试岗中",
},
{
confId: 2,
confValue: "无试岗",
},
];
export const connectionFlagOptMap = {
true: "#2CCA74",
false: "#EB4E4E",
......
......@@ -147,6 +147,7 @@
? pickerOption[item.pickerOptions]
: undefined
"
:placeholder="item.placeholder"
range-separator="至"
start-placeholder="开始日期"
:style="{ width: item.width || '100%' }"
......@@ -170,6 +171,7 @@ import {
rangePickerOptions_oneYearNoFuture,
rangePickertwoMonthOptions,
rangePickertwoMonthOptionsWithCurrentLimit,
stockQueryDatePickerOptions,
todayEndPickerOptions,
yesterdayPicker,
} from "@/common/format";
......@@ -219,6 +221,7 @@ export default {
rangePickertwoMonthOptionsWithCurrentLimit,
rangePickerOptions_lastOneYear,
rangePickerOptions_oneYearNoFuture,
stockQueryDatePickerOptions,
},
};
},
......
......@@ -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,
};
},
},
......
......@@ -38,6 +38,8 @@ process.env.NODE_ENV === "production"
&& Sentry.init({
Vue,
dsn: "https://39bc80d3bb0a419a8d7d9bf5a39678e3@sentry.glsx.com.cn/24",
// 与 vue.config 中 SentryWebpackPlugin.release 一致,sourcemap 才能正确解析栈
release: process.env.VUE_APP_VERSION,
// dsn: 'http://6225fb8e73fb453a8455a9371f3517da@192.168.3.115:9000/4',
integrations: [
new BrowserTracing({
......
......@@ -482,7 +482,7 @@ export const routerName = {
ruleObj: {
attr: "status",
rule: {
2: "审核",
10: "审核",
},
},
handle: "handleCheck",
......@@ -501,7 +501,7 @@ export const routerName = {
ruleObj: {
attr: "status",
rule: {
2: "驳回",
10: "驳回",
},
},
handle: "handleReject",
......@@ -516,6 +516,7 @@ export const routerName = {
],
component: _import("purchase/directorReview"),
},
909080301: {
path: "/directorReview/singleCheck",
name: "singleCheck",
......@@ -540,4 +541,86 @@ export const routerName = {
},
component: _import("purchase/singleReview"),
},
90909: {
path: "/managerReview",
name: "managerReview",
role: "service",
meta: {
title: "经理审核",
authId: "90909",
parentId: "909",
cache: false,
},
auth: [
{
authId: "9090901",
parentId: "90909",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport",
},
{
authId: "9090905",
parentId: "90909",
label: "批量审核",
category: "Button",
type: "primary",
handle: "handleBatchCheck",
addRoutePath: [
{
authId: "909090501",
name: "批量审核",
parentId: "90909",
},
],
},
{
authId: "9090902",
parentId: "90909",
label: "查看",
handle: "handleDetail",
},
{
authId: "9090903",
parentId: "90909",
label: "审核",
ruleObj: {
attr: "status",
rule: {
2: "审核",
},
},
handle: "handleCheck",
},
{
authId: "9090904",
parentId: "90909",
label: "驳回",
ruleObj: {
attr: "status",
rule: {
2: "驳回",
},
},
handle: "handleReject",
},
],
component: _import("purchase/managerReview"),
},
909090501: {
path: "/managerReview/batchReview",
name: "managerReviewBatchReview",
meta: {
title: "批量审核",
authId: "909090501",
parentId: "90909",
cache: false,
activePath: "/managerReview",
},
component: _import("purchase/managerReviewBatchReview"),
},
};
<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>
// 订单状态
export const defaultStatusOptions = [
{
id: 1,
label: "运营审核"
},
{
id: 8,
label: "商务审核"
},
{
id: 2,
label: "总监审核"
},
{
id: 3,
label: "已取消"
},
{
id: 4,
label: "已驳回"
},
{
id: 5,
label: "已审核"
}
// {
// id: 6,
// label: "已审核"
// },
// {
// id: 7,
// label: "已驳回"
// }
]
{
id: 1,
label: "运营审核",
},
{
id: 8,
label: "商务审核",
},
{
id: 2,
label: "经理审核",
},
{
id: 10,
label: "总监审核",
},
{
id: 3,
label: "已取消",
},
{
id: 4,
label: "已驳回",
},
{
id: 5,
label: "已审核",
},
// {
// id: 6,
// label: "已审核"
// },
// {
// id: 7,
// label: "已驳回"
// }
];
export const defaultStatusOptionsForTable = [
{
id: 1,
label: "运营审核"
},
{
id: 8,
label: "商务审核"
},
{
id: 2,
label: "总监审核"
},
{
id: 3,
label: "已取消"
},
{
id: 4,
label: "已驳回"
},
{
id: 5,
label: "已审核"
},
{
id: 6,
label: "已驳回"
},
{
id: 7,
label: "已驳回"
},
{
id: 9,
label: "已驳回"
}
]
{
id: 1,
label: "运营审核",
},
{
id: 8,
label: "商务审核",
},
{
id: 2,
label: "经理审核",
},
{
id: 10,
label: "总监审核",
},
{
id: 3,
label: "已取消",
},
{
id: 4,
label: "已驳回",
},
{
id: 5,
label: "已审核",
},
{
id: 6,
label: "已驳回",
},
{
id: 7,
label: "已驳回",
},
{
id: 9,
label: "已驳回",
},
{
id: 11,
label: "已驳回",
},
];
// 运营审核筛选条件
export const operate_statusOptions = [
{
id: 1,
label: "待审核"
},
{
id: 2,
label: "已审核"
},
{
id: 4,
label: "已驳回"
}
]
{
id: 1,
label: "待审核",
},
{
id: 2,
label: "已审核",
},
{
id: 4,
label: "已驳回",
},
];
// 运营审核列表展示
export const operate_statusOptions_table = [
{
id: 1,
label: "待审核"
},
{
id: 2,
label: "已审核"
},
{
id: 4,
label: "已驳回"
},
{
id: 5,
label: "已审核"
},
{
id: 6,
label: "已驳回"
},
{
id: 7,
label: "已驳回"
},
{
id: 8,
label: "已审核"
},
{
id: 9,
label: "已驳回"
}
]
{
id: 1,
label: "待审核",
},
{
id: 2,
label: "已审核",
},
{
id: 10,
label: "已审核",
},
{
id: 4,
label: "已驳回",
},
{
id: 5,
label: "已审核",
},
{
id: 6,
label: "已驳回",
},
{
id: 7,
label: "已驳回",
},
{
id: 8,
label: "已审核",
},
{
id: 9,
label: "已驳回",
},
{
id: 11,
label: "已驳回",
},
];
// 商务审核筛选条件
export const business_statusOptions = [
{
id: 8,
label: "待审核"
},
{
id: 5,
label: "已审核"
},
{
id: 6,
label: "已驳回"
}
]
{
id: 8,
label: "待审核",
},
{
id: 5,
label: "已审核",
},
{
id: 6,
label: "已驳回",
},
];
// 商务审核列表展示
export const business_statusOptions_table = [
{
id: 8,
label: "待审核"
},
{
id: 5,
label: "已审核"
},
{
id: 6,
label: "已驳回"
},
{
id: 7,
label: "已驳回"
}
]
{
id: 8,
label: "待审核",
},
{
id: 5,
label: "已审核",
},
{
id: 6,
label: "已驳回",
},
{
id: 7,
label: "已驳回",
},
];
// 经理审核筛选条件
export const manager_status_options = [
{
id: 2,
label: "待审核",
},
{
id: 5,
label: "已审核",
},
{
id: 6,
label: "已驳回",
},
];
// 经理审核列表展示
export const manager_status_options_table = [
{
id: 2,
label: "待审核",
},
{
id: 5,
label: "已审核",
},
{
id: 8,
label: "已审核",
},
{
id: 10,
label: "已审核",
},
{
id: 6,
label: "已驳回",
},
{
id: 7,
label: "已驳回",
},
{
id: 9,
label: "已驳回",
},
{
id: 11,
label: "已驳回",
},
];
// 总监审核筛选条件
export const director_statusOptions = [
{
id: 2,
label: "待审核"
},
{
id: 5,
label: "已审核"
},
{
id: 6,
label: "已驳回"
}
]
{
id: 10,
label: "待审核",
},
{
id: 5,
label: "已审核",
},
{
id: 6,
label: "已驳回",
},
];
// 总监审核列表展示
export const director_statusOptions_table = [
{
id: 2,
label: "待审核"
},
{
id: 5,
label: "已审核"
},
{
id: 6,
label: "已驳回"
},
{
id: 7,
label: "已驳回"
},
{
id: 8,
label: "已审核"
},
{
id: 9,
label: "已驳回"
}
]
{
id: 10,
label: "待审核",
},
{
id: 5,
label: "已审核",
},
{
id: 8,
label: "已审核",
},
{
id: 6,
label: "已驳回",
},
{
id: 7,
label: "已驳回",
},
{
id: 9,
label: "已驳回",
},
];
// 发货状态
export const defaultDeliveryStatusOptions = [
{
id: 1,
label: "未发货"
},
{
id: 2,
label: "全部发货"
},
{
id: 3,
label: "部分发货"
},
{
id: 4,
label: "结束发货"
}
]
{
id: 1,
label: "未发货",
},
{
id: 2,
label: "全部发货",
},
{
id: 3,
label: "部分发货",
},
{
id: 4,
label: "结束发货",
},
];
// 入库状态
export const defaultPutStatusOptions = [
{
id: 1,
label: "未入库"
},
{
id: 2,
label: "全部入库"
},
{
id: 3,
label: "部分入库"
}
]
{
id: 1,
label: "未入库",
},
{
id: 2,
label: "全部入库",
},
{
id: 3,
label: "部分入库",
},
];
// 发货模式
export const purchasingPatternOptions = [
{
id: 1,
label: "直营"
},
{
id: 2,
label: "批发"
},
{
id: 3,
label: "代销"
}
]
{
id: 1,
label: "直营",
},
{
id: 2,
label: "批发",
},
{
id: 3,
label: "代销",
},
];
// export const severSelectOptionsLabel = {
// 1: "下单时间倒序排序",
// 2: "按收入比例",
......@@ -264,41 +336,49 @@ export const purchasingPatternOptions = [
// 采购类型
export const purchaseTypeList = [
{
id: 1,
label: "商城采购"
},
{
id: 2,
label: "自采入库"
}
]
{
id: 1,
label: "商城采购",
},
{
id: 2,
label: "自采入库",
},
];
// 分配状态
export const distributionStatusOptions = [
{
id: 0,
label: "未分配"
},
{
id: 1,
label: "已分配"
}
]
{
id: 0,
label: "未分配",
},
{
id: 1,
label: "已分配",
},
];
// 驳回节点选项
export const rejectNodeOptions = [
{
id: 3,
label: "商务审核"
},
{
id: 2,
label: "运营审核"
},
{
id: 1,
label: "采购商户"
}
]
{
id: 3,
label: "商务审核",
},
{
id: 2,
label: "运营审核",
},
{
id: 1,
label: "采购商户",
},
{
id: 6,
label: "经理审核",
},
];
export const signStatusType = [
{ confId: 0, confName: "待签收" },
{ confId: 2, confName: "已签收" },
{ confId: 1, confName: "部分签收" },
];
......@@ -193,12 +193,15 @@ export default {
},
className: (cellValue) => {
return {
2: 'yellowSpot',
// 待审核
10: 'yellowSpot',
// 已审核
5: 'greenSpot',
8: 'greenSpot',
// 已驳回
6: 'redSpot',
7: 'redSpot',
8: 'greenSpot',
9: 'redSpot'
9: 'redSpot',
}[cellValue.status]
}
}
......@@ -323,7 +326,7 @@ export default {
...this.dowloadList,
{
// name: '采购审核',
name: '运营审核',
name: '总监审核',
exportParam: JSON.stringify(params),
status: 'waiting',
timeid: new Date().getTime()
......
......@@ -126,7 +126,7 @@ export default {
deliveryDate: "",
orderCode: this.$route.params.orderCode || "",
merchantName: "",
putStatus: "",
putStatusList: [],
},
searchFormSearch: {},
showFormData: [
......@@ -167,8 +167,9 @@ export default {
},
{
label: "状态",
name: "putStatus",
name: "putStatusList",
type: "select",
multiple: true,
optionList: [],
optionId: "confId",
optionLabel: "confName",
......@@ -309,7 +310,8 @@ export default {
...mapActions("d2admin/user", ["actionSetDownloadList"]),
async getBaseData() {
this.getOptionsList();
this.getOptionsList(this, "showFormData", true, "shippingWarehouseName");
this.getOptionsList(this, "showFormData", false, "putStatusList");
},
getShippingWarehouseList() {
getShipWarehousePage({ currentPage: 1, pageSize: 999 })
......@@ -339,31 +341,62 @@ export default {
if (this.searchFormSearch.shippingWarehouseName === "全部") {
this.searchFormSearch.shippingWarehouseName = "";
}
if (this.searchFormSearch.putStatusList && this.searchFormSearch.putStatusList.length) {
this.searchFormSearch.putStatusStr = this.searchFormSearch.putStatusList.join(",");
}
delete this.searchFormSearch.putStatusList;
resolve();
});
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === "select") {
getOptionsList(that, formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
let item = that[formName].find(k => k.name == refreshSigle);
let index = that[formName].findIndex(k => k.name == refreshSigle);
console.log(item, index);
that.$set(
that[formName][index],
"optionList",
deepClone(that.baseData[item.optionsName]),
);
if (
hasAll
&& that.baseData[item.optionsName].length
&& that.baseData[item.optionsName][0][
that[formName][index].optionLabel
] !== "全部"
) {
const temp = {};
temp[that[formName][index].optionId] = "";
temp[that[formName][index].optionLabel] = "全部";
that[formName][index].optionList.unshift(temp);
}
} else {
that[formName].forEach((item, index) => {
if (
this.baseData[item.optionsName].length
&& this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel
] !== "全部"
item.type === "select"
&& that.baseData[item.optionsName]?.length
) {
const temp = {};
temp[this.showFormData[index].optionId] = "";
temp[this.showFormData[index].optionLabel] = "全部";
this.baseData[item.optionsName].unshift(temp);
that.$set(
that[formName][index],
"optionList",
deepClone(that.baseData[item.optionsName]),
);
if (
hasAll
&& that.baseData[item.optionsName].length
&& that.baseData[item.optionsName][0][
that[formName][index].optionLabel
] !== "全部"
) {
const temp = {};
temp[that[formName][index].optionId] = "";
temp[that[formName][index].optionLabel] = "全部";
that[formName][index].optionList.unshift(temp);
}
}
this.$set(
this.showFormData[index],
"optionList",
this.baseData[item.optionsName],
);
}
});
});
}
},
handleSearch() {
......@@ -376,7 +409,7 @@ export default {
deliveryDate: "",
orderCode: "",
merchantName: "",
putStatus: "",
putStatusList: [],
shippingWarehouseName: "全部",
};
this.$refs.recordTable.refreshTable();
......
<template>
<d2-container v-loading="loading">
<div v-for="(item, index) in selectList"
:key="index"
class="edit-page edit-tmpl"
style="padding: 20px">
<glsx-combi-form :ref="`editFormRef${index}`"
class="edit-form-container"
label-width="150px"
default-width="414px"
:form-ref="editChildRef"
:form-obj="item"
:form-data="editFormData"
:form-rules="formRules">
</glsx-combi-form>
</div>
<div class="footer">
<el-button type="primary"
:loading="loading"
@click="handleConfirm">
确定
</el-button>
<el-button @click="handleCancel">
取消
</el-button>
</div>
</d2-container>
</template>
<script>
import { getShippingEntityInfoAll } from "@api/serviceManage";
import {
managerBatchAudit,
} from "@/api/purchaseShopping.js";
import { deepClone, Util } from "@/common/util";
export default {
name: "BatchReview",
data() {
const editItemStyle = {
width: "50%",
marginRight: "0px",
};
const lineItemStyle = {
width: "100%",
marginRight: "0px",
};
return {
loading: false,
editChildRef: "editChildRef",
formRules: {
sendOutMerchantId: [
{ required: true, message: "请选择发货主体", trigger: "change" },
],
},
selectList: [],
editFormData: [
{
label: "订单编号",
name: "orderCode",
type: "showTxt",
style: editItemStyle,
},
{
label: "下单门店",
name: "merchantName",
type: "showTxt",
style: editItemStyle,
},
{
label: "订单总价/元",
name: "totalPrice",
type: "showTxt",
style: editItemStyle,
formatter: (cellValue) => {
return "¥" + cellValue.totalPrice;
},
},
{
label: "下单时间",
name: "orderTime",
type: "showTxt",
style: editItemStyle,
formatter: (cellValue) => {
return cellValue.orderTime ? Util.dateFormate(cellValue.orderTime, "YYYY-MM-DD HH:mm:ss") : "--";
},
},
{
label: "运营审核时间",
name: "operatorReviewDate",
type: "showTxt",
isHide: true,
style: editItemStyle,
formatter: (cellValue) => {
return cellValue.operatorReviewDate ? Util.dateFormate(cellValue.operatorReviewDate, "YYYY-MM-DD HH:mm:ss") : "--";
},
},
{
label: "发货主体",
name: "sendOutMerchantId",
isHide: true,
style: lineItemStyle,
type: "select",
optionList: [],
optionId: "shippingEntityId",
optionLabel: "shippingEntity",
optionsName: "shippingEntityList",
},
{
label: "备注",
name: "remark",
type: "input",
placeholder: "请输入",
style: lineItemStyle,
inputType: "textarea",
maxlength: "200",
rows: 4,
showLimit: true,
},
],
baseData: {
shippingEntityList: [],
},
};
},
mounted() {
this.fromPage = this.$route.query.fromPage || "procurementReview";
this.selectList = deepClone(this.$route.query.list || "[]");
this.showOrHideAttr("editFormData", "发货主体", this.fromPage == "procurementBusiness");
this.showOrHideAttr("editFormData", "运营审核时间", this.fromPage == "procurementReview");
this.getShippingEntityInfoAll();
},
methods: {
showOrHideAttr(formName, label, isHide) {
const idx = this[formName].findIndex(item => item.label == label);
this[formName][idx].isHide = isHide;
},
getShippingEntityInfoAll() {
// 获取发货主体数据
getShippingEntityInfoAll({}).then((res) => {
this.baseData.shippingEntityList = res || [];
this.getOptionsList("editFormData", false);
});
},
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
let item = this[formName].find(k => k.name == refreshSigle);
let index = this[formName].findIndex(k => k.name == refreshSigle);
this.$set(this[formName][index], "optionList", deepClone(this.baseData[item.optionsName]));
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== "全部") {
const temp = {};
temp[this[formName][index].optionId] = "";
temp[this[formName][index].optionLabel] = "全部";
this[formName][index].optionList.unshift(temp);
}
} else {
this[formName].forEach((item, index) => {
if (["select", "radio"].includes(item.type) && this.baseData[item.optionsName].length) {
this.$set(this[formName][index], "optionList", deepClone(this.baseData[item.optionsName]));
if (hasAll && this.baseData[item.optionsName].length && this.baseData[item.optionsName][0][this[formName][index].optionLabel] !== "全部") {
const temp = {};
temp[this[formName][index].optionId] = "";
temp[this[formName][index].optionLabel] = "全部";
this[formName][index].optionList.unshift(temp);
}
}
});
}
},
handleConfirm() {
if (this.loading) {
return true;
}
const _api = managerBatchAudit;
this.loading = true;
const params = {
json: JSON.stringify({ auditList: this.selectList }),
};
_api(params).then((res) => {
this.notice.okTips("批量审核成功");
this.handleCancel();
}).finally(() => {
this.loading = false;
});
},
// 取消按钮返回列表页
handleCancel() {
this.$router.push({
name: "managerReview",
});
},
},
};
</script>
<style lang="scss" scoped>
.edit-page.edit-tmpl {
margin: 0 20px 20px;
background: #ffffff;
.title {
height: 50px;
line-height: 50px;
padding: 0 20px;
border-bottom: 1px solid #e5e5e5;
font-size: 16px;
font-weight: 600;
color: #333333;
}
}
::v-deep .el-form-item--small .el-form-item__label,
::v-deep .el-form-item--small .el-form-item__content {
line-height: 20px;
}
.edit-tmpl {
.add-mer-btn {
margin-left: 12px;
}
}
.footer {
text-align: center;
}
</style>
......@@ -38,7 +38,7 @@
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
<CheckDialog :check-visible="checkVisible" v-if="checkVisible" :params-obj="paramsObj" from-page="procurementBusiness" @dialogClose="dialogClose">
</CheckDialog>
<rejectDialog :reject-visible="rejectVisible" v-if="rejectVisible" :params-obj="paramsObj" from-page="procurementBusiness" :filter-reject-list="[1,2]" @dialogClose="dialogClose">
<rejectDialog :reject-visible="rejectVisible" v-if="rejectVisible" :params-obj="paramsObj" from-page="procurementBusiness" :filter-reject-list="[1,2,6]" @dialogClose="dialogClose">
</rejectDialog>
</d2-container>
</template>
......
......@@ -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>
......@@ -168,7 +168,7 @@ import {
} from "@api/recruitment";
import { mapActions, mapState } from "vuex";
import { changeTypeOpt, connectionFlagOpt, connectionFlagOptMap, inviteStatusOpt, inviteStatusOptMap } from "@/common/constants.js";
import { changeTypeOpt, connectionFlagOpt, connectionFlagOptMap, inviteStatusOpt, inviteStatusOptMap, trialStatusOpt } from "@/common/constants.js";
import { deepClone, Util } from "@/common/util";
import reportTrackPageMixin from "@/mixins/reportTrackPageMixin";
......@@ -361,6 +361,13 @@ export default {
: cellValue.allOfOnboarding;
},
},
{
label: "待招人数",
prop: "pendingCount",
formatter: (cellValue) => {
return cellValue.pendingCount === 0 ? 0 : cellValue.pendingCount || "-";
},
},
{
label: "状态",
......@@ -369,6 +376,18 @@ export default {
addHtml: "statusHtml",
},
{
label: "试岗状态",
prop: "trialStatus",
width: 120,
formatter: (cellValue) => {
const trialStatusMap = {
1: "试岗中",
2: "无试岗",
};
return trialStatusMap[cellValue.trialStatus] || "-";
},
},
{
label: "关联状态",
prop: "connectionFlag",
width: 100,
......@@ -389,6 +408,7 @@ export default {
recruitmentType: "",
createdDate: [],
status: "",
trialStatus: "",
recruiterName: "",
regionOperationName: "",
createdBy: "",
......@@ -504,6 +524,16 @@ export default {
optionLabel: "confValue",
optionsName: "connectionFlagOpt",
},
{
label: "试岗状态",
name: "trialStatus",
type: "select",
isClear: true,
optionList: [],
optionId: "confId",
optionLabel: "confValue",
optionsName: "trialStatusOpt",
},
],
baseData: {
......@@ -519,6 +549,7 @@ export default {
inviteStatusOptMap: deepClone(inviteStatusOptMap),
connectionFlagOptMap: deepClone(connectionFlagOptMap),
connectionFlagOpt: deepClone(connectionFlagOpt),
trialStatusOpt: deepClone(trialStatusOpt),
changeTypeOpt: deepClone(changeTypeOpt),
receiverOpt: [],
relateMerchantOpt: [],
......
......@@ -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>
......@@ -234,6 +234,11 @@ export default {
label: "操作人",
prop: "operator",
},
{
label: "操作时间",
prop: "operateTime",
width: 150,
},
],
},
// 基本数据
......
......@@ -216,10 +216,10 @@ export default {
tableOption: true,
tableColumns: [{
label: "出库时间",
prop: "reduceDate",
prop: "createdDate",
width: "150px",
formatter: (cellValue) => {
return cellValue.reduceDate ? Util.dateFormate(cellValue.reduceDate, "YYYY-MM-DD HH:mm:ss") : "";
return cellValue.createdDate ? Util.dateFormate(cellValue.createdDate, "YYYY-MM-DD HH:mm:ss") : "";
},
}, {
label: "商品名称",
......@@ -309,6 +309,13 @@ export default {
prop: "updatedUserName",
width: "100px",
}, {
label: "操作时间",
prop: "reduceDate",
width: 150,
formatter: (cellValue) => {
return cellValue.reduceDate ? Util.dateFormate(cellValue.reduceDate, "YYYY-MM-DD HH:mm:ss") : "";
},
}, {
label: "最后操作时间",
prop: "updatedDate",
width: "150px",
......
<!-- 库存明细弹窗 -->
<template>
<d2-dialog title="库存明细" :is-visible="dialogVisible" class="stockMonthDailog" width="40%" :no-cancel="true"
btn-ok-label="关闭" @closeDialog="handleClose" @confirmDialog="handleClose">
<div>
<div class="d2-container-content">
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchForm" :table-params="tableParams">
</d2-table>
</div>
</div>
</d2-dialog>
<d2-dialog btn-ok-label="关闭"
class="stockMonthDailog"
:is-visible="dialogVisible"
:no-cancel="true"
title="库存明细"
width="40%"
@closeDialog="handleClose"
@confirmDialog="handleClose">
<div>
<div class="d2-container-content">
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchForm"
:table-params="tableParams">
</d2-table>
</div>
</div>
</d2-dialog>
</template>
<script>
import { mapActions, mapState } from 'vuex'
import { merchantShopGoodsStockPage } from '@api/stockManage'
import { baseConfig } from '@/main'
import { merchantShopGoodsStockPage } from "@api/stockManage";
import { mapActions, mapState } from "vuex";
import { baseConfig } from "@/main";
export default {
name: 'StockDetailDialog',
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: baseConfig.membraneTypeList,
searchForm: {
upgradeGoodsId: '',
yqMerchantId: ''
},
getListApi: merchantShopGoodsStockPage,
tableData: [],
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
// tableOption: false,
tableColumns: [
{
label: '门店',
prop: 'merchantName',
width: '200px'
},
{
label: '当前库存',
prop: 'stock',
// width: ''
formatter: (cellValue) => {
return (cellValue.stock || cellValue.stock == 0) ? parseFloat(cellValue.stock).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? '米' : '件') : '-'
}
},
{
label: '膜卷号',
prop: 'filmRollNo',
formatter: (cellValue) => {
return cellValue?.filmRollNo || '-'
}
}
]
}
}
},
name: "StockDetailDialog",
props: {
visible: {
type: Boolean,
default: false
},
recordInfo: {
type: Object,
default: () => { }
}
},
props: {
visible: {
type: Boolean,
default: false,
},
recordInfo: {
type: Object,
default: () => { },
},
},
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
membraneTypeList: baseConfig.membraneTypeList,
searchForm: {
upgradeGoodsId: "",
yqMerchantId: "",
},
getListApi: merchantShopGoodsStockPage,
tableData: [],
tableParams: {
btnId: new Date().getTime() + Number.parseInt(Math.random() * 1000),
listName: "list",
// tableOption: false,
tableColumns: [
{
label: "门店",
prop: "merchantName",
width: "200px",
},
{
label: "当前库存",
prop: "stock",
// width: ''
formatter: (cellValue) => {
return (cellValue.stock || cellValue.stock == 0) ? Number.parseFloat(cellValue.stock).toFixed(2) + (this.membraneTypeList.includes(cellValue.goodsType) ? "米" : "件") : "-";
},
},
{
label: "膜卷号",
prop: "filmRollNo",
formatter: (cellValue) => {
return cellValue?.filmRollNo || "-";
},
},
],
},
};
},
computed: {
dialogVisible: {
get() {
return this.visible
},
set(val) {
this.$emit('update:visible', val)
}
}
},
mounted() {
if (this.recordInfo) {
this.searchForm.yqMerchantId = this.recordInfo.yqMerchantId
this.searchForm.upgradeGoodsId = this.recordInfo.upgradeGoodsId
}
},
computed: {
dialogVisible: {
get() {
return this.visible;
},
set(val) {
this.$emit("update:visible", val);
},
},
},
mounted() {
if (this.recordInfo) {
this.searchForm.yqMerchantId = this.recordInfo.yqMerchantId;
this.searchForm.upgradeGoodsId = this.recordInfo.upgradeGoodsId;
this.searchForm.queryDate = this.recordInfo.queryDate ? this.recordInfo.queryDate : "";
}
},
methods: {
...mapActions({
get: 'd2admin/base/get',
close: 'd2admin/page/close'
}),
methods: {
...mapActions({
get: "d2admin/base/get",
close: "d2admin/page/close",
}),
// beforeSearchFn() {
// return new Promise(resolve => {
// this.searchFormSearch = deepClone(this.searchForm)
// resolve()
// })
// },
// beforeSearchFn() {
// return new Promise(resolve => {
// this.searchFormSearch = deepClone(this.searchForm)
// resolve()
// })
// },
chooseYear() {
this.getList()
},
chooseYear() {
this.getList();
},
// getList() {
// var params = deepClone(this.searchForm)
// getReportByGoods(params).then(res => {
// this.tableData = res
// })
// },
// getList() {
// var params = deepClone(this.searchForm)
// getReportByGoods(params).then(res => {
// this.tableData = res
// })
// },
handleClose() {
// this.$emit('dialogClose')
this.dialogVisible = false
}
}
}
handleClose() {
// this.$emit('dialogClose')
this.dialogVisible = false;
},
},
};
</script>
<style scoped>
.count-txt {
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
font-weight: 700;
color: #2a58ad;
margin: 0 2px;
}
.stockMonthDailog .el-dialog {
margin-top: 20vh !important;
min-width: 700px;
margin-top: 20vh !important;
min-width: 700px;
}
.stockMonthDailog .btn-tips img {
width: 18px;
height: 15px;
margin-right: 9px;
vertical-align: bottom;
width: 18px;
height: 15px;
margin-right: 9px;
vertical-align: bottom;
}
.stockMonthDailog .btn-tips {
display: inline-block;
font-size: 12px;
height: 14px;
line-height: 14px;
background-color: #fff2e5;
color: #999999;
margin-right: 24px;
padding: 6.5px 10px;
display: inline-block;
font-size: 12px;
height: 14px;
line-height: 14px;
background-color: #fff2e5;
color: #999999;
margin-right: 24px;
padding: 6.5px 10px;
}
.show-search {
margin-left: -65px;
margin-left: -65px;
}
</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>
......@@ -88,6 +72,7 @@ export default {
yqMerchantId: "",
goodsType: "",
goodsSeries: "",
queryDate: "",
},
searchFormSearch: {},
searchSelectObj: {
......@@ -136,6 +121,14 @@ export default {
type: "input",
maxlength: "20",
isClear: true,
}, {
label: "选择日期",
name: "queryDate",
type: "datePicker",
dateType: "date",
isClear: true,
placeholder: "请选择",
pickerOptions: "stockQueryDatePickerOptions",
}],
getListApi: getMerchantGoodsStockMonthReport,
tableParams: {
......@@ -239,6 +232,7 @@ export default {
// 库存记录统计
stockMonthReportCount() {
this.beforeSearchFn()
stockMonthReportCount(this.searchFormSearch).then((res) => {
this.statisticsData = res;
});
......@@ -252,6 +246,9 @@ export default {
beforeSearchFn() {
return new Promise((resolve) => {
this.searchFormSearch = deepClone(this.searchForm);
if (this.searchFormSearch.queryDate) {
this.searchFormSearch.queryDate = Util.dateFormate(this.searchFormSearch.queryDate, "YYYY-MM-DD") + " 23:59:59";
}
this.searchFormSearch.dataMonth = Util.dateFormate(new Date(), "YYYY-MM");
resolve();
......@@ -282,6 +279,7 @@ export default {
yqMerchantId: "",
goodsType: "",
goodsSeries: "",
queryDate: "",
};
this.$refs.recordTable.refreshTable();
this.stockMonthReportCount();
......@@ -328,7 +326,10 @@ export default {
},
handleDetail(row) {
this.recordInfo = row;
console.log(row, "row");
this.recordInfo = {
...this.recordInfo,
queryDate: this.searchForm.queryDate ? Util.dateFormate(this.searchForm.queryDate, "YYYY-MM-DD") + " 23:59:59" : "",
};
this.stockDetailDialogVisible = true;
},
dialogClose(flag) {
......
<!-- 商务审核 -->
<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();
},
......
<!-- 运营管理 -->
<template>
<div class="list-wrap">
<div class="header" slot="header">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane
v-for="(item, index) in tabPaneList"
:label="item.label"
:name="item.name"
:key="index"
>
</el-tab-pane>
</el-tabs>
<components :is="tabName" :scene-type="activeName"></components>
<div class="list-wrap">
<div slot="header" class="header">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane v-for="(item, index) in tabPaneList"
:key="index"
:label="item.label"
:name="item.name">
</el-tab-pane>
</el-tabs>
<components :is="tabName" :scene-type="activeName"></components>
</div>
</div>
</div>
</template>
<script>
import contract from "./components/contract/index.vue"
import sunshine from "./components/sunshine/index.vue"
import contract from "./components/contract/index.vue";
import sunshine from "./components/sunshine/index.vue";
export default {
components: {
contract,
sunshine
},
data() {
return {
activeName: "0",
tabPaneList: [
{
label: "合同管理",
name: "0"
},
{
label: "阳光激励",
name: "1"
}
],
tabName: "contract"
}
},
mounted() {
if (this.$route.params.tabPane) {
this.activeName = this.$route.params.tabPane
this.tabName = this.$route.params.tabLabel
}
},
watch: {},
methods: {
handleClick() {
const arr = {
0: "contract",
1: "sunshine"
}
this.tabName = arr[+this.activeName]
}
}
}
components: {
Contract: contract,
Sunshine: sunshine,
},
data() {
return {
activeName: "0",
tabPaneList: [
{
label: "合同管理",
name: "0",
},
{
label: "阳光激励",
name: "1",
},
],
tabName: "contract",
};
},
watch: {},
mounted() {
if (this.$route.params.tabPane) {
this.activeName = this.$route.params.tabPane;
this.tabName = this.$route.params.tabLabel;
}
},
methods: {
handleClick() {
const arr = {
0: "contract",
1: "sunshine",
};
this.tabName = arr[+this.activeName];
},
},
};
</script>
<style scoped lang="scss">
.list-wrap {
padding: 0 26px 0 20px;
padding: 0 26px 0 20px;
.header {
::v-deep .el-tabs__header {
margin: 0;
.el-tabs__nav-wrap {
padding: 0 20px;
}
.el-tabs__nav-wrap {
height: 54px;
line-height: 54px;
font-size: 16px;
}
}
}
.header {
::v-deep .el-tabs__header {
margin: 0;
.el-tabs__nav-wrap {
padding: 0 20px;
}
.el-tabs__nav-wrap {
height: 54px;
line-height: 54px;
font-size: 16px;
}
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!