Commit a3cf5129 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 5a84e083 cac652b4
Showing 52 changed files with 2630 additions and 362 deletions
...@@ -49,3 +49,50 @@ export function getBillTmplAdapter(data) { ...@@ -49,3 +49,50 @@ export function getBillTmplAdapter(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.generateUseRequestAdapter' data.method = 'dj.api.smartcarlife.reconciliationBill.generateUseRequestAdapter'
return request(data, "post") return request(data, "post")
} }
// 对账单测算
export function billCompute(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.computeByJson'
return request(data, "post")
}
// 对账单编辑
export function editBill(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.updateByJson'
return request(data, "post")
}
export function billDetail(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.detail'
return request(data, "post")
}
//根据服务商商户号分页获取4S店列表
export function getShopList(data) {
data.method = 'dj.api.scenemerchantref.queryShopRefByPartnerShopPage'
return request(data)
}
// 对账单确认
export function billConfirm(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.confirm'
return request(data, "post")
}
// 对账单取消
export function billCancel(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.cancel'
return request(data, "post")
}
// 对账单待确认内容确认
export function billConfirmChange(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.confirmChange'
return request(data, "post")
}
// 对账单待取消内容确认
export function billCancelChange(data) {
data.method = 'dj.api.smartcarlife.reconciliationBill.cancelChange'
return request(data, "post")
}
import request from "./request" import request from "./request"
const path = "dj.api." const path = "dj.api."
const path2 = "dj.api.smartcarlife."
// 内容管理列表查询条件可见门店列表 // 内容管理列表查询条件可见门店列表
export function getMerchantList(data) { export function getMerchantList(data) {
...@@ -217,7 +218,7 @@ export function addCustomerLabel(data) { ...@@ -217,7 +218,7 @@ export function addCustomerLabel(data) {
return request(data, "post") return request(data, "post")
} }
/**修改客户标签 */ /** 修改客户标签 */
export function updateCustomerLabel(data) { export function updateCustomerLabel(data) {
data.method = `dj.api.material.customer.label.update` data.method = `dj.api.material.customer.label.update`
return request(data, "post") return request(data, "post")
...@@ -327,3 +328,96 @@ export function getMateralDetail(data) { ...@@ -327,3 +328,96 @@ export function getMateralDetail(data) {
data.method = "dj.api.smartcarlife.reception.home.page.material.detail" data.method = "dj.api.smartcarlife.reception.home.page.material.detail"
return request(data, "post") return request(data, "post")
} }
/** 查询人员标签列表 */
export function findAllLabel(data) {
data.method = `${path2}stafftagcourse.findAllLabel`
return request(data, "post")
}
/** 查询课程列表 */
export function findStaffTagCoursePage(data) {
data.method = `${path2}stafftagcourse.findStaffTagCoursePage`
return request(data, "post")
}
/** 查询课程关联列表 */
export function findStaffTagCourseRelationPage(data) {
data.method = `${path2}stafftagcourse.findStaffTagCourseRelationPage`
return request(data, "post")
}
/** 删除课程关联 */
export function deletecourserelation(data) {
data.method = `${path2}stafftagcourse.deletecourserelation`
return request(data, "post")
}
/** 修改课程关联 */
export function updatecourserelation(data) {
data.method = `${path2}stafftagcourse.updatecourserelation`
return request(data, "post")
}
/** 新增课程关联 */
export function savecourserelation(data) {
data.method = `${path2}stafftagcourse.savecourserelation`
return request(data, "post")
}
/** 分页查询处罚名单 */
export function studyPage(data) {
data.method = `${path2}study.punish.page`
return request(data, "post")
}
/** 导出处罚名单 */
export function studyExport(data) {
data.method = `${path2}study.punish.list.export`
return request(data, "post")
}
/** 操作处罚名单 */
export function studyUpdate(data) {
data.method = `${path2}study.punish.update`
return request(data, "post")
}
// dj.api.smartcarlife.contentManagerTask.study.course.page
// 分页、staffStudyId取列表id
// /** 处罚详情 */
// export function contentManagerTaskPage(data) {
// data.method = `${path2}contentManagerTask.study.course.page `
// return request(data, "post")
// }
/** 查询学习任务-学习情况 */
export function coursePage(data) {
data.method = `${path2}contentManagerTask.study.course.page`
return request(data, "post")
}
/** 查询学习任务-阅读统计 */
export function studyStaffPage(data) {
data.method = `${path2}contentManagerTask.study.staff.page`
return request(data, "post")
}
/** 查询学习任务-学习情况(导出) */
export function courseExport(data) {
data.method = `${path2}contentManagerTask.study.course.list.export`
return request(data, "post")
}
/** 查询学习任务-阅读统计(导出) */
export function contentManagerTaskExport(data) {
data.method = `${path2}contentManagerTask.study.staff.list.export`
return request(data, "post")
}
/** 查询学习任务-学习情况(统计) */
export function contentManagerTaskSummary(data) {
data.method = `${path2}contentManagerTask.study.course.summary`
return request(data, "post")
}
/** 课程详情 */
export function stafftagcourseFind(data) {
data.method = `${path2}stafftagcourse.findById`
return request(data, "post")
}
/** 处罚详情 */
export function contentManagerTaskCourseList(data) {
data.method = `${path2}contentManagerTask.course.list`
return request(data, "post")
}
/** 员工人数详情 */
export function contentManagerTaskListStaffPage(data) {
data.method = `${path2}contentManagerTask.listStaffPage`
return request(data, "post")
}
...@@ -958,7 +958,8 @@ export const contentTypeList = [ ...@@ -958,7 +958,8 @@ export const contentTypeList = [
{ confId: 1, confValue: "图文" }, { confId: 1, confValue: "图文" },
{ confId: 2, confValue: "视频" }, { confId: 2, confValue: "视频" },
{ confId: 3, confValue: "pdf" }, { confId: 3, confValue: "pdf" },
{ confId: 4, confValue: "优秀话术" } { confId: 4, confValue: "优秀话术" },
{ confId: 5, confValue: "学习任务" }
] ]
// 内容管理-员工群发-发送状态 // 内容管理-员工群发-发送状态
......
...@@ -454,7 +454,7 @@ export const routerName = { ...@@ -454,7 +454,7 @@ export const routerName = {
authId: "9051102", authId: "9051102",
parentId: "90511", parentId: "90511",
label: "确认对账", label: "确认对账",
handle: "handleDownload" handle: "handleBillConfirm"
}, },
{ {
authId: "9051103", authId: "9051103",
...@@ -484,7 +484,7 @@ export const routerName = { ...@@ -484,7 +484,7 @@ export const routerName = {
authId: "9051107", authId: "9051107",
parentId: "90511", parentId: "90511",
label: "下载", label: "下载",
handle: "handleDownload" handle: "handleExport"
} }
], ],
component: _import("financeManage/accountStateManage/index") component: _import("financeManage/accountStateManage/index")
......
...@@ -60,6 +60,11 @@ export const routerName = { ...@@ -60,6 +60,11 @@ export const routerName = {
authId: "91304", authId: "91304",
name: "统计", name: "统计",
parentId: "91301" parentId: "91301"
},
{
authId: "91320",
name: "统计",
parentId: "91301"
} }
] ]
}, },
...@@ -158,6 +163,29 @@ export const routerName = { ...@@ -158,6 +163,29 @@ export const routerName = {
], ],
component: _import("contentManager/statisticsList") component: _import("contentManager/statisticsList")
}, },
91320: {
path: "/massSendingStatisticsPage",
name: "massSendingStatisticsPage",
meta: {
title: "统计",
authId: "91320",
parentId: "91301",
cache: false,
activePath: "/staffMassSending"
},
// auth: [
// {
// authId: "9130401",
// parentId: "91304",
// label: "导出",
// category: "Button",
// handle: "exportList"
// }
// ],
component: _import(
"contentManager/staffMassSending/massSendingStatisticsPage"
)
},
91305: { 91305: {
path: "/staffMassSending", path: "/staffMassSending",
...@@ -369,5 +397,62 @@ export const routerName = { ...@@ -369,5 +397,62 @@ export const routerName = {
}, },
auth: [], auth: [],
component: _import("contentManager/customerFile/customerFileDetails") component: _import("contentManager/customerFile/customerFileDetails")
},
91318: {
path: "/labelCourse",
name: "labelCourse",
meta: {
title: "标签课程",
authId: "91318",
parentId: "913",
cache: false
},
auth: [
{
authId: "9131801",
parentId: "91318",
label: "编辑",
handle: "handleEdit"
},
{
authId: "9131802",
parentId: "91318",
label: "删除",
handle: "handleDelete"
}
],
component: _import("contentManager/labelCourse/index")
},
91319: {
path: "/listOfPenalties",
name: "listOfPenalties",
meta: {
title: "学习任务处罚名单",
authId: "91319",
parentId: "913",
cache: false
},
auth: [
{
authId: "9131901",
parentId: "91319",
label: "详情",
handle: "handleDetail"
},
{
authId: "9131902",
parentId: "91319",
label: "停用",
handle: "handleStop",
ruleObj: {
attr: "punishFlag",
rule: {
0: "启用",
1: "停用"
}
}
}
],
component: _import("contentManager/listOfPenalties/index")
} }
} }
<template>
<d2-dialog title="选择品牌" :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.label }}<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,
defaultKeys: Array
},
data() {
return {
filterText: '',
checked: false,
checkList: [],
brandData: [],
defaultProps: {
children: 'children',
label: 'label'
},
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() {
const res = await getCarbrandTree()
this.brandData = res
},
handleClose() {
this.resetChecked()
this.$emit('close')
},
handleConfirm() {
this.resetChecked()
console.log(this.checkList, 'checkList')
const newList = this.filterCheckList(deepClone(this.checkList))
console.log(newList, '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.children && item.children.length > 0) {
item.children.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.label.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.children
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: 100%;
// 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 :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-input v-model.trim="storeSearchForm.courseName" placeholder="课程名称" max-length="20"
@keydown.native="handleStoreInput" clearable />
</el-form-item>
<el-button type="primary" @click="handleCurrentChange(1)">搜索</el-button>
</el-form>
<el-row class="tableCon">
<div class="tableBox">
<el-table ref="seletingTable" :data="selectingData" height="464px" class="table" border @select="handleChange"
@select-all="handleAll">
<el-table-column type="selection" width="55" align="center" />
<el-table-column prop="label" label="课程名称" align="center">
<template slot-scope="scope">
{{ scope.row.catalogName + ':' + scope.row.courseTitle }}
</template>
</el-table-column>
</el-table>
<el-pagination small background @current-change="handleCurrentChange" :current-page.sync="currentPage"
:page-size="pageSize" layout="total, prev, pager, next" :total="total" />
</div>
<el-table class="tableBox table" :data="selectedData" border height="464px">
<el-table-column prop="merchantName" label="课程名称" align="center">
<template slot-scope="scope">
{{ scope.row.catalogName + ':' + scope.row.courseTitle }}
</template>
</el-table-column>
<el-table-column label="删除" align="center" width="50px">
<template slot-scope="scope">
<el-button class="el-icon-delete" @click="handleDelete(scope.row)" type="text" />
</template>
</el-table-column>
</el-table>
</el-row>
</d2-dialog>
</template>
<script>
import {
findStaffTagCoursePage
} from "@api/contentManager"
import { deepClone } from "@/common/util"
// import { getBrandList } from "@api/contentManager"
export default {
name: "RelateStoreDialog",
data() {
return {
selectedData: [],
selectingData: [],
// 分页
total: 0,
currentPage: 1,
pageSize: 20,
storeSearchForm: {
courseName: ''
}
}
},
props: {
relateStoreVisible: {
type: Boolean,
default: false
},
storeSelected: {
type: Array,
default: () => []
}
},
mounted() {
this.selectedData = deepClone(this.storeSelected)
this.getSelectingList()
},
methods: {
recoverySelection() {
var exitIds = this.selectedData.map((item) => item.courseId)
this.selectingData.forEach((item) => {
exitIds.includes(item.courseId) &&
this.$refs.seletingTable &&
this.$refs.seletingTable.toggleRowSelection(item, true)
})
},
getSelectingList() {
findStaffTagCoursePage({
...this.storeSearchForm,
currentPage: this.currentPage,
pageSize: this.pageSize,
// isFlag: true
}).then((res) => {
this.selectingData = res.list
this.total = res.total
this.$nextTick(() => {
this.recoverySelection()
})
})
},
handleChange(selection, row) {
var addOrDelete = !!selection.find((item) => item.courseId === row.courseId)
addOrDelete
? this.selectedData.push(row)
: (this.selectedData = this.selectedData.filter(
(item) => item.courseId !== row.courseId
))
},
handleAll(selection) {
this.selectingData.forEach((item) => {
var isExit = this.selectedData.findIndex(
(subItem) => subItem.courseId === item.courseId
)
if (selection.length && isExit === -1) {
this.selectedData.push(item)
} else if (!selection.length && isExit !== -1) {
this.selectedData.splice(isExit, 1)
}
})
},
handleDelete(row) {
this.selectedData = this.selectedData.filter((item) => item.courseId !== row.courseId)
const obj = this.selectingData.find((v) => v.courseId == row.courseId)
this.$refs.seletingTable.toggleRowSelection(obj)
},
handleCurrentChange(val) {
this.currentPage = val
this.getSelectingList()
},
handleRelateStoreConfirm() {
this.$emit("handleRelateStoreClose")
this.$emit("handleRelateStoreConfirm", this.selectedData)
},
handleRelateStoreClose() {
this.$emit("handleRelateStoreClose")
}
}
}
</script>
<style lang="scss" scoped>
.table {
margin: 0 auto 20px !important;
width: 95%;
}
.tableCon {
margin-top: 20px;
display: flex;
.tableBox {
flex: 1;
}
}
.service-store .relateStore .el-table .cell,
.d2-form .relateStore .el-table .cell {
line-height: 26px !important;
}
.service-store .relateStore .el-table--medium td,
.d2-form .relateStore .el-table--medium td {
padding: 6px 8px !important;
}
.relateStore .red {
color: red;
}
.relateStore .tip-icon {
position: absolute;
display: inline-block;
height: 10px;
width: 10px;
line-height: 10px;
color: #ffffff;
background-color: red;
border: 1px solid red;
border-radius: 50%;
cursor: pointer;
font-size: 6px;
margin-left: 2px;
}
</style>
<template> <template>
<d2-dialog <d2-dialog :appendToBody="true" :is-visible="dialogVisible" class="accountDailog" title="选择门店" width="720px"
:is-visible="dialogVisible" @confirmDialog="handleAddConfirm" @closeDialog="handleClose">
class="accountDailog"
title="选择门店"
width="720px"
@confirmDialog="handleAddConfirm"
@closeDialog="handleClose"
>
<div class="tableBox"> <div class="tableBox">
<div style="padding: 10px 50px"> <div style="padding: 10px 50px">
<el-input <el-input v-model="realSearchForm.merchantName" placeholder="搜索门店名称" maxlength="20" clearable size="small"
v-model="realSearchForm.merchantName" style="width: 300px; margin-right: 12px" />
placeholder="搜索门店名称"
maxlength="20"
clearable
size="small"
style="width: 300px; margin-right: 12px"
/>
<el-button size="small" type="primary" @click="searchList"> <el-button size="small" type="primary" @click="searchList">
查询 查询
</el-button> </el-button>
</div> </div>
<d2-table <d2-table ref="merchantTable" :search-form="realSearchForm" :table-params="tableParams" :get-list-api="getListApi"
ref="merchantTable" :before-search-fn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
:search-form="realSearchForm"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"
>
</d2-table> </d2-table>
</div> </div>
</d2-dialog> </d2-dialog>
...@@ -77,7 +59,7 @@ export default { ...@@ -77,7 +59,7 @@ export default {
} }
} }
}, },
mounted() {}, mounted() { },
methods: { methods: {
recoverySelection(list) { recoverySelection(list) {
var exitIds = this.selectedRecord.map((item) => +item.merchantId) var exitIds = this.selectedRecord.map((item) => +item.merchantId)
......
<!-- 关联门店弹窗 --> <!-- 关联门店弹窗 -->
<template> <template>
<d2-dialog <d2-dialog :title="title" :isShowFooter="false" :noCancel="true" :is-visible.sync="relateStoreVisible" width="50%"
:title="title" btn-ok-label="确定" @confirmDialog="handleRelateStoreConfirm" @closeDialog="handleRelateStoreClose"
:isShowFooter="false" class="relateStore">
:noCancel="true"
:is-visible.sync="relateStoreVisible"
width="50%"
btn-ok-label="确定"
@confirmDialog="handleRelateStoreConfirm"
@closeDialog="handleRelateStoreClose"
class="relateStore"
>
<slot /> <slot />
<el-row class="tableCon"> <el-row class="tableCon">
<div class="tableBox"> <div class="tableBox">
<!-- height="300px" --> <!-- height="300px" -->
<el-table <el-table ref="seletingTable" :data="selectingData" class="table" border
ref="seletingTable" v-loading="$store.state.d2admin.loading.value">
:data="selectingData"
class="table"
border
v-loading="$store.state.d2admin.loading.value"
>
<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">{{
(pageNum - 1) * pageSize + scope.$index + 1 (pageNum - 1) * pageSize + scope.$index + 1
}}</template> }}</template>
</el-table-column> </el-table-column>
<!-- @select="handleChange"
@select-all="handleAll" -->
<!-- <el-table-column type="selection" width="55" align="center" /> -->
<!-- <el-table-column prop="merchantName" label="门店名称" align="center">
</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="phoneNumber" label="手机号" align="center"> <el-table-column prop="staffPhone" label="手机号" align="center">
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination small background @current-change="handleCurrentChange" :current-page.sync="pageNum"
small :page-size="pageSize" layout="total, prev, pager, next" :total="total" />
background
@current-change="handleCurrentChange"
:current-page.sync="pageNum"
:page-size="pageSize"
layout="total, prev, pager, next"
:total="total"
/>
</div> </div>
</el-row> </el-row>
</d2-dialog> </d2-dialog>
...@@ -76,7 +51,7 @@ export default { ...@@ -76,7 +51,7 @@ export default {
}, },
storeApi: { storeApi: {
type: Function, type: Function,
default: () => {} default: () => { }
}, },
storeSelected: { storeSelected: {
type: Array, type: Array,
...@@ -84,7 +59,7 @@ export default { ...@@ -84,7 +59,7 @@ export default {
}, },
storeSearchForm: { storeSearchForm: {
type: Object, type: Object,
default: () => {} default: () => { }
}, },
merchantIds: { merchantIds: {
type: Array, type: Array,
...@@ -107,12 +82,6 @@ export default { ...@@ -107,12 +82,6 @@ export default {
}) })
}, },
getSelectingList() { getSelectingList() {
const _storeSearchForm = this.storeSearchForm
// 会员权益/积分商城获取账户中心所有门店 接口不同 接口新增查询参数merchantName 不需单独处理
// if ([0, 4].includes(this.selectedScene)) {
// // 会员权益,积分商城场景查询门店名称参数
// _storeSearchForm.merchantIdName = _storeSearchForm.merchantName // 账户中心所有门店接口查询条件
// }
console.log(this.storeSearchForm, "this.storeSearchForm") console.log(this.storeSearchForm, "this.storeSearchForm")
this.storeApi({ this.storeApi({
...this.storeSearchForm, ...this.storeSearchForm,
...@@ -184,24 +153,30 @@ export default { ...@@ -184,24 +153,30 @@ export default {
margin: 0 auto 20px !important; margin: 0 auto 20px !important;
width: 98%; width: 98%;
} }
.relateStore .tableCon { .relateStore .tableCon {
margin-top: 20px; margin-top: 20px;
display: flex; display: flex;
.tableBox { .tableBox {
flex: 1; flex: 1;
} }
} }
.service-store .relateStore .el-table .cell, .service-store .relateStore .el-table .cell,
.d2-form .relateStore .el-table .cell { .d2-form .relateStore .el-table .cell {
line-height: 26px !important; line-height: 26px !important;
} }
.service-store .relateStore .el-table--medium td, .service-store .relateStore .el-table--medium td,
.d2-form .relateStore .el-table--medium td { .d2-form .relateStore .el-table--medium td {
padding: 6px 8px !important; padding: 6px 8px !important;
} }
.relateStore .red { .relateStore .red {
color: red; color: red;
} }
.relateStore .tip-icon { .relateStore .tip-icon {
position: absolute; position: absolute;
display: inline-block; display: inline-block;
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-09-02 16:06:04 * @LastEditTime: 2024-09-02 16:06:04
*/ */
// 内容类型 // 内容类型
export const CONTENT_TYPE_OPTIONS = [ export const CONTENT_TYPE_OPTIONS = [
{ {
...@@ -104,3 +105,75 @@ export const STATUS_ENUM = { ...@@ -104,3 +105,75 @@ export const STATUS_ENUM = {
color: "#EB4E4E" color: "#EB4E4E"
} }
} }
// 学习进度 (1未学习 2未完成 3待考核 4未通过 5已完成)
export const LEARN_PROGRESS_OPTIONS = [
{
id: 1,
label: "未学习",
backgroundColor: "#EB4E4E"
},
{
id: 2,
label: "未完成",
backgroundColor: "#E5E5E5"
},
{
id: 3,
label: "待考核",
backgroundColor: "#FDB757"
},
{
id: 4,
label: "未通过",
backgroundColor: "#EB4E4E"
},
{
id: 5,
label: "已完成",
backgroundColor: "#2CCA74"
}
]
// 任务状态( 0:未开始 1:进行中 2:已结束)
export const TASK_STATUS_OPTIONS = [
{
id: 0,
label: "未开始",
backgroundColor: "#EB4E4E"
},
{
id: 1,
label: "进行中",
backgroundColor: "#FDB757"
},
{
id: 2,
label: "已结束",
backgroundColor: "#8C8C8C"
}
]
// 处罚
export const PUNISH_OPTIONS = [
{
label: "不处罚",
id: "0",
backgroundColor: "#8C8C8C"
},
{
label: "未触发",
id: "1",
backgroundColor: "##FDB757"
},
{
label: "处罚中",
id: "2",
backgroundColor: "#EB4E4E"
},
{
label: "已结束",
id: "3",
backgroundColor: "#8C8C8C"
}
]
// 学习进度 (1未学习 2未完成 3待考核 4未通过 5已完成)
// 完成标准(0无 1学习+考核)
<!-- 规则配置 -->
<template> <template>
<d2-container class="edit-content"> <d2-container class="edit-content">
<div class="content-form"> <div class="content-form">
...@@ -131,8 +130,8 @@ ...@@ -131,8 +130,8 @@
</el-form-item> </el-form-item>
<el-form-item v-if="formData.showChannel == 3" prop="sceneMarketTagList" label="内容标签:" label-width="120px" <el-form-item v-if="formData.showChannel == 3" prop="sceneMarketTagList" label="内容标签:" label-width="120px"
:style="{ 'margin-bottom': '22px' }"> :style="{ 'margin-bottom': '22px' }">
<el-select v-model="formData.sceneMarketTagList" value-key="id" filterable @change="sceneMarketTagChange" multiple <el-select v-model="formData.sceneMarketTagList" value-key="id" filterable @change="sceneMarketTagChange"
placeholder="请选择" style="width: 430px"> multiple placeholder="请选择" style="width: 430px">
<el-option v-for="item in sceneTagsList" :key="item.id" :label="item.tagName" :value="item" <el-option v-for="item in sceneTagsList" :key="item.id" :label="item.tagName" :value="item"
:disabled="formData.sceneMarketTagList.length >= 2 && !formData.sceneMarketTagList.some(selected => selected.id === item.id)"> :disabled="formData.sceneMarketTagList.length >= 2 && !formData.sceneMarketTagList.some(selected => selected.id === item.id)">
</el-option> </el-option>
...@@ -1739,7 +1738,7 @@ export default { ...@@ -1739,7 +1738,7 @@ export default {
const res = await findAllTags() const res = await findAllTags()
this.sceneTagsList = res this.sceneTagsList = res
if (sceneMarketTag) { if (sceneMarketTag) {
this.formData.sceneMarketTagList = sceneMarketTag.split(',').map(item => ({id: parseInt(item)})) this.formData.sceneMarketTagList = sceneMarketTag.split(',').map(item => ({ id: parseInt(item) }))
console.log(this.formData) console.log(this.formData)
} }
}, },
......
<!-- 规则配置 -->
<template> <template>
<d2-container class="container"> <d2-container class="container">
<div class="header" slot="header"> <div class="header" slot="header">
<d2-search <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData">
ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData">
<div slot="customerLabel"> <div slot="customerLabel">
<el-select v-model="searchForm.customerLabel" clearable value-key="labelId" @focus="focus('tag')" placeholder="请选择"> <el-select v-model="searchForm.customerLabel" clearable value-key="labelId" @focus="focus('tag')"
<el-option-group placeholder="请选择">
v-for="group in tagList" <el-option-group v-for="group in tagList" :key="group.labelId" :label="group.labelName">
:key="group.labelId" <el-option v-for="item in group.nextList" :key="item.labelId" :label="item.labelName" :value="item">
:label="group.labelName">
<el-option
v-for="item in group.nextList"
:key="item.labelId"
:label="item.labelName"
:value="item">
</el-option> </el-option>
</el-option-group> </el-option-group>
</el-select> </el-select>
</div> </div>
<div slot="receptionScene"> <div slot="receptionScene">
<el-select v-model="searchForm.receptionScene" clearable value-key="id" @focus="focus('reception')" placeholder="请选择"> <el-select v-model="searchForm.receptionScene" clearable value-key="id" @focus="focus('reception')"
<el-option placeholder="请选择">
v-for="item in receptionSceneList" <el-option v-for="item in receptionSceneList" :key="item.id" :label="item.receptionSceneName" :value="item">
:key="item.id"
:label="item.receptionSceneName"
:value="item">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
...@@ -56,21 +42,14 @@ ...@@ -56,21 +42,14 @@
</el-button> </el-button>
</span> --> </span> -->
</d2-table-header> </d2-table-header>
<d2-table <d2-table ref="contentTable" :search-form="searchFormSearch" :table-params="tableParams"
ref="contentTable" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
:search-form="searchFormSearch"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<div slot="merchantSlot" slot-scope="scope"> <div slot="merchantSlot" slot-scope="scope">
<div v-if="scope.scope.showMerchant == 0">全部门店</div> <div v-if="scope.scope.showMerchant == 0">全部门店</div>
<div v-else-if="scope.scope.showMerchant == null">-</div> <div v-else-if="scope.scope.showMerchant == null">-</div>
<el-popover v-else placement="top" width="245" trigger="hover"> <el-popover v-else placement="top" width="245" trigger="hover">
<div class="merchant-wrap"> <div class="merchant-wrap">
<div <div class="merchant-name" v-for="(item, index) in scope.scope.assignInfos || []" :key="index">
class="merchant-name"
v-for="(item, index) in scope.scope.assignInfos || []"
:key="index">
{{ item.assignName }} {{ item.assignName }}
</div> </div>
</div> </div>
...@@ -82,11 +61,9 @@ ...@@ -82,11 +61,9 @@
</el-popover> </el-popover>
</div> </div>
<div slot="statusSlot" slot-scope="scope"> <div slot="statusSlot" slot-scope="scope">
<span <span :style="{
:style="{
'background-color': statusEnum[scope.scope.status].color 'background-color': statusEnum[scope.scope.status].color
}" }" class="circle"></span>
class="circle"></span>
<span>{{ statusEnum[scope.scope.status].name }}</span> <span>{{ statusEnum[scope.scope.status].name }}</span>
</div> </div>
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button" slot-scope="scope">
...@@ -121,29 +98,31 @@ ...@@ -121,29 +98,31 @@
</el-button> </el-button>
</template> --> </template> -->
<!-- 查看 --> <!-- 查看 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9130102']" /> <auth-button :data="scope.scope" :show-btn-ids="['9130102']" />
</span> </span>
<!-- 编辑 --> <!-- 编辑 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9130106']" /> <auth-button :data="scope.scope" :show-btn-ids="['9130106']" />
</span> </span>
<!-- 删除 --> <!-- 删除 -->
<span v-if="scope.scope.status == 0" style="margin-right: 10px;"> <span v-if="scope.scope.status == 0" style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9130107']" /> <auth-button :data="scope.scope" :show-btn-ids="['9130107']" />
</span> </span>
<!-- --> <!-- -->
<template v-else> <template v-else>
<!-- 停用/启用 --> <!-- 停用/启用 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9130108']" /> <auth-button :data="scope.scope" :show-btn-ids="['9130108']" />
</span> </span>
<!-- 统计 --> <!-- 统计 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px">
<auth-button :data="scope.scope" :show-btn-ids="['9130103']" /> <auth-button :data="scope.scope" :show-btn-ids="['9130103']" />
</span> </span>
</template> </template>
<el-button v-show="scope.scope.showChannel == 2" type="text" size="mini" @click="handleClone(scope.scope)">克隆</el-button>
<el-button v-show="scope.scope.showChannel == 2" type="text" size="mini"
@click="handleClone(scope.scope)">克隆</el-button>
</div> </div>
</d2-table> </d2-table>
</div> </div>
...@@ -179,7 +158,7 @@ export default { ...@@ -179,7 +158,7 @@ export default {
showChannel: "", showChannel: "",
merchantId: "", merchantId: "",
status: "", status: "",
meal: '' meal: ""
}, },
showFormData: [ showFormData: [
{ {
...@@ -208,7 +187,7 @@ export default { ...@@ -208,7 +187,7 @@ export default {
optionsName: "sceneOptions", optionsName: "sceneOptions",
changeAttr: (value, targetItem) => { changeAttr: (value, targetItem) => {
console.log(value) console.log(value)
if (value !== '') { if (value !== "") {
this.getLabelList(value) this.getLabelList(value)
this.receptionList(value) this.receptionList(value)
} else { } else {
...@@ -280,7 +259,7 @@ export default { ...@@ -280,7 +259,7 @@ export default {
{ {
label: "标题", label: "标题",
prop: "title", prop: "title",
minWidth:120 minWidth: 120
}, },
{ {
label: "类型", label: "类型",
...@@ -328,7 +307,12 @@ export default { ...@@ -328,7 +307,12 @@ export default {
prop: "customerLabelInfoList", prop: "customerLabelInfoList",
minWidth: "300px", minWidth: "300px",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.customerLabelInfoList && cellValue.customerLabelInfoList.length > 0 ? cellValue.customerLabelInfoList.map(item => item.labelName).join(",") : '-' return cellValue.customerLabelInfoList &&
cellValue.customerLabelInfoList.length > 0
? cellValue.customerLabelInfoList
.map((item) => item.labelName)
.join(",")
: "-"
} }
}, },
{ {
...@@ -336,15 +320,25 @@ export default { ...@@ -336,15 +320,25 @@ export default {
prop: "productPackageInfoList", prop: "productPackageInfoList",
width: "200px", width: "200px",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.productPackageInfoList && cellValue.productPackageInfoList.length > 0 ? cellValue.productPackageInfoList.map(item => item.upgradeGoodsName).join(",") : '-' return cellValue.productPackageInfoList &&
cellValue.productPackageInfoList.length > 0
? cellValue.productPackageInfoList
.map((item) => item.upgradeGoodsName)
.join(",")
: "-"
} }
}, },
{ {
label: '接待场景', label: "接待场景",
prop: "receptionSceneInfoList", prop: "receptionSceneInfoList",
width: '120px', width: "120px",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.receptionSceneInfoList && cellValue.receptionSceneInfoList.length > 0 ? cellValue.receptionSceneInfoList.map(item => item.receptionSceneName).join(",") : '-' return cellValue.receptionSceneInfoList &&
cellValue.receptionSceneInfoList.length > 0
? cellValue.receptionSceneInfoList
.map((item) => item.receptionSceneName)
.join(",")
: "-"
} }
}, },
{ {
...@@ -378,7 +372,7 @@ export default { ...@@ -378,7 +372,7 @@ export default {
loading: false, loading: false,
mealList: [ mealList: [
{ {
upgradeGoodsName: 'test1', upgradeGoodsName: "test1",
id: 1 id: 1
} }
], ],
...@@ -454,19 +448,23 @@ export default { ...@@ -454,19 +448,23 @@ export default {
// params.meal = params.meal.join(',') // params.meal = params.meal.join(',')
// } // }
if (params.customerLabel) { if (params.customerLabel) {
params.customerLabelList = [{ params.customerLabelList = [
{
labelId: params.customerLabel.labelId, labelId: params.customerLabel.labelId,
labelName: params.customerLabel.labelName, labelName: params.customerLabel.labelName,
level: 2, level: 2,
parentId: params.customerLabel.parentId parentId: params.customerLabel.parentId
}] }
]
delete params.customerLabel delete params.customerLabel
} }
if (params.receptionScene) { if (params.receptionScene) {
params.receptionSceneInfoList = [{ params.receptionSceneInfoList = [
{
receptionSceneId: params.receptionScene.id, receptionSceneId: params.receptionScene.id,
receptionSceneName: params.receptionScene.receptionSceneName receptionSceneName: params.receptionScene.receptionSceneName
}] }
]
delete params.receptionScene delete params.receptionScene
} }
return params return params
...@@ -491,11 +489,11 @@ export default { ...@@ -491,11 +489,11 @@ export default {
}) })
}, },
goStatisticsPage(row) { goStatisticsPage(row) {
console.log(row)
this.$router.push({ this.$router.push({
name: "statisticsList", name: "statisticsList",
query: { query: {
id: row.id id: row.id
// title: row.title
} }
}) })
}, },
...@@ -593,7 +591,7 @@ export default { ...@@ -593,7 +591,7 @@ export default {
}, },
focus(name) { focus(name) {
console.log(this.searchForm.scene) console.log(this.searchForm.scene)
if (this.searchForm.scene === '') { if (this.searchForm.scene === "") {
return this.$message.error(`请先选择业务场景`) return this.$message.error(`请先选择业务场景`)
} }
// if (name == 'tag') { // if (name == 'tag') {
...@@ -617,6 +615,7 @@ export default { ...@@ -617,6 +615,7 @@ export default {
.merchant-num { .merchant-num {
color: #185efe; color: #185efe;
} }
.circle { .circle {
display: inline-block; display: inline-block;
border-radius: 50%; border-radius: 50%;
...@@ -626,6 +625,7 @@ export default { ...@@ -626,6 +625,7 @@ export default {
margin-right: 6px; margin-right: 6px;
vertical-align: middle; vertical-align: middle;
} }
.merchant-wrap { .merchant-wrap {
max-height: 400px; max-height: 400px;
overflow-y: auto; overflow-y: auto;
......
<!-- 关联门店弹窗 -->
<template>
<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-input v-model.trim="storeSearchForm.courseName" placeholder="课程名称" max-length="20"
@keydown.native="handleStoreInput" clearable />
</el-form-item>
<el-button type="primary" @click="handleCurrentChange(1)">搜索</el-button>
</el-form>
<el-row class="tableCon">
<div class="tableBox">
<el-table ref="seletingTable" :data="selectingData" height="464px" class="table" border @select="handleChange"
@select-all="handleAll">
<el-table-column type="selection" width="55" align="center" />
<el-table-column prop="label" label="课程名称" align="center">
<template slot-scope="scope">
{{ scope.row.catalogName + ':' + scope.row.courseTitle }}
</template>
</el-table-column>
</el-table>
<el-pagination small background @current-change="handleCurrentChange" :current-page.sync="currentPage"
:page-size="pageSize" layout="total, prev, pager, next" :total="total" />
</div>
<el-table class="tableBox table" :data="selectedData" border height="464px">
<el-table-column prop="merchantName" label="课程名称" align="center">
<template slot-scope="scope">
{{ scope.row.catalogName + ':' + scope.row.courseTitle }}
</template>
</el-table-column>
<el-table-column label="删除" align="center" width="50px">
<template slot-scope="scope">
<el-button class="el-icon-delete" @click="handleDelete(scope.row)" type="text" />
</template>
</el-table-column>
</el-table>
</el-row>
</d2-dialog>
</template>
<script>
import {
findStaffTagCoursePage
} from "@api/contentManager"
import { deepClone } from "@/common/util"
// import { getBrandList } from "@api/contentManager"
export default {
name: "RelateStoreDialog",
data() {
return {
selectedData: [],
selectingData: [],
// 分页
total: 0,
currentPage: 1,
pageSize: 20,
storeSearchForm: {
courseName: ''
}
}
},
props: {
relateStoreVisible: {
type: Boolean,
default: false
},
storeSelected: {
type: Array,
default: () => []
}
},
mounted() {
this.selectedData = deepClone(this.storeSelected)
this.getSelectingList()
},
methods: {
recoverySelection() {
var exitIds = this.selectedData.map((item) => item.courseId)
this.selectingData.forEach((item) => {
exitIds.includes(item.courseId) &&
this.$refs.seletingTable &&
this.$refs.seletingTable.toggleRowSelection(item, true)
})
},
getSelectingList() {
findStaffTagCoursePage({
...this.storeSearchForm,
currentPage: this.currentPage,
pageSize: this.pageSize,
isFlag: true
}).then((res) => {
this.selectingData = res.list
this.total = res.total
this.$nextTick(() => {
this.recoverySelection()
})
})
},
handleChange(selection, row) {
var addOrDelete = !!selection.find((item) => item.courseId === row.courseId)
addOrDelete
? this.selectedData.push(row)
: (this.selectedData = this.selectedData.filter(
(item) => item.courseId !== row.courseId
))
},
handleAll(selection) {
this.selectingData.forEach((item) => {
var isExit = this.selectedData.findIndex(
(subItem) => subItem.courseId === item.courseId
)
if (selection.length && isExit === -1) {
this.selectedData.push(item)
} else if (!selection.length && isExit !== -1) {
this.selectedData.splice(isExit, 1)
}
})
},
handleDelete(row) {
this.selectedData = this.selectedData.filter((item) => item.courseId !== row.courseId)
const obj = this.selectingData.find((v) => v.courseId == row.courseId)
this.$refs.seletingTable.toggleRowSelection(obj)
},
handleCurrentChange(val) {
this.currentPage = val
this.getSelectingList()
},
handleRelateStoreConfirm() {
this.$emit("handleRelateStoreClose")
this.$emit("handleRelateStoreConfirm", this.selectedData)
},
handleRelateStoreClose() {
this.$emit("handleRelateStoreClose")
}
}
}
</script>
<style lang="scss" scoped>
.table {
margin: 0 auto 20px !important;
width: 95%;
}
.tableCon {
margin-top: 20px;
display: flex;
.tableBox {
flex: 1;
}
}
.service-store .relateStore .el-table .cell,
.d2-form .relateStore .el-table .cell {
line-height: 26px !important;
}
.service-store .relateStore .el-table--medium td,
.d2-form .relateStore .el-table--medium td {
padding: 6px 8px !important;
}
.relateStore .red {
color: red;
}
.relateStore .tip-icon {
position: absolute;
display: inline-block;
height: 10px;
width: 10px;
line-height: 10px;
color: #ffffff;
background-color: red;
border: 1px solid red;
border-radius: 50%;
cursor: pointer;
font-size: 6px;
margin-left: 2px;
}
</style>
<!-- 标签课程 -->
<template>
<d2-container class="customer-tags">
<div class="header" slot="header">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="'100px'"
:form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button size="small" type="primary" @click="handleSearch">
查询
</el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<el-button size="small" type="primary" @click="addLabelCourse">
新增课程标签
</el-button>
</d2-table-header>
<d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<template slot="tagName" scope="scope">
<div v-for="(item, index) in scope.scope.tagList.split(',')" :key="index">
{{ item }}
</div>
</template>
<template slot="courseList" scope="scope">
<div v-for="(item, index) in scope.scope.tagList.split(',')" :key="index">
{{ item }}
</div>
</template>
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
<labelCourseDialog :recordInfo="recordInfo" v-if="dialogVisible" :dialogVisible.sync="dialogVisible"
@confirmDialogFn="confirmDialogFn">
</labelCourseDialog>
</d2-container>
</template>
<script type="text/ecmascript-6">
import labelCourseDialog from "./labelCourseDialog"
import { Util, deepClone } from "@/common/util"
import {
findStaffTagCourseRelationPage,
deletecourserelation,
updatecourserelation,
savecourserelation
} from "@api/contentManager"
import noDataImg from "@/assets/empty.png"
import dayjs from "dayjs"
export default {
name: "labelCourse",
components: {
labelCourseDialog
},
data() {
return {
recordInfo: null,
dialogVisible: false,
noDataImg,
classifyVisible: false,
searchForm: {
courseName: "",
tagName: ""
// bussinessScene: "",
// merchantId: "",
// scriptMatching: "",
// receptionist: "",
// solutionBrowsing: "",
// searchdate: [new Date(), new Date()]
},
searchFormSearch: {},
currentItem: {},
showFormData: [
{
label: "标签名",
name: "tagName",
type: "input",
isClear: true,
maxlength: 50
},
{
label: "课程名称",
name: "courseName",
type: "input",
isClear: true,
maxlength: 50
},
],
getListApi: findStaffTagCourseRelationPage,
// 表格参数
tableParams: {
listName: "list",
tableOption: {
width: "100"
},
tableColumns: [
{
label: "标签",
prop: "tagList",
minWidth: 260,
addHtml: "tagName",
// formatter: (cellValue) => {
// if (cellValue.tagList) {
// // 使用逗号分割,然后用换行符连接
// return cellValue.tagList.split(',').join('</br>')
// }
// }
},
{
label: "课程列表",
minWidth: 144,
prop: "courseList"
},
// {
// label: "销售姓名",
// prop: "receptionist"
// },
// {
// label: "客户姓名",
// prop: "ownerName",
// minWidth: 140
// },
// {
// label: "品牌车型",
// prop: "brandModel",
// minWidth: 140
// },
// {
// label: "接待场景",
// prop: "receptionSceneName"
// },
// {
// label: "话术匹配",
// formatter: (cellValue) => {
// return cellValue.scriptMatchingCount || 0
// }
// },
// {
// label: "方案浏览",
// formatter: (cellValue) => {
// return cellValue.solutionBrowsingCount || 0
// }
// },
// {
// label: "客户标签",
// minWidth: 270,
// addHtml: "customerTagName"
// },
{
label: "创建时间",
formatter: (cellValue) => {
return cellValue.createdDate
? Util.dateFormate(cellValue.createdDate, "YYYY-MM-DD HH:mm:ss")
: "-"
},
minWidth: 180
},
{
label: "最后更新时间",
formatter: (cellValue) => {
return cellValue.updatedDate
? Util.dateFormate(cellValue.updatedDate, "YYYY-MM-DD HH:mm:ss")
: "-"
},
minWidth: 180
}
]
}
}
},
created() { },
mounted() {
// this.getCustomerFileStatic()
},
methods: {
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()
})
},
handleSearch() {
this.page = this.$options.data.call(this).page
this.$refs.table.refreshTable(true, true)
// this.getCustomerFileStatic()
},
handleReset() {
this.searchForm = this.$options.data.call(this).searchForm
this.handleSearch()
},
addLabelCourse() {
this.recordInfo = null
this.dialogVisible = true
},
customerTagName(list) {
let tag = []
list.map((e) => {
tag.push(e.labelName)
})
return tag.join("|")
},
handleEdit(row) {
console.log(row)
this.recordInfo = row
this.dialogVisible = true
},
confirmDialogFn(e) {
this.handleSearch()
},
// 删除
handleDelete(row) {
this.$confirm('是否确认删除该课程?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'error'
}).then(() => {
deletecourserelation({ id: row.id }).then(res => {
this.notice.okTips()
this.$refs.table.refreshTable()
})
}).catch(err => {
console.log(err)
})
},
// jumpDetail(row) {
// this.$router.push({
// name: "customerFileDetails",
// query: {
// id: row.id,
// receptionSceneName: row.receptionSceneName,
// receptionScene: row.receptionScene,
// scene: row.bussinessScene
// }
// })
// }
}
}
</script>
<style scoped lang="scss">
.emptyBg {
display: flex;
flex-direction: column;
align-items: center;
padding: 120px 0;
.noDataImg {
width: 64px;
height: 40px;
}
}
.error-input {
::v-deep.el-input__inner {
border-color: red;
}
}
.tag-item {
display: flex;
align-items: center;
padding: 0 10px;
justify-content: center;
.tag {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.more-info {
white-space: nowrap;
color: #2a58ad;
cursor: pointer;
margin-left: 2px;
}
}
::v-deep.tags-popover {
max-width: 50vw;
}
.static-box {
display: flex;
gap: 0 16px;
margin-bottom: 12px;
.static-item {
flex: 1;
flex-shrink: 0;
height: 82px;
background: #f8faff;
border-radius: 5px;
box-sizing: border-box;
padding: 16px 20px;
.static-title {
font-size: 14px;
color: #333333;
line-height: 20px;
margin-bottom: 4px;
}
.static-value {
display: flex;
font-weight: 700;
font-size: 24px;
line-height: 30px;
align-items: baseline;
::v-deep.static-unit {
font-weight: 600;
font-size: 14px;
margin: 0 2px;
}
}
}
}
</style>
<template>
<d2-dialog :is-visible="dialogVisible" class="accountDailog" :title="recordInfo ? '编辑课程标签' : '新建课程标签'" width="720px"
@confirmDialog="handleAddConfirm" @closeDialog="handleClose">
<div class="publish-info">
<el-form :model="formData" :rules="rules" ref="channelForm">
<el-form-item label-width="120px" label="员工标签:" prop="tagIds">
<el-button class="radio-box" size="small" @click="selectTagDialog('findAllLabel')">选择标签</el-button>
<div class="customer-box m-t-10">
<div class="el-input-tag input-tag-wrapper">
<div v-for="(subItem, subIdx) in formData.tagIds" :key="subIdx">
<el-tag v-for="(k, n) in subItem.labelList" :key="n" class="customer-tag" size="small" type="info"
:closable="true" :disable-transitions="false" @close="handleDelete(n, subIdx, 'tagIds')">
<span>{{ k.groupAttName }}:{{ k.groupName }}:{{ k.tagName }}</span>
</el-tag>
</div>
</div>
</div>
</el-form-item>
<el-form-item label-width="120px" label="课程标签:" prop="courseIds">
<el-button class="radio-box" size="small" @click="selectTagCourseDialog">选择课程</el-button>
<div class="customer-box m-t-10">
<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')">
<span>{{ k.catalogName + ":" + k.courseTitle }}</span>
</el-tag>
</div>
<!-- </div> -->
</div>
</el-form-item>
</el-form>
</div>
<selectTag ref="selectTagForm" :relateStoreVisible="selectTagVisible" @tagSelected="handleRelateStoreConfirm">
</selectTag>
<findStaffTagCourseDialog :storeSelected="formData.courseIds" v-if="findStaffTagCourseVisible"
:relateStoreVisible="findStaffTagCourseVisible" @handleRelateStoreConfirm="handleRelateConfirm"
@handleRelateStoreClose="findStaffTagCourseVisible = false">
</findStaffTagCourseDialog>
</d2-dialog>
</template>
<script>
import { savecourserelation, updatecourserelation, stafftagcourseFind } from "@api/contentManager"
import findStaffTagCourseDialog from "./findStaffTagCourseDialog"
import selectTag from "./selectTag"
import { deepClone } from "@/common/util"
export default {
name: "listOfPenaltiesDialog",
components: {
selectTag,
findStaffTagCourseDialog
},
props: {
dialogVisible: {
type: Boolean,
default: false
},
recordInfo: {
type: Object,
default: null
}
},
computed: {
show: {
get() {
return this.dialogVisible
},
set(val) {
this.$emit("update:dialogVisible", val)
}
}
},
data() {
return {
savecourserelation,
updatecourserelation,
tagId: "",
findStaffTagCourseVisible: false,
selectTagVisible: true,
customerLoading: false,
formData: {
// customerDataList: [],
tagIds: [],
courseIds: []
},
rules: {
tagIds: [
{ required: true, message: "请选择员工标签对象", trigger: "change" }
],
courseIds: [
{ required: true, message: "请选择课程列表对象", trigger: "change" }
]
}
}
},
mounted() {
console.log(this.recordInfo)
if (this.recordInfo) {
this.tagId = this.recordInfo.id
this.getStafftagcourseFind()
}
},
methods: {
getStafftagcourseFind() {
stafftagcourseFind({
id: this.tagId,
}).then(res => {
console.log(res)
this.formData.tagIds = res.staffTagGroups.map((item) => {
return {
labelGroup: { id: item.groupAtt, name: item.groupAttName },
labelList: item.staffTagDefinitions.map((el) => {
return {
id: el.id,
name: el.labelName,
...el
}
}),
labelType: item.groupType,
checked: false,
tagChecked: [],
isIndeterminate: false,
checkAll: false
}
})
this.formData.courseIds = res.staffTagCourseRelationDetails
})
},
selectTagDialog(type) {
this.$refs.selectTagForm.init(
{
type,
item: JSON.parse(JSON.stringify(this.formData.tagIds))
}
)
},
selectTagCourseDialog(type) {
this.findStaffTagCourseVisible = true
},
handleRelateConfirm(obj) {
// console.log(obj, 'obj')
this.formData.courseIds = obj
this.$refs.channelForm.validateField('courseIds')
},
handleRelateStoreConfirm(obj) {
this.formData.tagIds = obj
this.$refs.channelForm.validateField('tagIds')
},
handleDeleteCustomer(idx, name) {
this.formData[name].splice(idx, 1)
},
handleDelete(idx, pIdx) {
this.formData.tagIds[pIdx].labelList.splice(idx, 1)
},
handleAddConfirm() {
this.$refs.channelForm.validate(valid => {
console.log(valid, 'valid')
if (valid) {
const params = {}
console.log(this.formData)
params.tagIds = []
this.formData.tagIds.forEach(item => {
item.ids = item.labelList.forEach(el => {
params.tagIds.push(el.id)
})
})
params.courseIds = this.formData.courseIds.map(item => item.courseId)
params.id = this.tagId
const apiName = this.tagId ? 'updatecourserelation' : 'savecourserelation';
this[apiName](params).then(res => {
console.log(res)
this.handleClose()
this.$message.success('保存成功')
this.$emit('confirmDialogFn')
}).catch((err) => {
console.log(err)
})
}
})
},
handleClose() {
// this.$emit("closeDialogFn")
this.show = false
}
}
}
</script>
<style scoped lang="scss">
.publish-info {
// padding: 16px 20px;
::v-deep {
.cell {
padding-left: 0;
padding-right: 0;
}
}
}
.emp-table-box {
// width: 567px;
}
.customer-box {
width: 540px;
height: 150px;
background-color: #fff;
background-image: none;
border-radius: 4px;
border: 1px solid #e5e5e5;
.customer-title {
box-sizing: border-box;
height: 39px;
line-height: 39px;
padding: 0 10px;
// border-bottom: 1px solid #dcdfe6;
}
.input-tag-wrapper {
max-height: 150px;
overflow: auto;
position: relative;
font-size: 14px;
padding: 0 10px 10px;
box-sizing: border-box;
color: #666;
display: inline-block;
outline: none;
flex-wrap: wrap;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
display: flex;
align-items: center;
font-size: 14px;
.el-tag.el-tag--info .el-tag__close {
color: #909399 !important;
background: transparent !important;
}
.customer-tag {
margin: 4px;
}
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
}
</style>
<template>
<d2-dialog :is-visible="show" class="accountDailog" title="学习任务情况" btnOkLabel="确认" :noCancel="true" width="720px"
@confirmDialog="handleAddConfirm" @closeDialog="handleClose">
<div class="d2-container-content">
<!-- :before-search-fn="beforeSearchFn" -->
<d2-table ref="recordTable" :search-form="searchFormSearch" :get-list-api="getListApi"
:table-params="tableParams">
<div slot="other" slot-scope="scope">
<div class="online-status">
<span class="dot"
:style="{ background: LEARN_PROGRESS_OPTIONS.find(item => item.id === scope.scope.status).backgroundColor }"></span>
{{LEARN_PROGRESS_OPTIONS.find(item => item.id === scope.scope.status).label}}
</div>
</div>
</d2-table>
</div>
</d2-dialog>
</template>
<script>
import { deepClone } from "@/common/util"
import { LEARN_PROGRESS_OPTIONS } from "../constant"
import { coursePage, contentManagerTaskPage, contentManagerTaskCourseList } from "@/api/contentManager"
export default {
name: "listOfPenaltiesDialog",
props: {
detailInfo: {
type: Object,
require: true
},
dialogVisible: {
type: Boolean,
default: false
}
},
data() {
return {
LEARN_PROGRESS_OPTIONS,
getListApi: coursePage,
searchFormSearch: {
staffStudyId: '',
},
tableData: [],
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
// singleSelectUniqueKey: 'id',
tableOption: false,
tableColumns: [
// {
// label: "序号",
// addHtml: "num",
// width: '100'
// },
{
label: '课程名称',
prop: 'courseName',
},
{
label: "学习进度",
prop: "other",
addHtml: "other",
width: '150'
},
]
},
// getListApi: getAllMerchantList,
}
},
computed: {
show: {
get() {
return this.dialogVisible
},
set(val) {
this.$emit("update:dialogVisible", val)
}
}
},
mounted() {
this.searchFormSearch.staffStudyId = this.detailInfo.id
// this.getList()
},
methods: {
handleAddConfirm() {
this.show = false
},
handleClose() {
// this.$emit("closeDialogFn")
this.show = false
}
}
}
</script>
<style scoped lang="scss">
.online-status {
display: flex;
justify-content: center;
align-items: center;
.dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 8px;
}
.gray {
background-color: #c5c5c5;
}
.orange {
background-color: #fdb757;
}
.blue {
background-color: #2a58ad;
}
}
</style>
<!-- 阅读统计 -->
<template>
<d2-container class="customer-tags">
<div class="header" slot="header">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="'100px'"
:form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button size="small" type="primary" @click="handleSearch">
查询
</el-button>
<el-button size="small" @click="handleReset"> 重置 </el-button>
</div>
</div>
<div class="d2-container-content">
<d2-table-header>
<el-button size="small" type="primary" @click="exportTable">
导出
</el-button>
</d2-table-header>
<d2-table ref="table" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<div slot="customerTagName" slot-scope="scope">
<span>{{ readType[scope.scope.readType] || '不强制' }}</span>
</div>
</d2-table>
</div>
</d2-container>
</template>
<script type="text/ecmascript-6">
import { mapActions, mapState } from 'vuex'
import { studyStaffPage, contentManagerTaskExport } from '@api/contentManager'
import { Util, deepClone } from "@/common/util"
import {
getCustomerFilePage,
exportCustomerFile,
getCustomerFileStatic
} from "@api/contentManager"
import noDataImg from "@/assets/empty.png"
import dayjs from "dayjs"
import { listShop4sByRef } from "@api/merchant"
export default {
name: "readStatistics",
data() {
return {
noDataImg,
classifyVisible: false,
searchForm: {
staffPhone: "",
staffName: "",
taskId: ''
},
readType: {
1: '首次强制',
2: '每天强制',
0: '不强制'
},
searchFormSearch: {},
currentItem: {},
showFormData: [
{
label: "员工姓名",
name: "staffName",
type: "input",
maxlength: "20",
isClear: true
},
{
label: "员工手机号",
name: "phoneNumber",
type: "input",
maxlength: "20",
isClear: true
}
],
getListApi: studyStaffPage,
// 表格参数
tableParams: {
listName: "list",
tableOption: false,
tableColumns: [
{
label: "员工姓名",
prop: "staffName",
},
{
label: "员工手机号",
minWidth: 144,
prop: "phoneNumber"
},
{
label: "发送时间",
formatter: (cellValue) => {
return cellValue.createdDate
? Util.dateFormate(cellValue.createdDate, "YYYY-MM-DD HH:mm:ss")
: "-"
},
minWidth: 180
},
{
label: "最后查看时间",
formatter: (cellValue) => {
return cellValue.latestReadTime
? Util.dateFormate(cellValue.latestReadTime, "YYYY-MM-DD HH:mm:ss")
: "-"
},
minWidth: 180
},
{
label: "强制阅读",
minWidth: 270,
addHtml: "customerTagName"
},
{
label: "查看次数",
minWidth: 270,
prop: "readCount"
},
]
},
staticData: {}
}
},
computed: {
routerInfo() {
return this.$route.query
},
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
})
},
created() { },
mounted() {
this.searchForm.taskId = this.routerInfo.id
// this.getServiceStore()
// this.getCustomerFileStatic()
},
methods: {
...mapActions('d2admin/user', ['actionSetDownloadList']),
beforeSearchFn(type = 1) {
return new Promise((resolve, reject) => {
this.searchForm.taskId = this.routerInfo.id
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()
})
},
handleSearch() {
this.page = this.$options.data.call(this).page
this.$refs.table.refreshTable(true, true)
// this.getCustomerFileStatic()
},
handleReset() {
this.searchForm = this.$options.data.call(this).searchForm
this.handleSearch()
},
async exportTable() {
var params = this.searchForm
params.method = 'dj.api.smartcarlife.contentManagerTask.study.staff.list.export'
const list = [
...this.dowloadList,
{
name: '阅读统计',
exportParam: JSON.stringify(params),
status: 'waiting',
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: 'dowloadList' })
// try {
// await this.beforeSearchFn()
// const res = await contentManagerTaskExport({
// ...this.searchFormSearch
// })
// console.log(res)
// if (res) window.open(res)
// } catch (error) {
// if (error) this.$message.error(error)
// }
},
customerTagName(list) {
let tag = []
list.map((e) => {
tag.push(e.labelName)
})
return tag.join("|")
},
getServiceStore() {
listShop4sByRef({}).then((res) => {
res ||= []
this.showFormData.forEach((item, index) => {
if (item.type === "select" && item.name == "merchantId") {
this.$set(this.showFormData[index], "optionList", [
{
merchantName: "全部",
merchantId: ""
},
...res
])
}
})
})
},
async getCustomerFileStatic() {
try {
await this.beforeSearchFn()
const res = await getCustomerFileStatic({
...this.searchFormSearch
})
console.log(res)
this.staticData = res || {}
} catch (error) {
if (error) this.$message.error(error)
}
},
jumpDetail(row) {
this.$router.push({
name: "customerFileDetails",
query: {
id: row.id,
receptionSceneName: row.receptionSceneName,
receptionScene: row.receptionScene,
scene: row.bussinessScene
}
})
}
}
}
</script>
<style scoped lang="scss">
.emptyBg {
display: flex;
flex-direction: column;
align-items: center;
padding: 120px 0;
.noDataImg {
width: 64px;
height: 40px;
}
}
.error-input {
::v-deep.el-input__inner {
border-color: red;
}
}
.tag-item {
display: flex;
align-items: center;
padding: 0 10px;
justify-content: center;
.tag {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.more-info {
white-space: nowrap;
color: #2a58ad;
cursor: pointer;
margin-left: 2px;
}
}
::v-deep.tags-popover {
max-width: 50vw;
}
.static-box {
display: flex;
gap: 0 16px;
margin-bottom: 12px;
.static-item {
flex: 1;
flex-shrink: 0;
height: 82px;
background: #f8faff;
border-radius: 5px;
box-sizing: border-box;
padding: 16px 20px;
.static-title {
font-size: 14px;
color: #333333;
line-height: 20px;
margin-bottom: 4px;
}
.static-value {
display: flex;
font-weight: 700;
font-size: 24px;
line-height: 30px;
align-items: baseline;
::v-deep.static-unit {
font-weight: 600;
font-size: 14px;
margin: 0 2px;
}
}
}
}
.online-status {
display: flex;
justify-content: center;
align-items: center;
.dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 8px;
}
.gray {
background-color: #c5c5c5;
}
.orange {
background-color: #fdb757;
}
.blue {
background-color: #2a58ad;
}
}
</style>
...@@ -5,13 +5,8 @@ ...@@ -5,13 +5,8 @@
<d2-container> <d2-container>
<!-- <div class="offline-account"> --> <!-- <div class="offline-account"> -->
<div class="header" slot="header" style="padding: 10px 20px"> <div class="header" slot="header" style="padding: 10px 20px">
<d2-search <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :label-width="labelWidth"
ref="showSearch" :form-data="showFormData" />
class="show-search"
:search-form="searchForm"
:label-width="labelWidth"
: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">
查询 查询
...@@ -25,30 +20,19 @@ ...@@ -25,30 +20,19 @@
<d2-table-header> <d2-table-header>
<auth-button category="Button" /> <auth-button category="Button" />
</d2-table-header> </d2-table-header>
<d2-table <d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch"
ref="recordTable" :table-params="tableParams" :before-search-fn="beforeSearchFn">
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
: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">
<auth-button :data="scope.scope" :show-btn-ids="['9130502']" /> <auth-button :data="scope.scope" :show-btn-ids="['9130502']" />
</span> </span>
<span <span style="margin-right: 10px" v-if="scope.scope.sendStatus == 1 || scope.scope.sendStatus == 2">
style="margin-right: 10px"
v-if="scope.scope.sendStatus == 1 || scope.scope.sendStatus == 2"
>
<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">
<auth-button :data="scope.scope" :show-btn-ids="['9130504']" /> <auth-button :data="scope.scope" :show-btn-ids="['9130504']" />
</span> </span>
<span <span style="margin-right: 10px" v-if="scope.scope.sendStatus == 1 || scope.scope.sendStatus == 2">
style="margin-right: 10px"
v-if="scope.scope.sendStatus == 1 || scope.scope.sendStatus == 2"
>
<auth-button :data="scope.scope" :show-btn-ids="['9130505']" /> <auth-button :data="scope.scope" :show-btn-ids="['9130505']" />
</span> </span>
</div> </div>
...@@ -326,7 +310,7 @@ export default { ...@@ -326,7 +310,7 @@ export default {
goStatisticsPage(row) { goStatisticsPage(row) {
this.$router.push({ this.$router.push({
name: "statisticsPage", name: row.contentType == 5 ? "massSendingStatisticsPage" : "statisticsPage",
query: { query: {
id: row.id, id: row.id,
title: row.title title: row.title
......
<!-- 员工群发统计页面 -->
<template>
<div class="performance-list-wrap">
<div class="title">
问界原厂权益销售重要通知
<el-button size="small" @click="black">返回</el-button>
</div>
<div class="header" slot="header">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane v-for="(item, index) in tabPaneList" :label="item.label" :name="item.name" :key="index">
</el-tab-pane>
</el-tabs>
</div>
<components class="components" :is="tabName" :active-name="activeName"></components>
</div>
</template>
<script>
import readStatistics from "../massSendingStatisticsPage/readStatistics.vue"
import learningSituation from "../massSendingStatisticsPage/learningSituation.vue"
export default {
name: "massSendingStatisticsPage",
components: {
readStatistics,
learningSituation
},
data() {
return {
activeName: "0",
tabPaneList: [
{
label: "阅读统计",
name: "0"
},
{
label: "学习情况",
name: "1"
}
],
tabName: "readStatistics"
}
},
mounted() {
if (this.$route.params.tabPane) {
this.activeName = this.$route.params.tabPane
this.tabName = this.$route.params.tabLabel
}
},
watch: {},
methods: {
black() {
this.$router.push({
path: "/staffMassSending"
})
},
handleClick() {
const arr = {
0: "readStatistics",
1: "learningSituation"
}
this.tabName = arr[+this.activeName]
}
}
}
</script>
<style scoped lang="scss">
.performance-list-wrap {
// box-sizing: border-box;
padding: 0 20px;
.title {
padding: 0 20px;
color: #333333;
font-size: 18px;
font-weight: 600;
line-height: 50px;
background-color: #fff;
height: 50px;
border-bottom: 1px solid #e5e5e5;
}
// margin-bottom: 20px;
.header {
// height: 100px;
// background-color: #fff;
::v-deep .el-tabs__header {
margin: 0;
padding: 0 20px;
}
}
.components {
margin-top: 90px;
}
}
</style>
<!-- 规则配置 --> <!-- 内容管理统计 -->
<template> <template>
<d2-container class="container"> <d2-container class="container">
<div class="header" slot="header"> <div class="header" slot="header">
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
ref="showSearch" ref="showSearch"
class="show-search" class="show-search"
:search-form="searchForm" :search-form="searchForm"
:form-data="showFormData"> :form-data="showFormData"
>
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary" handle> <el-button :id="tableParams.btnId" size="small" type="primary" handle>
...@@ -25,7 +26,8 @@ ...@@ -25,7 +26,8 @@
:search-form="realSearchForm" :search-form="realSearchForm"
:table-params="tableParams" :table-params="tableParams"
:get-list-api="getListApi" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn"
>
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn"> <d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn">
<div slot="hasConfirmContent" slot-scope="scope"> <div slot="hasConfirmContent" slot-scope="scope">
<el-button v-if="scope.scope.hasConfirmContent" type="text" @click="handleDetail(scope.scope)">查看说明</el-button> <el-button v-if="scope.scope.hasConfirmContent" type="text" @click="handleChangeDetail(scope.scope)">查看说明</el-button>
<span v-else>——</span> <span v-else>——</span>
</div> </div>
<div slot="auth-button" slot-scope="scope"> <div slot="auth-button" slot-scope="scope">
...@@ -54,28 +54,36 @@ ...@@ -54,28 +54,36 @@
</div> </div>
</d2-container> </d2-container>
<ChangeDetailDialog v-if="detailVisible" :detailVisible="detailVisible" :info="info" @dialogClose="handleChangeDetail"></ChangeDetailDialog> <ChangeDetailDialog v-if="detailVisible" :detailVisible="detailVisible" :info="info" @dialogClose="handleChangeDetail"></ChangeDetailDialog>
<system-bill-dialog v-if="billVisible" :billVisible="billVisible" :billTmplInfo="billTmplInfo" @handleClose="handleBillVisible" @handleConfirm="handleBillDialogConfirm"></system-bill-dialog>
<system-bill-detail-dialog v-if="billDetailVisible" :billVisible="billDetailVisible" :billTmplInfo="billTmplInfo" @handleClose="handleChangeDetailVisible"></system-bill-detail-dialog>
</div> </div>
</template> </template>
<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 } from '@api/accountManage' import { getBillList, editBill, billDetail, billConfirm, billCancel, billConfirmChange, billCancelChange } from '@api/accountManage'
import { tmplTypeList, billStatusList } 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 SystemBillDetailDialog from "../components/SystemBillDetailDialog"
export default { export default {
name: 'accountStateManage', name: 'accountStateManage',
components: { components: {
ChangeDetailDialog ChangeDetailDialog,
SystemBillDialog,
SystemBillDetailDialog
}, },
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
labelWidth: '110px', labelWidth: '110px',
detailVisible: false, detailVisible: false,
billDetailVisible: false,
info: '', info: '',
searchForm: { searchForm: {
shopMerchantName: '', shopMerchantName: '',
sceneType: '',
billMerchantName: '', billMerchantName: '',
accountDate: [], accountDate: [],
createdDate: [], createdDate: [],
...@@ -121,6 +129,14 @@ export default { ...@@ -121,6 +129,14 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confLabel', optionLabel: 'confLabel',
optionsName: 'tmplTypeList' optionsName: 'tmplTypeList'
}, {
label: '业务场景',
name: 'sceneType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'sceneTypeList'
}], }],
getListApi: getBillList, getListApi: getBillList,
tableParams: { tableParams: {
...@@ -131,6 +147,12 @@ export default { ...@@ -131,6 +147,12 @@ export default {
label: '流量方', label: '流量方',
prop: 'shopMerchantName' prop: 'shopMerchantName'
}, { }, {
label: '业务场景',
prop: 'sceneType',
formatter: (cellValue) => {
return this.baseData.sceneTypeList.find(item => item.confId == cellValue.sceneType)?.confLabel || '——'
}
}, {
label: '对账周期', label: '对账周期',
prop: '', prop: '',
formatter: (cellValue) => { formatter: (cellValue) => {
...@@ -176,15 +198,24 @@ export default { ...@@ -176,15 +198,24 @@ export default {
}, },
baseData: { baseData: {
billStatusList: billStatusList, billStatusList: billStatusList,
tmplTypeList: tmplTypeList tmplTypeList: tmplTypeList,
sceneTypeList: sceneTypeList
}, },
billVisible: false,
billTmplInfo: []
} }
}, },
mounted() { mounted() {
this.getOptionsList('showFormData') this.getOptionsList('showFormData')
}, },
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList
}),
},
methods: { methods: {
...mapActions('d2admin/user', ['actionSetDownloadList']),
getParams() { getParams() {
var params = deepClone(this.searchForm) var params = deepClone(this.searchForm)
const dateFormatList = [{ const dateFormatList = [{
...@@ -244,6 +275,7 @@ export default { ...@@ -244,6 +275,7 @@ export default {
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
shopMerchantName: '', shopMerchantName: '',
sceneType: '',
billMerchantName: '', billMerchantName: '',
accountDate: [], accountDate: [],
createdDate: [], createdDate: [],
...@@ -253,14 +285,111 @@ export default { ...@@ -253,14 +285,111 @@ export default {
this.$refs.recordTable.refreshTable(false, true) this.$refs.recordTable.refreshTable(false, true)
}, },
handleChangeDetail() { handleBillVisible() {
this.billVisible = !this.billVisible
},
handleBillDialogConfirm() {
this.handleBillVisible()
this.handleReset()
},
handleEdit(row) {
billDetail({ id: row.id }).then(res => {
this.billTmplInfo = deepClone(res)
this.handleBillVisible()
})
},
handleBillConfirm(row) {
this.$confirm('是否确认对账?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const params = { id: row.id }
billConfirm(params).then(res => {
this.$message.success("操作成功")
this.handleReset()
})
}).catch(() => { })
},
handleCancel(row) {
this.$confirm('是否取消对账?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const params = { id: row.id }
billCancel(params).then(res => {
this.$message.success("操作成功")
this.handleReset()
})
}).catch(() => { })
},
handleChangeConfirm(row) {
this.$confirm('是否确认内容变更?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const params = { id: row.id }
billConfirmChange(params).then(res => {
this.$message.success("操作成功")
this.handleReset()
})
}).catch(() => { })
},
handleChangeCacel(row) {
this.$confirm('是否取消内容变更?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const params = { id: row.id }
billCancelChange(params).then(res => {
this.$message.success("操作成功")
this.handleReset()
})
}).catch(() => { })
},
handleExport(row) {
var params = { id: row.id }
params.method = 'dj.api.smartcarlife.reconciliationBill.export.async'
const list = [
...this.dowloadList,
{
name: '对账单',
exportParam: JSON.stringify(params),
status: 'waiting',
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: 'dowloadList' })
},
handleChangeVisible() {
this.detailVisible = !this.detailVisible this.detailVisible = !this.detailVisible
}, },
handleDetail(row) { handleChangeDetail(row) {
console.log(row, 'row---')
this.info = row this.info = row
this.handleChangeDetail() this.handleChangeVisible()
},
handleChangeDetailVisible() {
this.billDetailVisible = !this.billDetailVisible
}, },
handleDetail(row) {
billDetail({ id: row.id }).then(res => {
this.billTmplInfo = deepClone(res)
this.handleChangeDetailVisible()
})
}
} }
} }
......
...@@ -19,6 +19,11 @@ ...@@ -19,6 +19,11 @@
<auth-button category="Button" /> <auth-button category="Button" />
</d2-table-header> </d2-table-header>
<d2-table ref="tmplTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn"> <d2-table ref="tmplTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn">
<el-tooltip slot="fieldNames" slot-scope="scope" effect="dark" :content="scope.scope.fieldNames" placement="top">
<span class="fields-txt">
{{scope.scope.fieldNames}}
</span>
</el-tooltip>
<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>
</div> </div>
...@@ -77,6 +82,7 @@ export default { ...@@ -77,6 +82,7 @@ export default {
label: '对账字段', label: '对账字段',
prop: 'fieldNames', prop: 'fieldNames',
width: '346px', width: '346px',
addHtml: 'fieldNames'
}, { }, {
label: '创建人', label: '创建人',
prop: 'createdBy', prop: 'createdBy',
...@@ -193,4 +199,11 @@ export default { ...@@ -193,4 +199,11 @@ export default {
box-sizing: border-box; box-sizing: border-box;
margin-right: 10px; margin-right: 10px;
} }
.fields-txt {
width: 346px;
display: inline-block;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
</style> </style>
<!-- 对账单管理 - 变更说明弹窗 --> <!-- 对账单管理 - 变更说明弹窗 -->
<template> <template>
<d2-dialog title="变更说明" :is-visible="detailVisible" class="privacyDailog" width="30%" btnOkLabel="关闭" :noCancel="true" @closeDialog="handleClose" @confirmDialog="handleClose"> <d2-dialog title="变更说明" :is-visible="detailVisible" class="privacyDailog" width="1080px" btnOkLabel="关闭" :noCancel="true" @closeDialog="handleClose" @confirmDialog="handleClose">
<d2-table ref="tmplTable" :get-list-api="getListApi" :search-form="searchForm" :table-params="tableParams" :before-search-fn="beforeSearchFn"> <d2-table ref="tmplTable" :get-list-api="getListApi" :search-form="searchForm" :table-params="tableParams" :before-search-fn="beforeSearchFn">
</d2-table> </d2-table>
</d2-dialog> </d2-dialog>
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<script> <script>
import { getBillDetailList } from '@api/accountManage' import { getBillDetailList } from '@api/accountManage'
import { deepClone } from '@/common/util' import { Util, deepClone } from '@/common/util'
export default { export default {
name: 'ChangeDetailDialog', name: 'ChangeDetailDialog',
data() { data() {
...@@ -21,16 +21,23 @@ export default { ...@@ -21,16 +21,23 @@ export default {
tableOption: false, tableOption: false,
tableColumns: [{ tableColumns: [{
label: '变更类型', label: '变更类型',
prop: '', prop: 'changeType',
formatter: (cellValue) => {
return {1: '删除', 2: '新增'}[cellValue.changeType]
}
}, { }, {
label: '订单编码', label: '订单编码',
prop: '', prop: 'orderCode',
}, { }, {
label: '变更人', label: '变更人',
prop: '', prop: 'operator',
}, { }, {
label: '变更时间', label: '变更时间',
prop: '', width: '150px',
prop: 'createdDate',
formatter: (cellValue) => {
return Util.dateFormate(cellValue.createdDate, 'YYYY-MM-DD HH:mm:ss')
}
}] }]
} }
} }
......
<template> <template>
<div class="dynamic-table-container"> <div class="dynamic-table-container">
员工标签:<el-button 员工标签:<el-button type="default" v-if="isEdit" @click="addRow">
type="default"
@click="addRow"
>
添加事由 添加事由
</el-button> </el-button>
<el-form :model="dynamicForm" ref="dynamicForm"> <el-form :model="dynamicForm" ref="dynamicForm">
<el-table <el-table :data="tableData" border style="width: 100%; margin-top: 20px">
:data="tableData" <el-table-column prop="index" label="序号" width="80" align="center">
border
style="width: 100%; margin-top: 20px"
>
<el-table-column
prop="index"
label="序号"
width="80"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.$index + 1 }} {{ scope.$index + 1 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="adjustAmount" label="调整金额" width="180">
prop="adjustAmount"
label="调整金额"
width="180"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-form-item <el-form-item :prop="'tableData.' + scope.$index + '.adjustAmount'" :rules="adjustAmountRules">
:prop="'tableData.' + scope.$index + '.adjustAmount'" <el-input v-model="scope.row.adjustAmount" :disabled="!isEdit" placeholder="请输入金额" type="number" @blur="handleInputBlur"></el-input>
:rules="adjustAmountRules"
>
<el-input
v-model="scope.row.adjustAmount"
placeholder="请输入金额"
type="number"
></el-input>
</el-form-item> </el-form-item>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="adjustReason" label="调整事由">
prop="adjustReason"
label="调整事由"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-form-item <el-form-item :prop="'tableData.' + scope.$index + '.adjustReason'" :rules="adjustReasonRules">
:prop="'tableData.' + scope.$index + '.adjustReason'" <el-input v-model="scope.row.adjustReason" placeholder="请输入调整事由" :disabled="!isEdit"></el-input>
:rules="adjustReasonRules"
>
<el-input
v-model="scope.row.adjustReason"
placeholder="请输入调整事由"
></el-input>
</el-form-item> </el-form-item>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="操作" width="120" align="center" v-if="isEdit">
label="操作"
width="120"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button size="mini" type="danger" @click="deleteRow(scope.$index)" icon="el-icon-delete"></el-button>
size="mini"
type="danger"
@click="deleteRow(scope.$index)"
icon="el-icon-delete"
></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -87,6 +46,16 @@ ...@@ -87,6 +46,16 @@
<script> <script>
export default { export default {
name: 'DynamicAdjustmentTable', name: 'DynamicAdjustmentTable',
props: {
adjustments: {
type: Array,
default: () => []
},
isEdit: {
type: Boolean,
default: true
}
},
data() { data() {
return { return {
dynamicForm: { dynamicForm: {
...@@ -107,7 +76,7 @@ export default { ...@@ -107,7 +76,7 @@ export default {
], ],
adjustReasonRules: [ adjustReasonRules: [
{ required: true, message: '请输入调整事由', trigger: 'blur' }, { required: true, message: '请输入调整事由', trigger: 'blur' },
{ min: 2, max: 100, message: '长度在 2 到 100 个字符', trigger: 'blur' } { min: 1, max: 50, message: '长度在 1 到 50 个字符', trigger: 'blur' }
] ]
} }
}, },
...@@ -125,6 +94,9 @@ export default { ...@@ -125,6 +94,9 @@ export default {
// 初始化一行数据 // 初始化一行数据
this.addRow(); this.addRow();
}, },
mounted() {
this.dynamicForm.tableData = this.adjustments
},
methods: { methods: {
addRow() { addRow() {
this.tableData.push({ this.tableData.push({
...@@ -133,20 +105,22 @@ export default { ...@@ -133,20 +105,22 @@ export default {
}); });
}, },
deleteRow(index) { deleteRow(index) {
if (this.tableData.length <= 1) { // if (this.tableData.length <= 1) {
this.$message.warning('至少保留一行数据'); // this.$message.warning('至少保留一行数据');
return; // return;
} // }
this.tableData.splice(index, 1); this.tableData.splice(index, 1);
}, },
handleInputBlur() {
this.$emit('handleInputBlur')
},
showTableData() { showTableData() {
const formattedData = this.tableData.map((row, index) => ({ const formattedData = this.tableData.map((row, index) => ({
序号: index + 1, '序号': index + 1,
调整金额: row.adjustAmount, '调整金额': row.adjustAmount,
调整事由: row.adjustReason '调整事由': row.adjustReason
})); }));
console.log('当前表格数据:', formattedData); console.log('当前表格数据:', formattedData);
this.$message.success('表格数据已打印到控制台');
}, },
validateForm() { validateForm() {
this.$refs.dynamicForm.validate(valid => { this.$refs.dynamicForm.validate(valid => {
......
...@@ -24,6 +24,28 @@ export const billStatusList = [ ...@@ -24,6 +24,28 @@ export const billStatusList = [
} }
] ]
export const sceneTypeList = [
{
confId: "0",
confLabel: "会员权益/升级"
},
{
confId: "1",
confLabel: "精品升级"
},
{
confId: "2",
confLabel: "次新车转化"
},
{
confId: "3",
confLabel: "售后众筹"
},
{
confId: "4",
confLabel: "积分商城"
}
]
// 存储到内存里面的模版数据,减少频繁请求(进入和退出页面会清空) // 存储到内存里面的模版数据,减少频繁请求(进入和退出页面会清空)
export const localTmplList = [ export const localTmplList = [
{ {
......
...@@ -33,13 +33,13 @@ ...@@ -33,13 +33,13 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="对账商户:" prop="merchant"> <el-form-item label="对账商户:" prop="merchant">
<el-select v-model="infoForm.merchant" multiple :multiple-limit="1" filterable style="width:400px"> <el-select v-model="infoForm.merchant" multiple :multiple-limit="1" filterable style="width:400px" @change="handleChangeMerchant">
<el-option v-for="item in baseData.merchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId" /> <el-option v-for="item in baseData.merchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item v-if="isTmpl && infoForm.merchantType == '7'" label="流量方:" prop="shopMerchantId"> <el-form-item v-if="isTmpl && infoForm.merchantType == '7'" label="流量方:" prop="shopMerchantId">
<el-select v-model="infoForm.shopMerchantId" style="width:400px"> <el-select v-model="infoForm.shopMerchantId" style="width:400px">
<el-option v-for="item in baseData.shopMerchantList" :key="item.confId" :label="item.confLabel" :value="item.confId" /> <el-option v-for="item in baseData.shopMerchantList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="对账周期:" class="dateItem" prop="payStartDate"> <el-form-item label="对账周期:" class="dateItem" prop="payStartDate">
...@@ -65,8 +65,13 @@ ...@@ -65,8 +65,13 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item v-if="isTmpl" label="对账字段:" prop="fieldsJson"> <el-form-item v-if="isTmpl" label="对账字段:" prop="fieldsJson">
<span>{{infoForm.fieldsTxt}}</span> <div class="tmpl-box">
<el-button v-if="infoForm.fieldsJson" type="text" @click="handleCustTmpl">自定义</el-button> <el-tooltip v-show="infoForm.fieldsTxt" effect="dark" placement="top" :content="infoForm.fieldsTxt">
<span class="fields-txt">{{infoForm.fieldsTxt}}</span>
</el-tooltip>
<div v-show="tmplSelectList.length">共{{tmplSelectList.length}}个字段</div>
<el-button v-if="infoForm.templateId" type="text" @click="handleCustTmpl" style="margin-left: 8px;">自定义</el-button>
</div>
</el-form-item> </el-form-item>
</el-form> </el-form>
</d2-dialog> </d2-dialog>
...@@ -79,7 +84,7 @@ import { ...@@ -79,7 +84,7 @@ import {
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { deepClone } from '@/common/util' import { deepClone } from '@/common/util'
import { getMerchantPageSearch } from '@api/publicAccount' import { getMerchantPageSearch } from '@api/publicAccount'
import { getTmplList, getMetaTmpl, getBillTmplAdapter } from '@api/accountManage' import { getTmplList, getMetaTmpl, getBillTmplAdapter, getShopList } from '@api/accountManage'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { localTmplList } from "./constant/baseData" import { localTmplList } from "./constant/baseData"
import { resData } from "./resData" import { resData } from "./resData"
...@@ -148,7 +153,8 @@ export default { ...@@ -148,7 +153,8 @@ export default {
reconciliationStatus: 'all', reconciliationStatus: 'all',
payeeType: 'all', payeeType: 'all',
templateId: '', templateId: '',
fieldsJson: '' fieldsJson: '',
fieldsTxt: ''
}, },
// 1 - traffic; 2 - service // 1 - traffic; 2 - service
...@@ -235,6 +241,7 @@ export default { ...@@ -235,6 +241,7 @@ export default {
mounted() { mounted() {
// console.log(this.scene) // console.log(this.scene)
this.$EventBus.$on('changeFieldIds', obj => { this.$EventBus.$on('changeFieldIds', obj => {
console.log(obj, 'obj---')
this.tmplSelectList = obj?.fieldIds || [] this.tmplSelectList = obj?.fieldIds || []
this.infoForm.fieldsTxt = this.getFieldsTxt() this.infoForm.fieldsTxt = this.getFieldsTxt()
this.getMetaTmpl() this.getMetaTmpl()
...@@ -267,6 +274,20 @@ export default { ...@@ -267,6 +274,20 @@ export default {
}) })
}, },
handleChangeMerchant(e) {
console.log(e)
this.infoForm.shopMerchantId = ''
const params = {
currentPage: 1,
pageSize: 9999,
partnerMerchantId: e[0],
scene: this.scene
}
getShopList(params).then(res => {
this.baseData.shopMerchantList = res.list
})
},
clickMerchantType(e) { clickMerchantType(e) {
e === this.infoForm.merchantType e === this.infoForm.merchantType
? (this.infoForm.merchantType = '') ? (this.infoForm.merchantType = '')
...@@ -298,7 +319,7 @@ export default { ...@@ -298,7 +319,7 @@ export default {
this.infoForm.templateId = '' this.infoForm.templateId = ''
this.infoForm.fieldsJson = '' this.infoForm.fieldsJson = ''
this.infoForm.fieldsTxt = '' this.infoForm.fieldsTxt = ''
this.infoForm.tmplType this.infoForm.tmplType = ''
this.tmplSelectList = [] this.tmplSelectList = []
const ruleAttrList = ['templateId', 'fieldsJson'] const ruleAttrList = ['templateId', 'fieldsJson']
ruleAttrList.forEach(item => { ruleAttrList.forEach(item => {
...@@ -310,7 +331,9 @@ export default { ...@@ -310,7 +331,9 @@ export default {
getFieldsTxt() { getFieldsTxt() {
var fieldNames = '' var fieldNames = ''
const tmplName = this.localTmplList.find(item => item.type == this.infoForm.tmplType)?.name || 'trafficTmpl' const tmplName = this.localTmplList.find(item => item.type == this.infoForm.tmplType)?.name || 'trafficTmpl'
console.log(tmplName, 'tmplName---')
var list = JSON.parse(localStorage.getItem(tmplName)) var list = JSON.parse(localStorage.getItem(tmplName))
console.log(list, 'list---')
this.dealFieldsJson(list, true) this.dealFieldsJson(list, true)
}, },
...@@ -341,17 +364,31 @@ export default { ...@@ -341,17 +364,31 @@ export default {
currentPage: 1 currentPage: 1
} }
// 流量方 // 流量方
getTmplList({...params, type: 1}).then(res => { getTmplList({ ...params, type: 1 }).then(res => {
this.baseData.trafficTemplateList = res.list || [] this.baseData.trafficTemplateList = res.list || []
this.baseData.trafficTemplateList.unshift({
id: 'all',
type: 1,
templateName: '无',
fieldNames: '',
fieldIds: []
})
}) })
// 服务商 // 服务商
getTmplList({...params, type: 2}).then(res => { getTmplList({ ...params, type: 2 }).then(res => {
this.baseData.serviceTemplateList = res.list || [] this.baseData.serviceTemplateList = res.list || []
this.baseData.serviceTemplateList.unshift({
id: 'all',
type: 2,
templateName: '无',
fieldNames: '',
fieldIds: []
})
}) })
}, },
handleTmplChange(e) { handleTmplChange(e) {
if(!(Object.keys(this.typeObj)).includes(this.infoForm.merchantType)) { if (!(Object.keys(this.typeObj)).includes(this.infoForm.merchantType)) {
return true return true
} }
const item = this.baseData[this.merchantTypeStr + 'TemplateList'].find(item => item.id == e) const item = this.baseData[this.merchantTypeStr + 'TemplateList'].find(item => item.id == e)
...@@ -401,9 +438,10 @@ export default { ...@@ -401,9 +438,10 @@ export default {
}, },
handleCustTmpl() { handleCustTmpl() {
this.infoForm.tmplType = this.infoForm.merchantType == '2' ? '1' : '2'
this.$emit('custTmpl', { this.$emit('custTmpl', {
tmplType: this.infoForm.tmplType + '', tmplType: this.infoForm.tmplType + '',
tmplSelectList: this.tmplSelectList tmplSelectList: this.tmplSelectList || []
}) })
}, },
...@@ -435,10 +473,14 @@ export default { ...@@ -435,10 +473,14 @@ export default {
} }
params.sceneType = this.scene params.sceneType = this.scene
// 对账状态 // 对账状态
params.reconciliationStatus = infoForm.reconciliationStatus == 'all' ? '' : infoForm.reconciliationStatus infoForm.reconciliationStatus == 'all' ? '' : (params.reconciliationStatus = infoForm.reconciliationStatus)
params.payeeType = infoForm.payeeType == 'all' ? '' : infoForm.payeeType infoForm.payeeType == 'all' ? '' : (params.payeeType = infoForm.payeeType)
if (infoForm.shopMerchantId) {
params.shopMerchantId = infoForm.shopMerchantId
params.shopMerchantName = this.baseData.shopMerchantList.find(item => item.merchantId == infoForm.shopMerchantId)?.merchantName
}
if (this.isTmpl) { if (this.isTmpl) {
params.templateId = infoForm.templateId params.templateId = infoForm.templateId == 'all' ? '' : infoForm.templateId
params.fieldsJson = infoForm.fieldsJson params.fieldsJson = infoForm.fieldsJson
} }
return params return params
...@@ -446,17 +488,17 @@ export default { ...@@ -446,17 +488,17 @@ export default {
// 系统对账 // 系统对账
handleSystemBill() { handleSystemBill() {
this.$emit('handleBill', { billTmplInfo: resData.data }) // this.$emit('handleBill', { billTmplInfo: resData.data })
// this.$refs.accountForm.validate(valid => { this.$refs.accountForm.validate(valid => {
// if (valid) { if (valid) {
// var params = this.getParams() var params = this.getParams()
// console.log('params', params) console.log('params', params)
// getBillTmplAdapter(params).then(res => { getBillTmplAdapter(params).then(res => {
// console.log(res, 'res') console.log(res, 'res')
// this.$emit('handleBill', { billTmplInfo: res }) this.$emit('handleBill', { billTmplInfo: res })
// }) })
// } }
// }) })
}, },
handleAddConfirm() { handleAddConfirm() {
...@@ -525,4 +567,15 @@ export default { ...@@ -525,4 +567,15 @@ export default {
width: 395px !important; width: 395px !important;
} }
} }
.tmpl-box {
display: flex;
}
.fields-txt {
width: 305px;
display: inline-block;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
margin-right: 8px;
}
</style> </style>
...@@ -477,7 +477,7 @@ ...@@ -477,7 +477,7 @@
</slot> </slot>
</d2-dialog> </d2-dialog>
<tmpl-drawer v-if="tmplDrawerVisible" :tmplDrawerVisible="tmplDrawerVisible" :type="tmplInfo.type" :tmplSelectList="tmplInfo.tmplSelectList" @handleConfirm="handleCustConfirm" @handleClose="handleCustVisible"></tmpl-drawer> <tmpl-drawer v-if="tmplDrawerVisible" :tmplDrawerVisible="tmplDrawerVisible" :type="tmplInfo.type" :tmplSelectList="tmplInfo.tmplSelectList" @handleConfirm="handleCustConfirm" @handleClose="handleCustVisible"></tmpl-drawer>
<system-bill-dialog v-if="billVisible" :billVisible="billVisible" :billTmplInfo="billTmplInfo" @handleClose="handleBillVisible"></system-bill-dialog> <system-bill-dialog v-if="billVisible" :billVisible="billVisible" :billTmplInfo="billTmplInfo" @handleClose="handleBillVisible" @handleConfirm="handleBillVisible"></system-bill-dialog>
</div> </div>
</template> </template>
......
...@@ -447,11 +447,11 @@ export default { ...@@ -447,11 +447,11 @@ export default {
{ {
confId: 1, confId: 1,
confLabel: '一页一张' confLabel: '一页一张'
},
{
confId: 2,
confLabel: '一页两张'
} }
// {
// confId: 2,
// confLabel: '一页两张'
// }
], ],
printIds: [], printIds: [],
// pdfList: [ // pdfList: [
...@@ -776,25 +776,25 @@ export default { ...@@ -776,25 +776,25 @@ export default {
}, },
changePageType(val) { changePageType(val) {
// if (val == 1) { if (val == 1) {
// this.usageList = [ this.usageList = [
// { {
// confId: 1, confId: 1,
// confLabel: '一页一张' confLabel: '一页一张'
// }, { }, {
// confId: 2, confId: 2,
// confLabel: '一页两张' confLabel: '一页两张'
// } }
// ] ]
// } else if (val == 2) { } else if (val == 2) {
// this.usageList = [ this.usageList = [
// { {
// confId: 1, confId: 1,
// confLabel: '一页一张' confLabel: '一页一张'
// } }
// ] ]
// } }
// this.printForm.usage = this.usageList[0].confId this.printForm.usage = this.usageList[0].confId
}, },
// 批量打印 // 批量打印
......
...@@ -938,7 +938,7 @@ export default { ...@@ -938,7 +938,7 @@ export default {
this.infoForm.shopTrafficMoney = res.shopTrafficMoney this.infoForm.shopTrafficMoney = res.shopTrafficMoney
if (params.rangeType == 2) { // 按订单选择的前端计算 if (params.rangeType == 2) { // 按订单选择的前端计算
// 计算转账金额总和 // 计算转账金额总和
const numberList = this.infoForm.orderCodeScope?.map(val => { return val.shopDivisionMoneyInput }) || [] const numberList = this.infoForm.orderCodeScope?.map(val => { return val.shopTrafficMoneyInput }) || []
if (numberList?.length) { if (numberList?.length) {
this.infoForm.transferTotalAmount = numberList.reduce((preVal, curVal) => { this.infoForm.transferTotalAmount = numberList.reduce((preVal, curVal) => {
return `${new BigNumber(preVal || 0).plus(new BigNumber(curVal || 0)).toNumber()}` return `${new BigNumber(preVal || 0).plus(new BigNumber(curVal || 0)).toNumber()}`
...@@ -1142,7 +1142,7 @@ export default { ...@@ -1142,7 +1142,7 @@ export default {
params.orderRefList = infoForm?.orderCodeScope?.map(val => { params.orderRefList = infoForm?.orderCodeScope?.map(val => {
return { return {
orderCode: val.orderCode, orderCode: val.orderCode,
transferShopTrafficMoney: val.shopDivisionMoneyInput transferShopTrafficMoney: val.shopTrafficMoneyInput
} }
}) })
delete params.startTime delete params.startTime
......
...@@ -71,8 +71,8 @@ ...@@ -71,8 +71,8 @@
<el-table-column label="服务对接" prop="yqMerchantName" align="center"></el-table-column> <el-table-column label="服务对接" prop="yqMerchantName" align="center"></el-table-column>
<el-table-column label="流量方总金额" align="center"> <el-table-column label="流量方总金额" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input class="wid_120" @input="event => { handleInput(event, scope.$index, scope.row) }" placeholder="请输入" v-model="scope.row.shopDivisionMoneyInput" v-if="isShowInput(scope.row)"></el-input> <el-input class="wid_120" @input="event => { handleInput(event, scope.$index, scope.row) }" placeholder="请输入" v-model="scope.row.shopTrafficMoneyInput" v-if="isShowInput(scope.row)"></el-input>
<span v-else>{{ `¥${scope.row.shopDivisionMoney}` }}</span> <span v-else>{{ `¥${scope.row.shopTrafficMoney}` }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
watch: { watch: {
selectedData: { selectedData: {
handler(newVal) { handler(newVal) {
const numberList = newVal?.map(val => { return val.shopDivisionMoneyInput }) || [] const numberList = newVal?.map(val => { return val.shopTrafficMoneyInput }) || []
if (numberList?.length) { if (numberList?.length) {
this.selectedTotalPrice = numberList.reduce((preVal, curVal) => { this.selectedTotalPrice = numberList.reduce((preVal, curVal) => {
return `${new BigNumber(preVal || 0).plus(new BigNumber(curVal || 0)).toNumber()}` return `${new BigNumber(preVal || 0).plus(new BigNumber(curVal || 0)).toNumber()}`
...@@ -227,8 +227,8 @@ export default { ...@@ -227,8 +227,8 @@ export default {
handleChange(selection, row) { handleChange(selection, row) {
// 不再选中后将输入框的值重置 // 不再选中后将输入框的值重置
if (!selection?.map(val => val.orderCode)?.includes(row?.orderCode)) { if (!selection?.map(val => val.orderCode)?.includes(row?.orderCode)) {
row.shopDivisionMoneyInput = row.shopDivisionMoneyInput || row.shopDivisionMoney row.shopTrafficMoneyInput = row.shopTrafficMoneyInput || row.shopTrafficMoney
row.oldShopDivisionMoneyInput = row.shopDivisionMoney row.oldShopTrafficMoneyInput = row.shopTrafficMoney
} }
var addOrDelete = !!selection.find( var addOrDelete = !!selection.find(
(item) => item.orderCode === row.orderCode (item) => item.orderCode === row.orderCode
...@@ -243,8 +243,8 @@ export default { ...@@ -243,8 +243,8 @@ export default {
// 不再选中后将输入框的值重置 // 不再选中后将输入框的值重置
if (!selection?.length) { if (!selection?.length) {
this.tableData?.forEach(row => { this.tableData?.forEach(row => {
row.shopDivisionMoneyInput = row.shopDivisionMoney row.shopTrafficMoneyInput = row.shopTrafficMoney
row.oldShopDivisionMoneyInput = row.shopDivisionMoney row.oldShopTrafficMoneyInput = row.shopTrafficMoney
}) })
} }
this.tableData.forEach((item) => { this.tableData.forEach((item) => {
...@@ -266,12 +266,12 @@ export default { ...@@ -266,12 +266,12 @@ export default {
// 输入框输入限制 // 输入框输入限制
handleInput(e, index, row) { handleInput(e, index, row) {
let newValue = e.replace(/[^\d.]/g, '') let newValue = e.replace(/[^\d.]/g, '')
let oldValue = this.tableData[index].oldShopDivisionMoneyInput let oldValue = this.tableData[index].oldShopTrafficMoneyInput
this.$set(this.tableData[index], 'shopDivisionMoneyInput', limitPrice(newValue, oldValue, 6, 2)) this.$set(this.tableData[index], 'shopTrafficMoneyInput', limitPrice(newValue, oldValue, 6, 2))
this.$set(this.tableData[index], 'oldShopDivisionMoneyInput', this.tableData[index].shopDivisionMoneyInput) this.$set(this.tableData[index], 'oldShopTrafficMoneyInput', this.tableData[index].shopTrafficMoneyInput)
const selIndex = this.selectedData?.findIndex(val => val.orderCode == row.orderCode) const selIndex = this.selectedData?.findIndex(val => val.orderCode == row.orderCode)
if (selIndex > -1) { if (selIndex > -1) {
this.$set(this.selectedData[selIndex], 'shopDivisionMoneyInput', this.tableData[index].shopDivisionMoneyInput) this.$set(this.selectedData[selIndex], 'shopTrafficMoneyInput', this.tableData[index].shopTrafficMoneyInput)
} }
}, },
// 获取订单列表 // 获取订单列表
...@@ -279,8 +279,8 @@ export default { ...@@ -279,8 +279,8 @@ export default {
let params = this.getParams() let params = this.getParams()
api.getList(params).then(res => { api.getList(params).then(res => {
res?.list?.forEach(val => { res?.list?.forEach(val => {
val.shopDivisionMoneyInput = val.shopDivisionMoney val.shopTrafficMoneyInput = val.shopTrafficMoney
val.oldShopDivisionMoneyInput = val.shopDivisionMoney val.oldShopTrafficMoneyInput = val.shopTrafficMoney
}) })
this.tableData = res?.list || [] this.tableData = res?.list || []
this.tableTotal = res?.total this.tableTotal = res?.total
...@@ -296,7 +296,7 @@ export default { ...@@ -296,7 +296,7 @@ export default {
if (exitIds.includes(item.orderCode)) { if (exitIds.includes(item.orderCode)) {
this.$refs.orderTable && this.$refs.orderTable.toggleRowSelection(item, true) this.$refs.orderTable && this.$refs.orderTable.toggleRowSelection(item, true)
let obj = this.selectedData?.find(val => val.orderCode == item.orderCode) let obj = this.selectedData?.find(val => val.orderCode == item.orderCode)
item.shopDivisionMoneyInput = obj?.shopDivisionMoneyInput || obj?.shopDivisionMoney item.shopTrafficMoneyInput = obj?.shopTrafficMoneyInput || obj?.shopTrafficMoney
} }
}) })
}, },
...@@ -342,7 +342,7 @@ export default { ...@@ -342,7 +342,7 @@ export default {
handleAddConfirm() { handleAddConfirm() {
if (!this.selectedData?.length) return this.$message.warning('请选择订单') if (!this.selectedData?.length) return this.$message.warning('请选择订单')
if (this.checkPriceEmpty(this.selectedData, 'shopDivisionMoneyInput')) { if (this.checkPriceEmpty(this.selectedData, 'shopTrafficMoneyInput')) {
return this.$message.warning('请完整输入流量方总金额') return this.$message.warning('请完整输入流量方总金额')
} }
this.$emit('chooseOrderConfirm', this.selectedData) this.$emit('chooseOrderConfirm', this.selectedData)
......
...@@ -167,7 +167,7 @@ export default { ...@@ -167,7 +167,7 @@ export default {
optionsName: "mentorPhoneList" optionsName: "mentorPhoneList"
}, },
{ {
label: "基本工资", label: "底薪",
name: "basicSalary", name: "basicSalary",
type: "input", type: "input",
width: "136px", width: "136px",
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<div class="info-wrap-change"> <div class="info-wrap-change">
<div class="item-box"> <div class="item-box">
<div class="info-item"> <div class="info-item">
<label>基本工资:</label> <label>底薪:</label>
<el-form-item label="" prop="baseSalary" v-if="whiteFlag"> <el-form-item label="" prop="baseSalary" v-if="whiteFlag">
<el-input <el-input
v-model="detail.baseSalary" v-model="detail.baseSalary"
......
...@@ -106,7 +106,9 @@ export default { ...@@ -106,7 +106,9 @@ export default {
total: 0, total: 0,
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
storeSearchForm: {} storeSearchForm: {
staffName: ""
}
} }
}, },
...@@ -131,7 +133,7 @@ export default { ...@@ -131,7 +133,7 @@ export default {
handler(val) { handler(val) {
if (val) { if (val) {
this.selectedData = this.storeSelected this.selectedData = this.storeSelected
console.log(this.selectedData, "---------")
this.recoverySelection() this.recoverySelection()
} }
}, },
...@@ -139,6 +141,11 @@ export default { ...@@ -139,6 +141,11 @@ export default {
} }
}, },
methods: { methods: {
clearData() {
this.storeSearchForm.staffName = ""
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)
if (obj) { if (obj) {
...@@ -223,7 +230,7 @@ export default { ...@@ -223,7 +230,7 @@ export default {
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
.relateEmp .tableCon { .relateEmp .tableCon {
display: flex; display: flex;
gap: 10px; gap: 10px;
...@@ -261,6 +268,12 @@ export default { ...@@ -261,6 +268,12 @@ export default {
} }
} }
} }
::v-deep .el-form {
display: flex;
}
::v-deep .el-form-item__content {
display: inline-block !important;
}
} }
.service-store .relateEmp .el-table .cell, .service-store .relateEmp .el-table .cell,
.d2-form .relateEmp .el-table .cell { .d2-form .relateEmp .el-table .cell {
......
...@@ -61,8 +61,8 @@ ...@@ -61,8 +61,8 @@
> >
<el-input <el-input
v-model="item.performanceSalarDeductionRatio" v-model="item.performanceSalarDeductionRatio"
placeholder="扣减比例" placeholder="请输入"
style="width: 120px" style="width: 140px"
@blur="validatePercentage(item)" @blur="validatePercentage(item)"
> >
<template slot="append">%</template> <template slot="append">%</template>
...@@ -142,8 +142,8 @@ ...@@ -142,8 +142,8 @@
> >
<el-input <el-input
v-model="item.performanceSalarDeductionRatio" v-model="item.performanceSalarDeductionRatio"
placeholder="扣减比例" placeholder="请输入"
style="width: 120px" style="width: 140px"
@blur="validatePercentage(item)" @blur="validatePercentage(item)"
> >
<template slot="append">%</template> <template slot="append">%</template>
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
v-if="config.staffList && config.staffList.length > 0" v-if="config.staffList && config.staffList.length > 0"
> >
<el-tag <el-tag
@close="removeStaff(configIndex, staff)" @close="removeStaff(configIndex, index)"
v-for="(staff, index) in config.staffList" v-for="(staff, index) in config.staffList"
:key="configIndex + '-' + index" :key="configIndex + '-' + index"
closable closable
...@@ -336,6 +336,8 @@ export default { ...@@ -336,6 +336,8 @@ export default {
this.configIndex = index this.configIndex = index
this.getSelectingList(index) this.getSelectingList(index)
this.groupVisible = true this.groupVisible = true
this.$refs.selectTagForm.clearData && this.$refs.selectTagForm.clearData()
this.$refs.selectTagForm.getSelectingList && this.$refs.selectTagForm.getSelectingList &&
this.$refs.selectTagForm.getSelectingList() this.$refs.selectTagForm.getSelectingList()
}, },
...@@ -359,21 +361,21 @@ export default { ...@@ -359,21 +361,21 @@ export default {
maxAssessmentValue: "", maxAssessmentValue: "",
assessmentType: 1, assessmentType: 1,
minAssessmentValue: "", minAssessmentValue: "",
id: Date.now() id: Date.now() + 1
}, },
{ {
performanceSalarDeductionRatio: "", performanceSalarDeductionRatio: "",
maxAssessmentValue: "", maxAssessmentValue: "",
assessmentType: 1, assessmentType: 1,
minAssessmentValue: "", minAssessmentValue: "",
id: Date.now() id: Date.now() + 2
}, },
{ {
performanceSalarDeductionRatio: "", performanceSalarDeductionRatio: "",
maxAssessmentValue: "", maxAssessmentValue: "",
assessmentType: 2, assessmentType: 2,
minAssessmentValue: "", minAssessmentValue: "",
id: Date.now() id: Date.now() + 3
} }
], ],
staffList: [] staffList: []
...@@ -386,6 +388,7 @@ export default { ...@@ -386,6 +388,7 @@ export default {
) )
}, },
removeItem(configIndex, id) { removeItem(configIndex, id) {
console.log(configIndex, id)
const index = this.form.configList[configIndex].itemList.findIndex( const index = this.form.configList[configIndex].itemList.findIndex(
(item) => item.id === id (item) => item.id === id
) )
...@@ -486,12 +489,8 @@ export default { ...@@ -486,12 +489,8 @@ export default {
field === "maxAssessmentValue" && field === "maxAssessmentValue" &&
parseInt(item.minAssessmentValue) >= parseInt(value) parseInt(item.minAssessmentValue) >= parseInt(value)
) { ) {
this.$set( this.$set(item, "maxAssessmentValue", "")
item, // this.$message.warning("")
"maxAssessmentValue",
parseInt(item.minAssessmentValue) + 1
)
this.$message.warning("最大值必须大于最小值")
} }
}, },
// 验证百分比输入 // 验证百分比输入
...@@ -570,9 +569,11 @@ export default { ...@@ -570,9 +569,11 @@ export default {
// 获取当前类型的所有区间 // 获取当前类型的所有区间
const currentType = item.assessmentType const currentType = item.assessmentType
console.log(currentType, "currentType")
const sameTypeItems = config.itemList.filter( const sameTypeItems = config.itemList.filter(
(i) => i.assessmentType === currentType (i) => i.assessmentType === currentType
) )
console.log(sameTypeItems, "sameTypeItems")
// 检查是否有重叠区间 // 检查是否有重叠区间
const currentItemRange = [min, max] const currentItemRange = [min, max]
...@@ -587,6 +588,7 @@ export default { ...@@ -587,6 +588,7 @@ export default {
if (isNaN(otherMin) || isNaN(otherMax)) continue if (isNaN(otherMin) || isNaN(otherMax)) continue
const otherRange = [otherMin, otherMax] const otherRange = [otherMin, otherMax]
console.log(otherRange, "otherRange")
if (this.isOverlapping(currentItemRange, otherRange)) { if (this.isOverlapping(currentItemRange, otherRange)) {
callback(new Error("区间与其他配置重叠,请调整")) callback(new Error("区间与其他配置重叠,请调整"))
...@@ -599,7 +601,7 @@ export default { ...@@ -599,7 +601,7 @@ export default {
isOverlapping(range1, range2) { isOverlapping(range1, range2) {
const [min1, max1] = range1 const [min1, max1] = range1
const [min2, max2] = range2 const [min2, max2] = range2
return Math.max(min1, min2) <= Math.min(max1, max2) return Math.max(min1, min2) < Math.min(max1, max2)
}, },
// 范围校验器 // 范围校验器
validateRange(rule, value, callback) { validateRange(rule, value, callback) {
...@@ -648,6 +650,11 @@ export default { ...@@ -648,6 +650,11 @@ export default {
::v-deep .el-divider--horizontal { ::v-deep .el-divider--horizontal {
margin: 16px 0; margin: 16px 0;
} }
::v-deep
.el-form-item.is-required:not(.is-no-asterisk)
> .el-form-item__label:before {
color: #f5f7fa;
}
} }
.wrap { .wrap {
padding: 16px 0; padding: 16px 0;
...@@ -667,7 +674,7 @@ export default { ...@@ -667,7 +674,7 @@ export default {
opacity: 1; opacity: 1;
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
background: #e8e8e8; background: #e8e8e8;
color: #666666; color: #2a58ad;
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
line-height: 32px; line-height: 32px;
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
{ required: true, message: '请输入产品名称', trigger: 'blur' }, { required: true, message: '请输入产品名称', trigger: 'blur' },
{ validator: (rule, value, callback) => validateProductName(rule, value, callback, index), trigger: 'blur' } { validator: (rule, value, callback) => validateProductName(rule, value, callback, index), trigger: 'blur' }
]"> ]">
<el-input class="name_input" v-model.trim="item.productName" placeholder="请输入名称"></el-input> <el-input class="name_input" v-model.trim="item.productName" maxlength="20" placeholder="请输入名称"></el-input>
<el-button class="marl_10" type="text" size="small" v-if="targetInfo.productList.length > 1" @click="removeItem(index, 'products', item)">删除</el-button> <el-button class="marl_10" type="text" size="small" v-if="targetInfo.productList.length > 1" @click="removeItem(index, 'products', item)">删除</el-button>
</el-form-item> </el-form-item>
<el-form-item label="包含以下商品:" :prop="`productList[${index}].selectSku`" :rules="rules.selectSku"> <el-form-item label="包含以下商品:" :prop="`productList[${index}].selectSku`" :rules="rules.selectSku">
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
{ required: true, message: '请输入套餐名称', trigger: 'blur' }, { required: true, message: '请输入套餐名称', trigger: 'blur' },
{ validator: (rule, value, callback) => validatePackageName(rule, value, callback, index), trigger: 'blur' } { validator: (rule, value, callback) => validatePackageName(rule, value, callback, index), trigger: 'blur' }
]"> ]">
<el-input class="name_input" v-model.trim="item.packageName" placeholder="请输入名称"></el-input> <el-input class="name_input" v-model.trim="item.packageName" maxlength="20" placeholder="请输入名称"></el-input>
<el-button class="marl_10" type="text" size="small" @click="removeItem(index, 'packages', item)">删除</el-button> <el-button class="marl_10" type="text" size="small" @click="removeItem(index, 'packages', item)">删除</el-button>
</el-form-item> </el-form-item>
<el-form-item label="包含以下圈定产品:" :prop="`packageList[${index}].targetProducts`" :rules="rules.targetProducts"> <el-form-item label="包含以下圈定产品:" :prop="`packageList[${index}].targetProducts`" :rules="rules.targetProducts">
...@@ -472,6 +472,7 @@ export default { ...@@ -472,6 +472,7 @@ export default {
return this.$message.error(`套餐名称"${pkg.packageName}"与产品名称重复`) return this.$message.error(`套餐名称"${pkg.packageName}"与产品名称重复`)
} }
packageNames.add(pkg.packageName) packageNames.add(pkg.packageName)
if (pkg.targetProducts?.length < 2) return this.$message.warning('套餐至少包含两个圈定产品')
} }
let productDefineList = [] let productDefineList = []
this.targetInfo.productList?.forEach(val => { this.targetInfo.productList?.forEach(val => {
......
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
<div class="tableContent"> <div class="tableContent">
<div class="searchBox"> <div class="searchBox">
<el-input v-model.trim="upgradeGoodsName" placeholder="搜索商品名称" size="small" clearable style="width: 200px;"></el-input> <el-input v-model.trim="upgradeGoodsName" placeholder="搜索商品名称" size="small" clearable style="width: 200px;"></el-input>
<el-select v-model="brandMerchantCodeList" placeholder="请选择品牌方" multiple filterable collapse-tags clearable>
<el-option v-for="(item, index) in brandMerchantCodeSelectList" :key="index" :label="item.relatedPartyName" :value="item.id"></el-option>
</el-select>
<el-button type="primary" size="small" @click="handleSearch" >搜索</el-button> <el-button type="primary" size="small" @click="handleSearch" >搜索</el-button>
</div> </div>
<el-table <el-table
...@@ -47,12 +50,12 @@ ...@@ -47,12 +50,12 @@
:data="selectedData" :data="selectedData"
border border
height="420px"> height="420px">
<el-table-column prop="upgradeGoodsName" label="商品名称" align="center"> <el-table-column prop="upgradeGoodsName" label="商品名称" width="420px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.upgradeGoodsName }}</span> <span>{{ scope.row.upgradeGoodsName }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="50px"> <el-table-column label="操作" align="center" width="55px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
...@@ -115,6 +118,7 @@ ...@@ -115,6 +118,7 @@
</template> </template>
<script> <script>
import { getUpgradeProductList } from '@api/productManage' import { getUpgradeProductList } from '@api/productManage'
import { getBrandSupplyMerchant } from '@api/product'
import { deepClone } from '@/common/util' import { deepClone } from '@/common/util'
export default { export default {
name: 'SelectDefineProductDialog', name: 'SelectDefineProductDialog',
...@@ -126,7 +130,9 @@ export default { ...@@ -126,7 +130,9 @@ export default {
total: 0, total: 0,
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
upgradeGoodsName: '' upgradeGoodsName: '',
brandMerchantCodeList: [],
brandMerchantCodeSelectList: []
} }
}, },
computed: { computed: {
...@@ -149,6 +155,8 @@ export default { ...@@ -149,6 +155,8 @@ export default {
if (this.selectDialogConfig.type == 1) { if (this.selectDialogConfig.type == 1) {
// 获取sku商品列表数据 // 获取sku商品列表数据
this.getSkuGoodsList() this.getSkuGoodsList()
// 获取品牌方数据
this.getBrandDataList()
} else { } else {
this.listData = deepClone(this.selectDialogConfig.listData) this.listData = deepClone(this.selectDialogConfig.listData)
this.$nextTick(() => { this.$nextTick(() => {
...@@ -158,11 +166,19 @@ export default { ...@@ -158,11 +166,19 @@ export default {
this.selectedData = deepClone(this.selectDialogConfig.selectData) this.selectedData = deepClone(this.selectDialogConfig.selectData)
}, },
methods: { methods: {
getBrandDataList() {
getBrandSupplyMerchant({
partitionFlag: 1
}).then(res => {
this.brandMerchantCodeSelectList = res
})
},
getSkuGoodsList() { getSkuGoodsList() {
let params = { let params = {
currentPage: this.currentPage, currentPage: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
upgradeGoodsName: this.upgradeGoodsName upgradeGoodsName: this.upgradeGoodsName,
brandMerchantCodeList: this.brandMerchantCodeList
} }
getUpgradeProductList(params).then(res => { getUpgradeProductList(params).then(res => {
res?.list?.forEach(val => { res?.list?.forEach(val => {
......
...@@ -28,12 +28,15 @@ ...@@ -28,12 +28,15 @@
<template v-if="scope.scope.businessTypeList && scope.scope.businessTypeList.length"> <template v-if="scope.scope.businessTypeList && scope.scope.businessTypeList.length">
<template v-for="(k, kIdx) in scope.scope.businessTypeList"> <template v-for="(k, kIdx) in scope.scope.businessTypeList">
<div class="tb-row" v-if="k.businessSceneType != null" :key="kIdx"> <div class="tb-row" v-if="k.businessSceneType != null" :key="kIdx">
<div v-if="['areaSupervisionList', 'onlineSupervisionList'].includes(scope.columnsObj.prop)">
<el-tooltip class="item" effect="dark" :content="scope.columnsObj.formatter(scope.scope, kIdx)" placement="top"> <el-tooltip class="item" effect="dark" :content="scope.columnsObj.formatter(scope.scope, kIdx)" placement="top">
<span type="text"> <span class="ellipsis-txt">
{{scope.columnsObj.formatter(scope.scope, kIdx)}} {{scope.columnsObj.formatter(scope.scope, kIdx)}}
</span> </span>
</el-tooltip> </el-tooltip>
</div> </div>
<span v-else>{{scope.columnsObj.formatter(scope.scope, kIdx)}}</span>
</div>
</template> </template>
</template> </template>
<div v-else>——</div> <div v-else>——</div>
...@@ -42,12 +45,15 @@ ...@@ -42,12 +45,15 @@
<div v-if="scope.scope.businessTypeList && scope.scope.businessTypeList.length" :key="mIdx"> <div v-if="scope.scope.businessTypeList && scope.scope.businessTypeList.length" :key="mIdx">
<template v-for="(k, kIdx) in scope.scope.businessTypeList"> <template v-for="(k, kIdx) in scope.scope.businessTypeList">
<div class="tb-row" v-if="k.businessSceneType != null" :key="kIdx"> <div class="tb-row" v-if="k.businessSceneType != null" :key="kIdx">
<div v-if="['areaSupervisionList', 'onlineSupervisionList'].includes(scope.columnsObj.prop)">
<el-tooltip class="item" effect="dark" :content="scope.columnsObj.formatter(scope.scope, kIdx)" placement="top"> <el-tooltip class="item" effect="dark" :content="scope.columnsObj.formatter(scope.scope, kIdx)" placement="top">
<span type="text"> <span class="ellipsis-txt">
{{scope.columnsObj.formatter(scope.scope, kIdx)}} {{scope.columnsObj.formatter(scope.scope, kIdx)}}
</span> </span>
</el-tooltip> </el-tooltip>
</div> </div>
<span v-else>{{scope.columnsObj.formatter(scope.scope, kIdx)}}</span>
</div>
</template> </template>
</div> </div>
</template> </template>
...@@ -199,7 +205,10 @@ export default { ...@@ -199,7 +205,10 @@ export default {
optionList: [], optionList: [],
optionId: "adcode", optionId: "adcode",
optionLabel: "name", optionLabel: "name",
optionsName: "provinceInfoList" optionsName: "provinceInfoList",
changeAttr: (value, targetItem) => {
this.searchForm.cityId = ''
}
}, },
{ {
label: "所属城市", label: "所属城市",
...@@ -328,10 +337,6 @@ export default { ...@@ -328,10 +337,6 @@ export default {
mutiSelectName: "merchantId", mutiSelectName: "merchantId",
tableColumns: [ tableColumns: [
{ {
label: "区域",
prop: "provinceName"
},
{
label: "所属省份", label: "所属省份",
prop: "provinceName" prop: "provinceName"
}, },
...@@ -344,7 +349,7 @@ export default { ...@@ -344,7 +349,7 @@ export default {
prop: "merchantName", prop: "merchantName",
width: "200px", width: "200px",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.merchantName + cellValue.merchantId return cellValue.merchantName
} }
}, },
{ {
...@@ -466,8 +471,13 @@ export default { ...@@ -466,8 +471,13 @@ export default {
addHtml: 'businessDevelopmentScene', addHtml: 'businessDevelopmentScene',
formatter: (cellValue, idx) => { formatter: (cellValue, idx) => {
const list = this.removeListAll('busiDelpList') const list = this.removeListAll('busiDelpList')
const target = list.find(item => item.confId == cellValue.businessTypeList[idx].businessDevelopmentScene) let str = []
return target ? target.confValue : '——' if (cellValue?.businessTypeList && cellValue?.businessTypeList.length && cellValue?.businessTypeList[idx]?.businessDevelopmentSceneList) {
cellValue?.businessTypeList[idx]?.businessDevelopmentSceneList.forEach(item => {
str.push(list.find(k => k.confId == item)?.confValue)
})
}
return str.length ? str.join('/') : '——'
} }
}, },
{ {
...@@ -1483,4 +1493,12 @@ export default { ...@@ -1483,4 +1493,12 @@ export default {
.m-t-40 { .m-t-40 {
margin-top: 40px; margin-top: 40px;
} }
.ellipsis-txt {
width: 150px;
display: inline-block;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
</style> </style>
...@@ -892,7 +892,8 @@ export default { ...@@ -892,7 +892,8 @@ export default {
directorList.push({ directorList.push({
directorUserId: target?.userId, directorUserId: target?.userId,
directorType: key, directorType: key,
directorName: target?.userName directorName: target?.userName,
directorPhone: target?.userNum
}) })
}) })
} }
...@@ -1022,7 +1023,8 @@ export default { ...@@ -1022,7 +1023,8 @@ export default {
this.sellerMerchantStaffList = result.map((item) => { this.sellerMerchantStaffList = result.map((item) => {
return { return {
userId: item.uuid, userId: item.uuid,
userName: item.staffName userName: item.staffName,
userNum: item.staffPhone
} }
}) })
resolve() resolve()
......
...@@ -1606,9 +1606,9 @@ export default { ...@@ -1606,9 +1606,9 @@ export default {
this.formList[this.findFormIdx("bankCounty")].optionList = res.areaList this.formList[this.findFormIdx("bankCounty")].optionList = res.areaList
this.editForm.bankProvince = res.province this.editForm.bankProvince = res.province
this.editForm.bankCity = res.city this.editForm.bankCity = res.city
this.editForm.provinceCode = res.provinceCode || "5800" this.editForm.provinceCode = res.provinceCode
this.editForm.cityCode = res.cityCode || "6030" this.editForm.cityCode = res.cityCode
this.editForm.bankCounty = "6030" // this.editForm.bankCounty = "6030"
this.editForm.province = res.province this.editForm.province = res.province
this.editForm.city = res.city this.editForm.city = res.city
}) })
......
...@@ -2523,10 +2523,10 @@ ajv@^8.0.0, ajv@^8.0.1, ajv@^8.8.0: ...@@ -2523,10 +2523,10 @@ ajv@^8.0.0, ajv@^8.0.1, ajv@^8.8.0:
require-from-string "^2.0.2" require-from-string "^2.0.2"
uri-js "^4.2.2" uri-js "^4.2.2"
ali-oss@^6.20.0: ali-oss@^6.22.0, ali-oss@^6.23.0:
version "6.20.0" version "6.23.0"
resolved "https://registry.npmjs.org/ali-oss/-/ali-oss-6.20.0.tgz" resolved "https://registry.npmjs.org/ali-oss/-/ali-oss-6.23.0.tgz#0bb236428307986ece0bf9243d77d7029d7b6ed2"
integrity sha512-TzFXgGlw81sy2JvcCveSYsa2b2+6kv+HA6WTc+cXg6bu8nUAmVPfncRGbn3x2getSOniOFA+TyGy3V4l3Fks+Q== integrity sha512-FipRmyd16Pr/tEey/YaaQ/24Pc3HEpLM9S1DRakEuXlSLXNIJnu1oJtHM53eVYpvW3dXapSjrip3xylZUTIZVQ==
dependencies: dependencies:
address "^1.2.2" address "^1.2.2"
agentkeepalive "^3.4.1" agentkeepalive "^3.4.1"
...@@ -2550,7 +2550,7 @@ ali-oss@^6.20.0: ...@@ -2550,7 +2550,7 @@ ali-oss@^6.20.0:
sdk-base "^2.0.1" sdk-base "^2.0.1"
stream-http "2.8.2" stream-http "2.8.2"
stream-wormhole "^1.0.4" stream-wormhole "^1.0.4"
urllib "2.41.0" urllib "^2.44.0"
utility "^1.18.0" utility "^1.18.0"
xml2js "^0.6.2" xml2js "^0.6.2"
...@@ -5461,6 +5461,13 @@ globby@^11.0.2, globby@^11.0.3: ...@@ -5461,6 +5461,13 @@ globby@^11.0.2, globby@^11.0.3:
merge2 "^1.4.1" merge2 "^1.4.1"
slash "^3.0.0" slash "^3.0.0"
glsk-oss-jssdk@^1.0.1:
version "1.0.2"
resolved "https://registry.npmjs.org/glsk-oss-jssdk/-/glsk-oss-jssdk-1.0.2.tgz#2666abe1181983ee83ed96fc40f93cd81d9bd4ec"
integrity sha512-oFbouNPVFrSv7ACunWdAlR1oJ4jpxMiK7ORGvd8BMpCeI6sMAJ6IneFKON5mp3GceOK6jxDtKub0UTKKx/W6lQ==
dependencies:
ali-oss "^6.23.0"
glsx-common-sdk@^0.3.0: glsx-common-sdk@^0.3.0:
version "0.3.0" version "0.3.0"
resolved "https://registry.npmmirror.com/glsx-common-sdk/-/glsx-common-sdk-0.3.0.tgz" resolved "https://registry.npmmirror.com/glsx-common-sdk/-/glsx-common-sdk-0.3.0.tgz"
...@@ -5806,13 +5813,20 @@ humanize-ms@^1.2.0, humanize-ms@^1.2.1: ...@@ -5806,13 +5813,20 @@ humanize-ms@^1.2.0, humanize-ms@^1.2.1:
dependencies: dependencies:
ms "^2.0.0" ms "^2.0.0"
iconv-lite@0.4.24, iconv-lite@^0.4.15: iconv-lite@0.4.24:
version "0.4.24" version "0.4.24"
resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz"
integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==
dependencies: dependencies:
safer-buffer ">= 2.1.2 < 3" safer-buffer ">= 2.1.2 < 3"
iconv-lite@^0.6.3:
version "0.6.3"
resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501"
integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==
dependencies:
safer-buffer ">= 2.1.2 < 3.0.0"
icss-utils@^5.0.0, icss-utils@^5.1.0: icss-utils@^5.0.0, icss-utils@^5.1.0:
version "5.1.0" version "5.1.0"
resolved "https://registry.npmmirror.com/icss-utils/-/icss-utils-5.1.0.tgz" resolved "https://registry.npmmirror.com/icss-utils/-/icss-utils-5.1.0.tgz"
...@@ -5913,11 +5927,6 @@ invariant@^2.2.2: ...@@ -5913,11 +5927,6 @@ invariant@^2.2.2:
dependencies: dependencies:
loose-envify "^1.0.0" loose-envify "^1.0.0"
ip@^1.1.5:
version "1.1.9"
resolved "https://registry.npmjs.org/ip/-/ip-1.1.9.tgz"
integrity sha512-cyRxvOEpNHNtchU3Ln9KC/auJgup87llfQpQ+t5ghoC/UhL16SWzbueiCsdTnWmqAWl7LadfuwhlqmtOaqMHdQ==
ipaddr.js@1.9.1: ipaddr.js@1.9.1:
version "1.9.1" version "1.9.1"
resolved "https://registry.npmmirror.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz" resolved "https://registry.npmmirror.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz"
...@@ -9367,9 +9376,9 @@ safe-regex@^1.1.0: ...@@ -9367,9 +9376,9 @@ safe-regex@^1.1.0:
dependencies: dependencies:
ret "~0.1.10" ret "~0.1.10"
"safer-buffer@>= 2.1.2 < 3": "safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0":
version "2.1.2" version "2.1.2"
resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
sass-loader@^7.3.1: sass-loader@^7.3.1:
...@@ -10613,21 +10622,19 @@ url-slug@2.0.0: ...@@ -10613,21 +10622,19 @@ url-slug@2.0.0:
dependencies: dependencies:
unidecode "0.1.8" unidecode "0.1.8"
urllib@2.41.0: urllib@^2.44.0:
version "2.41.0" version "2.44.0"
resolved "https://registry.npmjs.org/urllib/-/urllib-2.41.0.tgz" resolved "https://registry.npmjs.org/urllib/-/urllib-2.44.0.tgz#0da4b037550bdc03eb9a408de498fb4025ddc0b4"
integrity sha512-pNXdxEv52L67jahLT+/7QE+Fup1y2Gc6EdmrAhQ6OpQIC2rl14oWwv9hvk1GXOZqEnJNwRXHABuwgPOs1CtL7g== integrity sha512-zRCJqdfYllRDA9bXUtx+vccyRqtJPKsw85f44zH7zPD28PIvjMqIgw9VwoTLV7xTBWZsbebUFVHU5ghQcWku2A==
dependencies: dependencies:
any-promise "^1.3.0" any-promise "^1.3.0"
content-type "^1.0.2" content-type "^1.0.2"
debug "^2.6.9"
default-user-agent "^1.0.0" default-user-agent "^1.0.0"
digest-header "^1.0.0" digest-header "^1.0.0"
ee-first "~1.1.1" ee-first "~1.1.1"
formstream "^1.1.0" formstream "^1.1.0"
humanize-ms "^1.2.0" humanize-ms "^1.2.0"
iconv-lite "^0.4.15" iconv-lite "^0.6.3"
ip "^1.1.5"
pump "^3.0.0" pump "^3.0.0"
qs "^6.4.0" qs "^6.4.0"
statuses "^1.3.1" statuses "^1.3.1"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!