Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
occloud-server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yangjiarong
occloud-server
Commits
9c547acb
Commit
9c547acb
authored
Jul 22, 2022
by
liuliufashi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
12a9b1e7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
10 deletions
+20
-10
dist.zip
web-vue-admin/dist.zip
+0
-0
index.vue
...-admin/src/views/goods-cabinet/components/goods/index.vue
+2
-1
index.vue
web-vue-admin/src/views/goods-cabinet/index.vue
+8
-2
index.vue
...e-admin/src/views/pay-list/components/createpay/index.vue
+1
-0
index.vue
web-vue-admin/src/views/pay-list/index.vue
+9
-7
No files found.
web-vue-admin/dist.zip
0 → 100644
View file @
9c547acb
File added
web-vue-admin/src/views/goods-cabinet/components/goods/index.vue
View file @
9c547acb
...
...
@@ -330,7 +330,8 @@ const onSubmit = () => {
parent
:
1
,
markingprice
:
fromData
.
markingprice
*
100
,
price
:
fromData
.
markingprice
*
100
,
picurl
:
fromData
.
picurl
picurl
:
fromData
.
picurl
,
free
:
value
.
value
}
const
data
:
any
=
await
onCreateGoods
(
JSON
.
stringify
(
prarms
))
if
(
data
.
state
===
1
)
{
...
...
web-vue-admin/src/views/goods-cabinet/index.vue
View file @
9c547acb
...
...
@@ -126,6 +126,8 @@
<div
style=
"display:flex;"
>
<div
style=
"margin-right:20px"
>
划线价
</div>
<a-input-number
style=
"width: 200px"
:min=
"0"
string-mode
:formatter=
"value => `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')"
:parser=
"value => value.replace(/\$\s?|(,*)/g, '')"
v-model:value=
"modelRef.markingprice"
/>
</div>
</a-form-item>
...
...
@@ -134,6 +136,8 @@
<div
style=
"display:flex;"
>
<div
style=
"margin-right:20px"
>
售卖价
</div>
<a-input-number
style=
"width: 200px"
:min=
"0"
string-mode
:formatter=
"value => `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')"
:parser=
"value => value.replace(/\$\s?|(,*)/g, '')"
v-model:value=
"modelRef.price"
/>
</div>
</a-form-item>
...
...
@@ -311,8 +315,10 @@ const onBack = async (e: Number) => {
const
onEdit
=
(
e
:
any
)
=>
{
visible
.
value
=
!
visible
.
value
;
modelRef
.
value
=
e
modelRef
.
value
.
sellingmodel
=
modelRef
.
value
.
price
?
'1'
:
'0'
fileList
.
value
[
0
].
url
=
modelRef
.
value
.
picurl
modelRef
.
value
.
sellingmodel
=
e
.
price
?
'1'
:
'0'
modelRef
.
value
.
price
=
e
.
price
/
100
modelRef
.
value
.
markingprice
=
e
.
markingprice
/
100
fileList
.
value
[
0
].
url
=
e
.
value
.
picurl
};
const
{
resetFields
,
validate
,
validateInfos
}
=
useForm
(
modelRef
,
...
...
web-vue-admin/src/views/pay-list/components/createpay/index.vue
View file @
9c547acb
...
...
@@ -189,6 +189,7 @@ const onSubmit = () => {
goodspayditch
:
goodspayditch
.
value
,
payment
:
formState
.
paymentmodel
==
'1'
?
price
.
value
*
100
:
priceSet
.
value
*
100
,
uid
,
remark
:
toRaw
(
formState
).
remark
}
const
data
:
any
=
await
onCreateGoodsPay
(
prarms
)
if
(
data
.
state
===
1
){
...
...
web-vue-admin/src/views/pay-list/index.vue
View file @
9c547acb
...
...
@@ -75,13 +75,13 @@
<a-radio-group
v-model:value=
"formState.paymentmodel"
name=
"radioGroup"
class=
"pay"
>
<div
style=
"display: flex;height: 35px;"
>
<a-radio
:value=
"0"
style=
"width:150px;"
>
商品默认金额
</a-radio>
<a-input-number
style=
"width:200px;height: 35px;"
v-model:value=
"formState.
payment
"
:formatter=
"value => `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')"
<a-input-number
style=
"width:200px;height: 35px;"
v-model:value=
"formState.
markingprice
"
:formatter=
"value => `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')"
:parser=
"value => value.replace(/\$\s?|(,*)/g, '')"
:disabled=
"true"
/>
<div
style=
"width:50px;"
>
元
</div>
</div>
<div
style=
"display: flex;height: 35px;margin-top: 20px;"
>
<a-radio
:value=
"1"
style=
"width:150px;"
>
自定义金额
</a-radio>
<a-input-number
style=
"width:200px;height: 35px;"
v-model:value=
"formState.payment
model
"
:formatter=
"value => `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')"
<a-input-number
style=
"width:200px;height: 35px;"
v-model:value=
"formState.payment"
:formatter=
"value => `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')"
:parser=
"value => value.replace(/\$\s?|(,*)/g, '')"
/>
<div
style=
"width:50px;"
>
元
</div>
</div>
...
...
@@ -240,10 +240,11 @@ const handleOk =async(e: MouseEvent) => {
};
const
onEdit
=
(
e
:
any
)
=>
{
formState
.
value
=
e
value2
.
value
=
dayjs
(
moment
(
formState
.
value
.
starttime
).
format
((
'YYYY/MM/DD'
)),
dateFormat
)
value3
.
value
=
dayjs
(
moment
(
formState
.
value
.
starttime
).
format
((
'HH:mm'
)),
'HH:mm'
)
value4
.
value
=
dayjs
(
moment
(
formState
.
value
.
expireendtime
).
format
((
'YYYY-MM-DD'
)),
dateFormat
)
value5
.
value
=
dayjs
(
moment
(
formState
.
value
.
expireendtime
).
format
((
'HH:mm'
)),
'HH:mm'
)
value2
.
value
=
dayjs
(
moment
(
e
.
starttime
).
format
((
'YYYY/MM/DD'
)),
dateFormat
)
value3
.
value
=
dayjs
(
moment
(
e
.
starttime
).
format
((
'HH:mm'
)),
'HH:mm'
)
value4
.
value
=
dayjs
(
moment
(
e
.
expireendtime
).
format
((
'YYYY-MM-DD'
)),
dateFormat
)
value5
.
value
=
dayjs
(
moment
(
e
.
expireendtime
).
format
((
'HH:mm'
)),
'HH:mm'
)
formState
.
value
.
payment
=
e
.
payment
/
100
showModal
()
}
const
onSearch
=
async
()
=>
{
...
...
@@ -302,13 +303,14 @@ const init = async () => {
const
uid
=
getUid
()
const
data
=
await
onSelectGoods
(
uid
)
listArray
.
value
=
data
.
data
}
const
onSelectCheckboxValue
=
(
e
:
any
,
index
:
any
)
=>
{
checkboxValue
.
value
[
index
]
=
e
}
const
onSelect
=
(
e
:
any
,
label
:
any
,
index
:
any
)
=>
{
console
.
log
(
e
,
'e'
,
label
,
index
,
formState
,
'formState'
);
formState
.
value
.
markingprice
=
listArray
.
value
[
label
.
index
].
price
}
onMounted
(
async
()
=>
{
onSearch
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment