Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 a51d4838
authored
Jun 16, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
0704定向礼包开发
1 parent
602d5f02
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
199 additions
and
40 deletions
src/api/modules/giftBag.js
src/assets/css/public.scss
src/setup/qiankun.js
src/views/giftBag/editGift.vue
src/views/giftBag/giftList.vue
src/views/giftBag/receivedGiftList.vue
src/api/modules/giftBag.js
View file @
a51d483
...
@@ -119,4 +119,14 @@ const templateModal = params => {
...
@@ -119,4 +119,14 @@ const templateModal = params => {
})
})
}
}
export
default
{
getFollowerStaffListApi
,
getListApi
,
giftExportApi
,
deleteGiftApi
,
getGiftInfoApi
,
getReceivedGiftInfoApi
,
exportGiftInfoApi
,
getDirectionalGiftListApi
,
insertGiftApi
,
templateModal
,
getghDirectionalGiftListApi
}
const
toVoidGift
=
params
=>
{
params
.
method
=
'scrm.api.coupon.user.directional.gift.cancel'
return
http
({
url
:
'rop-scrm-coupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getFollowerStaffListApi
,
getListApi
,
giftExportApi
,
deleteGiftApi
,
getGiftInfoApi
,
getReceivedGiftInfoApi
,
exportGiftInfoApi
,
getDirectionalGiftListApi
,
insertGiftApi
,
templateModal
,
getghDirectionalGiftListApi
,
toVoidGift
}
src/assets/css/public.scss
View file @
a51d483
...
@@ -580,3 +580,6 @@ html {
...
@@ -580,3 +580,6 @@ html {
border-top-color
:
#e4e7ed
!
important
;
border-top-color
:
#e4e7ed
!
important
;
}
}
/* tab */
/* tab */
.myMessage
{
z-index
:
4000
!
important
;
}
src/setup/qiankun.js
View file @
a51d483
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
message
,
messageBox
}
from
'@/plugins/element.js'
import
{
message
,
messageBox
}
from
'@/plugins/element.js'
import
{
fetchConfig
}
from
'@/config'
import
{
fetchConfig
}
from
'@/config'
import
{
GLButton
,
GLTable
,
GLFooter
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
GLButton
,
GLTable
,
GLFooter
,
GLCombiForm
,
GLTableButton
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
getRoutes
}
from
'@/router'
import
{
getRoutes
}
from
'@/router'
import
ElementUI
from
'element-ui'
import
ElementUI
from
'element-ui'
import
'@/assets/css/public.scss'
import
'@/assets/css/public.scss'
...
@@ -21,6 +21,8 @@ let instance = null
...
@@ -21,6 +21,8 @@ let instance = null
Vue
.
use
(
ElementUI
)
Vue
.
use
(
ElementUI
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLTable
)
Vue
.
use
(
GLFooter
)
Vue
.
use
(
GLFooter
)
Vue
.
use
(
GLCombiForm
)
Vue
.
use
(
GLTableButton
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
request2
,
sign
,
secret
,
sign_common
,
request_common
,
request_merchant
,
xiaolong_req
}
=
await
fetchConfig
(
false
)
const
{
response
,
request
,
request2
,
sign
,
secret
,
sign_common
,
request_common
,
request_merchant
,
xiaolong_req
}
=
await
fetchConfig
(
false
)
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$history
=
history
...
@@ -36,6 +38,12 @@ export async function bootstrap({ history, common, messenger, globalState, route
...
@@ -36,6 +38,12 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_xiaolong
=
new
common
.
Http
({
response
,
request
:
xiaolong_req
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_xiaolong
=
new
common
.
Http
({
response
,
request
:
xiaolong_req
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
// const myToken = 'scrm-base-107ee03c-1214-48c3-a443-a2332e553b2f-rop'
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: myToken } })
// Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: myToken } })
// Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: myToken } })
// Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: myToken } })
// Vue.prototype.$http_xiaolong = new common.Http({ response, request: xiaolong_req, sign, secret, alert: message.error, headers: { token: myToken } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
...
...
src/views/giftBag/editGift.vue
View file @
a51d483
This diff is collapsed.
Click to expand it.
src/views/giftBag/giftList.vue
View file @
a51d483
...
@@ -11,17 +11,8 @@
...
@@ -11,17 +11,8 @@
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<div>
<div>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<GLCombiForm
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
></GLCombiForm>
<span
slot=
"footer"
>
<GLButton
style=
"float:right;margin-bottom:20px;"
:size=
"size"
class=
"default-blue-btn"
type=
"default"
fn=
"导出"
@
click=
"handleExport"
>
导出
</GLButton>
<el-button
:size=
"size"
type=
"default"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</span>
</glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<GLButton
:size=
"size"
class=
"default-blue-btn"
type=
"default"
fn=
"导出"
@
click=
"handleExport"
>
导出
</GLButton>
</span>
</glsx-combi-form>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
...
@@ -30,6 +21,7 @@
...
@@ -30,6 +21,7 @@
<div
class=
"p-b-12"
>
礼包明细
</div>
<div
class=
"p-b-12"
>
礼包明细
</div>
<div
class=
"gift-detail flex-wrap"
>
<div
class=
"gift-detail flex-wrap"
>
<div
class=
"gift-item"
v-for=
"(item, index) in scope.scope.couponList"
:key=
"index"
>
<div
class=
"gift-item"
v-for=
"(item, index) in scope.scope.couponList"
:key=
"index"
>
<img
:src=
"require(`@/assets/coupon/icon-$
{attrToIcon[item.discountType]}.png`)" />
<p
:class=
"['gift-coupon-name', item.status == '3' ? ' txt-grey' : '']"
>
{{
item
.
couponName
}}
×
{{
item
.
couponAmount
}}
</p>
<p
:class=
"['gift-coupon-name', item.status == '3' ? ' txt-grey' : '']"
>
{{
item
.
couponName
}}
×
{{
item
.
couponAmount
}}
</p>
<p
v-show=
"item.status == '3'"
class=
"gift-tips"
>
已失效
</p>
<p
v-show=
"item.status == '3'"
class=
"gift-tips"
>
已失效
</p>
</div>
</div>
...
@@ -38,12 +30,12 @@
...
@@ -38,12 +30,12 @@
<div
slot=
"name"
slot-scope=
"scope"
>
<div
slot=
"name"
slot-scope=
"scope"
>
<p
class=
"cursor-pointer"
@
click=
"handleDetail(scope.scope)"
>
{{
scope
.
scope
.
name
}}
</p>
<p
class=
"cursor-pointer"
@
click=
"handleDetail(scope.scope)"
>
{{
scope
.
scope
.
name
}}
</p>
</div>
</div>
<div
slot=
"approveStatus"
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;"
slot=
"approveStatus"
slot-scope=
"scope"
>
<span
:style=
"
{ color: approvalStatusColor[scope.scope.approveStatus - 1] }">
{{
approvalStatusVal
[
scope
.
scope
.
approveStatus
-
1
]
}}
</span>
<div
class=
"approve-status"
:style=
"
{ 'background-color': approvalStatusColor[scope.scope.approveStatus - 1] }">
</div>
<span>
{{
approvalStatusVal
[
scope
.
scope
.
approveStatus
-
1
]
}}
</span>
</div>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLButton
type=
"text"
fn=
"编辑"
@
click=
"handleEdit('edit', scope.scope)"
>
编辑
</GLButton>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
<GLButton
type=
"text"
fn=
"删除"
@
click=
"handleDelete(scope.scope)"
>
删除
</GLButton>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
...
@@ -59,6 +51,40 @@ export default {
...
@@ -59,6 +51,40 @@ export default {
name
:
'giftList'
,
name
:
'giftList'
,
data
()
{
data
()
{
return
{
return
{
attrToIcon
:
{
2
:
'discount'
,
3
:
'cash'
,
4
:
'exchange'
,
7
:
'service'
},
buttonList
:
[
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'编辑'
},
attrs
:
{
type
:
'text'
,
fn
:
'编辑'
},
listeners
:
{
click
:
row
=>
this
.
handleEdit
(
'edit'
,
row
.
scope
)
}
},
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'删除'
},
attrs
:
{
type
:
'text'
,
fn
:
'删除'
},
listeners
:
{
click
:
row
=>
this
.
handleDelete
(
row
.
scope
)
}
}
],
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
searchForm
:
{
searchForm
:
{
...
@@ -130,11 +156,11 @@ export default {
...
@@ -130,11 +156,11 @@ export default {
{
{
label
:
'备注名称'
,
label
:
'备注名称'
,
prop
:
'remarkName'
,
prop
:
'remarkName'
,
width
:
'200'
width
:
150
},
},
{
{
label
:
'预估成本/元'
,
label
:
'预估成本/元'
,
width
:
20
0
,
width
:
15
0
,
prop
:
'anticipatedCost'
,
prop
:
'anticipatedCost'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
(
cellValue
.
anticipatedCost
/
100
).
toFixed
(
2
)
return
(
cellValue
.
anticipatedCost
/
100
).
toFixed
(
2
)
...
@@ -143,12 +169,28 @@ export default {
...
@@ -143,12 +169,28 @@ export default {
{
{
label
:
'发放员工'
,
label
:
'发放员工'
,
prop
:
'staffList'
,
prop
:
'staffList'
,
width
:
20
0
,
width
:
15
0
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
staffList
.
map
(
item
=>
item
.
staffName
).
join
(
','
)
return
cellValue
.
staffList
.
map
(
item
=>
item
.
staffName
).
join
(
','
)
}
}
},
},
{
{
label
:
'已领取'
,
prop
:
'stock'
,
width
:
150
,
formatter
:
cellValue
=>
{
return
cellValue
.
receivedStock
||
'0'
}
},
{
label
:
'待领取'
,
prop
:
''
,
width
:
150
,
formatter
:
cellValue
=>
{
return
+
cellValue
.
stock
-
+
cellValue
.
receivedStock
||
'0'
}
},
{
label
:
'赠送原因'
,
label
:
'赠送原因'
,
width
:
200
,
width
:
200
,
prop
:
'giveReason'
,
prop
:
'giveReason'
,
...
@@ -158,13 +200,14 @@ export default {
...
@@ -158,13 +200,14 @@ export default {
},
},
{
{
label
:
'审批状态'
,
label
:
'审批状态'
,
width
:
150
,
prop
:
'approveStatus'
,
prop
:
'approveStatus'
,
addHtml
:
'approveStatus'
addHtml
:
'approveStatus'
},
},
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
width
:
'180'
,
width
:
180
,
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'
)
}
}
...
@@ -204,7 +247,7 @@ export default {
...
@@ -204,7 +247,7 @@ export default {
},
},
// 1 审批中;2 审批通过; 3审批驳回 4审批撤销 5待审批
// 1 审批中;2 审批通过; 3审批驳回 4审批撤销 5待审批
// 审批状态 0审批中 1审批通过 2审批驳回
// 审批状态 0审批中 1审批通过 2审批驳回
approvalStatusColor
:
[
'#
FF6D00'
,
'#2CCA74'
,
'#EB4E4E'
,
'#999999'
,
'#999999
'
],
approvalStatusColor
:
[
'#
5850FF'
,
'#2CCA74'
,
'#EB4E4E'
,
'#FDB757'
,
'#FDB757
'
],
approvalStatusVal
:
[
'审批中'
,
'审批通过'
,
'已驳回'
,
'审批撤销'
,
'待审批'
]
approvalStatusVal
:
[
'审批中'
,
'审批通过'
,
'已驳回'
,
'审批撤销'
,
'待审批'
]
}
}
},
},
...
@@ -294,6 +337,7 @@ export default {
...
@@ -294,6 +337,7 @@ export default {
$title
:
encodeURI
(
addOrEdit
==
'add'
?
'新增礼包'
:
'编辑礼包'
)
$title
:
encodeURI
(
addOrEdit
==
'add'
?
'新增礼包'
:
'编辑礼包'
)
}
}
addOrEdit
!=
'add'
&&
(
params
.
id
=
row
.
id
)
addOrEdit
!=
'add'
&&
(
params
.
id
=
row
.
id
)
addOrEdit
!=
'add'
&&
(
params
.
receivedStock
=
row
.
receivedStock
)
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/giftBag/editGift'
,
path
:
'/giftBag/editGift'
,
query
:
params
query
:
params
...
@@ -354,12 +398,28 @@ export default {
...
@@ -354,12 +398,28 @@ export default {
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.p-b-12
{
.p-b-12
{
margin-bottom
:
14px
;
margin-bottom
:
14px
;
font-weight
:
500
;
color
:
#333333
;
}
.approve-status
{
width
:
6px
;
height
:
6px
;
border-radius
:
4px
;
margin-right
:
8px
;
display
:
inline-block
;
}
}
.gift-detail
.gift-item
{
.gift-detail
.gift-item
{
margin-right
:
80px
;
margin-right
:
80px
;
display
:
flex
;
align-items
:
center
;
color
:
#333333
;
img
{
height
:
23px
;
width
:
58px
;
margin-right
:
23px
;
}
.gift-coupon-name
{
.gift-coupon-name
{
display
:
inline-block
;
display
:
inline-block
;
margin-right
:
7px
;
}
}
.gift-tips
{
.gift-tips
{
display
:
inline-block
;
display
:
inline-block
;
...
...
src/views/giftBag/receivedGiftList.vue
View file @
a51d483
...
@@ -3,31 +3,34 @@
...
@@ -3,31 +3,34 @@
<div
class=
"marketing"
>
<div
class=
"marketing"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div>
<div>
<
glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
></glsx-combi-f
orm>
<
GLCombiForm
ref=
"showSearch"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
:formObj=
"searchForm"
:formData=
"searchFormData"
></GLCombiF
orm>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData1"
>
<
!--
<
glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData1"
>
<span
slot=
"footer"
>
<span
slot=
"footer"
>
<el-button
:size=
"size"
type=
"default"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"default"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</span>
</span>
</glsx-combi-form>
</glsx-combi-form>
-->
<glsx-combi-form
ref=
"showSearch"
>
<
!--
<
glsx-combi-form
ref=
"showSearch"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<span
slot=
"footer"
class=
"footer-btns"
>
-->
<!--
<el-button
:size=
"size"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
-->
<!--
<el-button
:size=
"size"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
-->
<GLButton
:size=
"size"
class=
"default-blue-btn"
type=
"default"
fn=
"已领取导出"
@
click=
"handleExport"
>
导出
</GLButton>
<!--
<GLButton
:size=
"size"
class=
"default-blue-btn"
type=
"default"
fn=
"已领取导出"
@
click=
"handleExport"
>
导出
</GLButton>
</span>
</span>
</glsx-combi-form>
</glsx-combi-form>
-->
<GLButton
style=
"float:right;margin-bottom:20px;"
:size=
"size"
class=
"default-blue-btn"
type=
"default"
fn=
"已领取导出"
@
click=
"handleExport"
>
导出
</GLButton>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"receivedGiftListRef"
:getListApi=
"getListApi"
:hasNum=
"false"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"receivedGiftListRef"
:getListApi=
"getListApi"
:hasNum=
"false"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<span
slot=
"directionalGiftName"
slot-scope=
"scope"
>
<span
slot=
"directionalGiftName"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
{{
scope
.
scope
.
directionalGiftName
}}
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
{{
scope
.
scope
.
directionalGiftName
}}
</el-button>
<span
v-if=
"scope.scope.receiveStatus == 2"
class=
"void-label"
>
已作废
</span>
<p
class=
"void-reason"
v-if=
"scope.scope.receiveStatus == 2"
>
作废原因:
{{
scope
.
scope
.
cancelReason
||
'--'
}}
</p>
</span>
</span>
<div
slot=
"giftInfo"
slot-scope=
"scope"
>
<div
slot=
"giftInfo"
slot-scope=
"scope"
>
<GLTable
ref=
"giftListRef"
:hasNum=
"false"
:hasPage=
"false"
:noDataImg=
"url"
:tableParams=
"giftParams"
:tableData=
"scope.scope | filterTable"
@
setTableFinishFun=
"setGiftTableFinishFun"
></GLTable>
<GLTable
ref=
"giftListRef"
:hasNum=
"false"
:hasPage=
"false"
:noDataImg=
"url"
:tableParams=
"giftParams"
:tableData=
"scope.scope | filterTable"
@
setTableFinishFun=
"setGiftTableFinishFun"
></GLTable>
</div>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"toVoid(scope.scope)"
>
作废
</el-button>
<el-button
:disabled=
"scope.scope.receiveStatus == 2"
type=
"text"
@
click=
"toVoid(scope.scope)"
>
作废
</el-button>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
...
@@ -37,7 +40,7 @@
...
@@ -37,7 +40,7 @@
<p
class=
"dialog-tip"
>
请先和客户沟通在确认,避免引起客诉,作废后客户将不可使用该礼包下所有优惠卷
</p>
<p
class=
"dialog-tip"
>
请先和客户沟通在确认,避免引起客诉,作废后客户将不可使用该礼包下所有优惠卷
</p>
<div
style=
"display:flex;"
>
<div
style=
"display:flex;"
>
<label
style=
"white-space:nowrap;"
for=
""
>
作废原因:
</label>
<label
style=
"white-space:nowrap;"
for=
""
>
作废原因:
</label>
<el-input
type=
"textarea"
v-model=
"
phone
"
placeholder=
"请输入作废原因"
></el-input>
<el-input
type=
"textarea"
v-model=
"
reason"
maxlength=
"50
"
placeholder=
"请输入作废原因"
></el-input>
</div>
</div>
</div>
</div>
</glsx-dialog>
</glsx-dialog>
...
@@ -71,13 +74,16 @@ export default {
...
@@ -71,13 +74,16 @@ export default {
return
{
return
{
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
curId
:
''
,
reason
:
''
,
voidDialogVisibity
:
false
,
voidDialogVisibity
:
false
,
searchForm
:
{
searchForm
:
{
nickName
:
''
,
nickName
:
''
,
wechatUserFlag
:
''
,
wechatUserFlag
:
''
,
giftName
:
''
,
giftName
:
''
,
staffName
:
''
,
staffName
:
''
,
createDate
:
[]
createDate
:
[],
receiveStatus
:
''
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
// 搜索
// 搜索
...
@@ -103,9 +109,7 @@ export default {
...
@@ -103,9 +109,7 @@ export default {
optionLabel
:
'Name'
,
optionLabel
:
'Name'
,
optionsName
:
'List'
,
optionsName
:
'List'
,
placeholder
:
'请选择'
placeholder
:
'请选择'
}
},
],
searchFormData1
:
[
{
{
label
:
'发放员工'
,
label
:
'发放员工'
,
name
:
'staffName'
,
name
:
'staffName'
,
...
@@ -117,8 +121,32 @@ export default {
...
@@ -117,8 +121,32 @@ export default {
name
:
'createDate'
,
name
:
'createDate'
,
type
:
'datePicker'
,
type
:
'datePicker'
,
pickerOptions
:
'beforeRangePickerOptions'
pickerOptions
:
'beforeRangePickerOptions'
},
{
label
:
'领取状态'
,
name
:
'receiveStatus'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'Id'
,
optionLabel
:
'Name'
,
optionsName
:
'statusList'
,
placeholder
:
'请选择'
}
}
],
],
// searchFormData1: [
// {
// label: '发放员工',
// name: 'staffName',
// type: 'input',
// placeholder: '请输入'
// },
// {
// label: '领取日期',
// name: 'createDate',
// type: 'datePicker',
// pickerOptions: 'beforeRangePickerOptions'
// }
// ],
baseData
:
{
baseData
:
{
List
:
[
List
:
[
{
{
...
@@ -129,6 +157,16 @@ export default {
...
@@ -129,6 +157,16 @@ export default {
Id
:
'2'
,
Id
:
'2'
,
Name
:
'是'
Name
:
'是'
}
}
],
statusList
:
[
{
Id
:
'1'
,
Name
:
'正常使用'
},
{
Id
:
'2'
,
Name
:
'已作废'
}
]
]
},
},
//礼包详情
//礼包详情
...
@@ -195,12 +233,12 @@ export default {
...
@@ -195,12 +233,12 @@ export default {
{
{
label
:
'客户手机号'
,
label
:
'客户手机号'
,
prop
:
'phone'
,
prop
:
'phone'
,
width
:
'110'
width
:
150
},
},
{
{
label
:
'是否为企微客户'
,
label
:
'是否为企微客户'
,
prop
:
'wechatUserFlag'
,
prop
:
'wechatUserFlag'
,
width
:
'200'
,
width
:
150
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
wechatUserFlag
==
1
)
{
if
(
cellValue
.
wechatUserFlag
==
1
)
{
return
'否'
return
'否'
...
@@ -282,8 +320,27 @@ export default {
...
@@ -282,8 +320,27 @@ export default {
// 查看
// 查看
handleVoidClose
()
{
handleVoidClose
()
{
this
.
voidDialogVisibity
=
false
this
.
voidDialogVisibity
=
false
this
.
curId
=
''
this
.
reason
=
''
},
},
handleVoidConfirm
()
{
handleVoidConfirm
()
{
if
(
!
this
.
reason
.
trim
())
{
return
this
.
$message
({
message
:
'请输入作废原因!'
,
type
:
'error'
,
customClass
:
'myMessage'
})
}
this
.
$apis
.
giftBag
.
toVoidGift
({
userDirectionalGiftId
:
this
.
curId
,
cancelReason
:
this
.
reason
}).
then
(
res
=>
{
if
(
res
)
{
this
.
handleVoidClose
()
this
.
$message
({
message
:
'操作成功'
,
type
:
'success'
})
this
.
$refs
.
receivedGiftListRef
.
refreshTable
()
}
})
this
.
handleVoidClose
()
this
.
handleVoidClose
()
},
},
handleDetail
(
row
)
{
handleDetail
(
row
)
{
...
@@ -294,7 +351,8 @@ export default {
...
@@ -294,7 +351,8 @@ export default {
}
}
})
})
},
},
toVoid
(
scope
)
{
toVoid
(
row
)
{
this
.
curId
=
row
.
id
this
.
voidDialogVisibity
=
true
this
.
voidDialogVisibity
=
true
},
},
getParams
()
{
getParams
()
{
...
@@ -408,7 +466,8 @@ export default {
...
@@ -408,7 +466,8 @@ export default {
wechatUserFlag
:
''
,
wechatUserFlag
:
''
,
giftName
:
''
,
giftName
:
''
,
staffName
:
''
,
staffName
:
''
,
createDate
:
[]
createDate
:
[],
receiveStatus
:
''
}
}
this
.
handleSearch
()
this
.
handleSearch
()
}
}
...
@@ -426,9 +485,28 @@ export default {
...
@@ -426,9 +485,28 @@ export default {
.marketing
/
deep
/
.el-table
th
div
{
.marketing
/
deep
/
.el-table
th
div
{
line-height
:
normal
!important
;
line-height
:
normal
!important
;
}
}
.void-label
{
width
:
44px
;
height
:
18px
;
display
:
inline-block
;
font-size
:
12px
;
color
:
#999999
;
border-radius
:
2px
;
text-align
:
center
;
line-height
:
18px
;
background
:
#eeeded
;
margin-left
:
4px
;
}
.void-reason
{
font-size
:
10px
;
color
:
#999999
;
}
.void-dialog
{
.void-dialog
{
/deep/
.el-dialog__body
{
/deep/
.el-dialog__body
{
padding
:
20px
80px
;
padding
:
20px
80px
;
.el-textarea__inner
{
font-family
:
auto
;
}
.wrap
{
.wrap
{
padding-bottom
:
50px
;
padding-bottom
:
50px
;
.dialog-tip
{
.dialog-tip
{
...
...
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