Commit 5ff6c27e by 张立顺

Merge branch 'SAAS+V4.54.0-0630' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.54.0-0630
2 parents 81dc76dc b2518375
Showing 47 changed files with 960 additions and 257 deletions
...@@ -3915,7 +3915,7 @@ ...@@ -3915,7 +3915,7 @@
}, },
"@vue/vue-loader-v15": { "@vue/vue-loader-v15": {
"version": "npm:vue-loader@15.11.1", "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==", "integrity": "sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -3928,7 +3928,7 @@ ...@@ -3928,7 +3928,7 @@
"dependencies": { "dependencies": {
"hash-sum": { "hash-sum": {
"version": "1.0.2", "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==", "integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
"dev": true "dev": true
} }
...@@ -5927,7 +5927,7 @@ ...@@ -5927,7 +5927,7 @@
}, },
"cross-spawn": { "cross-spawn": {
"version": "6.0.5", "version": "6.0.5",
"resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-6.0.5.tgz", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
"integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
"dev": true, "dev": true,
"requires": { "requires": {
...@@ -7142,7 +7142,7 @@ ...@@ -7142,7 +7142,7 @@
}, },
"ignore": { "ignore": {
"version": "4.0.6", "version": "4.0.6",
"resolved": "https://registry.npmmirror.com/ignore/-/ignore-4.0.6.tgz", "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz",
"integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==",
"dev": true "dev": true
}, },
...@@ -8569,21 +8569,21 @@ ...@@ -8569,21 +8569,21 @@
} }
}, },
"glsk-oss-jssdk": { "glsk-oss-jssdk": {
"version": "1.0.2", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/glsk-oss-jssdk/-/glsk-oss-jssdk-1.0.2.tgz", "resolved": "https://registry.npmmirror.com/glsk-oss-jssdk/-/glsk-oss-jssdk-1.0.3.tgz",
"integrity": "sha512-oFbouNPVFrSv7ACunWdAlR1oJ4jpxMiK7ORGvd8BMpCeI6sMAJ6IneFKON5mp3GceOK6jxDtKub0UTKKx/W6lQ==", "integrity": "sha512-lgPWTSrT+y5NfuXBdvvfIovf+5c+3WD5GQRfhcWw77FX6IydG85EyQxjOVxu1R/HjacrALV6dJQJDw//SdnH7g==",
"requires": { "requires": {
"ali-oss": "^6.23.0" "ali-oss": "^6.23.0"
}, },
"dependencies": { "dependencies": {
"address": { "address": {
"version": "1.2.2", "version": "1.2.2",
"resolved": "https://registry.npmjs.org/address/-/address-1.2.2.tgz", "resolved": "https://registry.npmmirror.com/address/-/address-1.2.2.tgz",
"integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==" "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA=="
}, },
"ali-oss": { "ali-oss": {
"version": "6.23.0", "version": "6.23.0",
"resolved": "https://registry.npmjs.org/ali-oss/-/ali-oss-6.23.0.tgz", "resolved": "https://registry.npmmirror.com/ali-oss/-/ali-oss-6.23.0.tgz",
"integrity": "sha512-FipRmyd16Pr/tEey/YaaQ/24Pc3HEpLM9S1DRakEuXlSLXNIJnu1oJtHM53eVYpvW3dXapSjrip3xylZUTIZVQ==", "integrity": "sha512-FipRmyd16Pr/tEey/YaaQ/24Pc3HEpLM9S1DRakEuXlSLXNIJnu1oJtHM53eVYpvW3dXapSjrip3xylZUTIZVQ==",
"requires": { "requires": {
"address": "^1.2.2", "address": "^1.2.2",
...@@ -8615,7 +8615,7 @@ ...@@ -8615,7 +8615,7 @@
}, },
"debug": { "debug": {
"version": "4.4.1", "version": "4.4.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.1.tgz",
"integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==",
"requires": { "requires": {
"ms": "^2.1.3" "ms": "^2.1.3"
...@@ -8623,12 +8623,12 @@ ...@@ -8623,12 +8623,12 @@
}, },
"mime": { "mime": {
"version": "2.6.0", "version": "2.6.0",
"resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", "resolved": "https://registry.npmmirror.com/mime/-/mime-2.6.0.tgz",
"integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==" "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg=="
}, },
"ms": { "ms": {
"version": "2.1.3", "version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
} }
} }
...@@ -8949,7 +8949,7 @@ ...@@ -8949,7 +8949,7 @@
"dependencies": { "dependencies": {
"big.js": { "big.js": {
"version": "3.2.0", "version": "3.2.0",
"resolved": "https://registry.npmmirror.com/big.js/-/big.js-3.2.0.tgz", "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz",
"integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==" "integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q=="
}, },
"json5": { "json5": {
...@@ -13603,7 +13603,7 @@ ...@@ -13603,7 +13603,7 @@
}, },
"p-try": { "p-try": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmmirror.com/p-try/-/p-try-2.2.0.tgz", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
"integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
"dev": true "dev": true
}, },
...@@ -15124,7 +15124,7 @@ ...@@ -15124,7 +15124,7 @@
"dependencies": { "dependencies": {
"pify": { "pify": {
"version": "4.0.1", "version": "4.0.1",
"resolved": "https://registry.npmmirror.com/pify/-/pify-4.0.1.tgz", "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
"integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==",
"dev": true "dev": true
}, },
...@@ -16790,7 +16790,7 @@ ...@@ -16790,7 +16790,7 @@
}, },
"type-fest": { "type-fest": {
"version": "0.6.0", "version": "0.6.0",
"resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.6.0.tgz", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz",
"integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==",
"dev": true "dev": true
}, },
...@@ -17176,7 +17176,7 @@ ...@@ -17176,7 +17176,7 @@
}, },
"vue-hot-reload-api": { "vue-hot-reload-api": {
"version": "2.3.4", "version": "2.3.4",
"resolved": "https://registry.npmmirror.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz", "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
"integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==", "integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==",
"dev": true "dev": true
}, },
...@@ -18101,7 +18101,7 @@ ...@@ -18101,7 +18101,7 @@
}, },
"yarn": { "yarn": {
"version": "1.22.19", "version": "1.22.19",
"resolved": "https://registry.npmjs.org/yarn/-/yarn-1.22.19.tgz", "resolved": "https://registry.npmmirror.com/yarn/-/yarn-1.22.19.tgz",
"integrity": "sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ==" "integrity": "sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ=="
}, },
"yorkie": { "yorkie": {
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"flex.css": "^1.1.7", "flex.css": "^1.1.7",
"fuse.js": "^3.4.4", "fuse.js": "^3.4.4",
"glsk-oss-jssdk": "^1.0.1", "glsk-oss-jssdk": "^1.0.3",
"glsx-common-sdk": "^0.3.0", "glsx-common-sdk": "^0.3.0",
"hash.js": "^1.0.0", "hash.js": "^1.0.0",
"hotkeys-js": "^3.6.2", "hotkeys-js": "^3.6.2",
......
...@@ -56,17 +56,33 @@ export function billCompute(data) { ...@@ -56,17 +56,33 @@ export function billCompute(data) {
return request(data, "post") return request(data, "post")
} }
// 对账单测算-分页
export function billComputePage(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.computeByIncr.json'
return request(data, "post")
}
// 对账单编辑 // 对账单编辑
export function editBill(data) { export function editBill(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.updateByJson' data.method = 'dj.api.smartcarlife.reconciliationBill.updateByJson'
return request(data, "post") return request(data, "post")
} }
// 对账单编辑-分页
export function editBillPage(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.updateByIncrByJson'
return request(data, "post")
}
export function billDetail(data) { export function billDetail(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.detail' data.method = 'dj.api.smartcarlife.reconciliationBill.detail'
return request(data, "post") return request(data, "post")
} }
// 对账单详情-分页
export function billDetailPage(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.detail.withOrderPage'
return request(data, "post")
}
//根据服务商商户号分页获取4S店列表 //根据服务商商户号分页获取4S店列表
export function getShopList(data) { export function getShopList(data) {
data.method = 'dj.api.scenemerchantref.queryShopRefByPartnerShopPage' data.method = 'dj.api.scenemerchantref.queryShopRefByPartnerShopPage'
......
...@@ -421,3 +421,12 @@ export function contentManagerTaskListStaffPage(data) { ...@@ -421,3 +421,12 @@ export function contentManagerTaskListStaffPage(data) {
data.method = `${path2}contentManagerTask.listStaffPage` data.method = `${path2}contentManagerTask.listStaffPage`
return request(data, "post") return request(data, "post")
} }
/** 省市树 */
export function mapDistricts(data) {
data.method = `${path2}map.districts`
return request(data, "post")
}
// export function getCarbrandTree(data = {}) {
// data.method = `merchants.api.merchantCommon.getCarbrandTree`
// return request(data, "post")
// }
...@@ -292,3 +292,15 @@ export function busiBatchSet(data) { ...@@ -292,3 +292,15 @@ export function busiBatchSet(data) {
data.method = 'dj.api.smartcarlife.serviceMerchant.BusinessDev.setting.batch' data.method = 'dj.api.smartcarlife.serviceMerchant.BusinessDev.setting.batch'
return request(data, "post") return request(data, "post")
} }
// 查询地图行政区域省市区三级结构
export function getDistrictDetail(data) {
data.method = 'dj.api.smartcarlife.map.districts.details'
return request(data)
}
// 获取嘀加设置的服务商
export function getMerService(data) {
data.method = 'dj.smartcarlife.api.merchant.dj.serviceList'
return request(data)
}
...@@ -1068,7 +1068,8 @@ export const staffLevelList = [ ...@@ -1068,7 +1068,8 @@ export const staffLevelList = [
{ confId: 6, confValue: "大店长" }, { confId: 6, confValue: "大店长" },
{ confId: 7, confValue: "初级区域督导" }, { confId: 7, confValue: "初级区域督导" },
{ confId: 8, confValue: "中级区域督导" }, { confId: 8, confValue: "中级区域督导" },
{ confId: 9, confValue: "高级区域督导" } { confId: 9, confValue: "高级区域督导" },
{ confId: 11, confValue: "驻店零售" }
] ]
// 所属业务 // 所属业务
......
...@@ -237,6 +237,18 @@ export const routerName = { ...@@ -237,6 +237,18 @@ export const routerName = {
parentId: "91305", parentId: "91305",
label: "统计", label: "统计",
handle: "goStatisticsPage", handle: "goStatisticsPage",
// attr
ruleObj: {
attr: "contentType",
rule: {
0: "统计",
1: "统计",
2: "统计",
3: "统计",
4: "统计",
5: "详情"
}
},
addRoutePath: [ addRoutePath: [
{ {
authId: "9130506", authId: "9130506",
......
<template> <template>
<d2-dialog title="选择品牌" :is-visible="dialogVisible" class="brand-dialog" width="50%" @closeDialog="handleClose" <d2-dialog title="选择品牌222" :is-visible="dialogVisible" class="brand-dialog" width="50%" @closeDialog="handleClose"
@confirmDialog="handleConfirm"> @confirmDialog="handleConfirm">
<el-form :inline="true" size="mini" class="demo-form-inline"> <el-form :inline="true" size="mini" class="demo-form-inline">
<el-form-item label="品牌名称:"> <el-form-item label="品牌名称:">
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
<div class="content"> <div class="content">
<div class="tree-box"> <div class="tree-box">
<div class="title">预选品牌</div> <div class="title">预选品牌</div>
<el-tree ref="tree" node-key="id" :filter-node-method="filterNode" :data="brandData" :props="defaultProps" show-checkbox <el-tree ref="tree" node-key="id" :filter-node-method="filterNode" :data="brandData" :props="defaultProps"
@check-change="handleNodeClick"></el-tree> show-checkbox @check-change="handleNodeClick"></el-tree>
</div> </div>
<!-- <div class="check-box"> <!-- <div class="check-box">
<div class="title">已选品牌 <div class="title">已选品牌
...@@ -22,12 +22,12 @@ ...@@ -22,12 +22,12 @@
<template v-if="checkList.length == 0"> <template v-if="checkList.length == 0">
<div class="no-data">暂无数据</div> <div class="no-data">暂无数据</div>
</template> </template>
<template v-else> <template v-else>
<div class="check-list"> <div class="check-list">
<div class="check-item" v-for="item in checkList" :key="item.id">{{ item.label }}<i class="el-icon-close" @click="closeChecked(item)"></i></div> <div class="check-item" v-for="item in checkList" :key="item.id">{{ item.label }}<i class="el-icon-close" @click="closeChecked(item)"></i></div>
</div> </div>
</template> </template>
</div> --> </div> -->
</div> </div>
</d2-dialog> </d2-dialog>
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
}); });
} }
}); });
// 过滤掉一级项中 id 存在于 childrenIds 中的项 // 过滤掉一级项中 id 存在于 childrenIds 中的项
return checkList.filter(item => !childrenIds.has(item.id)); return checkList.filter(item => !childrenIds.has(item.id));
}, },
...@@ -173,6 +173,7 @@ export default { ...@@ -173,6 +173,7 @@ export default {
height: 324px; height: 324px;
overflow-y: auto; overflow-y: auto;
width: 100%; width: 100%;
// margin-right: 20px; // margin-right: 20px;
.tree-title { .tree-title {
display: flex; display: flex;
...@@ -199,11 +200,13 @@ export default { ...@@ -199,11 +200,13 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.check-list { .check-list {
margin-top: 12px; margin-top: 12px;
height: calc(100% - 64px); height: calc(100% - 64px);
overflow-y: auto; overflow-y: auto;
} }
.check-item { .check-item {
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -3,6 +3,14 @@ ...@@ -3,6 +3,14 @@
<d2-dialog :appendToBody="true" title="选择课程" :is-visible.sync="relateStoreVisible" width="50%" btn-ok-label="确定" <d2-dialog :appendToBody="true" title="选择课程" :is-visible.sync="relateStoreVisible" width="50%" btn-ok-label="确定"
@confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" class="relateStore"> @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" class="relateStore">
<el-form :model="storeSearchForm" ref="relate" :inline="true"> <el-form :model="storeSearchForm" ref="relate" :inline="true">
<el-form-item label="课程类型:">
<el-select v-model="storeSearchForm.type" placeholder="课程名称" max-length="20" @keydown.native="handleStoreInput"
clearable>
<el-option label="推荐课程" :value="1"> </el-option>
<el-option label="自选课程" :value="2">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="课程名称:"> <el-form-item label="课程名称:">
<el-input v-model.trim="storeSearchForm.courseName" placeholder="课程名称" max-length="20" <el-input v-model.trim="storeSearchForm.courseName" placeholder="课程名称" max-length="20"
@keydown.native="handleStoreInput" clearable /> @keydown.native="handleStoreInput" clearable />
...@@ -12,7 +20,7 @@ ...@@ -12,7 +20,7 @@
<el-row class="tableCon"> <el-row class="tableCon">
<div class="tableBox"> <div class="tableBox">
<el-table ref="seletingTable" :data="selectingData" height="464px" class="table" border @select="handleChange" <el-table ref="seletingTable" :data="selectingData" height="464px" class="table" border @select="handleChange"
@select-all="handleAll"> @select-all="handleAll" :empty-text="emptyText">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column prop="label" label="课程名称" align="center"> <el-table-column prop="label" label="课程名称" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -44,7 +52,7 @@ import { ...@@ -44,7 +52,7 @@ import {
findStaffTagCoursePage findStaffTagCoursePage
} from "@api/contentManager" } from "@api/contentManager"
import { deepClone } from "@/common/util" import { deepClone } from "@/common/util"
// import { getBrandList } from "@api/contentManager" // import { contentManagerTaskCourseList } from "@/api/contentManager"
export default { export default {
name: "RelateStoreDialog", name: "RelateStoreDialog",
data() { data() {
...@@ -56,7 +64,8 @@ export default { ...@@ -56,7 +64,8 @@ export default {
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
storeSearchForm: { storeSearchForm: {
courseName: '' courseName: '',
type: 1
} }
} }
}, },
...@@ -69,6 +78,21 @@ export default { ...@@ -69,6 +78,21 @@ export default {
storeSelected: { storeSelected: {
type: Array, type: Array,
default: () => [] default: () => []
},
filterSopType: {
type: Array,
default: () => []
}
},
computed: {
emptyText: {
get() {
if (this.storeSearchForm.type == 1 && !this.filterSopType.length) {
return '请选择员工标签,匹配推荐课程'
} else {
return '暂无匹配推荐课程'
}
}
} }
}, },
...@@ -87,12 +111,23 @@ export default { ...@@ -87,12 +111,23 @@ export default {
}) })
}, },
getSelectingList() { getSelectingList() {
// const name = this.storeSearchForm.type == 1 ? contentManagerTaskCourseList : findStaffTagCoursePage
// 如果没有选标签,直接为空
if (this.storeSearchForm.type == 1 && !this.filterSopType.length) {
this.selectingData = []
this.total = 0
this.$nextTick(() => {
this.recoverySelection()
})
return
}
findStaffTagCoursePage({ findStaffTagCoursePage({
...this.storeSearchForm, ...this.storeSearchForm,
currentPage: this.currentPage, currentPage: this.currentPage,
pageSize: this.pageSize, tagIds: this.storeSearchForm.type == 1 ? this.filterSopType : [],
// isFlag: true pageSize: this.pageSize
}).then((res) => { }).then((res) => {
console.log(res)
this.selectingData = res.list this.selectingData = res.list
this.total = res.total this.total = res.total
this.$nextTick(() => { this.$nextTick(() => {
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<el-checkbox-group class="tag-group" v-model="item.tagChecked" <el-checkbox-group class="tag-group" v-model="item.tagChecked"
@change="handleCheckedChange(item.tagChecked, index)" v-if="item.checked"> @change="handleCheckedChange(item.tagChecked, index)" v-if="item.checked">
<el-checkbox v-for="(itm, idx) in item.labelList" :label="itm" :key="idx">{{ itm.name || itm.labelName <el-checkbox v-for="(itm, idx) in item.labelList" :label="itm" :key="idx">{{ itm.name || itm.labelName
}}</el-checkbox> }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</div> </div>
</div> </div>
...@@ -91,7 +91,6 @@ import { ...@@ -91,7 +91,6 @@ import {
findStaffTagCoursePage findStaffTagCoursePage
} from "@api/contentManager" } from "@api/contentManager"
import { deepClone } from "@/common/util" import { deepClone } from "@/common/util"
import { active } from "sortablejs"
export default { export default {
name: "activityModel", name: "activityModel",
props: { props: {
...@@ -116,7 +115,7 @@ export default { ...@@ -116,7 +115,7 @@ export default {
tree: { tree: {
6: [{ id: 6, name: '运营模式', child: [{ id: 0, name: '非直营' }, { id: 1, name: '直营' }] }], 6: [{ id: 6, name: '运营模式', child: [{ id: 0, name: '非直营' }, { id: 1, name: '直营' }] }],
7: [{ id: 7, name: '展业场景', child: [{ id: 0, name: '售前' }, { id: 1, name: '售后' }, { id: 2, name: '存量电销' }] }], 7: [{ id: 7, name: '展业场景', child: [{ id: 0, name: '售前' }, { id: 1, name: '售后' }, { id: 2, name: '存量电销' }] }],
9: [{ id: 9, name: '业务类型 ', child: [{ id: 0, name: '非直营' }, { id: 1, name: '直营' }] }], 9: [{ id: 9, name: '业务类型 ', child: [{ id: 0, name: '轻改' }, { id: 1, name: '权益' }, { id: 2, name: '延保' }] }],
10: [{ id: 0, name: '短课程学习', child: [{ id: 0, name: '进行中' }, { id: 1, name: '已改善' }, { id: 2, name: '未改善' }] }, { id: 1, name: '长课程学习', child: [{ id: 0, name: '进行中' }, { id: 3, name: '已结束' }] }] 10: [{ id: 0, name: '短课程学习', child: [{ id: 0, name: '进行中' }, { id: 1, name: '已改善' }, { id: 2, name: '未改善' }] }, { id: 1, name: '长课程学习', child: [{ id: 0, name: '进行中' }, { id: 3, name: '已结束' }] }]
} }
} }
......
<template>
<d2-dialog title="选择区域" :appendToBody="true" :is-visible="dialogVisible" class="brand-dialog" width="50%"
@closeDialog="handleClose" @confirmDialog="handleConfirm">
<el-form :inline="true" size="mini" class="demo-form-inline">
<el-form-item label="区域名称:">
<el-input v-model="filterText" placeholder="请输入" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSearch">查询</el-button>
</el-form-item>
</el-form>
<div class="content">
<div class="tree-box">
<div class="title">预选区域</div>
<el-tree ref="tree" node-key="id" :filter-node-method="filterNode" :data="brandData" :props="defaultProps"
show-checkbox @check-change="handleNodeClick"></el-tree>
</div>
<div class="check-box">
<div class="title">已选区域
<el-button type="text" @click="resetChecked">清空</el-button>
</div>
<template v-if="checkList.length == 0">
<div class="no-data">暂无数据</div>
</template>
<template v-else>
<div class="check-list">
<div class="check-item" v-for="item in checkList" :key="item.id">{{ item.name }}<i class="el-icon-close"
@click="closeChecked(item)"></i></div>
</div>
</template>
</div>
</div>
</d2-dialog>
</template>
<script>
import { deepClone } from "@/common/util"
import { mapDistricts } from "@api/contentManager"
export default {
name: "brandTree",
props: {
dialogVisible: Boolean,
selectedList: Array
},
data() {
return {
filterText: '',
checked: false,
checkList: [],
brandData: [],
defaultProps: {
children: 'child',
label: 'name'
},
selectList: []
}
},
watch: {
filterText(val) {
this.$refs.tree.filter(val);
},
// selectedList(val) {
// console.log(val)
// this.$nextTick(() => {
// // val.forEach(i => {
// // this.$refs.tree.setChecked(i, true)
// // })
// this.$refs.tree.setCheckedKeys(val)
// })
// }
},
mounted() {
this.getCarbrandTree()
},
methods: {
// 获取品牌树
async getCarbrandTree() {
const res = await mapDistricts({})
console.log(res, 'res')
this.brandData = res.districts[0].districts.map(item => {
item.id = item.code
// item.label = item.name
item.child = item.districts.map(child => {
child.id = child.code
// child.label = child.name
return child
})
return item
})
this.$nextTick(() => {
const defaultKeys = this.selectedList.reduce((pre, item) => {
// pre.push(item.id)
item.child.forEach(i => {
pre.push(i.id)
})
return pre;
}, [])
console.log(defaultKeys, 'defaultKeys')
this.$refs.tree.setCheckedKeys(defaultKeys)
})
},
handleClose() {
this.resetChecked()
this.$emit('closeDialogFn')
},
handleConfirm() {
this.resetChecked()
console.log(this.checkList, 'checkList')
const newList = this.filterCheckList(deepClone(this.checkList))
console.log(newList, 'newList')
// this.$emit('confirmDialogFn', {
// checkList: this.checkList,
// newList: newList
// })
this.$emit('confirmDialogFn', newList)
},
onSearch() {
this.$refs.tree.filter(this.filterText)
},
handleNodeClick(data) {
console.log(data, this.$refs.tree.getCheckedNodes());
this.checkList = this.$refs.tree.getCheckedNodes()
},
filterCheckList(checkList) {
// 收集所有 children 中的 id
const childrenIds = new Set();
checkList.forEach(item => {
if (item.child && item.child.length > 0) {
item.child.forEach(child => {
childrenIds.add(child.id);
});
}
});
// 过滤掉一级项中 id 存在于 childrenIds 中的项
return checkList.filter(item => !childrenIds.has(item.id));
},
// 清空
resetChecked() {
this.$refs.tree.setCheckedKeys([]);
},
closeChecked(row) {
console.log(row)
this.$refs.tree.setChecked(row.id, false)
console.log(this.$refs.tree.getCheckedNodes())
},
filterNode(value, data) {
if (!value) return true;
return data.name.indexOf(value) !== -1;
},
handleChange(e) {
console.log(e)
if (e) {
const nodes = this.getTreeArray()
this.$refs.tree.setCheckedKeys(nodes)
} else {
this.$refs.tree.setCheckedKeys([]);
}
},
//获取选择项
getTreeArray() {
let tree_arr = []
this.brandData.forEach(k => {
let child = k.child
if (child && child.length > 0) {
child.forEach(j => {
tree_arr.push(j.id)
})
} else {
tree_arr.push(k.id)
}
})
return tree_arr
},
}
}
</script>
<style scoped lang="scss">
.content {
display: flex;
.title {
display: flex;
align-items: center;
justify-content: space-between;
height: 40px;
opacity: 1;
border-bottom: 1px solid #e5e5e5;
background: #f2f4f7;
padding: 0 16px;
}
.tree-box {
border: 1px solid #e5e5e5;
background: #ffffff;
height: 324px;
overflow-y: auto;
width: 50%;
margin-right: 20px;
.tree-title {
display: flex;
align-items: center;
height: 40px;
opacity: 1;
border-bottom: 1px solid #e5e5e5;
background: #f2f4f7;
padding: 0 16px;
}
}
.check-box {
flex: 1;
height: 324px;
opacity: 1;
border: 1px solid #e5e5e5;
}
.no-data {
width: 100%;
height: calc(100% - 40px);
display: flex;
align-items: center;
justify-content: center;
}
.check-list {
margin-top: 12px;
height: calc(100% - 64px);
overflow-y: auto;
}
.check-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 16px;
}
}
</style>
<style lang="scss">
.brand-dialog {
.el-dialog__body {
padding: 20px !important;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<d2-dialog title="选择品牌" :appendToBody="true" :is-visible="dialogVisible" class="brand-dialog" width="50%"
@closeDialog="handleClose" @confirmDialog="handleConfirm">
<el-form :inline="true" size="mini" class="demo-form-inline">
<el-form-item label="品牌名称:">
<el-input v-model="filterText" placeholder="请输入" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSearch">查询</el-button>
</el-form-item>
</el-form>
<div class="content">
<div class="tree-box">
<div class="title">预选品牌</div>
<el-tree ref="tree" node-key="id" :filter-node-method="filterNode" :data="brandData" :props="defaultProps"
show-checkbox @check-change="handleNodeClick"></el-tree>
</div>
<div class="check-box">
<div class="title">已选品牌
<el-button type="text" @click="resetChecked">清空</el-button>
</div>
<template v-if="checkList.length == 0">
<div class="no-data">暂无数据</div>
</template>
<template v-else>
<div class="check-list">
<div class="check-item" v-for="item in checkList" :key="item.id">{{ item.name }}<i class="el-icon-close"
@click="closeChecked(item)"></i></div>
</div>
</template>
</div>
</div>
</d2-dialog>
</template>
<script>
import { deepClone } from "@/common/util"
import { getCarbrandTree } from "@api/contentManager"
export default {
name: "brandTree",
props: {
dialogVisible: Boolean,
selectedList: Array
},
data() {
return {
filterText: '',
checked: false,
checkList: [],
brandData: [],
defaultProps: {
children: 'child',
label: 'name'
},
selectList: []
}
},
watch: {
filterText(val) {
this.$refs.tree.filter(val);
},
// defaultKeys(val) {
// console.log(val)
// this.$nextTick(() => {
// // val.forEach(i => {
// // this.$refs.tree.setChecked(i, true)
// // })
// this.$refs.tree.setCheckedKeys(val)
// })
// }
},
mounted() {
this.getCarbrandTree()
},
methods: {
// 获取品牌树
async getCarbrandTree() {
let res = await getCarbrandTree()
res = res.map(item => {
item.name = item.label
item.child = []
if (item?.children) {
item.child = item?.children.map(child => {
child.name = child.label
return child
})
}
// delete item.children
return item
})
this.brandData = res
this.$nextTick(() => {
const defaultKeys = this.selectedList.reduce((pre, item) => {
// pre.push(item.id)
item.child.forEach(i => {
pre.push(i.id)
})
return pre;
}, [])
// console.log(this.dialogVisible, defaultKeys, 'defaultKeys')
this.$refs.tree.setCheckedKeys(defaultKeys)
})
},
handleClose() {
this.resetChecked()
this.$emit('closeDialogFn')
},
handleConfirm() {
this.resetChecked()
console.log(this.checkList, 'checkList')
const newList = this.filterCheckList(deepClone(this.checkList))
console.log(newList, 'newList')
this.$emit('confirmDialogFn', newList)
// this.$emit('submit', {
// checkList: this.checkList,
// newList: newList
// })
},
onSearch() {
this.$refs.tree.filter(this.filterText)
},
handleNodeClick(data) {
console.log(data, this.$refs.tree.getCheckedNodes());
this.checkList = this.$refs.tree.getCheckedNodes()
},
filterCheckList(checkList) {
// 收集所有 children 中的 id
const childrenIds = new Set();
checkList.forEach(item => {
if (item.child && item.child.length > 0) {
item.child.forEach(child => {
childrenIds.add(child.id);
});
}
});
// 过滤掉一级项中 id 存在于 childrenIds 中的项
return checkList.filter(item => !childrenIds.has(item.id));
},
// 清空
resetChecked() {
this.$refs.tree.setCheckedKeys([]);
},
closeChecked(row) {
console.log(row)
this.$refs.tree.setChecked(row.id, false)
console.log(this.$refs.tree.getCheckedNodes())
},
filterNode(value, data) {
if (!value) return true;
return data.name.indexOf(value) !== -1;
},
handleChange(e) {
console.log(e)
if (e) {
const nodes = this.getTreeArray()
this.$refs.tree.setCheckedKeys(nodes)
} else {
this.$refs.tree.setCheckedKeys([]);
}
},
//获取选择项
getTreeArray() {
let tree_arr = []
this.brandData.forEach(k => {
let child = k.child
if (child && child.length > 0) {
child.forEach(j => {
tree_arr.push(j.id)
})
} else {
tree_arr.push(k.id)
}
})
return tree_arr
},
}
}
</script>
<style scoped lang="scss">
.content {
display: flex;
.title {
display: flex;
align-items: center;
justify-content: space-between;
height: 40px;
opacity: 1;
border-bottom: 1px solid #e5e5e5;
background: #f2f4f7;
padding: 0 16px;
}
.tree-box {
border: 1px solid #e5e5e5;
background: #ffffff;
height: 324px;
overflow-y: auto;
width: 50%;
margin-right: 20px;
.tree-title {
display: flex;
align-items: center;
height: 40px;
opacity: 1;
border-bottom: 1px solid #e5e5e5;
background: #f2f4f7;
padding: 0 16px;
}
}
.check-box {
flex: 1;
height: 324px;
opacity: 1;
border: 1px solid #e5e5e5;
}
.no-data {
width: 100%;
height: calc(100% - 40px);
display: flex;
align-items: center;
justify-content: center;
}
.check-list {
margin-top: 12px;
height: calc(100% - 64px);
overflow-y: auto;
}
.check-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 16px;
}
}
</style>
<style lang="scss">
.brand-dialog {
.el-dialog__body {
padding: 20px !important;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<!-- 关联门店弹窗 --> <!-- 关联门店弹窗 -->
<template> <template>
<d2-dialog :title="title" :isShowFooter="false" :noCancel="true" :is-visible.sync="relateStoreVisible" width="50%" <d2-dialog :title="title" :noCancel="true" :is-visible.sync="relateStoreVisible" width="50%" btn-ok-label="确定"
btn-ok-label="确定" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose" class="relateStore">
class="relateStore">
<slot /> <slot />
<el-row class="tableCon"> <el-row class="tableCon">
<div class="tableBox"> <div class="tableBox">
<!-- height="300px" --> <!-- height="300px" -->
<el-table ref="seletingTable" :data="selectingData" class="table" border <el-table ref="seletingTable" :data="selectingData" class="table" border
v-loading="$store.state.d2admin.loading.value"> v-loading="$store.state.d2admin.loading.value" height="300px">
<el-table-column label="序号" type="index" align="center" width="60"> <el-table-column label="序号" type="index" align="center" width="60">
<template slot-scope="scope">{{ <template slot-scope="scope">{{ scope.$index + 1 }}</template>
(pageNum - 1) * pageSize + scope.$index + 1
}}</template>
</el-table-column> </el-table-column>
<el-table-column prop="staffName" label="员工名称" align="center"> <el-table-column prop="staffName" label="员工名称" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="staffPhone" label="手机号" align="center"> <el-table-column prop="staffPhone" label="手机号" align="center">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination small background @current-change="handleCurrentChange" :current-page.sync="pageNum" <!-- <el-pagination small background @current-change="handleCurrentChange" :current-page.sync="pageNum"
:page-size="pageSize" layout="total, prev, pager, next" :total="total" /> :page-size="pageSize" layout="total, prev, pager, next" :total="total" /> -->
</div> </div>
</el-row> </el-row>
</d2-dialog> </d2-dialog>
......
...@@ -90,8 +90,7 @@ export default { ...@@ -90,8 +90,7 @@ export default {
findStaffTagCoursePage({ findStaffTagCoursePage({
...this.storeSearchForm, ...this.storeSearchForm,
currentPage: this.currentPage, currentPage: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize
isFlag: true
}).then((res) => { }).then((res) => {
this.selectingData = res.list this.selectingData = res.list
this.total = res.total this.total = res.total
......
...@@ -26,9 +26,13 @@ ...@@ -26,9 +26,13 @@
</div> </div>
</template> </template>
<template slot="courseList" scope="scope"> <template slot="courseList" scope="scope">
<div v-for="(item, index) in scope.scope.tagList.split(',')" :key="index"> <el-tooltip v-for="(item, index) in scope.scope.courseList.split(',')" :key="index" class="item" effect="dark"
{{ item }} :content="item" placement="top">
</div> <div class="one-line-ellipsis">
{{ item }}
</div>
</el-tooltip>
</template> </template>
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" /> <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table> </d2-table>
...@@ -100,19 +104,12 @@ export default { ...@@ -100,19 +104,12 @@ export default {
{ {
label: "标签", label: "标签",
prop: "tagList", prop: "tagList",
minWidth: 260,
addHtml: "tagName", addHtml: "tagName",
// formatter: (cellValue) => {
// if (cellValue.tagList) {
// // 使用逗号分割,然后用换行符连接
// return cellValue.tagList.split(',').join('</br>')
// }
// }
}, },
{ {
label: "课程列表", label: "课程列表",
minWidth: 144, // minWidth: 144,
prop: "courseList" addHtml: "courseList"
}, },
// { // {
// label: "销售姓名", // label: "销售姓名",
...@@ -156,7 +153,7 @@ export default { ...@@ -156,7 +153,7 @@ export default {
? Util.dateFormate(cellValue.createdDate, "YYYY-MM-DD HH:mm:ss") ? Util.dateFormate(cellValue.createdDate, "YYYY-MM-DD HH:mm:ss")
: "-" : "-"
}, },
minWidth: 180 width: 140
}, },
{ {
label: "最后更新时间", label: "最后更新时间",
...@@ -165,7 +162,7 @@ export default { ...@@ -165,7 +162,7 @@ export default {
? Util.dateFormate(cellValue.updatedDate, "YYYY-MM-DD HH:mm:ss") ? Util.dateFormate(cellValue.updatedDate, "YYYY-MM-DD HH:mm:ss")
: "-" : "-"
}, },
minWidth: 180 width: 140
} }
] ]
} }
...@@ -179,27 +176,6 @@ export default { ...@@ -179,27 +176,6 @@ export default {
beforeSearchFn(type = 1) { beforeSearchFn(type = 1) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.searchFormSearch = deepClone(this.searchForm) this.searchFormSearch = deepClone(this.searchForm)
// if (this.searchForm?.searchdate?.length) {
// let [searchStartDate, searchEndDate] = this.searchForm.searchdate
// this.searchFormSearch.startTime = Util.dateFormate(
// searchStartDate,
// "YYYY-MM-DD"
// )
// this.searchFormSearch.endTime = Util.dateFormate(
// searchEndDate,
// "YYYY-MM-DD"
// )
// const date1 = dayjs(searchStartDate),
// date2 = dayjs(searchEndDate),
// day = date2.diff(date1, "day") + 1
// if (day > 30) {
// reject(
// `${type == 1 ? "查询" : "导出"
// }的时间跨度最大为30天,请重新选择日期范围`
// )
// }
// }
// delete this.searchFormSearch.searchdate
resolve() resolve()
}) })
}, },
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div class="el-input-tag input-tag-wrapper"> <div class="el-input-tag input-tag-wrapper">
<!-- <div v-for="(subItem, subIdx) in formData.courseIds" :key="subIdx"> --> <!-- <div v-for="(subItem, subIdx) in formData.courseIds" :key="subIdx"> -->
<el-tag v-for="(k, n) in formData.courseIds" :key="n" class="customer-tag" size="small" type="info" <el-tag v-for="(k, n) in formData.courseIds" :key="n" class="customer-tag" size="small" type="info"
:closable="true" :disable-transitions="false" @close="handleDeleteCustomer(n, subItem, 'courseIds')"> :closable="true" :disable-transitions="false" @close="handleDeleteCustomer(n, 'courseIds')">
<span>{{ k.catalogName + ":" + k.courseTitle }}</span> <span>{{ k.catalogName + ":" + k.courseTitle }}</span>
</el-tag> </el-tag>
</div> </div>
...@@ -72,6 +72,20 @@ export default { ...@@ -72,6 +72,20 @@ export default {
} }
}, },
data() { data() {
// var validatorTagIds = (rule, value, callback) => {
// if (this.storeSearchForm?.configList && this.storeSearchForm.configList.length > 0) {
// callback()
// } else {
// callback(new Error("请选择员工"))
// }
// }
// var validatorForm = (rule, value, callback) => {
// if (this.storeSearchForm?.configList && this.storeSearchForm.configList.length > 0) {
// callback()
// } else {
// callback(new Error("请选择员工"))
// }
// }
return { return {
savecourserelation, savecourserelation,
updatecourserelation, updatecourserelation,
...@@ -86,7 +100,7 @@ export default { ...@@ -86,7 +100,7 @@ export default {
}, },
rules: { rules: {
tagIds: [ tagIds: [
{ required: true, message: "请选择员工标签对象", trigger: "change" } { required: true, message: "请选择员工标签对象", trigger: "change" },
], ],
courseIds: [ courseIds: [
{ required: true, message: "请选择课程列表对象", trigger: "change" } { required: true, message: "请选择课程列表对象", trigger: "change" }
...@@ -130,7 +144,7 @@ export default { ...@@ -130,7 +144,7 @@ export default {
selectTagDialog(type) { selectTagDialog(type) {
this.$refs.selectTagForm.init( this.$refs.selectTagForm.init(
{ {
type, type: true,
item: JSON.parse(JSON.stringify(this.formData.tagIds)) item: JSON.parse(JSON.stringify(this.formData.tagIds))
} }
) )
...@@ -152,6 +166,9 @@ export default { ...@@ -152,6 +166,9 @@ export default {
}, },
handleDelete(idx, pIdx) { handleDelete(idx, pIdx) {
this.formData.tagIds[pIdx].labelList.splice(idx, 1) this.formData.tagIds[pIdx].labelList.splice(idx, 1)
if (this.formData.tagIds[pIdx].labelList.length == 0) {
this.formData.tagIds.splice(pIdx, 1)
}
}, },
handleAddConfirm() { handleAddConfirm() {
this.$refs.channelForm.validate(valid => { this.$refs.channelForm.validate(valid => {
...@@ -180,7 +197,6 @@ export default { ...@@ -180,7 +197,6 @@ export default {
}) })
}, },
handleClose() { handleClose() {
// this.$emit("closeDialogFn")
this.show = false this.show = false
} }
} }
......
...@@ -166,14 +166,11 @@ export default { ...@@ -166,14 +166,11 @@ export default {
console.log("selectItem", selectItem) console.log("selectItem", selectItem)
this.loading = true this.loading = true
findAllLabel({ findAllLabel({
// labelTreeReq: { tagName: this.tagName,
currentPage: 1, isFlag: this.type
pageNum: 1,
pageSize: 999999,
tagName: this.tagName
// }
}).then((res) => { }).then((res) => {
console.log(res, "res") console.log(res, "res")
res = res.filter(item => item.groupAtt != 3)
if (selectItem && selectItem.length > 0) { if (selectItem && selectItem.length > 0) {
this.labelTreeRets = res.map((item) => { this.labelTreeRets = res.map((item) => {
return { return {
...@@ -271,6 +268,7 @@ export default { ...@@ -271,6 +268,7 @@ export default {
handleClose() { handleClose() {
this.labelTreeRetSelect = [] this.labelTreeRetSelect = []
this.dialogVisible = false this.dialogVisible = false
this.$emit("closeDialogFn")
}, },
remove(items, idx) { remove(items, idx) {
items.tagChecked.splice(idx, 1) items.tagChecked.splice(idx, 1)
......
...@@ -103,11 +103,12 @@ export default { ...@@ -103,11 +103,12 @@ export default {
name: "staffPhone", name: "staffPhone",
type: "input", type: "input",
isClear: true, isClear: true,
maxlength: 20 maxlength: 11,
inputType: "number"
}, },
{ {
label: "学习任务", label: "学习任务",
name: "taskTitle", name: "title",
type: "input", type: "input",
isClear: true, isClear: true,
maxlength: 20 maxlength: 20
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div class="statusSituation"> <div class="statusSituation">
<div class="left"> <div class="left">
<span><span class="label">开始时间:</span>{{ staticData.actualSendTime }}</span> <span><span class="label">开始时间:</span>{{ staticData.actualSendTime }}</span>
<span><span class="label">完成时间:</span>{{ staticData.updatedDate }}</span> <span><span class="label">完成时间:</span>{{ staticData.extendConfig.deadline }}</span>
</div> </div>
<div class="person count"> <div class="person count">
<div class="label">学习人数</div> <div class="label">学习人数</div>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
<div class="numberOfCompletedPersons count"> <div class="numberOfCompletedPersons count">
<div class="label">学习完成人数</div> <div class="label">学习完成人数</div>
<span class="end">{{ staticData.finishStudyCount }}</span>人 <span class="end">{{ staticData.finishStudyCount || 0 }}</span>人
</div> </div>
<div class="time">数据同步时间:{{ staticData.updatedDate }}</div> <div class="time">数据同步时间:{{ staticData.updatedDate }}</div>
</div> </div>
...@@ -103,8 +103,9 @@ export default { ...@@ -103,8 +103,9 @@ export default {
label: "员工手机号", label: "员工手机号",
name: "staffPhone", name: "staffPhone",
type: "input", type: "input",
maxlength: "20", isClear: true,
isClear: true maxlength: 11,
inputType: "number"
}, },
{ {
label: "课程名称", label: "课程名称",
...@@ -156,7 +157,12 @@ export default { ...@@ -156,7 +157,12 @@ export default {
] ]
}, },
staticData: {} staticData: {
extendStatus: 1,
extendConfig: {
deadline: ''
}
}
} }
}, },
computed: { computed: {
......
...@@ -70,8 +70,9 @@ export default { ...@@ -70,8 +70,9 @@ export default {
label: "员工手机号", label: "员工手机号",
name: "phoneNumber", name: "phoneNumber",
type: "input", type: "input",
maxlength: "20", isClear: true,
isClear: true maxlength: 11,
inputType: "number"
} }
], ],
getListApi: studyStaffPage, getListApi: studyStaffPage,
......
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
<div class="content"> <div class="content">
<div class="tree-box"> <div class="tree-box">
<div class="title">预选品牌</div> <div class="title">预选品牌</div>
<el-tree ref="tree" node-key="id" :filter-node-method="filterNode" :data="brandData" :props="defaultProps" show-checkbox <el-tree ref="tree" node-key="id" :filter-node-method="filterNode" :data="brandData" :props="defaultProps"
@check-change="handleNodeClick"></el-tree> show-checkbox @check-change="handleNodeClick"></el-tree>
</div> </div>
<!-- <div class="check-box"> <div class="check-box">
<div class="title">已选品牌 <div class="title">已选品牌
<el-button type="text" @click="resetChecked">清空</el-button> <el-button type="text" @click="resetChecked">清空</el-button>
</div> </div>
...@@ -24,10 +24,11 @@ ...@@ -24,10 +24,11 @@
</template> </template>
<template v-else> <template v-else>
<div class="check-list"> <div class="check-list">
<div class="check-item" v-for="item in checkList" :key="item.id">{{ item.label }}<i class="el-icon-close" @click="closeChecked(item)"></i></div> <div class="check-item" v-for="item in checkList" :key="item.id">{{ item.label }}<i class="el-icon-close"
@click="closeChecked(item)"></i></div>
</div> </div>
</template> </template>
</div> --> </div>
</div> </div>
</d2-dialog> </d2-dialog>
...@@ -108,7 +109,7 @@ export default { ...@@ -108,7 +109,7 @@ export default {
}); });
} }
}); });
// 过滤掉一级项中 id 存在于 childrenIds 中的项 // 过滤掉一级项中 id 存在于 childrenIds 中的项
return checkList.filter(item => !childrenIds.has(item.id)); return checkList.filter(item => !childrenIds.has(item.id));
}, },
...@@ -173,6 +174,7 @@ export default { ...@@ -173,6 +174,7 @@ export default {
height: 324px; height: 324px;
overflow-y: auto; overflow-y: auto;
width: 100%; width: 100%;
// margin-right: 20px; // margin-right: 20px;
.tree-title { .tree-title {
display: flex; display: flex;
...@@ -199,11 +201,13 @@ export default { ...@@ -199,11 +201,13 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.check-list { .check-list {
margin-top: 12px; margin-top: 12px;
height: calc(100% - 64px); height: calc(100% - 64px);
overflow-y: auto; overflow-y: auto;
} }
.check-item { .check-item {
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -113,7 +113,10 @@ ...@@ -113,7 +113,10 @@
<el-tag v-for="(k, n) in subItem.labelList || subItem.child" :key="n" class="customer-tag" <el-tag v-for="(k, n) in subItem.labelList || subItem.child" :key="n" class="customer-tag"
size="small" type="info" :disable-transitions="false" size="small" type="info" :disable-transitions="false"
@close="handleDeleteCustomer(n, subIdx, iemSubIdx)"> @close="handleDeleteCustomer(n, subIdx, iemSubIdx)">
<span>{{ subItem.labelGroup.name }}:{{ k.name }}</span> <!-- <span>{{ subItem.labelGroup.name }}:{{ k.name }}</span> -->
<span v-if="item.selectStaffType == 1">{{ subItem.labelGroup.name }}:{{ k.name }}{{
k.tagName ? ':' + k.tagName : '' }}</span>
<span v-else>{{ subItem.labelGroup.name }}:{{ k.name || k.tagName }}</span>
</el-tag> </el-tag>
</div> </div>
</span> </span>
...@@ -212,7 +215,7 @@ ...@@ -212,7 +215,7 @@
<el-row slot> <el-row slot>
<el-form :model="storeSearchForm" ref="relate" :inline="true"> <el-form :model="storeSearchForm" ref="relate" :inline="true">
<el-form-item label="关键字:"> <el-form-item label="关键字:">
<el-input v-model.trim="storeSearchForm.staffNameOrPhone" placeholder="请输入员工名称/手机号进行搜索" <el-input v-model.trim="storeSearchForm.keyWord" placeholder="请输入员工名称/手机号进行搜索"
@keydown.native="handleStoreInput" clearable /> @keydown.native="handleStoreInput" clearable />
</el-form-item> </el-form-item>
<el-button type="primary" @click="handleSearchStore">搜索</el-button> <el-button type="primary" @click="handleSearchStore">搜索</el-button>
...@@ -503,7 +506,7 @@ export default { ...@@ -503,7 +506,7 @@ export default {
getList: contentManagerTaskListStaffPage, getList: contentManagerTaskListStaffPage,
customerDataList: [], customerDataList: [],
storeSearchForm: { storeSearchForm: {
staffNameOrPhone: "" keyWord: ""
} }
} }
}, },
...@@ -565,7 +568,7 @@ export default { ...@@ -565,7 +568,7 @@ export default {
// }, 3000) // }, 3000)
}, },
handleRelateStoreClose() { handleRelateStoreClose() {
this.storeSearchForm.staffNameOrPhone = "" this.storeSearchForm.keyWord = ""
this.relateStoreVisible = false this.relateStoreVisible = false
}, },
handlePopStaff() { handlePopStaff() {
......
...@@ -26,7 +26,8 @@ ...@@ -26,7 +26,8 @@
<span style="margin-right: 10px"> <span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9130502']" /> <auth-button :data="scope.scope" :show-btn-ids="['9130502']" />
</span> </span>
<span style="margin-right: 10px" v-if="scope.scope.sendStatus == 1 || scope.scope.sendStatus == 2"> <span style="margin-right: 10px"
v-if="scope.scope.sendStatus == 1 || scope.scope.sendStatus == 2 || scope.scope.contentType == 5">
<auth-button :data="scope.scope" :show-btn-ids="['9130503']" /> <auth-button :data="scope.scope" :show-btn-ids="['9130503']" />
</span> </span>
<span style="margin-right: 10px" v-if="scope.scope.sendStatus == 3"> <span style="margin-right: 10px" v-if="scope.scope.sendStatus == 3">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<template> <template>
<div class="performance-list-wrap"> <div class="performance-list-wrap">
<div class="title"> <div class="title">
问界原厂权益销售重要通知 {{ title }}
<el-button size="small" @click="black">返回</el-button> <el-button size="small" @click="black">返回</el-button>
</div> </div>
<div class="header" slot="header"> <div class="header" slot="header">
...@@ -39,6 +39,11 @@ export default { ...@@ -39,6 +39,11 @@ export default {
tabName: "readStatistics" tabName: "readStatistics"
} }
}, },
computed: {
title() {
return this.$route.query.title
}
},
mounted() { mounted() {
if (this.$route.params.tabPane) { if (this.$route.params.tabPane) {
this.activeName = this.$route.params.tabPane this.activeName = this.$route.params.tabPane
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<script> <script>
import { Util, deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { getBillList, editBill, billDetail, billConfirm, billCancel, billConfirmChange, billCancelChange } from '@api/accountManage' import { getBillList, editBill, billDetailPage, billConfirm, billCancel, billConfirmChange, billCancelChange } from '@api/accountManage'
import { tmplTypeList, billStatusList, sceneTypeList } from "../constant/baseData" import { tmplTypeList, billStatusList, sceneTypeList } from "../constant/baseData"
import ChangeDetailDialog from '../components/ChangeDetailDialog' import ChangeDetailDialog from '../components/ChangeDetailDialog'
import SystemBillDialog from "../components/SystemBillDialog" import SystemBillDialog from "../components/SystemBillDialog"
...@@ -175,7 +175,7 @@ export default { ...@@ -175,7 +175,7 @@ export default {
label: '创建时间', label: '创建时间',
prop: 'createdDate', prop: 'createdDate',
formatter: (cellValue) => { formatter: (cellValue) => {
return Util.dateFormate(cellValue.createdDate, 'YYYY-MM-DD') return Util.dateFormate(cellValue.createdDate, 'YYYY-MM-DD HH:mm:ss')
} }
}, { }, {
label: '状态', label: '状态',
...@@ -229,8 +229,8 @@ export default { ...@@ -229,8 +229,8 @@ export default {
}] }]
dateFormatList.forEach(item => { dateFormatList.forEach(item => {
if (params[item.attr] && params[item.attr].length) { if (params[item.attr] && params[item.attr].length) {
params[item.startAttr] = Util.dateFormate(params[item.attr][0], 'YYYY-MM-DD') params[item.startAttr] = Util.dateFormate(params[item.attr][0], 'YYYY-MM-DD 00:00:00')
params[item.endAttr] = Util.dateFormate(params[item.attr][1], 'YYYY-MM-DD') params[item.endAttr] = Util.dateFormate(params[item.attr][1], 'YYYY-MM-DD 23:59:59')
delete params[item.attr] delete params[item.attr]
} }
}) })
...@@ -295,7 +295,12 @@ export default { ...@@ -295,7 +295,12 @@ export default {
}, },
handleEdit(row) { handleEdit(row) {
billDetail({ id: row.id }).then(res => { const params = {
id: row.id,
orderCurrentPage: 1,
orderPageSize: 10
}
billDetailPage(params).then(res => {
this.billTmplInfo = deepClone(res) this.billTmplInfo = deepClone(res)
this.handleBillVisible() this.handleBillVisible()
}) })
...@@ -385,7 +390,7 @@ export default { ...@@ -385,7 +390,7 @@ export default {
}, },
handleDetail(row) { handleDetail(row) {
billDetail({ id: row.id }).then(res => { billDetailPage({ id: row.id }).then(res => {
this.billTmplInfo = deepClone(res) this.billTmplInfo = deepClone(res)
this.handleChangeDetailVisible() this.handleChangeDetailVisible()
}) })
......
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
formRules: { formRules: {
templateName: [{ required: true, message: "请输入模版名称" }], templateName: [{ required: true, message: "请输入模版名称" }],
type: [{ required: true, message: "请选择对账单类型" }], type: [{ required: true, message: "请选择对账单类型" }],
fieldIds: [{ required: true, message: "请选择对账单类型" }] fieldIds: [{ required: true, message: "请选择对账单字段" }]
}, },
editData: { editData: {
templateName: '', templateName: '',
...@@ -62,6 +62,9 @@ export default { ...@@ -62,6 +62,9 @@ export default {
optionsName: 'tmplTypeList', optionsName: 'tmplTypeList',
handleRadioChange: (val) => { handleRadioChange: (val) => {
this.tmplSelectList = [] this.tmplSelectList = []
setTimeout(() => {
this.$refs.editFormRef.$refs[this.editChildRef].clearValidate("fieldIds")
}, 800)
} }
}, },
{ {
...@@ -85,6 +88,9 @@ export default { ...@@ -85,6 +88,9 @@ export default {
this.getTmplById() this.getTmplById()
} else { } else {
this.showTmpl = true this.showTmpl = true
setTimeout(() => {
this.$refs.editFormRef.$refs[this.editChildRef].clearValidate("fieldIds")
}, 800)
} }
}, },
...@@ -127,8 +133,8 @@ export default { ...@@ -127,8 +133,8 @@ export default {
getTmplById({ id: this.routeInfo.id }).then(res => { getTmplById({ id: this.routeInfo.id }).then(res => {
this.editData.templateName = res.templateName this.editData.templateName = res.templateName
this.editData.type = res.type + '' this.editData.type = res.type + ''
this.editData.fieldIds = res.fieldIds this.editData.fieldIds = res.fieldIds || []
this.tmplSelectList = res.fieldIds this.tmplSelectList = res.fieldIds || []
this.showTmpl = true this.showTmpl = true
}) })
}, },
...@@ -138,7 +144,7 @@ export default { ...@@ -138,7 +144,7 @@ export default {
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => { this.$refs.editFormRef.$refs[this.editChildRef].validate((valid) => {
if (valid) { if (valid) {
let params = this.editData let params = this.editData
if(this.routeInfo.editType == 'edit') { if (this.routeInfo.editType == 'edit') {
params.id = this.routeInfo.id params.id = this.routeInfo.id
} }
tmplAddOrEdit(params).then(res => { tmplAddOrEdit(params).then(res => {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<el-table-column prop="adjustReason" label="调整事由"> <el-table-column prop="adjustReason" label="调整事由">
<template slot-scope="scope"> <template slot-scope="scope">
<el-form-item :prop="'tableData.' + scope.$index + '.adjustReason'" :rules="adjustReasonRules"> <el-form-item :prop="'tableData.' + scope.$index + '.adjustReason'" :rules="adjustReasonRules">
<el-input v-model="scope.row.adjustReason" placeholder="请输入调整事由" :disabled="!isEdit"></el-input> <el-input v-model="scope.row.adjustReason" placeholder="请输入调整事由" maxlength="50" :disabled="!isEdit"></el-input>
</el-form-item> </el-form-item>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -492,6 +492,8 @@ export default { ...@@ -492,6 +492,8 @@ export default {
this.$refs.accountForm.validate(valid => { this.$refs.accountForm.validate(valid => {
if (valid) { if (valid) {
var params = this.getParams() var params = this.getParams()
params.orderCurrentPage = 1
params.orderPageSize = 10
console.log('params', params) console.log('params', params)
getBillTmplAdapter(params).then(res => { getBillTmplAdapter(params).then(res => {
console.log(res, 'res') console.log(res, 'res')
......
...@@ -122,6 +122,10 @@ ...@@ -122,6 +122,10 @@
<el-form-item label="回单状态:" <el-form-item label="回单状态:"
class="halfItem"> class="halfItem">
{{ detailInfo.receiptStatusShow ? detailInfo.receiptStatusShow : "-" }} {{ detailInfo.receiptStatusShow ? detailInfo.receiptStatusShow : "-" }}
<el-button type="text"
class="receiptBtn"
@click="handleReceipt(detailInfo.receiptUrl)"
v-if="detailInfo.receiptUrl">查看回单</el-button>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
...@@ -281,6 +285,10 @@ export default { ...@@ -281,6 +285,10 @@ export default {
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
}) })
},
handleReceipt(url) {
window.open(url)
} }
} }
} }
...@@ -514,6 +522,9 @@ export default { ...@@ -514,6 +522,9 @@ export default {
} }
} }
} }
.receiptBtn {
margin-left: 20px;
}
} }
</style> </style>
......
...@@ -437,7 +437,8 @@ export default { ...@@ -437,7 +437,8 @@ export default {
qualityTestScore: [], qualityTestScore: [],
status: '', status: '',
receiptStatus: '', receiptStatus: '',
nbTransferStatus: '' nbTransferStatus: '',
payType: ''
} }
this.searchSelectObj = { this.searchSelectObj = {
divisionOrPayDate: { divisionOrPayDate: {
......
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
class="edit-form-container" class="edit-form-container"
ref="processForm" ref="processForm"
:label-width="formDefaultObj.labelWidth"> :label-width="formDefaultObj.labelWidth">
<el-form-item> <el-form-item label="审批类型:">
<el-radio-group v-model="infoForm.approveType"> <el-radio-group v-model="infoForm.approveType">
<el-radio :label="1">嘀加系统审批</el-radio> <el-radio :label="1">嘀加系统审批</el-radio>
<el-radio :label="2">企微OA审批</el-radio> <el-radio :label="2">企微OA审批</el-radio>
......
...@@ -119,6 +119,7 @@ export default { ...@@ -119,6 +119,7 @@ export default {
labelWidth: '110px', labelWidth: '110px',
searchForm: { searchForm: {
matchApplyCode: '', matchApplyCode: '',
oaSpNo: '',
title: '', title: '',
platformMerchantId: '', platformMerchantId: '',
status: '', status: '',
...@@ -130,13 +131,20 @@ export default { ...@@ -130,13 +131,20 @@ export default {
}, },
searchFormSearch: {}, searchFormSearch: {},
showFormData: [{ showFormData: [{
label: '审批编号', label: '嘀加审批编号',
name: 'matchApplyCode', name: 'matchApplyCode',
type: 'input', type: 'input',
inputType: 'number', inputType: 'number',
maxlength: '12', maxlength: '12',
isClear: true isClear: true
}, { }, {
label: '企微审批编号',
name: 'oaSpNo',
type: 'input',
inputType: 'number',
maxlength: '12',
isClear: true
}, {
label: '标题', label: '标题',
name: 'title', name: 'title',
type: 'input', type: 'input',
...@@ -214,10 +222,14 @@ export default { ...@@ -214,10 +222,14 @@ export default {
mutiSelectName: 'refundList', mutiSelectName: 'refundList',
tableOption: { width: '200px' }, tableOption: { width: '200px' },
tableColumns: [{ tableColumns: [{
label: '审批单号', label: '嘀加审批单号',
prop: 'applyCode', prop: 'applyCode',
width: '150px' width: '150px'
}, { }, {
label: '企微审批单号',
prop: 'oaSpNo',
width: '150px'
}, {
label: '标题', label: '标题',
prop: 'title', prop: 'title',
width: '200px' width: '200px'
...@@ -307,6 +319,14 @@ export default { ...@@ -307,6 +319,14 @@ export default {
width: '110px', width: '110px',
formatter: (cellValue) => { formatter: (cellValue) => {
return this.baseData.oaApproveStatusOpt.find(item => item.confId === cellValue.oaApproveStatus)?.confValue return this.baseData.oaApproveStatusOpt.find(item => item.confId === cellValue.oaApproveStatus)?.confValue
},
className: (cellValue) => {
return {
1: 'yellowSpot',
2: 'greenSpot',
3: 'redSpot',
4: 'ashSpot'
}[cellValue.oaApproveStatus]
} }
}, { }, {
label: '审批类型', label: '审批类型',
...@@ -409,6 +429,7 @@ export default { ...@@ -409,6 +429,7 @@ export default {
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
matchApplyCode: '', matchApplyCode: '',
oaSpNo: '',
title: '', title: '',
platformMerchantId: '', platformMerchantId: '',
status: '', status: '',
......
<template> <template>
<d2-container class="point-list"> <d2-container class="point-list">
<div class="header" slot="header"> <div class="header" slot="header">
<d2-search <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="'150px'"
ref="showSearch" :form-data="showFormData" />
class="show-search"
:search-form="searchForm"
:label-width="'150px'"
:form-data="showFormData"
/>
<div class="up-btns"> <div class="up-btns">
<el-button @click="handleSearch" size="small" type="primary"> <el-button @click="handleSearch" size="small" type="primary">
查询 查询
...@@ -16,20 +11,12 @@ ...@@ -16,20 +11,12 @@
</div> </div>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header <d2-table-header :title="'积分明细列表'" :title-class-name="'tableHeaderTitle'">
:title="'积分明细列表'" <auth-button category="Button" :show-btn-ids="['9140202']" />
:title-class-name="'tableHeaderTitle'"
>
<auth-button category="Button" :show-btn-ids="['9140202']" />
</d2-table-header> </d2-table-header>
<d2-table <d2-table ref="pointTable" :search-form="searchFormSearch" :table-params="tableParams" :get-list-api="getListApi"
ref="pointTable" :before-search-fn="beforeSearchFn">
:search-form="searchFormSearch"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
>
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button" slot-scope="scope">
<!-- 查看 --> <!-- 查看 -->
<span style="margin-right: 10px"> <span style="margin-right: 10px">
...@@ -40,8 +27,8 @@ ...@@ -40,8 +27,8 @@
</div> </div>
</d2-container> </d2-container>
</template> </template>
<script> <script>
import { getScorePage, getShopMerchantList,exportScore } from "@api/point" import { getScorePage, getShopMerchantList, exportScore } from "@api/point"
import { Util, deepClone } from "@/common/util" import { Util, deepClone } from "@/common/util"
export default { export default {
data() { data() {
...@@ -50,12 +37,12 @@ export default { ...@@ -50,12 +37,12 @@ export default {
staffName: "", staffName: "",
staffPhone: "", staffPhone: "",
merchantId: "", merchantId: "",
rewardTime:[], rewardTime: [],
reviewTime:[], reviewTime: [],
successTime:[] successTime: []
}, },
searchFormSearch:{ searchFormSearch: {
}, },
getListApi: getScorePage, getListApi: getScorePage,
showFormData: [ showFormData: [
...@@ -172,7 +159,7 @@ export default { ...@@ -172,7 +159,7 @@ export default {
this.$router.push({ this.$router.push({
name: "pointDetail", name: "pointDetail",
query: { query: {
staffId:data.staffId staffId: data.staffId
} }
}) })
}, },
...@@ -182,7 +169,7 @@ export default { ...@@ -182,7 +169,7 @@ export default {
if ( if (
this.baseData[item.optionsName].length && this.baseData[item.optionsName].length &&
this.baseData[item.optionsName][0][ this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel this.showFormData[index].optionLabel
] !== "全部" ] !== "全部"
) { ) {
const temp = {} const temp = {}
...@@ -201,7 +188,7 @@ export default { ...@@ -201,7 +188,7 @@ export default {
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve) => { return new Promise((resolve) => {
this.searchFormSearch = deepClone(this.searchForm) this.searchFormSearch = deepClone(this.searchForm)
if (this.searchFormSearch.rewardTime&&this.searchFormSearch.rewardTime.length) { if (this.searchFormSearch.rewardTime && this.searchFormSearch.rewardTime.length) {
this.searchFormSearch.rewardBeginTime = this.searchFormSearch.rewardBeginTime =
Util.dateFormate( Util.dateFormate(
this.searchFormSearch.rewardTime[0], this.searchFormSearch.rewardTime[0],
...@@ -213,7 +200,7 @@ export default { ...@@ -213,7 +200,7 @@ export default {
"YYYY-MM-DD" "YYYY-MM-DD"
) + " 23:59:59" ) + " 23:59:59"
} }
if (this.searchFormSearch.reviewTime&&this.searchFormSearch.reviewTime.length) { if (this.searchFormSearch.reviewTime && this.searchFormSearch.reviewTime.length) {
this.searchFormSearch.reviewBeginTime = this.searchFormSearch.reviewBeginTime =
Util.dateFormate( Util.dateFormate(
this.searchFormSearch.reviewTime[0], this.searchFormSearch.reviewTime[0],
...@@ -225,7 +212,7 @@ export default { ...@@ -225,7 +212,7 @@ export default {
"YYYY-MM-DD" "YYYY-MM-DD"
) + " 23:59:59" ) + " 23:59:59"
} }
if (this.searchFormSearch.successTime&&this.searchFormSearch.successTime.length) { if (this.searchFormSearch.successTime && this.searchFormSearch.successTime.length) {
this.searchFormSearch.successBeginTime = this.searchFormSearch.successBeginTime =
Util.dateFormate( Util.dateFormate(
this.searchFormSearch.successTime[0], this.searchFormSearch.successTime[0],
...@@ -251,11 +238,11 @@ export default { ...@@ -251,11 +238,11 @@ export default {
staffName: "", staffName: "",
staffPhone: "", staffPhone: "",
merchantId: "", merchantId: "",
rewardTime:[], rewardTime: [],
reviewTime:[], reviewTime: [],
successTime:[] successTime: []
} }
this.searchFormSearch={} this.searchFormSearch = {}
this.$refs.pointTable.refreshTable(true, true) this.$refs.pointTable.refreshTable(true, true)
} }
} }
......
...@@ -182,6 +182,7 @@ export default { ...@@ -182,6 +182,7 @@ export default {
// } // }
this.barTop = barTop this.barTop = barTop
this.containerHeight = containerHeight this.containerHeight = containerHeight
let axisList = []
data?.sort((a, b) => a.offset - b.offset).forEach(e => { data?.sort((a, b) => a.offset - b.offset).forEach(e => {
const { const {
offset: mergedOffset, offset: mergedOffset,
...@@ -191,18 +192,19 @@ export default { ...@@ -191,18 +192,19 @@ export default {
e.docTop = mergedOffset ? mergedOffset / totalDuration * containerHeight : 0 e.docTop = mergedOffset ? mergedOffset / totalDuration * containerHeight : 0
e.text_id = `text_${mergedOffset}` e.text_id = `text_${mergedOffset}`
e.mergedOffset = mergedOffset e.mergedOffset = mergedOffset
if (mergedOffset != null) axisList.push(e)
}) })
data?.map((e, index) => { axisList?.map((e, index) => {
// 检查并调整 top 值,避免重叠 // 检查并调整 top 值,避免重叠
for (let i = 0; i < index; i++) { for (let i = 0; i < index; i++) {
if (e.top < data[i].top + margin && if (e.top < axisList[i].top + margin &&
e.top + margin > data[i].top) { e.top + margin > axisList[i].top) {
// 如果重叠,将当前元素的 top 设置为前一个元素的底部加上 margin // 如果重叠,将当前元素的 top 设置为前一个元素的底部加上 margin
e.top = data[i].top + margin; e.top = axisList[i].top + margin;
} }
} }
}) })
this.axisList = data this.axisList = axisList
}) })
}, },
getViewInfo(name, callBack) { getViewInfo(name, callBack) {
...@@ -360,8 +362,8 @@ export default { ...@@ -360,8 +362,8 @@ export default {
.scroll-view { .scroll-view {
height: 100%; height: 100%;
width: 100%; width: 100%;
border-radius: 14px; border-radius: 4px;
background: #fff; background: #F7F9FA;
overflow-y: auto; overflow-y: auto;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
scrollbar-width: none; /* Firefox */ scrollbar-width: none; /* Firefox */
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
:style="{ height: `${dialogueBoxHeight - 56}px` }" :style="{ height: `${dialogueBoxHeight - 56}px` }"
> >
<template v-if="qualityData[activeIndex]"> <template v-if="qualityData[activeIndex]">
<div style="height: 10px; background: #fff;width: 100%;"></div>
<div class="quality-block" > <div class="quality-block" >
<div class="title flex"> <div class="title flex">
{{qualityData[activeIndex].tagGroupName}} {{qualityData[activeIndex].tagGroupName}}
...@@ -188,6 +189,7 @@ export default { ...@@ -188,6 +189,7 @@ export default {
width: 100%; width: 100%;
height: 56px; height: 56px;
background: #F7F9FA; background: #F7F9FA;
border-radius: 4px;
} }
.classify-wrap { .classify-wrap {
width: 100%; width: 100%;
...@@ -242,7 +244,7 @@ export default { ...@@ -242,7 +244,7 @@ export default {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: #F7F9FA; background: #F7F9FA;
box-shadow: 0 2px 4px rgba(0,0,0,0.1); // box-shadow: 0 2px 4px rgba(0,0,0,0.1);
cursor: pointer; cursor: pointer;
z-index: 1; z-index: 1;
...@@ -260,21 +262,21 @@ export default { ...@@ -260,21 +262,21 @@ export default {
} }
} }
.scroll-view { .scroll-view {
// height: calc(100% - 56px);
height: 100%; height: 100%;
width: 100%; width: 100%;
// border-radius: 14px;
background: #F0F3F8; background: #F0F3F8;
overflow-y: auto; overflow-y: auto;
border-radius: 0 0 4px 4px ;
} }
.quality-block { .quality-block {
margin-top: 10px; border-radius: 4px 4px 0 0;
.title { .title {
height: 36px; height: 36px;
background: linear-gradient(119.9deg, #e1f7fc 0%, #f3f7ff 27%, #f7f2ff 41%, #e8f1ff 66%, #f7f2ff 100%); background: linear-gradient(119.9deg, #e1f7fc 0%, #f3f7ff 27%, #f7f2ff 41%, #e8f1ff 66%, #f7f2ff 100%);
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
padding: 0 10px; padding: 0 10px;
border-radius: 4px 4px 0 0;
&::before { &::before {
content: ''; content: '';
width: 4px; width: 4px;
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<el-table-column prop="processedScriptRec" label="命中文本" align="center"> <el-table-column prop="processedScriptRec" label="命中文本" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.processedScriptRec"> <template v-if="scope.row.processedScriptRec">
<el-tooltip placement="top" effect="light"> <el-tooltip placement="top" effect="light" popper-class="quality-tooltip">
<div slot="content" v-html="scope.row.processedScriptRec"></div> <div slot="content" v-html="scope.row.processedScriptRec"></div>
<div class="text-ellipsis" v-html="scope.row.processedScriptRec"></div> <div class="text-ellipsis" v-html="scope.row.processedScriptRec"></div>
</el-tooltip> </el-tooltip>
...@@ -139,4 +139,9 @@ export default { ...@@ -139,4 +139,9 @@ export default {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
</style>
<style lang="scss">
.quality-tooltip {
width: 640px !important;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<template v-if="qualityDetailList.length"> <template v-if="qualityDetailList.length">
<div class="left-box"> <div class="left-box">
<div class="top"> <div class="top">
<div class="merchant-name">{{ qualityDetailList[currentNum].merchantName }}</div> <div class="merchant-name">{{ qualityDetailList[currentNum].customerName }}</div>
<div class="user-info"> <div class="user-info">
<div>{{ qualityDetailList[currentNum].phoneNumber.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') }} <span <div>{{ qualityDetailList[currentNum].phoneNumber.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') }} <span
class="line"></span> {{ qualityDetailList[currentNum].carModel }}</div> class="line"></span> {{ qualityDetailList[currentNum].carModel }}</div>
...@@ -37,10 +37,10 @@ ...@@ -37,10 +37,10 @@
:totalDuration="pageData.totalDuration" ref="dialogueRef" :qualityAudio="qualityAudio" @seek="seek" :totalDuration="pageData.totalDuration" ref="dialogueRef" :qualityAudio="qualityAudio" @seek="seek"
@onPlay="onPlay" @onPause="onPause" @changeOperate="isOperate = $event" @onPlay="onPlay" @onPause="onPause" @changeOperate="isOperate = $event"
:dialogueBoxHeight="dialogueBoxHeight" /> :dialogueBoxHeight="dialogueBoxHeight" />
<div class="analyzing-box" style="width: 100%;"> <!-- <div class="analyzing-box absolue" v-if="!qualityData.length" style="width: 100%;">
<img src="@/assets/empty-4.png" /> <img src="@/assets/empty-4.png" />
<div class="analyzing">分析中,稍等...</div> <div class="analyzing">分析中,稍等...</div>
</div> </div> -->
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="质检" name="second"> <el-tab-pane label="质检" name="second">
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<quality :batchId="qualityDetailList[currentNum].id" :qualityData="qualityData" ref="qualityRef" <quality :batchId="qualityDetailList[currentNum].id" :qualityData="qualityData" ref="qualityRef"
:qualityAudio="qualityAudio" @seek="seek" @onPlay="onPlay" @onPause="onPause" :qualityAudio="qualityAudio" @seek="seek" @onPlay="onPlay" @onPause="onPause"
@changeOperate="isOperate = $event" :dialogueBoxHeight="dialogueBoxHeight" /> @changeOperate="isOperate = $event" :dialogueBoxHeight="dialogueBoxHeight" />
<div class="analyzing-box" style="width: 100%;"> <div class="analyzing-box absolue quality-noting" v-if="!qualityData.length" style="width: 100%;">
<img src="@/assets/empty-4.png" /> <img src="@/assets/empty-4.png" />
<div class="analyzing">分析中,稍等...</div> <div class="analyzing">分析中,稍等...</div>
</div> </div>
...@@ -243,6 +243,7 @@ export default { ...@@ -243,6 +243,7 @@ export default {
if (paused) this.qualityAudio.play() if (paused) this.qualityAudio.play()
}, },
handleClose() { handleClose() {
console.log(111, 'handleClose')
this.$emit("closeDialog", false) this.$emit("closeDialog", false)
this.onPause() this.onPause()
}, },
...@@ -429,7 +430,7 @@ export default { ...@@ -429,7 +430,7 @@ export default {
width: 1px; width: 1px;
height: 10px; height: 10px;
background-color: #e5e5e5; background-color: #e5e5e5;
margin: 0 10px; margin: 0 4px;
} }
.time { .time {
...@@ -496,7 +497,7 @@ export default { ...@@ -496,7 +497,7 @@ export default {
.play { .play {
width: 24px; width: 24px;
height: 24px; height: 24px;
margin-right: 12px; margin-right: 4px;
flex-shrink: 0; flex-shrink: 0;
img { img {
...@@ -562,18 +563,24 @@ export default { ...@@ -562,18 +563,24 @@ export default {
} }
} }
} }
.absolue {
.analyzing-box {
position: absolute; position: absolute;
top: 0;
}
.analyzing-box {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 100%; height: 100%;
width: 100%;
.quality-noting {
}
img { img {
width: 448px; width: 430px;
height: 208px; height: 192px;
} }
.analyzing { .analyzing {
...@@ -582,4 +589,9 @@ export default { ...@@ -582,4 +589,9 @@ export default {
margin-top: 20px; margin-top: 20px;
} }
} }
::v-deep {
.el-tabs__nav-wrap::after {
height: 1px !important ;
}
}
</style> </style>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</div> </div>
</div> </div>
</template> </template>
<div class="footer-box"> <!-- <div class="footer-box">
<el-button <el-button
size="small" size="small"
:class="{ opacity: currentNum == 0 }" :class="{ opacity: currentNum == 0 }"
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
})" })"
data-event-code="next" data-event-code="next"
>下一条</el-button> >下一条</el-button>
</div> </div> -->
</div> </div>
</d2-dialog> </d2-dialog>
</template> </template>
...@@ -300,7 +300,7 @@ export default { ...@@ -300,7 +300,7 @@ export default {
.content { .content {
display: flex; display: flex;
margin-top: 16px; margin-top: 16px;
height: calc(100vh - 270px); height: calc(100vh - 210px);
overflow: hidden; overflow: hidden;
.dialogue-box { .dialogue-box {
width: 40%; width: 40%;
......
...@@ -132,7 +132,7 @@ export default { ...@@ -132,7 +132,7 @@ export default {
relateStoreVisible: { relateStoreVisible: {
handler(val) { handler(val) {
if (val) { if (val) {
this.selectedData = this.storeSelected this.selectedData = JSON.parse(JSON.stringify(this.storeSelected))
this.recoverySelection() this.recoverySelection()
} }
...@@ -144,7 +144,6 @@ export default { ...@@ -144,7 +144,6 @@ export default {
clearData() { clearData() {
this.storeSearchForm.staffName = "" this.storeSearchForm.staffName = ""
this.currentPage = 1 this.currentPage = 1
console.log(this.storeSearchForm.staffPhone)
}, },
checkSelectable(row, index) { checkSelectable(row, index) {
const obj = this.selectingList.find((v) => v.staffPhone == row.staffPhone) const obj = this.selectingList.find((v) => v.staffPhone == row.staffPhone)
...@@ -199,14 +198,20 @@ export default { ...@@ -199,14 +198,20 @@ export default {
}, },
handleAll(selection) { handleAll(selection) {
console.log(selection) console.log(selection)
let arr = [...this.selectedData, ...this.selectingList]
console.log(arr)
this.selectingData.forEach((item) => { this.selectingData.forEach((item) => {
var isExit = this.selectedData.findIndex( var isExit = arr.findIndex(
(subItem) => subItem.staffPhone === item.staffPhone (subItem) => subItem.staffPhone === item.staffPhone
) )
if (selection.length && isExit === -1) { if (selection.length && isExit === -1) {
this.selectedData.push(item) this.selectedData.push(item)
} else if (!selection.length && isExit !== -1) { } else if (!selection.length && isExit !== -1) {
this.selectedData.splice(isExit, 1) this.selectedData.forEach((third, index) => {
if (third.staffPhone === item.staffPhone) {
this.selectedData.splice(index, 1)
}
})
} }
}) })
}, },
......
...@@ -36,16 +36,16 @@ ...@@ -36,16 +36,16 @@
> >
<el-input <el-input
v-model="item.minAssessmentValue" v-model="item.minAssessmentValue"
placeholder="最小值" placeholder="最小值整数(包含)"
style="width: 80px" style="width: 150px"
@blur="validateNumber(item, 'minAssessmentValue', 30)" @blur="validateNumber(item, 'minAssessmentValue', 30)"
></el-input> ></el-input>
<span class="range-separator">-</span> <span class="range-separator">-</span>
<el-input <el-input
v-model="item.maxAssessmentValue" v-model="item.maxAssessmentValue"
placeholder="最大值" placeholder="最大值整数(不包含)"
style="width: 80px" style="width: 170px"
@blur="validateNumber(item, 'maxAssessmentValue', 31)" @blur="validateNumber(item, 'maxAssessmentValue', 31)"
></el-input> ></el-input>
<span class="unit-text">天范围内,</span> <span class="unit-text">天范围内,</span>
...@@ -114,8 +114,8 @@ ...@@ -114,8 +114,8 @@
> >
<el-input <el-input
v-model="item.minAssessmentValue" v-model="item.minAssessmentValue"
placeholder="最小值" placeholder="最小值整数(包含)"
style="width: 80px" style="width: 150px"
@blur=" @blur="
validateNumber(item, 'minAssessmentValue', 999999) validateNumber(item, 'minAssessmentValue', 999999)
" "
...@@ -123,8 +123,8 @@ ...@@ -123,8 +123,8 @@
<span class="range-separator">-</span> <span class="range-separator">-</span>
<el-input <el-input
v-model="item.maxAssessmentValue" v-model="item.maxAssessmentValue"
placeholder="最大值" placeholder="最大值整数(不包含)"
style="width: 80px" style="width: 170px"
@blur=" @blur="
validateNumber(item, 'maxAssessmentValue', 999999) validateNumber(item, 'maxAssessmentValue', 999999)
" "
...@@ -221,7 +221,8 @@ ...@@ -221,7 +221,8 @@
ref="selectTagForm" ref="selectTagForm"
:storeSelected=" :storeSelected="
form.configList.length form.configList.length
? form.configList[this.configIndex].staffList ? form.configList[this.configIndex] &&
form.configList[this.configIndex].staffList
: [] : []
" "
:selectingList="selectingList" :selectingList="selectingList"
...@@ -302,6 +303,7 @@ export default { ...@@ -302,6 +303,7 @@ export default {
methods: { methods: {
//删除配置 //删除配置
deleteConfig(deleteConfig) { deleteConfig(deleteConfig) {
console.log(deleteConfig)
this.form.configList.splice(deleteConfig, 1) this.form.configList.splice(deleteConfig, 1)
}, },
getPerformanceSalaryConfig() { getPerformanceSalaryConfig() {
...@@ -323,7 +325,6 @@ export default { ...@@ -323,7 +325,6 @@ export default {
this.selectingList = [] this.selectingList = []
}, },
confirmStaff(val) { confirmStaff(val) {
console.log(val)
this.selectingList = [] this.selectingList = []
this.form.configList[this.configIndex].staffList = val this.form.configList[this.configIndex].staffList = val
this.groupVisible = false this.groupVisible = false
...@@ -348,7 +349,6 @@ export default { ...@@ -348,7 +349,6 @@ export default {
this.selectingList.push(item1) this.selectingList.push(item1)
}) })
}) })
console.log(this.selectingList)
}, },
addConfig() { addConfig() {
if (this.form.configList.length >= 9) { if (this.form.configList.length >= 9) {
...@@ -475,13 +475,17 @@ export default { ...@@ -475,13 +475,17 @@ export default {
validateNumber(item, field, maxLimit = 31) { validateNumber(item, field, maxLimit = 31) {
// console.log(item, field) // console.log(item, field)
let value = item[field] let value = item[field]
value = parseInt(value) || "0" value = parseInt(value) || ""
value = isNaN(value) || ""
// 限制最大值 // 限制最大值
if (parseInt(value) > maxLimit) { if (parseInt(value) > maxLimit) {
value = maxLimit.toString() value = ""
this.$message.warning(`输入值不能超过 ${maxLimit}`) this.$message.warning(`输入值不能超过 ${maxLimit}`)
} }
if (parseInt(value) < 0) {
value = ""
this.$message.warning(`输入值不能小于0`)
}
this.$set(item, field, value) this.$set(item, field, value)
// 自动修正 min <= max(仅对 maxAssessmentValue 生效) // 自动修正 min <= max(仅对 maxAssessmentValue 生效)
...@@ -497,19 +501,22 @@ export default { ...@@ -497,19 +501,22 @@ export default {
validatePercentage(item) { validatePercentage(item) {
let value = item.performanceSalarDeductionRatio let value = item.performanceSalarDeductionRatio
// 去除非数字和小数点 // 去除非数字和小数点
value = parseInt(value) || 1
console.log(value)
// // 处理小数位
// if (value.includes(".")) {
// const parts = value.split(".")
// value = parts[0] + "." + (parts[1] ? parts[1].slice(0, 2) : "")
// }
// 限制范围
let numValue = parseFloat(value || "1")
if (isNaN(numValue)) numValue = 1
if (numValue < 1) numValue = 1
if (numValue > 100) numValue = 100
// 限制范围
let numValue = parseFloat(value)
if (isNaN(numValue)) numValue = ""
// if (numValue < 1) numValue = 1
// if (numValue > 100) numValue = 100
// 限制最大值
if (parseInt(value) > 100) {
numValue = ""
this.$message.warning(`输入值不能超过100`)
}
if (parseInt(value) < 1) {
numValue = ""
this.$message.warning(`输入值不能小于1`)
}
// value = parseInt(value) || ""
this.$set(item, "performanceSalarDeductionRatio", numValue.toString()) this.$set(item, "performanceSalarDeductionRatio", numValue.toString())
}, },
......
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
: row.allocationType == 7 : row.allocationType == 7
? `${!isEmpty(row.calculateValue) ? row.calculateValue : '-'}%×${row.avgCustomerCalculateValue}` ? `${!isEmpty(row.calculateValue) ? row.calculateValue : '-'}%×${row.avgCustomerCalculateValue}`
: row.allocationType == 5 ? `${row.calculateValue}%` : row.allocationType == 5 ? `${row.calculateValue}%`
: row.allocationType == 8 || row.allocationType == 9 || row.allocationType == 10 ? `每单${row.calculateValue}元` : '-' : row.allocationType == 8 || row.allocationType == 9 || row.allocationType == 10 ? `每单${row.commissionRatio}元` : '-'
} }
}, },
{ {
......
...@@ -120,6 +120,7 @@ export default { ...@@ -120,6 +120,7 @@ export default {
if (this.windowId !== -1) { if (this.windowId !== -1) {
const [recep] = this.$refs[`recep-${this.windowId}`] const [recep] = this.$refs[`recep-${this.windowId}`]
if (recep && recep.isQualityVisible) recep.closeDialog() if (recep && recep.isQualityVisible) recep.closeDialog()
if (recep && recep.isNewQualityVisible) recep.closeDialog()
else this.windowId = -1 else this.windowId = -1
history.pushState(null, null, document.URL) history.pushState(null, null, document.URL)
} else this.$router.go(-1) } else this.$router.go(-1)
......
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
<span slot="suffix" class="suffix_text">元</span> <span slot="suffix" class="suffix_text">元</span>
</el-input> </el-input>
</el-form-item> </el-form-item>
元/每单 /每单
</template> </template>
<i class="el-icon-sort rotate-90" @click="changeTermType(scope.$index)"></i> <i class="el-icon-sort rotate-90" @click="changeTermType(scope.$index)"></i>
</template> </template>
...@@ -155,7 +155,10 @@ ...@@ -155,7 +155,10 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<span style="margin-left: 32px;">提成金额整体比例为&nbsp;&nbsp;</span> <span style="margin-left: 32px;">提成金额整体比例为&nbsp;&nbsp;</span>
<el-form-item :prop="`otherOptionsList[${scope.$index}].calculateValue`" :rules="rules.calculateValue"> <el-form-item :prop="`otherOptionsList[${scope.$index}].calculateValue`" :rules="[
{ required: true, message: '请输入', trigger: 'blur' },
{ validator: validateOtherValue, trigger: 'blur' }
]">
<el-input class="rate_input" @input="handleInput($event, 'calculateValue', scope, 'otherOptionsList', 2, 3, 100)" v-model="scope.row['calculateValue']" placeholder="请输入"> <el-input class="rate_input" @input="handleInput($event, 'calculateValue', scope, 'otherOptionsList', 2, 3, 100)" v-model="scope.row['calculateValue']" placeholder="请输入">
<span slot="suffix" class="suffix_text">%</span> <span slot="suffix" class="suffix_text">%</span>
</el-input> </el-input>
...@@ -222,7 +225,7 @@ export default { ...@@ -222,7 +225,7 @@ export default {
], ],
calculateValue: [ calculateValue: [
{ required: true, message: '请输入', trigger: 'blur' }, { required: true, message: '请输入', trigger: 'blur' },
{ validator: minValueValidator, trigger: 'blur' } // { validator: minValueValidator, trigger: 'blur' }
], ],
conditionProductType: [ conditionProductType: [
{ required: true, message: '请选择类目', trigger: 'change' } { required: true, message: '请选择类目', trigger: 'change' }
...@@ -242,7 +245,7 @@ export default { ...@@ -242,7 +245,7 @@ export default {
], ],
conditionCalculateValue: [ conditionCalculateValue: [
{ required: true, message: '请输入', trigger: 'blur' }, { required: true, message: '请输入', trigger: 'blur' },
{ validator: minValueValidator, trigger: 'blur' } // { validator: minValueValidator, trigger: 'blur' }
] ]
}, },
configInfo: {}, configInfo: {},
...@@ -289,6 +292,13 @@ export default { ...@@ -289,6 +292,13 @@ export default {
isEmpty(data) { isEmpty(data) {
return (data ?? '') === '' return (data ?? '') === ''
}, },
validateOtherValue(rule, value, callback) {
if (!this.isEmpty(value) && +value <= 0) {
callback(new Error('输入值应大于0'))
} else {
callback()
}
},
rowClass({ row, rowIndex }) { rowClass({ row, rowIndex }) {
return 'background:#F2F4F7;color:#333333;font-size:14px;font-weight:600;' return 'background:#F2F4F7;color:#333333;font-size:14px;font-weight:600;'
}, },
...@@ -580,13 +590,13 @@ export default { ...@@ -580,13 +590,13 @@ export default {
} }
} }
// 检查区间是否存在重复部分 // 检查区间是否存在重复部分
for (let i = 1; i < intervals.length; i++) { // for (let i = 1; i < intervals.length; i++) {
const startValue = new BigNumber(intervals[i].startValue || 0) // const startValue = new BigNumber(intervals[i].startValue || 0)
const endValue = new BigNumber(intervals[i - 1].endValue || 0) // const endValue = new BigNumber(intervals[i - 1].endValue || 0)
if (startValue.toNumber() <= endValue.toNumber()) { // if (startValue.toNumber() <= endValue.toNumber()) {
return 'error4' // return 'error4'
} // }
} // }
} }
return '' return ''
} }
...@@ -626,7 +636,7 @@ export default { ...@@ -626,7 +636,7 @@ export default {
resolve('error6') resolve('error6')
return return
} }
if (startValue.toNumber() <= endValue.toNumber()) { if (otherValues[i - 1]?.endValue && startValue.toNumber() <= endValue.toNumber()) {
resolve('error5') resolve('error5')
return return
} }
......
...@@ -38,8 +38,9 @@ ...@@ -38,8 +38,9 @@
<span v-else>{{scope.columnsObj.formatter(scope.scope, kIdx)}}</span> <span v-else>{{scope.columnsObj.formatter(scope.scope, kIdx)}}</span>
</div> </div>
</template> </template>
<div v-if="scope.scope.businessTypeList.every(k => k.businessSceneType === null)">-</div>
</template> </template>
<div v-else>——</div> <div v-else>-</div>
</template> </template>
<template v-for="(m, mIdx) in tableSlotList" :slot="m" slot-scope="scope"> <template v-for="(m, mIdx) in tableSlotList" :slot="m" slot-scope="scope">
<div v-if="scope.scope.businessTypeList && scope.scope.businessTypeList.length" :key="mIdx"> <div v-if="scope.scope.businessTypeList && scope.scope.businessTypeList.length" :key="mIdx">
...@@ -55,6 +56,7 @@ ...@@ -55,6 +56,7 @@
<span v-else>{{scope.columnsObj.formatter(scope.scope, kIdx)}}</span> <span v-else>{{scope.columnsObj.formatter(scope.scope, kIdx)}}</span>
</div> </div>
</template> </template>
<div v-if="scope.scope.businessTypeList.every(k => k.businessSceneType === null)">-</div>
</div> </div>
</template> </template>
<auth-button slot="auth-button" slot-scope="scope" :show-btn-ids="[ <auth-button slot="auth-button" slot-scope="scope" :show-btn-ids="[
...@@ -151,12 +153,14 @@ import { ...@@ -151,12 +153,14 @@ import {
getSunshineIncentivePoint, getSunshineIncentivePoint,
setShopMerchantPointConfig, setShopMerchantPointConfig,
shopBatchSet, shopBatchSet,
busiBatchSet busiBatchSet,
getDistrictDetail,
getMerService
} from "@/api/shopConfig.js" } from "@/api/shopConfig.js"
import { import {
merchantOutputValueTargetExport, merchantOutputValueTargetExport,
merchantOutputValueTargetImport, merchantOutputValueTargetImport,
merchantStaffByRoleList findMerchantStaffList
} from "@api/index" } from "@api/index"
import { businessNature, storeType } from "@/common/constants.js" import { businessNature, storeType } from "@/common/constants.js"
import qrcodeDialog from "./components/qRcodeDialog" import qrcodeDialog from "./components/qRcodeDialog"
...@@ -194,7 +198,7 @@ export default { ...@@ -194,7 +198,7 @@ export default {
businessDevelopmentScene: '', businessDevelopmentScene: '',
businessDevTime: [], businessDevTime: [],
serviceMerchantId: '', serviceMerchantId: '',
onlineOperation: '' onlineSupervision: ''
}, },
searchFormSearch: {}, searchFormSearch: {},
showFormData: [ showFormData: [
...@@ -202,20 +206,33 @@ export default { ...@@ -202,20 +206,33 @@ export default {
label: "所属省份", label: "所属省份",
name: "provinceId", name: "provinceId",
type: "select", type: "select",
isClear: true,
optionList: [], optionList: [],
optionId: "adcode", optionId: "adcode",
optionLabel: "name", optionLabel: "name",
optionsName: "provinceInfoList", optionsName: "provinceInfoList",
changeAttr: (value, targetItem) => { changeAttr: (value, targetItem) => {
this.searchForm.cityId = '' this.searchForm.cityId = ''
this.baseData.cityList = []
this.getOptionsList()
if (value) {
const params = { districtName: this.baseData.provinceInfoList.find(item => item.adcode == value).name }
getDistrictDetail(params).then(res => {
if (res && res.length) {
this.baseData.cityList = res[0].districts
this.getOptionsList()
}
})
}
} }
}, },
{ {
label: "所属城市", label: "所属城市",
name: "cityId", name: "cityId",
type: "select", type: "select",
isClear: true,
optionList: [], optionList: [],
optionId: "adcode", optionId: "code",
optionLabel: "name", optionLabel: "name",
optionsName: "cityList" optionsName: "cityList"
}, },
...@@ -267,6 +284,7 @@ export default { ...@@ -267,6 +284,7 @@ export default {
label: "业务类型", label: "业务类型",
name: "businessSceneType", name: "businessSceneType",
type: "select", type: "select",
isClear: true,
optionList: [], optionList: [],
optionId: "confId", optionId: "confId",
optionLabel: "confValue", optionLabel: "confValue",
...@@ -283,6 +301,7 @@ export default { ...@@ -283,6 +301,7 @@ export default {
label: "运营模式", label: "运营模式",
name: "directSalesFlag", name: "directSalesFlag",
type: "select", type: "select",
isClear: true,
optionList: [], optionList: [],
optionId: "confId", optionId: "confId",
optionLabel: "confValue", optionLabel: "confValue",
...@@ -315,14 +334,15 @@ export default { ...@@ -315,14 +334,15 @@ export default {
label: "主服务商", label: "主服务商",
name: "serviceMerchantId", name: "serviceMerchantId",
type: "select", type: "select",
isClear: true,
optionList: [], optionList: [],
optionId: "confId", optionId: "merchantId",
optionLabel: "confValue", optionLabel: "merchantName",
optionsName: "serviceMerList" optionsName: "serviceMerList"
}, },
{ {
label: "线上运营", label: "线上运营",
name: "onlineOperation", name: "onlineSupervision",
type: "input", type: "input",
maxlength: "20", maxlength: "20",
isClear: true isClear: true
...@@ -371,7 +391,7 @@ export default { ...@@ -371,7 +391,7 @@ export default {
formatter: (cellValue) => { formatter: (cellValue) => {
return this.baseData.businessNature.find( return this.baseData.businessNature.find(
(item) => item.confId === cellValue.businessType (item) => item.confId === cellValue.businessType
)?.confName )?.confName || '-'
} }
}, },
{ {
...@@ -404,6 +424,9 @@ export default { ...@@ -404,6 +424,9 @@ export default {
list.push(item.idAndName) list.push(item.idAndName)
}) })
html = list.join("<br>") html = list.join("<br>")
} else {
list.push('-')
html = list.join("<br>")
} }
return html return html
} }
...@@ -426,7 +449,7 @@ export default { ...@@ -426,7 +449,7 @@ export default {
formatter: (cellValue, idx) => { formatter: (cellValue, idx) => {
const list = this.removeListAll('busiTypeList') const list = this.removeListAll('busiTypeList')
const target = list.find(item => item.confId == cellValue.businessTypeList[idx].businessSceneType + '') const target = list.find(item => item.confId == cellValue.businessTypeList[idx].businessSceneType + '')
return target ? target.confValue : '——' return target ? target.confValue : '-'
} }
}, },
{ {
...@@ -437,8 +460,8 @@ export default { ...@@ -437,8 +460,8 @@ export default {
formatter: (cellValue, idx) => { formatter: (cellValue, idx) => {
return cellValue.businessTypeList[idx].areaSupervisionList return cellValue.businessTypeList[idx].areaSupervisionList
? (cellValue.businessTypeList[idx].areaSupervisionList.length ? cellValue.businessTypeList[idx].areaSupervisionList.map(item => item.directorName).join('/') ? (cellValue.businessTypeList[idx].areaSupervisionList.length ? cellValue.businessTypeList[idx].areaSupervisionList.map(item => item.directorName).join('/')
: '——') : '-')
: '——' : '-'
} }
}, },
{ {
...@@ -449,8 +472,8 @@ export default { ...@@ -449,8 +472,8 @@ export default {
formatter: (cellValue, idx) => { formatter: (cellValue, idx) => {
return cellValue.businessTypeList[idx].onlineSupervisionList return cellValue.businessTypeList[idx].onlineSupervisionList
? (cellValue.businessTypeList[idx].onlineSupervisionList.length ? cellValue.businessTypeList[idx].onlineSupervisionList.map(item => item.directorName).join('/') ? (cellValue.businessTypeList[idx].onlineSupervisionList.length ? cellValue.businessTypeList[idx].onlineSupervisionList.map(item => item.directorName).join('/')
: '——') : '-')
: '——' : '-'
} }
}, },
{ {
...@@ -461,7 +484,7 @@ export default { ...@@ -461,7 +484,7 @@ export default {
formatter: (cellValue, idx) => { formatter: (cellValue, idx) => {
const list = this.removeListAll('saleFlagList') const list = this.removeListAll('saleFlagList')
const target = list.find(item => item.confId == cellValue.businessTypeList[idx].directSalesFlag) const target = list.find(item => item.confId == cellValue.businessTypeList[idx].directSalesFlag)
return target ? target.confValue : '——' return target ? target.confValue : '-'
} }
}, },
{ {
...@@ -477,7 +500,7 @@ export default { ...@@ -477,7 +500,7 @@ export default {
str.push(list.find(k => k.confId == item)?.confValue) str.push(list.find(k => k.confId == item)?.confValue)
}) })
} }
return str.length ? str.join('/') : '——' return str.length ? str.join('/') : '-'
} }
}, },
{ {
...@@ -486,7 +509,7 @@ export default { ...@@ -486,7 +509,7 @@ export default {
width: "200px", width: "200px",
addHtml: 'serviceMerchant', addHtml: 'serviceMerchant',
formatter: (cellValue, idx) => { formatter: (cellValue, idx) => {
return cellValue.businessTypeList[idx].serviceMerchantName || "——" return cellValue.businessTypeList[idx].serviceMerchantName || "-"
} }
}, },
{ {
...@@ -497,7 +520,7 @@ export default { ...@@ -497,7 +520,7 @@ export default {
formatter: (cellValue, idx) => { formatter: (cellValue, idx) => {
return cellValue.businessTypeList[idx].businessDevDate return cellValue.businessTypeList[idx].businessDevDate
? Util.dateFormate(cellValue.businessTypeList[idx].businessDevDate, "YYYY-MM-DD") ? Util.dateFormate(cellValue.businessTypeList[idx].businessDevDate, "YYYY-MM-DD")
: "——" : "-"
} }
}, },
{ {
...@@ -508,7 +531,7 @@ export default { ...@@ -508,7 +531,7 @@ export default {
formatter: (cellValue, idx) => { formatter: (cellValue, idx) => {
return cellValue.businessTypeList[idx].latestOrderDate return cellValue.businessTypeList[idx].latestOrderDate
? Util.dateFormate(cellValue.businessTypeList[idx].latestOrderDate, "YYYY-MM-DD") ? Util.dateFormate(cellValue.businessTypeList[idx].latestOrderDate, "YYYY-MM-DD")
: "——" : "-"
} }
} }
] ]
...@@ -756,6 +779,7 @@ export default { ...@@ -756,6 +779,7 @@ export default {
this.getBaseData() this.getBaseData()
this.getProvinceList() this.getProvinceList()
this.getBrandList() this.getBrandList()
this.getMerService()
}, },
methods: { methods: {
...@@ -778,6 +802,12 @@ export default { ...@@ -778,6 +802,12 @@ export default {
async getBaseData() { async getBaseData() {
this.getOptionsList() this.getOptionsList()
}, },
getMerService() {
getMerService({}).then(res => {
this.baseData.serviceMerList = res
this.getOptionsList()
})
},
//员工注册码 //员工注册码
employeeRegistrationCode(row) { employeeRegistrationCode(row) {
this.recordInfo = row this.recordInfo = row
...@@ -1057,8 +1087,10 @@ export default { ...@@ -1057,8 +1087,10 @@ export default {
businessDevelopmentScene: '', businessDevelopmentScene: '',
businessDevTime: [], businessDevTime: [],
serviceMerchantId: '', serviceMerchantId: '',
onlineOperation: '' onlineSupervision: ''
} }
this.baseData.cityList = []
this.getOptionsList()
this.$refs.recordTable.refreshTable() this.$refs.recordTable.refreshTable()
}, },
...@@ -1358,7 +1390,7 @@ export default { ...@@ -1358,7 +1390,7 @@ export default {
let sceneIdx = this.batchFormData.findIndex(item => item.name == 'businessDevelopmentScene') let sceneIdx = this.batchFormData.findIndex(item => item.name == 'businessDevelopmentScene')
if (['area', 'online'].includes(this.batchSetActive)) { if (['area', 'online'].includes(this.batchSetActive)) {
this.batchFormData[staffIdx].label = this.batchSetActive == 'area' ? '区域运营' : '线上运营' this.batchFormData[staffIdx].label = this.batchSetActive == 'area' ? '区域运营' : '线上运营'
await this.merchantStaffByRoleList() await this.findMerchantStaffList()
} else { } else {
this.baseData.busiSceneList = this.removeListAll('busiDelpList') this.baseData.busiSceneList = this.removeListAll('busiDelpList')
} }
...@@ -1367,11 +1399,10 @@ export default { ...@@ -1367,11 +1399,10 @@ export default {
this.batchRules.shopOperationMuti[0].required = ['area', 'online'].includes(this.batchSetActive) this.batchRules.shopOperationMuti[0].required = ['area', 'online'].includes(this.batchSetActive)
this.batchRules.businessDevelopmentScene[0].required = this.batchSetActive == 'busiScene' this.batchRules.businessDevelopmentScene[0].required = this.batchSetActive == 'busiScene'
this.handleBatchVisible() this.handleBatchVisible()
console.log(this.batchSetActive, 'this.batchSetActive---')
}, },
async merchantStaffByRoleList() { async findMerchantStaffList() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
merchantStaffByRoleList({ roleName: "区域运营" }).then((result) => { findMerchantStaffList({ merchantId: -1 }).then((result) => {
const copyResult = deepClone(result) const copyResult = deepClone(result)
this.baseData.supervisionOptionsList = copyResult.map((item) => { this.baseData.supervisionOptionsList = copyResult.map((item) => {
return { return {
......
...@@ -624,21 +624,24 @@ export default { ...@@ -624,21 +624,24 @@ export default {
if (val.roleName == baseConfig.roleName) { if (val.roleName == baseConfig.roleName) {
arr.push({ arr.push({
userId: val.uuid, userId: val.uuid,
userName: val.staffName userName: val.staffName,
userNum: val.staffPhone
}) })
} }
}) })
res?.map((val) => { res?.map((val) => {
arr2.push({ arr2.push({
userId: val.uuid, userId: val.uuid,
userName: val.staffName userName: val.staffName,
userNum: val.staffPhone
}) })
}) })
res?.map((val) => { res?.map((val) => {
if (val.roleName == '飞行督导') { if (val.roleName == '飞行督导') {
this.flySuperList.push({ this.flySuperList.push({
userId: val.uuid, userId: val.uuid,
userName: val.staffName userName: val.staffName,
userNum: val.staffPhone
}) })
} }
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!