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 d1f750af
authored
Dec 08, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
89e1ed6a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
8 deletions
src/common/constant.js
src/components/relate-store-dialog/index.vue
src/views/orderManage/orderDetail.vue
src/views/productGroup/editProduct.vue
src/common/constant.js
View file @
d1f750a
...
@@ -3,7 +3,8 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max
...
@@ -3,7 +3,8 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max
/* eslint-disable */
/* eslint-disable */
var
reg
=
{
var
reg
=
{
priceReg
:
/^
\d[\d\.]
*$/
,
priceReg
:
/^
\d[\d\.]
*$/
,
numReg
:
/^
[
1-9
]\d
*$/
numReg
:
/^
[
1-9
]\d
*$/
,
zNumReg
:
/^
\d
*$/
}
}
/* eslint-enable */
/* eslint-enable */
regRule
=
regRule
||
'priceReg'
regRule
=
regRule
||
'priceReg'
...
@@ -20,6 +21,9 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max
...
@@ -20,6 +21,9 @@ function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minValue, max
newValue
=
pointDigit
?
intergerNum
+
'.'
+
pointNum
:
newValue
.
split
(
'.'
)[
0
]
newValue
=
pointDigit
?
intergerNum
+
'.'
+
pointNum
:
newValue
.
split
(
'.'
)[
0
]
}
else
{
}
else
{
newValue
=
newValue
.
length
>
intergerDigit
?
oldValue
.
slice
(
0
,
intergerDigit
)
:
newValue
newValue
=
newValue
.
length
>
intergerDigit
?
oldValue
.
slice
(
0
,
intergerDigit
)
:
newValue
if
(
regRule
==
'zNumReg'
)
{
newValue
=
newValue
.
split
(
''
)[
0
]
==
'0'
?
'0'
:
newValue
}
}
}
return
newValue
return
newValue
}
else
{
}
else
{
...
...
src/components/relate-store-dialog/index.vue
View file @
d1f750a
...
@@ -88,6 +88,9 @@ export default {
...
@@ -88,6 +88,9 @@ export default {
mounted
()
{
mounted
()
{
this
.
selectedData
=
this
.
storeSelected
this
.
selectedData
=
this
.
storeSelected
this
.
selectedData
.
forEach
(
item
=>
{
item
.
merchantNo
=
item
.
merchantId
+
''
})
this
.
getSelectingList
()
this
.
getSelectingList
()
},
},
...
...
src/views/orderManage/orderDetail.vue
View file @
d1f750a
<!-- 订单详情 -->
<!-- 订单详情 -->
<
template
>
<
template
>
<div
class=
"order-detail marketing"
>
<div
class=
"order-detail marketing
edit-box
"
>
<div
class=
"container m-b-20"
>
<div
class=
"container m-b-20"
>
<p
class=
"edit-title"
>
订单信息
</p>
<p
class=
"edit-title"
>
订单信息
</p>
<el-form
label-width=
"100px"
:inline=
"true"
>
<el-form
label-width=
"100px"
:inline=
"true"
>
...
@@ -18,10 +18,10 @@
...
@@ -18,10 +18,10 @@
<span>
{{
detailForm
.
deliveryCompany
}}
{{
detailForm
.
deliveryNumber
}}
</span>
<span>
{{
detailForm
.
deliveryCompany
}}
{{
detailForm
.
deliveryNumber
}}
</span>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
v-if=
"orderGoods.length"
>
<div
v-if=
"orderGoods.length"
class=
"p-l-40"
>
<table
class=
"show-table"
>
<table
class=
"show-table"
>
<tbody>
<tbody>
<tr
v-for=
"(item, index) in orderGoods"
:key=
"index"
>
<tr
v-for=
"(item, index) in orderGoods"
:key=
"index"
style=
"height: 70px;"
>
<td><img
:src=
"item.goodsImage"
class=
"img-60"
/></td>
<td><img
:src=
"item.goodsImage"
class=
"img-60"
/></td>
<td>
{{
item
.
goodsName
}}
</td>
<td>
{{
item
.
goodsName
}}
</td>
<td>
{{
item
.
specificationData
}}
</td>
<td>
{{
item
.
specificationData
}}
</td>
...
@@ -154,7 +154,6 @@ export default {
...
@@ -154,7 +154,6 @@ export default {
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
routeInfo
=
this
.
$route
.
params
this
.
routeInfo
=
this
.
$route
.
params
console
.
log
(
this
.
routeInfo
)
this
.
getInfo
()
this
.
getInfo
()
},
},
...
@@ -176,6 +175,7 @@ export default {
...
@@ -176,6 +175,7 @@ export default {
},
},
getInfo
()
{
getInfo
()
{
this
.
$apis
.
orderManage
.
getOrderDetailApi
({
orderCode
:
this
.
routeInfo
.
orderCode
}).
then
(
res
=>
{
this
.
$apis
.
orderManage
.
getOrderDetailApi
({
orderCode
:
this
.
routeInfo
.
orderCode
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
detailForm
=
res
this
.
detailForm
=
res
this
.
orderRefund
=
res
.
orderRefund
||
null
this
.
orderRefund
=
res
.
orderRefund
||
null
if
(
this
.
orderRefund
)
{
if
(
this
.
orderRefund
)
{
...
...
src/views/productGroup/editProduct.vue
View file @
d1f750a
...
@@ -581,7 +581,7 @@ export default {
...
@@ -581,7 +581,7 @@ export default {
},
},
// 库存
// 库存
'editForm.goodsStock'
(
newValue
,
oldValue
)
{
'editForm.goodsStock'
(
newValue
,
oldValue
)
{
this
.
editForm
.
goodsStock
=
limitPrice
(
newValue
,
oldValue
,
10
,
0
,
0
,
10000000000
,
'
n
umReg'
)
this
.
editForm
.
goodsStock
=
limitPrice
(
newValue
,
oldValue
,
10
,
0
,
0
,
10000000000
,
'
zN
umReg'
)
},
},
// 运费
// 运费
'editForm.expressFee'
(
newValue
,
oldValue
)
{
'editForm.expressFee'
(
newValue
,
oldValue
)
{
...
@@ -677,7 +677,7 @@ export default {
...
@@ -677,7 +677,7 @@ export default {
if
(
e
.
key
!=
'Backspace'
&&
newValue
.
length
>
1
)
{
if
(
e
.
key
!=
'Backspace'
&&
newValue
.
length
>
1
)
{
oldValue
=
newValue
.
slice
(
0
,
newValue
.
length
-
1
)
oldValue
=
newValue
.
slice
(
0
,
newValue
.
length
-
1
)
}
}
this
.
nameToValSpecsList
[
idx
].
stock
=
limitPrice
(
newValue
,
oldValue
,
10
,
0
,
0
,
10000000000
,
'
n
umReg'
)
this
.
nameToValSpecsList
[
idx
].
stock
=
limitPrice
(
newValue
,
oldValue
,
10
,
0
,
0
,
10000000000
,
'
zN
umReg'
)
},
},
// 二次确认
// 二次确认
secondSimpleConfirm
(
title
,
txt
,
fn
)
{
secondSimpleConfirm
(
title
,
txt
,
fn
)
{
...
@@ -1031,7 +1031,7 @@ export default {
...
@@ -1031,7 +1031,7 @@ export default {
if
(
i
==
1
)
{
if
(
i
==
1
)
{
for
(
var
j
=
0
;
j
<
this
.
nameToValSpecsList
.
length
;
j
++
)
{
for
(
var
j
=
0
;
j
<
this
.
nameToValSpecsList
.
length
;
j
++
)
{
var
item
=
this
.
nameToValSpecsList
[
j
]
var
item
=
this
.
nameToValSpecsList
[
j
]
if
(
!
item
.
retailPrice
||
!
item
.
stock
)
{
if
(
!
item
.
retailPrice
||
!
(
item
.
stock
+
''
)
)
{
this
.
whereToGo
(
'specificationDetailList'
)
this
.
whereToGo
(
'specificationDetailList'
)
isJump
=
true
isJump
=
true
break
break
...
...
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