Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 dbc949cf
authored
Dec 13, 2021
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
2 parents
cc9afce1
6375e600
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
124 additions
and
160 deletions
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/addCustomerGroup.vue
src/views/customerTransform/components/activityModel.vue
src/views/customerTransform/components/basicInfo.vue
src/views/customerTransform/components/preview.vue
src/views/customerTransform/components/selectEmp.vue
src/views/customerTransform/components/selectLabel.vue
src/views/customerTransform/components/selectMembers.vue
src/views/customerTransform/components/tag-textarea.vue
src/views/customerTransform/components/welcomeWords.vue
src/views/customerTransform/detaiCustomeGroup.vue
src/views/customerTransform/detailCustomer.vue
src/views/customerTransform/index.vue
src/views/home/components/barChart.vue
src/views/home/components/lineChart.vue
src/views/home/components/pieChart.vue
src/views/home/index.vue
src/views/homeSet/index.vue
src/views/memberCenter/setmealAddUpdate.vue
src/views/productGroup/editProduct.vue
src/views/productStore/editProductDh.vue
src/views/customerTransform/addCustomer.vue
View file @
dbc949c
...
...
@@ -102,7 +102,7 @@
style=
"width: 320px;"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"标签筛选"
>
<
!--
<
el-form-item
label=
"标签筛选"
>
<el-button
size=
"small"
@
click=
"openLabel"
>
<i
class=
"el-icon-plus"
></i>
标签筛选
...
...
@@ -121,13 +121,7 @@
:disable-transitions=
"false"
@
close=
"removeTag(tag, idx)"
>
{{
tag
.
name
}}
</el-tag>
<!--
<el-input
size=
"small"
style=
"outline: none; border: none"
></el-input>
-->
</div>
<!--
<span
class=
"label-text"
>
已选择
<span>
{{
basicForm
.
userList
?
basicForm
.
userList
.
length
:
0
}}
</span>
人
</span>
-->
<div
class=
"sale-select"
v-show=
"basicForm.condition.labelList"
>
<div
:key=
"key"
class=
"el-input-tag input-tag-wrapper"
>
<el-tag
...
...
@@ -142,7 +136,7 @@
<el-input
size=
"small"
style=
"outline: none; border: none"
></el-input>
</div>
</div>
</el-form-item>
</el-form-item>
-->
</el-form>
</div>
<div
class=
"filter-footer"
>
...
...
@@ -235,7 +229,6 @@ export default {
},
data
()
{
const
validatorUser
=
(
rule
,
value
,
callback
)
=>
{
console
.
log
(
value
,
this
.
basicForm
.
userList
)
const
userList
=
this
.
basicForm
.
userList
if
(
userList
&&
userList
.
length
!=
0
)
{
callback
()
...
...
@@ -244,12 +237,10 @@ export default {
}
}
const
validatorAttachment
=
(
rule
,
value
,
callback
)
=>
{
console
.
log
(
this
.
$refs
.
welcome
.
previewList
)
const
previewList
=
this
.
$refs
.
welcome
.
previewList
if
(
previewList
.
length
!=
0
)
{
this
.
basicForm
.
attachmentList
=
previewList
}
console
.
log
(
this
.
basicForm
.
attachmentList
,
'---'
)
if
(
this
.
basicForm
.
attachmentList
)
{
if
(
this
.
basicForm
.
attachmentList
.
length
>
9
)
{
callback
(
new
Error
(
'附件不可超过9个'
))
...
...
@@ -261,7 +252,6 @@ export default {
}
}
const
validatorSendType
=
(
rule
,
value
,
callback
)
=>
{
console
.
log
(
value
)
if
(
value
)
{
if
(
value
==
2
)
{
if
(
!
this
.
basicForm
.
sendTime
)
{
...
...
@@ -340,7 +330,6 @@ export default {
},
// 成员弹窗
handleConfirm
()
{
console
.
log
(
this
.
$refs
.
membersForm
.
innerTags
)
if
(
this
.
$refs
.
membersForm
.
innerTags
.
length
!=
0
)
{
this
.
basicForm
.
userList
=
this
.
$refs
.
membersForm
.
innerTags
this
.
openMembers
()
...
...
@@ -352,7 +341,6 @@ export default {
}
},
remove
(
val
)
{
console
.
log
(
val
,
'00000'
)
this
.
$refs
.
membersForm
.
remove
(
val
)
this
.
$set
(
this
.
basicForm
,
'userList'
,
this
.
$refs
.
membersForm
.
innerTags
)
this
.
key
=
new
Date
()
...
...
@@ -362,10 +350,8 @@ export default {
this
.
$refs
.
selectLabel
.
init
()
},
handleSubmit
()
{
console
.
log
(
this
.
basicForm
,
this
.
$refs
.
welcome
.
previewList
)
this
.
$refs
.
basicForm
.
validate
(
valid
=>
{
if
(
valid
)
{
console
.
log
(
valid
)
this
.
$refs
.
groupForm
.
validate
(
v
=>
{
if
(
v
)
{
if
(
this
.
basicForm
.
selectType
==
2
&&
this
.
groupNumber
==
0
)
{
...
...
@@ -404,12 +390,10 @@ export default {
if
(
params
.
sendType
==
2
)
{
params
.
sendTimeStr
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
}
console
.
log
(
params
)
this
.
addLoading
=
true
this
.
$apis
.
customerTransform
.
insert
(
params
)
.
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
)
{
this
.
$message
({
type
:
'success'
,
...
...
@@ -432,7 +416,6 @@ export default {
})
},
handleSelect
(
val
)
{
console
.
log
(
val
)
this
.
isUpdate
=
true
const
arr
=
[]
if
(
val
.
length
!=
0
)
{
...
...
@@ -444,7 +427,6 @@ export default {
})
}
this
.
tagging
=
arr
console
.
log
(
this
.
tagging
)
},
// 删除标签
removeTag
(
item
,
idx
)
{
...
...
@@ -458,7 +440,6 @@ export default {
getGroupList
()
{
if
(
this
.
basicForm
.
userList
&&
this
.
basicForm
.
userList
.
length
!=
0
)
{
const
staffIds
=
this
.
basicForm
.
userList
.
map
(
item
=>
item
.
staffId
)
console
.
log
(
staffIds
)
this
.
$apis
.
customerTransform
.
groupList
({
staffIds
}).
then
(
res
=>
{
this
.
groupList
=
res
})
...
...
@@ -506,7 +487,6 @@ export default {
})
},
changeValue
(
v
)
{
console
.
log
(
v
,
Date
.
now
())
const
date
=
new
Date
(
v
).
getTime
()
if
(
date
<
Date
.
now
())
{
this
.
timeOptions
=
{
...
...
@@ -514,7 +494,6 @@ export default {
.
add
(
1
,
'm'
)
.
format
(
'HH:mm'
)}
:00 - 23:59:59`
}
console
.
log
(
this
.
timeOptions
)
}
else
{
this
.
timeOptions
=
{
selectableRange
:
'00:00:00 - 23:59:59'
...
...
src/views/customerTransform/addCustomerGroup.vue
View file @
dbc949c
...
...
@@ -127,7 +127,6 @@ export default {
},
data
()
{
const
validatorUser
=
(
rule
,
value
,
callback
)
=>
{
console
.
log
(
value
)
const
userList
=
this
.
basicForm
.
userList
if
(
userList
&&
userList
.
length
!=
0
)
{
callback
()
...
...
@@ -140,7 +139,6 @@ export default {
if
(
previewList
.
length
!=
0
)
{
this
.
basicForm
.
attachmentList
=
previewList
}
console
.
log
(
this
.
basicForm
.
attachmentList
,
'---'
)
if
(
this
.
basicForm
.
attachmentList
)
{
if
(
this
.
basicForm
.
attachmentList
.
length
>
9
)
{
callback
(
new
Error
(
'附件不可超过9个'
))
...
...
@@ -152,7 +150,6 @@ export default {
}
}
const
validatorSendType
=
(
rule
,
value
,
callback
)
=>
{
console
.
log
(
value
)
if
(
value
)
{
if
(
value
==
2
)
{
if
(
!
this
.
basicForm
.
sendTime
)
{
...
...
@@ -170,10 +167,8 @@ export default {
}
}
const
nameVaild
=
(
rule
,
value
,
callback
)
=>
{
console
.
log
(
value
)
if
(
value
)
{
this
.
$apis
.
customerTransform
.
nameVaild
({
templateName
:
value
}).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
)
{
callback
(
new
Error
(
'群聊名称不可重复'
))
}
else
{
...
...
@@ -252,7 +247,6 @@ export default {
}
},
remove
(
val
)
{
console
.
log
(
val
,
'00000'
)
this
.
$refs
.
membersForm
.
remove
(
val
)
this
.
$set
(
this
.
basicForm
,
'userList'
,
this
.
$refs
.
membersForm
.
innerTags
)
this
.
key
=
new
Date
()
...
...
@@ -287,11 +281,9 @@ export default {
params
.
sendTimeStr
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
}
this
.
addLoading
=
true
console
.
log
(
params
)
this
.
$apis
.
customerTransform
.
insert
(
params
)
.
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
)
{
this
.
$message
({
type
:
'success'
,
...
...
@@ -313,7 +305,6 @@ export default {
})
},
changeValue
(
v
)
{
console
.
log
(
v
,
Date
.
now
())
const
date
=
new
Date
(
v
).
getTime
()
if
(
date
<
Date
.
now
())
{
this
.
timeOptions
=
{
...
...
@@ -321,7 +312,6 @@ export default {
.
add
(
1
,
'm'
)
.
format
(
'HH:mm'
)}
:00 - 23:59:59`
}
console
.
log
(
this
.
timeOptions
)
}
else
{
this
.
timeOptions
=
{
selectableRange
:
'00:00:00 - 23:59:59'
...
...
src/views/customerTransform/components/activityModel.vue
View file @
dbc949c
...
...
@@ -133,7 +133,6 @@ export default {
if
(
item
.
equityClassId
)
{
this
.
selectItem
.
id
=
item
.
equityClassId
}
console
.
log
(
this
.
selectItem
)
},
handleSelect
()
{
if
(
!
this
.
selectItem
.
id
)
{
...
...
src/views/customerTransform/components/basicInfo.vue
View file @
dbc949c
...
...
@@ -111,17 +111,15 @@ export default {
},
mounted
()
{
this
.
getCustomerDetail
(
this
.
id
)
console
.
log
(
this
.
form
)
this
.
getStatistic
()
},
methods
:
{
getCustomerDetail
(
id
)
{
this
.
$apis
.
customerTransform
.
customerDetail
({
id
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
basicInfo
=
res
// this.basicInfo.sendTime = dayjs(this.basicInfo.sendTime).format('YYYY-MM-DD HH:mm:ss')
const
previewList
=
res
.
attachmentList
.
map
(
item
=>
{
if
(
item
.
attType
==
7
)
item
.
attContent
=
JSON
.
parse
(
item
.
attContent
)
if
(
item
.
attType
==
7
&&
item
.
attContent
)
item
.
attContent
=
JSON
.
parse
(
item
.
attContent
)
return
item
})
this
.
eventBus
.
$emit
(
'update'
,
previewList
)
...
...
@@ -131,12 +129,10 @@ export default {
const
{
id
,
form
}
=
this
if
(
form
==
'customer'
)
{
this
.
$apis
.
customerTransform
.
detailStatistic
({
id
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
statistic
=
res
})
}
else
if
(
form
==
'customerGroup'
)
{
this
.
$apis
.
customerTransform
.
groupDetailStatistic
({
id
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
statistic
=
res
})
}
...
...
src/views/customerTransform/components/preview.vue
View file @
dbc949c
...
...
@@ -53,11 +53,7 @@ export default {
}
},
created
()
{
this
.
$nextTick
(()
=>
{
console
.
log
(
1
,
this
.
list
)
})
this
.
eventBus
.
$on
(
'update'
,
val
=>
{
console
.
log
(
val
)
this
.
previewList
=
val
})
},
...
...
src/views/customerTransform/components/selectEmp.vue
View file @
dbc949c
...
...
@@ -86,11 +86,9 @@ export default {
this
.
listTree
=
res
this
.
loading
=
false
// this.listTree[0].entmicroStaffResponses = this.getEmployee(this.listTree)
console
.
log
(
this
.
listTree
)
this
.
currentArr
=
this
.
$common
.
utils
.
deepClone
(
this
.
listTree
[
0
].
entmicroStaffResponses
)
this
.
selectData
.
forEach
(
i
=>
{
const
row
=
this
.
getEmployee
(
this
.
listTree
).
find
(
j
=>
j
.
id
==
i
.
staffId
)
console
.
log
(
row
)
this
.
clearSelect
(
row
)
})
this
.
$nextTick
(()
=>
{
...
...
@@ -100,7 +98,6 @@ export default {
})
},
clearSelect
(
row
)
{
console
.
log
(
row
,
'2222'
)
this
.
$refs
.
saleTable
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
row
)
},
clearSelection
()
{
...
...
@@ -129,9 +126,7 @@ export default {
const
arr
=
[]
if
(
this
.
currentArr
&&
this
.
currentArr
.
length
!=
0
)
{
this
.
currentArr
.
forEach
(
item
=>
{
console
.
log
(
item
.
staffName
.
indexOf
(
search
)
!=
-
1
)
if
(
item
.
staffName
.
indexOf
(
search
)
!=
-
1
)
{
console
.
log
(
item
)
arr
.
push
(
item
)
}
})
...
...
@@ -151,7 +146,6 @@ export default {
// }
},
mounted
()
{
console
.
log
(
'islord'
,
this
.
islord
)
let
clientHeight
=
document
.
documentElement
.
clientHeight
this
.
treeHeight
=
clientHeight
-
650
this
.
listDepartmentTree
()
...
...
src/views/customerTransform/components/selectLabel.vue
View file @
dbc949c
...
...
@@ -245,7 +245,6 @@ export default {
}
})
.
filter
(
item
=>
item
)
console
.
log
(
labelTreeRets
)
this
.
$emit
(
'tagSelected'
,
labelTreeRets
)
},
//全选
...
...
src/views/customerTransform/components/selectMembers.vue
View file @
dbc949c
...
...
@@ -93,7 +93,6 @@ export default {
}
},
remove
(
row
)
{
console
.
log
(
row
,
'111'
)
this
.
$refs
.
selectEmpTabel
.
clearSelect
(
row
)
},
//查询
...
...
@@ -118,10 +117,7 @@ export default {
// this.$emit('closeDrawer')
// }
},
mounted
()
{
console
.
log
(
111
)
// this.listEntFollowerType()
}
mounted
()
{}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
src/views/customerTransform/components/tag-textarea.vue
View file @
dbc949c
...
...
@@ -170,7 +170,6 @@ export default {
}
},
inputClick
(
e
)
{
console
.
log
(
this
.
tag
.
toUpperCase
(),
e
.
target
.
nodeName
,
e
)
// 监听点击事件
this
.
isLocked
=
true
const
TAG_NAME
=
e
.
target
.
nodeName
...
...
src/views/customerTransform/components/welcomeWords.vue
View file @
dbc949c
...
...
@@ -170,7 +170,6 @@ export default {
handleImgChange
(
e
,
targetItem
)
{
var
reader
=
new
FileReader
()
var
file
=
e
.
srcElement
.
files
[
0
]
console
.
log
(
file
)
// 默认1MB
const
limitSize
=
targetItem
.
limitSize
||
1
const
isLt
=
file
.
size
/
1024
/
1024
<
limitSize
...
...
@@ -189,7 +188,6 @@ export default {
var
image
=
new
Image
()
image
.
src
=
e
.
target
.
result
image
.
onload
=
()
=>
{
console
.
log
(
file
,
targetItem
)
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
)[
file
.
name
.
split
(
'.'
).
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
common
.
pictureUpload
({
file
:
base64
}).
then
(
res
=>
{
...
...
src/views/customerTransform/detaiCustomeGroup.vue
View file @
dbc949c
...
...
@@ -165,7 +165,6 @@ export default {
type
:
2
})
.
then
(
res
=>
{
console
.
log
(
res
)
this
.
handleSearch
()
this
.
$message
({
type
:
'success'
,
...
...
@@ -210,6 +209,6 @@ export default {
width
:
100%
;
background
:
#ffffff
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
z-index
:
1
;
z-index
:
3
;
}
</
style
>
src/views/customerTransform/detailCustomer.vue
View file @
dbc949c
...
...
@@ -194,29 +194,24 @@ export default {
},
getCustomerDetail
(
id
)
{
this
.
$apis
.
customerTransform
.
customerDetail
({
id
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
basicInfo
=
res
})
},
getStaffList
(
status
=
null
)
{
const
id
=
this
.
$route
.
params
.
id
this
.
$apis
.
customerTransform
.
staffList
({
id
,
status
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
employeelist
=
res
?
res
:
[]
})
},
getCustomerList
(
status
=
null
)
{
const
id
=
this
.
$route
.
params
.
id
this
.
$apis
.
customerTransform
.
customerDetailList
({
id
,
status
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
customerlist
=
res
?
res
:
[]
})
},
remindUserGroup
()
{
const
id
=
this
.
$route
.
params
.
id
this
.
$apis
.
customerTransform
.
remindUserGroup
({
id
,
type
:
1
}).
then
(
res
=>
{
console
.
log
(
res
)
})
this
.
$apis
.
customerTransform
.
remindUserGroup
({
id
,
type
:
1
}).
then
(
res
=>
{})
}
}
}
...
...
src/views/customerTransform/index.vue
View file @
dbc949c
...
...
@@ -275,7 +275,6 @@ export default {
}
// if (type == 1) {
this
.
$apis
.
customerTransform
.
listRemindOperate
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
$message
({
type
:
'success'
,
message
:
'操作成功!'
...
...
src/views/home/components/barChart.vue
View file @
dbc949c
...
...
@@ -78,7 +78,6 @@ export default {
const
data
=
val
.
map
(
i
=>
i
.
totalSales
)
this
.
option
.
yAxis
.
data
=
yData
this
.
option
.
series
[
0
].
data
=
data
console
.
log
(
this
.
option
)
this
.
option
&&
this
.
myChart
.
setOption
(
this
.
option
)
}
}
...
...
src/views/home/components/lineChart.vue
View file @
dbc949c
...
...
@@ -67,7 +67,6 @@ export default {
},
watch
:
{
list
(
val
)
{
console
.
log
(
val
)
const
xData
=
val
.
map
(
i
=>
i
.
dataDateStr
)
const
yData
=
val
.
map
(
i
=>
i
.
amount
)
this
.
option
.
xAxis
.
data
=
xData
...
...
src/views/home/components/pieChart.vue
View file @
dbc949c
...
...
@@ -64,7 +64,6 @@ export default {
}
})
this
.
option
.
series
[
0
].
data
=
arr
console
.
log
(
arr
)
this
.
option
&&
this
.
myChart
.
setOption
(
this
.
option
)
}
},
...
...
src/views/home/index.vue
View file @
dbc949c
...
...
@@ -359,7 +359,6 @@ export default {
this
.
$set
(
this
.
date
,
0
,
start
.
setTime
(
start
.
getTime
()
-
3600
*
1000
*
24
*
14
))
this
.
$set
(
this
.
date
,
1
,
new
Date
())
this
.
init
(
this
.
date
)
console
.
log
(
this
.
$globalState
)
},
methods
:
{
init
(
date
)
{
...
...
@@ -372,7 +371,6 @@ export default {
this
.
merchantStatistical
()
},
dateChange
(
val
,
pointUnit
=
1
)
{
console
.
log
(
val
)
const
params
=
{
dataStartDateStr
:
dayjs
(
val
[
0
]).
format
(
'YYYY-MM-DD'
),
dataEndDateStr
:
dayjs
(
val
[
1
]).
format
(
'YYYY-MM-DD'
),
...
...
@@ -416,7 +414,6 @@ export default {
}
},
jumpPage
(
path
)
{
console
.
log
(
path
)
this
.
$router
.
push
(
path
)
},
couponStatistical
()
{
...
...
@@ -441,7 +438,6 @@ export default {
},
merchantStatistical
()
{
this
.
$apis
.
home
.
merchantStatistical
({}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
merchant
=
res
})
},
...
...
src/views/homeSet/index.vue
View file @
dbc949c
...
...
@@ -26,7 +26,7 @@
<span
class=
"number"
>
上传
</span>
<input
type=
"file"
style=
"opacity: 0;"
ref=
"file"
class=
"activity-img home-img-w-h"
accept=
"image/png, image/jpeg, image/gif, image/jpg"
@
change=
"e => handleImgChange(e, subIndex)"
/>
</div>
<div
v-show=
"!subItem.bannerImg"
>
<div
v-show=
"!subItem.bannerImg"
style=
"margin-left: 40px;"
>
<el-button
type=
"text"
class=
"el-icon-delete"
@
click=
"handleBannerDelete(subIndex)"
></el-button>
</div>
</div>
...
...
src/views/memberCenter/setmealAddUpdate.vue
View file @
dbc949c
...
...
@@ -239,7 +239,7 @@ export default {
},
//删除该条服务套餐(让item.serviceQuantity==0)
closeChoseItemFun
(
item
,
index
)
{
this
.
totalPrice
=
(
this
.
totalPrice
*
100
-
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
this
.
totalPrice
=
(
(
this
.
totalPrice
*
100
-
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
).
toFixed
(
2
)
// item.serviceQuantity = 0
// this.allItemList.forEach(ele => {
// if (ele.id == item.serviceId) {
...
...
@@ -255,7 +255,7 @@ export default {
this
.
allItemList
.
forEach
(
item
=>
{
if
(
item
.
serviceQuantity
)
{
this
.
selectNum
++
this
.
totalPrice
=
(
this
.
totalPrice
*
100
+
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
this
.
totalPrice
=
((
this
.
totalPrice
*
100
+
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
).
toFixed
(
2
)
}
})
},
...
...
@@ -406,7 +406,7 @@ export default {
this
.
setmealDialogVisible
=
false
this
.
totalPrice
=
0
this
.
choseItemList
.
forEach
(
item
=>
{
this
.
totalPrice
=
(
this
.
totalPrice
*
100
+
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
this
.
totalPrice
=
((
this
.
totalPrice
*
100
+
item
.
vipPrice
*
item
.
serviceQuantity
*
100
)
/
100
).
toFixed
(
2
)
})
// this.totalPrice = this.choseItemList.reduce(function(preValue, choseItem) {
...
...
src/views/productGroup/editProduct.vue
View file @
dbc949c
...
...
@@ -138,75 +138,77 @@
</tr>
</tbody>
</table>
<table
class=
"table-spesc"
style=
"max-height: 400px; overflow: scroll;"
>
<tbody>
<tr
style=
"border-bottom: 1px solid rgb(235, 235, 235); height: 54px; line-height: 54px;"
v-for=
"(subItem, subIndex) in nameToValSpecsList"
:key=
"subIndex"
>
<td
:style=
"{ width: specsWidth }"
v-for=
"(n, idx) in subItem.specsValueList"
:key=
"idx"
:title=
"n"
>
{{ n }}
</td>
<td
:style=
"{ width: specsWidth }"
>
<div
v-if=
"routeInfo.groupOrStore == 1"
>
<div
style=
"max-height: 400px; overflow: scroll;"
>
<table
class=
"table-spesc"
>
<tbody>
<tr
style=
"border-bottom: 1px solid rgb(235, 235, 235); height: 54px; line-height: 54px;"
v-for=
"(subItem, subIndex) in nameToValSpecsList"
:key=
"subIndex"
>
<td
:style=
"{ width: specsWidth }"
v-for=
"(n, idx) in subItem.specsValueList"
:key=
"idx"
:title=
"n"
>
{{ n }}
</td>
<td
:style=
"{ width: specsWidth }"
>
<div
v-if=
"routeInfo.groupOrStore == 1"
>
<el-input
:disabled=
"isDisabled"
:class=
"{ 'border-red': (!(subItem.retailPrice + '') || +editForm.supplyPrice > +subItem.retailPrice) && submitted }"
placeholder=
"零售价"
v-model=
"subItem.retailPrice"
@
input
.
native=
"e => handleRetailPriceInput(e, subIndex)"
@
blur=
"handleRetailPriceBlur"
>
<el-popover
v-show=
"(!(subItem.retailPrice + '') || +editForm.supplyPrice > +subItem.retailPrice) && submitted"
slot=
"suffix"
placement=
"top"
title
width=
"90"
trigger=
"hover"
:content=
"!(subItem.retailPrice + '') ? '零售价是必填项' : '零售价要大于供货价'"
>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
</el-popover>
</el-input>
</div>
<el-input
:disabled=
"isDisabled"
:class=
"{ 'border-red': (!(subItem.retailPrice + '') || +editForm.supplyPrice > +subItem.retailPrice) && submitted }"
v-else
placeholder=
"零售价"
v-model=
"subItem.retailPrice"
@
input
.
native=
"e => handleRetailPriceInput(e, subIndex)"
@
blur=
"handleRetailPriceBlur"
></el-input>
</td>
<td
:style=
"{ width: specsWidth }"
>
<el-input
:disabled=
"isDisabled"
placeholder=
"库存"
v-model=
"subItem.stock"
:class=
"{ 'border-red': !(subItem.stock + '') && submitted }"
@
input
.
native=
"e => handleStockInput(e, subIndex)"
>
<el-popover
v-show=
"
(!(subItem.retailPrice + '') || +editForm.supplyPrice > +subItem.retailPrice
) && submitted"
v-show=
"
!(subItem.stock + ''
) && submitted"
slot=
"suffix"
placement=
"top"
title
width=
"90"
trigger=
"hover"
:content=
"!(subItem.retailPrice + '') ? '零售价是必填项' : '零售价要大于供货价'
"
content=
"库存是必填项
"
>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
</el-popover>
</el-input>
</div>
<el-input
:disabled=
"isDisabled"
v-else
placeholder=
"零售价"
v-model=
"subItem.retailPrice"
@
input
.
native=
"e => handleRetailPriceInput(e, subIndex)"
@
blur=
"handleRetailPriceBlur"
></el-input>
</td>
<td
:style=
"{ width: specsWidth }"
>
<el-input
:disabled=
"isDisabled"
placeholder=
"库存"
v-model=
"subItem.stock"
:class=
"{ 'border-red': !(subItem.stock + '') && submitted }"
@
input
.
native=
"e => handleStockInput(e, subIndex)"
>
<el-popover
v-show=
"!(subItem.stock + '') && submitted"
slot=
"suffix"
placement=
"top"
title
width=
"90"
trigger=
"hover"
content=
"库存是必填项"
>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
</el-popover>
</el-input>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<
template
slot=
"retailPrice"
>
...
...
@@ -1322,7 +1324,7 @@ export default {
deleteAttrList
.
forEach
(
item
=>
{
delete
params
[
item
]
})
console
.
log
(
params
)
//
console.log(params)
this
.
$apis
.
proManage
.
insertOrUpdateProApi
(
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
...
...
src/views/productStore/editProductDh.vue
View file @
dbc949c
<!-- 商品编辑 - 带货 -->
<
template
>
<div
class=
"edit-product-dh marketing p-t-20"
>
<div
class=
"edit-product-dh marketing p-t-20
edit-box
"
>
<div
class=
"container edit-container"
>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<div
class=
"flex"
style=
"margin-top: 20px;"
>
<div
style=
"width: 440px; text-align: center;
"
>
<img
class=
"main-img"
:src=
"mainImgUrl"
/>
<div
class=
"main-img-box
"
>
<
!--
<
img
class=
"main-img"
:src=
"mainImgUrl"
/>
<div>
<div
class=
"flex"
>
<p
class=
"arrow left-arrow"
@
click=
"handleMoveImg('left')"
></p>
...
...
@@ -16,7 +16,18 @@
</div>
<p
class=
"arrow right-arrow"
@
click=
"handleMoveImg('right')"
></p>
</div>
</div>
</div>
-->
<!--
<img
v-if=
"!wechatImgList.length"
class=
"inner-img"
src=
"@/assets/product-default.png"
/>
-->
<el-carousel
height=
"420px"
>
<el-carousel-item
v-for=
"item in editForm.goodsDetailImageList"
:key=
"item"
>
<video
v-if=
"item.resType == 3"
class=
"inner-img"
:src=
"item.content"
></video>
<img
class=
"inner-img"
:src=
"item.content"
/>
</el-carousel-item>
</el-carousel>
</div>
<div
style=
"width: calc(100% - 440px);"
>
<p
class=
"pro-name txt-ellipsis"
>
{{
editForm
.
goodsName
}}
</p>
...
...
@@ -25,38 +36,44 @@
</div>
<div
v-if=
"specificationDetailList.length"
class=
"flex"
style=
"margin-top: 20px;"
id=
"specificationDetailList"
>
<span
class=
"spesc-label"
:style=
"
{ width: labelWidth }">规格明细:
</span>
<div
style=
"width: calc(100% - 100px);"
>
<div
style=
"width: calc(100% - 100px);
padding-right: 20px;
"
>
<table
class=
"table-spesc"
>
<tbody>
<tr>
<td
:style=
"
{ width: specsWidth }" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">
{{
subItem
.
specificationName
}}
</td>
<td
:style=
"
{ width: specsWidth }">零售价(元)
</td>
<td
:style=
"
{ width: specsWidth }">供货价
</td>
<td
:style=
"
{ width: specsWidth }">利润
</td>
<td
:style=
"
{ width: specsWidth }">库存
</td>
</tr>
</tbody>
</table>
<table
class=
"table-spesc"
style=
"max-height: 400px;"
>
<tbody>
<tr
style=
"border-bottom: 1px solid rgb(235, 235, 235);"
v-for=
"(item, index) in nameToValSpecsList"
:key=
"index"
>
<td
:style=
"
{ width: specsWidth }" v-for="(n, idx) in item.specsValueList" :key="idx">
{{
n
}}
</td>
<td
:style=
"
{ width: specsWidth }">
<el-input
:disabled=
"isDisabled"
:class=
"
{ 'border-red': (!(item.retailPrice + '') || +item.supplyPrice > +item.retailPrice)
&&
submitted }" placeholder="零售价" v-model="item.retailPrice" @input.native="e => handleInput(e, index)">
<el-popover
v-show=
"(!(item.retailPrice + '') || +item.supplyPrice > +item.retailPrice) && submitted"
slot=
"suffix"
placement=
"top"
title=
""
width=
"90"
trigger=
"hover"
:content=
"!(item.retailPrice + '') ? '零售价是必填项' : '零售价要大于供货价'"
>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
</el-popover>
</el-input>
</td>
<td
:style=
"
{ width: specsWidth }">
{{
item
.
supplyPrice
}}
元
</td>
<td
:style=
"
{ width: specsWidth }">
{{
(
item
.
retailPrice
-
item
.
supplyPrice
).
toFixed
(
2
)
}}
元
</td>
<td
:style=
"
{ width: specsWidth }">
{{
item
.
stock
}}
件
</td>
<tr
style=
"background: #F4F6FC; box-shadow: 0px 1px 5px 0px rgba(38, 38, 38, 0.1);"
>
<td
:style=
"
{ width: specsWidth, padding: '17px 0' }" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">
{{
subItem
.
specificationName
}}
</td>
<td
:style=
"
{ width: specsWidth, padding: '17px 0' }">零售价(元)
</td>
<td
:style=
"
{ width: specsWidth, padding: '17px 0' }">供货价
</td>
<td
:style=
"
{ width: specsWidth, padding: '17px 0' }">利润
</td>
<td
:style=
"
{ width: specsWidth, padding: '17px 0' }">库存
</td>
</tr>
</tbody>
</table>
<div
style=
"max-height: 400px; overflow: scroll;"
>
<table
class=
"table-spesc"
>
<tbody>
<tr
style=
"border-bottom: 1px solid rgb(235, 235, 235); height: 54px; line-height: 54px;"
v-for=
"(item, index) in nameToValSpecsList"
:key=
"index"
>
<td
:style=
"
{ width: specsWidth }" v-for="(n, idx) in item.specsValueList" :key="idx">
{{
n
}}
</td>
<td
:style=
"
{ width: specsWidth }">
<el-input
:disabled=
"isDisabled"
:class=
"
{ 'border-red': (!(item.retailPrice + '') || +item.supplyPrice > +item.retailPrice)
&&
submitted }" placeholder="零售价" v-model="item.retailPrice" @input.native="e => handleInput(e, index)">
<el-popover
v-show=
"(!(item.retailPrice + '') || +item.supplyPrice > +item.retailPrice) && submitted"
slot=
"suffix"
placement=
"top"
title=
""
width=
"90"
trigger=
"hover"
:content=
"!(item.retailPrice + '') ? '零售价是必填项' : '零售价要大于供货价'"
>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
</el-popover>
</el-input>
</td>
<td
:style=
"
{ width: specsWidth }">
{{
item
.
supplyPrice
}}
元
</td>
<td
:style=
"
{ width: specsWidth }">
{{
(
item
.
retailPrice
-
item
.
supplyPrice
).
toFixed
(
2
)
}}
元
</td>
<td
:style=
"
{ width: specsWidth }">
{{
item
.
stock
}}
件
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<glsx-combi-form
v-if=
"!specificationDetailList.length"
class=
"edit-form-container"
ref=
"editFormRef"
labelWidth=
"140px"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
></glsx-combi-form>
<div
style=
"width: 375px; margin: 0 0 10px 40px;"
v-for=
"(item, index) in editForm.goodsDescList"
:key=
"index"
>
<div
v-show=
"item.resType == 2"
>
{{
item
.
content
}}
</div>
<img
style=
"width: 375px; width: 375px;"
v-show=
"item.resType == 1"
:src=
"item.content"
/>
</div>
</div>
<div
class=
"footer"
:style=
"
{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
...
...
@@ -369,9 +386,21 @@ export default {
vertical-align
:
top
;
}
.edit-product-dh
.main-img
{
/*
.edit-product-dh .main-img {
width: 375px;
height: 375px;
} */
.edit-product-dh
.inner-img
{
width
:
420px
;
height
:
420px
;
}
.edit-product-dh
.main-img-box
{
width
:
440px
;
/* height: 440px; */
text-align
:
center
;
padding
:
0
20px
;
}
/* .edit-product-dh .flex {
...
...
@@ -424,6 +453,7 @@ export default {
.edit-product-dh
.supply-price
{
font-size
:
26px
;
color
:
#FF6D00
;
margin-top
:
10px
;
}
.edit-product-dh
.border-red
{
...
...
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