Commit 8bb01299 by chenwq

Merge branch 'wuwx_dev_v2.0.0' into v2.0.0

2 parents 887d0e25 7bbe3752
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.3.7", "glsx-components": "^1.3.7",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"node-sass": "^4.0.0",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
"vuedraggable": "^2.24.3", "vuedraggable": "^2.24.3",
......
...@@ -97,4 +97,14 @@ const getGoodsCommentListApi = params => { ...@@ -97,4 +97,14 @@ const getGoodsCommentListApi = params => {
}) })
} }
export default { getListApi, getProShareApi, topProApi, updateStatusProApi, deleteTakeProApi, getProInfoApi, insertOrUpdateProApi, updateTakeProApi, getGoodsCommentListApi }
\ No newline at end of file \ No newline at end of file
const getBusinessTypeByIdApi = params => {
params.method = 'scrm.api.shopmall.goods.getBusinessTypeById'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default {getBusinessTypeByIdApi, getListApi, getProShareApi, topProApi, updateStatusProApi, deleteTakeProApi, getProInfoApi, insertOrUpdateProApi, updateTakeProApi, getGoodsCommentListApi }
\ No newline at end of file \ No newline at end of file
...@@ -18,9 +18,9 @@ module.exports = { ...@@ -18,9 +18,9 @@ module.exports = {
code_message_map: {} code_message_map: {}
}, },
request: { request: {
baseURL: 'http://scrm.test.glsx.com.cn/', // baseURL: 'http://scrm.test.glsx.com.cn/',
// baseURL: 'http://192.168.2.42:8064/', // baseURL: 'http://192.168.2.42:8064/',
// baseURL: 'http://scrm.dev.glsx.com.cn/', baseURL: 'http://scrm.dev.glsx.com.cn/',
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
......
...@@ -34,15 +34,16 @@ ...@@ -34,15 +34,16 @@
<el-radio v-model="editForm.useChannel" label="2" :disabled="apear != 'couponAdd'">到店核销</el-radio> <el-radio v-model="editForm.useChannel" label="2" :disabled="apear != 'couponAdd'">到店核销</el-radio>
</template> </template>
<template slot="directionalFlagHtml"> <template slot="directionalFlagHtml">
<el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">否</el-radio> <el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio>
<el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">是</el-radio> <el-radio v-model="editForm.directionalFlag" label="2" :disabled="apear != 'couponAdd'">定向礼包专用</el-radio>
<el-radio v-model="editForm.directionalFlag" label="3" :disabled="apear != 'couponAdd'">关联商品可用</el-radio>
</template> </template>
<template slot="effectiveHtml"> <template slot="effectiveHtml">
<el-radio v-model="editForm.effectiveType" label="3" :disabled="apear != 'couponAdd'">无有效期</el-radio> <el-radio v-model="editForm.effectiveType" label="3" :disabled="apear != 'couponAdd'">无有效期</el-radio>
<br /> <br />
<el-form-item prop="effectiveTime" ref="effectiveTime" style="margin-top: 12px; display: block"> <el-form-item prop="effectiveTime" ref="effectiveTime" style="margin-top: 12px; display: block">
<el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'"> <el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'">
<el-date-picker v-model="editForm.effectiveTime" type="daterange" style="width: 295px" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" :picker-options="pickerOption" :disabled="editForm.effectiveType != 2 || apear != 'couponAdd'" clearable></el-date-picker> <el-date-picker v-model="editForm.effectiveTime" type="datetimerange" style="width: 340px" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="pickerOption" :default-time="defaultTime" :format="format" :disabled="editForm.effectiveType != 2 || apear != 'couponAdd'" clearable></el-date-picker>
</el-radio> </el-radio>
</el-form-item> </el-form-item>
<el-form-item prop="effectiveDays" ref="effectiveDays"> <el-form-item prop="effectiveDays" ref="effectiveDays">
...@@ -112,6 +113,8 @@ export default { ...@@ -112,6 +113,8 @@ export default {
name: 'editCashCoupon', name: 'editCashCoupon',
data() { data() {
return { return {
defaultTime: ['00:00:00', '23:59:59'], // 选择日期后的默认时间
format: "yyyy-MM-dd HH:mm:ss", // 日期显示格式
showSubmit: true, showSubmit: true,
userDisable: false, userDisable: false,
size: 'small', size: 'small',
...@@ -237,13 +240,6 @@ export default { ...@@ -237,13 +240,6 @@ export default {
// index:4 // index:4
}, },
{ {
label: '定向礼包专用',
name: 'directionalFlag',
addHtml: 'directionalFlagHtml',
isHide: false
// index:5
},
{
label: '适用商品', label: '适用商品',
name: 'goods', name: 'goods',
addHtml: 'goodsHtml', addHtml: 'goodsHtml',
...@@ -271,6 +267,13 @@ export default { ...@@ -271,6 +267,13 @@ export default {
// index:9 // index:9
}, },
{ {
label: '使用规则',
name: 'directionalFlag',
addHtml: 'directionalFlagHtml',
isHide: false
// index:5
},
{
label: '使用说明', label: '使用说明',
name: 'useDescription', name: 'useDescription',
addHtml: 'useDescriptionHtml' addHtml: 'useDescriptionHtml'
...@@ -596,8 +599,8 @@ export default { ...@@ -596,8 +599,8 @@ export default {
//时间段 //时间段
const d = form.effectiveTime const d = form.effectiveTime
if (d && d.length > 0) { if (d && d.length > 0) {
obj.effectiveStartTime = d[0] + ' 00:00:00' obj.effectiveStartTime = d[0]
obj.effectiveEndTime = d[1] + ' 23:59:59' obj.effectiveEndTime = d[1]
} }
} }
...@@ -663,7 +666,7 @@ export default { ...@@ -663,7 +666,7 @@ export default {
} }
this.$apis.couponManage[method](params).then(res => { this.$apis.couponManage[method](params).then(res => {
this.$message({ this.$message({
message: res.code == '0' ? '操作成功' : '操作失败', message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error' type: res.code == '0' ? 'success' : 'error'
}) })
if (res.code == '0') { if (res.code == '0') {
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<template slot="effectiveHtml"> <template slot="effectiveHtml">
<el-form-item prop="effectiveTime" ref="effectiveTime" style="margin-top: 12px; display: block"> <el-form-item prop="effectiveTime" ref="effectiveTime" style="margin-top: 12px; display: block">
<el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'"> <el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'">
<el-date-picker v-model="editForm.effectiveTime" type="daterange" style="width: 295px" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" :picker-options="pickerOption" :disabled="editForm.effectiveType != 2 || apear != 'couponAdd'" clearable></el-date-picker> <el-date-picker v-model="editForm.effectiveTime" type="datetimerange" style="width: 340px" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :default-time="defaultTime" :format="format" :picker-options="pickerOption" :disabled="editForm.effectiveType != 2 || apear != 'couponAdd'" clearable></el-date-picker>
</el-radio> </el-radio>
</el-form-item> </el-form-item>
<el-form-item prop="effectiveDays" ref="effectiveDays"> <el-form-item prop="effectiveDays" ref="effectiveDays">
...@@ -85,6 +85,8 @@ export default { ...@@ -85,6 +85,8 @@ export default {
name: 'editDiscountCoupon', name: 'editDiscountCoupon',
data() { data() {
return { return {
defaultTime: ['00:00:00', '23:59:59'], // 选择日期后的默认时间
format: "yyyy-MM-dd HH:mm:ss", // 日期显示格式
showSubmit: true, showSubmit: true,
userDisable: false, userDisable: false,
size: 'small', size: 'small',
...@@ -309,8 +311,8 @@ export default { ...@@ -309,8 +311,8 @@ export default {
//时间段 //时间段
const d = form.effectiveTime const d = form.effectiveTime
if (d && d.length > 0) { if (d && d.length > 0) {
obj.effectiveStartTime = d[0] + ' 00:00:00' obj.effectiveStartTime = d[0]
obj.effectiveEndTime = d[1] + ' 23:59:59' obj.effectiveEndTime = d[1]
} }
} }
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<template slot="effectiveHtml"> <template slot="effectiveHtml">
<el-form-item prop="effectiveTime" ref="effectiveTime" style="margin-top: 12px; display: block"> <el-form-item prop="effectiveTime" ref="effectiveTime" style="margin-top: 12px; display: block">
<el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'"> <el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'">
<el-date-picker v-model="editForm.effectiveTime" type="daterange" style="width: 295px" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" :picker-options="pickerOption" :disabled="editForm.effectiveType != 2 || apear != 'couponAdd'" clearable></el-date-picker> <el-date-picker v-model="editForm.effectiveTime" type="datetimerange" style="width: 340px" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :default-time="defaultTime" :format="format" :picker-options="pickerOption" :disabled="editForm.effectiveType != 2 || apear != 'couponAdd'" clearable></el-date-picker>
</el-radio> </el-radio>
</el-form-item> </el-form-item>
<el-form-item prop="effectiveDays" ref="effectiveDays"> <el-form-item prop="effectiveDays" ref="effectiveDays">
...@@ -64,6 +64,8 @@ export default { ...@@ -64,6 +64,8 @@ export default {
name: 'editDiscountCoupon', name: 'editDiscountCoupon',
data() { data() {
return { return {
defaultTime: ['00:00:00', '23:59:59'], // 选择日期后的默认时间
format: "yyyy-MM-dd HH:mm:ss", // 日期显示格式
showSubmit: true, showSubmit: true,
userDisable: false, userDisable: false,
size: 'small', size: 'small',
...@@ -287,8 +289,8 @@ export default { ...@@ -287,8 +289,8 @@ export default {
//时间段 //时间段
const d = form.effectiveTime const d = form.effectiveTime
if (d && d.length > 0) { if (d && d.length > 0) {
obj.effectiveStartTime = d[0] + ' 00:00:00' obj.effectiveStartTime = d[0]
obj.effectiveEndTime = d[1] + ' 23:59:59' obj.effectiveEndTime = d[1]
} }
} }
......
...@@ -105,6 +105,15 @@ export default { ...@@ -105,6 +105,15 @@ export default {
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName', optionLabel: 'confName',
optionsName: 'statusList' optionsName: 'statusList'
},
{
label: '使用规则',
name: 'directionalFlag',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'directionalFlagList'
} }
], ],
// 表格 // 表格
...@@ -160,6 +169,14 @@ export default { ...@@ -160,6 +169,14 @@ export default {
return useChannel return useChannel
} }
}, },
{
label: '使用规则',
name: 'directionalFlag',
width: '150px',
formatter: cellValue => {
return this.baseData.directionalFlagList.find(item => item.confId == cellValue.directionalFlag).confName
}
},
{ {
label: '优惠券状态', label: '优惠券状态',
name: 'status', name: 'status',
...@@ -190,6 +207,20 @@ export default { ...@@ -190,6 +207,20 @@ export default {
// confName: '会员服务' // confName: '会员服务'
// } // }
], ],
directionalFlagList:[
{
confId: '1',
confName: '所有客户可用'
},
{
confId: '2',
confName: '定向礼包专用'
},
{
confId: '3',
confName: '关联商品可用'
}
],
statusList: [ statusList: [
{ {
confId: '1', confId: '1',
...@@ -380,7 +411,7 @@ export default { ...@@ -380,7 +411,7 @@ export default {
couponName: '', couponName: '',
discountType: '', discountType: '',
status: '', status: '',
discountTypes: [2, 3, 4] discountTypes: [2, 3, 4],
} }
this.handleSearch() this.handleSearch()
}, },
......
...@@ -74,7 +74,8 @@ export default { ...@@ -74,7 +74,8 @@ export default {
useB: '', useB: '',
// 表格 // 表格
searchForm: { searchForm: {
phone: '' phone: '',
wechatUserFlag:''
}, },
tableSearchForm: {}, tableSearchForm: {},
// 搜索 // 搜索
...@@ -84,6 +85,15 @@ export default { ...@@ -84,6 +85,15 @@ export default {
name: 'phone', name: 'phone',
type: 'input', type: 'input',
maxlength: 11 maxlength: 11
},
{
label:'是否加企微',
name:'wechatUserFlag',
type:'select',
optionList:[],
optionId: 'statusId',
optionLabel: 'statusName',
optionsName: 'wechatUserFlagList'
} }
], ],
// 表格 // 表格
...@@ -100,6 +110,13 @@ export default { ...@@ -100,6 +110,13 @@ export default {
label: '用户昵称', label: '用户昵称',
prop: 'userName' prop: 'userName'
}, },
{
label: '是否加入企微',
prop: 'wechatUserFlag',
formatter: cellValue => {
return this.baseData.wechatUserFlagList.find(item => item.statusId == cellValue.wechatUserFlag).statusName
}
},
{ {
label: '优惠券状态', label: '优惠券状态',
prop: 'userStatus', prop: 'userStatus',
...@@ -113,7 +130,7 @@ export default { ...@@ -113,7 +130,7 @@ export default {
formatter: cellValue => { formatter: cellValue => {
return dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss') return dayjs(cellValue.createdDate).format('YYYY-MM-DD HH:mm:ss')
} }
} },
] ]
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
...@@ -135,6 +152,16 @@ export default { ...@@ -135,6 +152,16 @@ export default {
confId: '3', confId: '3',
confName: '已过期' confName: '已过期'
} }
],
wechatUserFlagList: [
{
statusId: '2',
statusName: '是'
},
{
statusId: '1',
statusName: '否'
}
] ]
}, },
exportLoading: false exportLoading: false
...@@ -260,7 +287,8 @@ export default { ...@@ -260,7 +287,8 @@ export default {
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
phone: '' phone: '',
wechatUserFlag:''
} }
this.handleSearch() this.handleSearch()
}, },
......
...@@ -18,20 +18,20 @@ export default { ...@@ -18,20 +18,20 @@ export default {
// this.getEdit() // this.getEdit()
}, },
methods: { methods: {
// getEdit() { // getEdit() {
// var editor = new E('#div-demo') // var editor = new E('#div-demo')
// editor.config.uploadImgShowBase64 = true // editor.config.uploadImgShowBase64 = true
// editor.config.showMenuTooltips = true // editor.config.showMenuTooltips = true
// editor.config.menuTooltipPosition = 'down' // editor.config.menuTooltipPosition = 'down'
// editor.config.height = 400 // editor.config.height = 400
// editor.config.uploadVideoServer = '/api/upload-video' // editor.config.uploadVideoServer = '/api/upload-video'
// editor.config.excludeMenus = [ // editor.config.excludeMenus = [
// 'code' // 'code'
// ] // ]
// editor.create() // editor.create()
// } // }
} }
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!