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