Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-points
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9802f1bb
authored
Oct 22, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.2.0-1030' of
http://192.168.3.233:8090/saas/scrm-micro-poi…
…nts into SAAS+V5.2.0-1030
2 parents
8b4df4e0
91d7dd20
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
src/api/modules/points.js
src/views/storeCredit/add.vue
src/api/modules/points.js
View file @
9802f1b
...
@@ -206,7 +206,8 @@ const updateCustomerIntegral = params => {
...
@@ -206,7 +206,8 @@ const updateCustomerIntegral = params => {
url
:
'rop-scrm-shopmall/router'
,
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
,
returnAll
:
true
})
})
}
}
...
...
src/views/storeCredit/add.vue
View file @
9802f1b
...
@@ -364,7 +364,7 @@ export default {
...
@@ -364,7 +364,7 @@ export default {
}
}
}
}
}
,
}
,
created() {
async
created() {
/** loginpath:标识系统
/** loginpath:标识系统
* 门店版:/login
* 门店版:/login
* 1、默认带出商户,“选择商户”按钮置灰
* 1、默认带出商户,“选择商户”按钮置灰
...
@@ -375,6 +375,16 @@ export default {
...
@@ -375,6 +375,16 @@ export default {
this.baseData.personTypeList.splice(1, 1)
this.baseData.personTypeList.splice(1, 1)
this.configForm.merchantId = this.$globalState.session.merchantId
this.configForm.merchantId = this.$globalState.session.merchantId
this.configForm.merchantName = this.$globalState.session.merchantName
this.configForm.merchantName = this.$globalState.session.merchantName
const res = await this.$apis.points.getMerchantCharge({ merchantId: this.configForm.merchantId
}
)
if (res) {
this.totalFormData.map(e => {
if (['gasCardServiceCharge', 'passageServiceCharge'].includes(e.name)) {
const val = res[e.name] || 0
e.label = e.label.replace(/\d+/g, val)
this.chargeObject[e.name] = val
}
}
)
}
}
}
}
,
}
,
mounted() {
mounted() {
...
@@ -426,6 +436,9 @@ export default {
...
@@ -426,6 +436,9 @@ export default {
handleConfirm() {
handleConfirm() {
const { disabled, id
}
= this.pageObject
const { disabled, id
}
= this.pageObject
if (disabled) return this.$router.go(-1)
if (disabled) return this.$router.go(-1)
if(this.loading) {
return true
}
this.$refs.fromRef.$refs.formRef.validate(async valid => {
this.$refs.fromRef.$refs.formRef.validate(async valid => {
if (valid) {
if (valid) {
try {
try {
...
@@ -473,14 +486,16 @@ export default {
...
@@ -473,14 +486,16 @@ export default {
}
}
if (id) params.id = id
if (id) params.id = id
const res = await this.$apis.points.updateCustomerIntegral(params)
const res = await this.$apis.points.updateCustomerIntegral(params)
if (res) {
console.log(res)
if (res.code == 0) {
this.$message({
this.$message({
message: id ? '编辑成功' : '创建成功',
message: id ? '编辑成功' : '创建成功',
type: 'success'
type: 'success'
}
)
}
)
setTimeout(() => this.$router.go(-1), 1e3)
setTimeout(() => this.$router.go(-1), 1e3)
}
}
else {
this.loading = false
this.loading = false
}
}
catch (error) {
}
catch (error) {
this.loading = false
this.loading = false
this.$message.error(error || '操作失败')
this.$message.error(error || '操作失败')
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment