Commit a378445e by xinla

--no commit message

1 parent a9f4c14d
...@@ -299,8 +299,8 @@ export default { ...@@ -299,8 +299,8 @@ export default {
<van-field v-if="sceneType == 2" name="radio" label="红包类型" required> <van-field v-if="sceneType == 2" name="radio" label="红包类型" required>
<template #input> <template #input>
<van-radio-group v-model="form.redEnvelopesType" direction="horizontal"> <van-radio-group v-model="form.redEnvelopesType" direction="horizontal">
<van-radio :name="1">拼手气红包</van-radio> <van-radio :name="1">普通红包</van-radio>
<van-radio :name="2">普通红包</van-radio> <van-radio :name="2">拼手气红包</van-radio>
</van-radio-group> </van-radio-group>
</template> </template>
</van-field> </van-field>
......
...@@ -65,6 +65,7 @@ export function getListGroup(params) { ...@@ -65,6 +65,7 @@ export function getListGroup(params) {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
chatId: '' // 群id chatId: '' // 群id
orderNo: '' //订单id
} }
*/ */
export function getListGroupUser(params) { export function getListGroupUser(params) {
......
...@@ -211,7 +211,7 @@ export default { ...@@ -211,7 +211,7 @@ export default {
name: 'CodeStaff', name: 'CodeStaff',
components: { components: {
SelectUser, SelectUser,
SelectTag SelectTag,
}, },
data() { data() {
return { return {
...@@ -226,7 +226,7 @@ export default { ...@@ -226,7 +226,7 @@ export default {
customerName: undefined, customerName: undefined,
phone: undefined, phone: undefined,
addUserName: undefined, addUserName: undefined,
addState: undefined addState: undefined,
}, },
// 日期范围 // 日期范围
dateRange: [], dateRange: [],
...@@ -242,12 +242,12 @@ export default { ...@@ -242,12 +242,12 @@ export default {
// 表单参数 // 表单参数
form: { form: {
customerSeasTags: [], customerSeasTags: [],
weCustomerStaffs: [] weCustomerStaffs: [],
}, },
formRules: {}, formRules: {},
selectedUserList: [], selectedUserList: [],
actionUrl: '...', actionUrl: '...',
selectedTagList: [] selectedTagList: [],
} }
}, },
created() { created() {
...@@ -255,7 +255,7 @@ export default { ...@@ -255,7 +255,7 @@ export default {
this.$store.dispatch( this.$store.dispatch(
'app/setBusininessDesc', 'app/setBusininessDesc',
` `
<div>支持单人、批量单人及多人方式新建员工活码,客户可以通过扫描员工活码添加员工为好友,并支持自动给客户打标签和发送欢迎语。</div> <div>管理员在后台将客户导入后,系统根据分配规则自动分配给员工,员工可以一键复制客户手机号,快速添加客户,并支持添加效果统计。</div>
` `
) )
}, },
...@@ -295,7 +295,7 @@ export default { ...@@ -295,7 +295,7 @@ export default {
return dd.tagName return dd.tagName
}) })
.join(',') .join(',')
: '' : '',
} }
upload(this.toFormData(obj)) upload(this.toFormData(obj))
.then((res) => { .then((res) => {
...@@ -304,7 +304,7 @@ export default { ...@@ -304,7 +304,7 @@ export default {
this.form = { this.form = {
file: {}, file: {},
customerSeasTags: [], customerSeasTags: [],
weCustomerStaffs: [] weCustomerStaffs: [],
} }
this.selectedUserList = [] this.selectedUserList = []
this.selectedTagList = [] this.selectedTagList = []
...@@ -353,14 +353,14 @@ export default { ...@@ -353,14 +353,14 @@ export default {
submitSelectTagFn(data) { submitSelectTagFn(data) {
this.form.customerSeasTags = data.map((d) => ({ this.form.customerSeasTags = data.map((d) => ({
tagId: d.tagId, tagId: d.tagId,
tagName: d.name tagName: d.name,
})) }))
}, },
selectedFn() { selectedFn() {
if (this.form.customerSeasTags) { if (this.form.customerSeasTags) {
this.selectedTagList = this.form.customerSeasTags.map((dd) => ({ this.selectedTagList = this.form.customerSeasTags.map((dd) => ({
tagId: dd.tagId, tagId: dd.tagId,
name: dd.tagName name: dd.tagName,
})) }))
} }
this.dialogVisibleSelectTag = true this.dialogVisibleSelectTag = true
...@@ -371,7 +371,7 @@ export default { ...@@ -371,7 +371,7 @@ export default {
arr = this.form.weCustomerStaffs.map((dd) => { arr = this.form.weCustomerStaffs.map((dd) => {
return { return {
userId: dd.staffId, userId: dd.staffId,
name: dd.staffName name: dd.staffName,
} }
}) })
this.selectedUserList = arr this.selectedUserList = arr
...@@ -381,7 +381,7 @@ export default { ...@@ -381,7 +381,7 @@ export default {
const selectedUserList = users.map((d) => { const selectedUserList = users.map((d) => {
return { return {
staffId: d.id || d.userId, staffId: d.id || d.userId,
staffName: d.name staffName: d.name,
} }
}) })
this.form.weCustomerStaffs = selectedUserList this.form.weCustomerStaffs = selectedUserList
...@@ -426,8 +426,8 @@ export default { ...@@ -426,8 +426,8 @@ export default {
this.$router.push({ this.$router.push({
path: path, path: path,
query: { query: {
id id,
} },
}) })
}, },
// 多选框选中数据 // 多选框选中数据
...@@ -439,7 +439,7 @@ export default { ...@@ -439,7 +439,7 @@ export default {
this.$confirm('是否确认删除?', '警告', { this.$confirm('是否确认删除?', '警告', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning',
}).then( }).then(
() => { () => {
remove(id).then((res) => { remove(id).then((res) => {
...@@ -459,7 +459,7 @@ export default { ...@@ -459,7 +459,7 @@ export default {
this.$confirm('是否确认删除?', '警告', { this.$confirm('是否确认删除?', '警告', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning',
}).then( }).then(
() => { () => {
remove(this.ids.join(',')).then((res) => { remove(this.ids.join(',')).then((res) => {
...@@ -481,7 +481,7 @@ export default { ...@@ -481,7 +481,7 @@ export default {
this.$confirm('是否确定发送员工跟进客户提醒?确定后提醒将发送至对应员工', '提示', { this.$confirm('是否确定发送员工跟进客户提醒?确定后提醒将发送至对应员工', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning',
}).then( }).then(
() => { () => {
alertFn(id).then((res) => { alertFn(id).then((res) => {
...@@ -500,7 +500,7 @@ export default { ...@@ -500,7 +500,7 @@ export default {
this.$confirm('是否确定发送员工跟进客户提醒?确定后提醒将发送至对应员工', '提示', { this.$confirm('是否确定发送员工跟进客户提醒?确定后提醒将发送至对应员工', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning',
}).then( }).then(
() => { () => {
alertFn(this.ids.join(',')).then((res) => { alertFn(this.ids.join(',')).then((res) => {
...@@ -518,8 +518,8 @@ export default { ...@@ -518,8 +518,8 @@ export default {
} else { } else {
this.msgInfo('请先勾选要操作项!') this.msgInfo('请先勾选要操作项!')
} }
} },
} },
} }
</script> </script>
......
...@@ -126,6 +126,7 @@ export default { ...@@ -126,6 +126,7 @@ export default {
this.cardData = cardData this.cardData = cardData
this.dialogVisible = true this.dialogVisible = true
this.dialog.query.chatId = row.chatId this.dialog.query.chatId = row.chatId
this.dialog.query.orderNo = row.orderNo
this.getListGroupUser(1) this.getListGroupUser(1)
}, },
// 获取领取详情 // 获取领取详情
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
:total="total" :total="total"
:page.sync="query.pageNum" :page.sync="query.pageNum"
:limit.sync="query.pageSize" :limit.sync="query.pageSize"
@pagination="getList()" @pagination="getRecordList()"
/> />
</div> </div>
</div> </div>
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
loadingChart: false, loadingChart: false,
query: { query: {
pageNum: 1, pageNum: 1,
pageSize: 0, pageSize: 10,
}, },
list: [], list: [],
total: 0, total: 0,
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
getChartList(this.query) getChartList(this.query)
.then(({ data }) => { .then(({ data }) => {
let seriesData = [] // this.mockData[this.timeRange] let seriesData = [] // this.mockData[this.timeRange]
seriesData[0] = data.map((e) => e.totalMoney) seriesData[0] = data.map((e) => e.totalMoney / 100)
seriesData[1] = data.map((e) => e.totalNum) seriesData[1] = data.map((e) => e.totalNum)
let xAxisData = data.map((e) => e.createTime.slice(0, 10)) let xAxisData = data.map((e) => e.createTime.slice(0, 10))
this.setEchart(xAxisData, seriesData) this.setEchart(xAxisData, seriesData)
...@@ -183,7 +183,8 @@ export default { ...@@ -183,7 +183,8 @@ export default {
this.loadingChart = false this.loadingChart = false
}) })
}, },
getRecordList() { getRecordList(page) {
page && (this.query.pageNum = page)
this.loading = true this.loading = true
getRecordList(this.query) getRecordList(this.query)
.then(({ rows, total }) => { .then(({ rows, total }) => {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
" "
>新建员工限额 >新建员工限额
</el-button> </el-button>
<el-button <!-- <el-button
type="primary" type="primary"
plain plain
:disabled="!selectedIds.length" :disabled="!selectedIds.length"
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
edit() edit()
" "
>批量编辑</el-button >批量编辑</el-button
> > -->
</div> </div>
<div class="g-card g-pad20"> <div class="g-card g-pad20">
...@@ -113,7 +113,9 @@ ...@@ -113,7 +113,9 @@
v-model="addMemberForm.singleCustomerReceiveNum" v-model="addMemberForm.singleCustomerReceiveNum"
placeholder="请输入次数" placeholder="请输入次数"
></el-input> ></el-input>
<div class="sub-des">输入 1-999999 的正整数</div> <div class="sub-des">
输入 {{ addMemberForm.singleCustomerReceiveNumMin }}-999999 的正整数
</div>
</el-form-item> </el-form-item>
<el-form-item label="单日员工发红包总额(元)" prop="singleCustomerReceiveMoney"> <el-form-item label="单日员工发红包总额(元)" prop="singleCustomerReceiveMoney">
<el-input-number <el-input-number
...@@ -159,16 +161,18 @@ import { getList, addOrUpdate, batchUpdate, remove } from '@/api/redPacketTool/s ...@@ -159,16 +161,18 @@ import { getList, addOrUpdate, batchUpdate, remove } from '@/api/redPacketTool/s
let defaultForm = { let defaultForm = {
userId: '', userId: '',
users: [], users: [],
singleCustomerReceiveNum: '', singleCustomerReceiveNum: 1,
singleCustomerReceiveMoney: '', singleCustomerReceiveMoney: 1,
} }
export default { export default {
name: 'member', name: 'member',
data() { data() {
let that = this
function validateDaySendNum(rule, value, callback) { function validateDaySendNum(rule, value, callback) {
let min = that.addMemberForm.singleCustomerReceiveNumMin
value = Number(value) value = Number(value)
if (Number.isNaN(value) || value < 1 || value > 999999 || !Number.isInteger(value)) { if (Number.isNaN(value) || value < min || value > 999999 || !Number.isInteger(value)) {
callback('请输入 1-999999 的正整数') callback(`请输入 ${min}-999999 的正整数`)
} else { } else {
callback() callback()
} }
...@@ -244,6 +248,7 @@ export default { ...@@ -244,6 +248,7 @@ export default {
edit(row = defaultForm) { edit(row = defaultForm) {
this.addMemberForm = Object.assign({}, row) this.addMemberForm = Object.assign({}, row)
row.userName && (this.addMemberForm.users = row.userName.split(',')) row.userName && (this.addMemberForm.users = row.userName.split(','))
this.addMemberForm.singleCustomerReceiveNumMin = +this.addMemberForm.todayIssuedNum || 1
this.addVisible = true this.addVisible = true
this.$nextTick(() => this.$refs.addMemberForm.clearValidate()) this.$nextTick(() => this.$refs.addMemberForm.clearValidate())
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!