Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
李俊赕
self-support
Commits
76062105
Commit
76062105
authored
Sep 16, 2021
by
Facius
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-1.5.3' into test
parents
2c439c19
6434480e
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
483 additions
and
400 deletions
+483
-400
XhInput.vue
src/components/createCom/XhInput.vue
+123
-84
stringMixin.js
src/components/createCom/stringMixin.js
+4
-0
detail.vue
src/components/order/detail.vue
+289
-278
index.vue
src/components/order/index.vue
+18
-16
upload-progress.vue
src/components/upload-progress/upload-progress.vue
+34
-13
index.vue
src/pages/index/index.vue
+2
-1
mine.vue
src/pages/index/mine.vue
+5
-1
index.vue
src/pages/mine/warehouse/index.vue
+1
-1
complete.vue
src/pages/order/complete.vue
+6
-5
search.vue
src/pages/order/search.vue
+1
-1
No files found.
src/components/createCom/XhInput.vue
View file @
76062105
<!-- ******************* 输入框 ******************* -->
<!-- ******************* 输入框 ******************* -->
<
template
>
<
template
>
<view
:style=
"
{'width': fieldsWidth}">
<view
:style=
"
{ width: fieldsWidth }" class="input-view-class">
<u-input
:type=
"type"
class=
"input-item"
v-model=
"dataValue"
@
input=
"valueChange"
:placeholder=
"placeholder"
:placeholder-style=
"placeholderStyle"
<view
class=
"tip-span"
v-if=
"showTip"
>
(
{{
placeholderText
}}
)
</view>
:custom-style=
"customStyle"
:clearable=
"false"
:border=
"border"
border-color=
"#ECECEC"
:maxlength=
"maxlength"
:cursor-spacing=
"10"
:disabled=
"isDisabled"
hold-keyboard
/>
<u-input
<view
class=
"content"
v-if=
"slotContent"
>
:type=
"type"
<text
class=
"txt"
>
{{
slotContent
}}
</text>
class=
"input-item"
</view>
v-model=
"dataValue"
</view>
@
input=
"valueChange"
:placeholder=
"placeholderText"
:placeholder-style=
"placeholderStyle"
:custom-style=
"customStyle"
:clearable=
"false"
:border=
"border"
border-color=
"#ECECEC"
:maxlength=
"maxlength"
:cursor-spacing=
"10"
:disabled=
"isDisabled"
hold-keyboard
@
blur=
"showTip=isESerialNum && dataValue.length
<
maxlength
"
/>
<view
class=
"content"
v-if=
"slotContent"
>
<text
class=
"txt"
>
{{
slotContent
}}
</text>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
stringMixin
from
'./stringMixin'
import
stringMixin
from
'./stringMixin'
export
default
{
export
default
{
name
:
'XhInput'
,
// 新建 input
name
:
'XhInput'
,
// 新建 input
components
:
{},
components
:
{},
mixins
:
[
stringMixin
],
mixins
:
[
stringMixin
],
props
:
{
props
:
{
placeholder
:
{
placeholder
:
{
type
:
String
,
type
:
String
,
default
:
'请输入'
default
:
'请输入'
,
},
},
item
:
{
item
:
{
type
:
Object
,
type
:
Object
,
default
()
{
default
()
{
return
{}
return
{}
}
},
},
},
type
:
{
type
:
{
type
:
String
,
type
:
String
,
default
:
'text'
default
:
'text'
,
},
},
slotContent
:
{
slotContent
:
{
type
:
String
,
type
:
String
,
default
:
''
default
:
''
,
}
},
},
},
data
()
{
data
()
{
return
{
return
{
inputType
:
'text'
inputType
:
'text'
,
}
showTip
:
false
,
},
}
computed
:
{
},
maxlength
()
{
computed
:
{
return
this
.
type
==
'digit'
?
9
:
140
isDigit
()
{
},
return
this
.
type
==
'digit'
fieldsWidth
()
{
},
return
this
.
item
.
fieldsWidth
?
(
this
.
item
.
fieldsWidth
+
'rpx'
)
:
'100%'
maxlength
()
{
},
return
this
.
isDigit
?
9
:
(
this
.
isESerialNum
?
8
:
140
)
placeholderStyle
()
{
},
return
'color:#999999;font-size:26rpx'
fieldsWidth
()
{
},
return
this
.
item
.
fieldsWidth
?
this
.
item
.
fieldsWidth
+
'rpx'
:
'100%'
customStyle
()
{
},
return
{
placeholderStyle
()
{
'background-color'
:
this
.
backgroundColor
,
return
'color:#999999;font-size:26rpx'
'border-radius'
:
'12rpx'
,
},
'color'
:
'#333333'
,
customStyle
()
{
'padding-left'
:
this
.
textarea
?
'0rpx'
:
'20rpx'
,
return
{
'font-size'
:
'26rpx'
,
'background-color'
:
this
.
backgroundColor
,
'height'
:
'76rpx'
'border-radius'
:
'12rpx'
,
}
color
:
'#333333'
,
},
'padding-left'
:
this
.
textarea
?
'0rpx'
:
'20rpx'
,
border
()
{
'font-size'
:
'26rpx'
,
return
this
.
textarea
height
:
'76rpx'
,
},
}
textarea
()
{
},
return
this
.
inputType
==
'textarea'
border
()
{
},
return
this
.
textarea
backgroundColor
()
{
},
return
this
.
textarea
?
'transparent'
:
'#F4F5F7'
textarea
()
{
},
return
this
.
inputType
==
'textarea'
isDisabled
()
{
},
return
this
.
item
.
fieldsName
===
'pipeAmount'
||
this
.
disabled
?
true
:
false
backgroundColor
()
{
}
return
this
.
textarea
?
'transparent'
:
'#F4F5F7'
},
},
watch
:
{},
isDisabled
()
{
mounted
()
{},
return
this
.
item
.
fieldsName
===
'pipeAmount'
||
this
.
disabled
methods
:
{}
?
true
:
false
},
isESerialNum
()
{
// 输入框是交易流水号
return
this
.
item
.
fieldsName
===
'eSerialNum'
},
placeholderText
()
{
return
this
.
isESerialNum
?
'请填写交易流水号后8位数字'
:
this
.
placeholder
}
}
},
watch
:
{},
mounted
()
{},
methods
:
{},
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.input-item
{
.input-view-class
{
background
:
#F4F5F7
;
position
:
relative
;
}
.input-item
{
.content
{
background
:
#f4f5f7
;
padding-top
:
20rpx
;
}
line-height
:
45rpx
;
.content
{
.txt
{
padding-top
:
20rpx
;
font-size
:
24rpx
;
line-height
:
45rpx
;
color
:
#999
;
.txt
{
}
font-size
:
24rpx
;
}
color
:
#999
;
}
}
.tip-span
{
position
:
absolute
;
font-size
:
28rpx
;
color
:
#FA5A49
;
left
:
190rpx
;
top
:
-74rpx
;
}
}
</
style
>
</
style
>
src/components/createCom/stringMixin.js
View file @
76062105
...
@@ -41,6 +41,10 @@ export default {
...
@@ -41,6 +41,10 @@ export default {
this
.
dataValue
=
val
this
.
dataValue
=
val
})
})
}
}
// 交易流水号到8位就取消提示
if
(
this
.
isESerialNum
&&
val
.
length
>=
this
.
maxlength
)
{
this
.
showTip
=
false
}
const
data
=
{
const
data
=
{
groupIndex
:
this
.
groupIndex
,
// 左侧菜单下标
groupIndex
:
this
.
groupIndex
,
// 左侧菜单下标
itemIndex
:
this
.
itemIndex
,
//右侧某一项下标
itemIndex
:
this
.
itemIndex
,
//右侧某一项下标
...
...
src/components/order/detail.vue
View file @
76062105
This diff is collapsed.
Click to expand it.
src/components/order/index.vue
View file @
76062105
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
:src=
"dizhiImage"
:src=
"dizhiImage"
mode=
"widthFix"
mode=
"widthFix"
></image>
></image>
<text>
{{
formatAddress
(
orderData
)
}}
</text>
<text>
{{
orderData
.
customerAddress
}}
</text>
</view>
</view>
<view
v-if=
"showDistance"
class=
"address-right-view"
>
<view
v-if=
"showDistance"
class=
"address-right-view"
>
{{
orderDistance
}}
km
{{
orderDistance
}}
km
...
@@ -128,6 +128,8 @@ export default {
...
@@ -128,6 +128,8 @@ export default {
auditResults
:
{},
// 审核结果
auditResults
:
{},
// 审核结果
orderBusinessType
:
'R'
,
// 业务类型 R 为抢单
orderBusinessType
:
'R'
,
// 业务类型 R 为抢单
orderId
:
'0'
,
// 订单id
orderId
:
'0'
,
// 订单id
partnerSerialNumber
:
''
,
// 上游单号
customerAddress
:
''
,
// 上游地址
}
}
},
},
},
},
...
@@ -209,16 +211,16 @@ export default {
...
@@ -209,16 +211,16 @@ export default {
infoTexts
()
{
infoTexts
()
{
return
this
.
isSimple
return
this
.
isSimple
?
{
?
{
order
Number
:
{
partnerSerial
Number
:
{
symbol
:
true
,
symbol
:
true
,
name
:
'
工
单编号'
,
name
:
'
订
单编号'
,
style
:
'font-weight: 450;font-size: 28rpx'
,
style
:
'font-weight: 450;font-size: 28rpx'
,
icon
:
'arrow-right'
,
icon
:
'arrow-right'
,
},
},
contactName
:
{
name
:
'客户信息'
,
content
:
'contactPhone'
},
contactName
:
{
name
:
'客户信息'
,
content
:
'contactPhone'
},
}
}
:
{
:
{
orderNumber
:
{
name
:
'工
单编号'
},
partnerSerialNumber
:
{
name
:
'订
单编号'
},
partnerCompanyName
:
{
name
:
'合作厂商'
},
partnerCompanyName
:
{
name
:
'合作厂商'
},
contactName
:
{
name
:
'客户信息'
,
content
:
'contactPhone'
},
contactName
:
{
name
:
'客户信息'
,
content
:
'contactPhone'
},
}
}
...
@@ -497,17 +499,17 @@ export default {
...
@@ -497,17 +499,17 @@ export default {
},
1000
)
},
1000
)
}
}
},
},
formatAddress
(
order
)
{
//
formatAddress(order) {
let
address
=
''
//
let address = ''
if
(
order
)
{
//
if (order) {
address
=
order
.
contactProvinceText
||
''
//
address = order.contactProvinceText || ''
address
+=
order
.
contactCityText
||
''
//
address += order.contactCityText || ''
address
+=
order
.
contactCommunityText
||
''
//
address += order.contactCommunityText || ''
address
+=
order
.
contactStreetText
||
''
//
address += order.contactStreetText || ''
address
+=
order
.
contactAddress
||
''
//
address += order.contactAddress || ''
}
//
}
return
address
//
return address
},
//
},
/**
/**
* echo distance(116.3896,39.91917,116.3940,39.91726);
* echo distance(116.3896,39.91917,116.3940,39.91726);
* 计算两点之间直线距离
* 计算两点之间直线距离
...
@@ -549,7 +551,7 @@ export default {
...
@@ -549,7 +551,7 @@ export default {
},
},
handleLongpress
(
key
,
text
)
{
handleLongpress
(
key
,
text
)
{
// 长按复制单号
// 长按复制单号
if
(
key
==
'
order
Number'
)
{
if
(
key
==
'
partnerSerial
Number'
)
{
uni
.
setClipboardData
({
uni
.
setClipboardData
({
data
:
text
,
data
:
text
,
success
:
function
()
{
success
:
function
()
{
...
...
src/components/upload-progress/upload-progress.vue
View file @
76062105
<
template
>
<
template
>
<view
class=
"upload-progress"
>
<view
class=
"upload-progress"
>
<view
:class=
"['u-flex', 'suspension',
{'error': uploadStatus === 3}]" @click="openpRrogress">
<view
:class=
"['u-flex', 'suspension',
{'error': uploadStatus === 3
, 'no-active': clicked
<
=
0
}]"
@
click=
"openpRrogress"
>
<view
class=
"progress"
v-if=
"taskCount > 0"
>
{{
uploadPercentage
}}
%
</view>
<view
class=
"progress"
v-if=
"taskCount > 0"
>
{{
uploadPercentage
}}
%
</view>
<view
class=
"upload-img"
v-
if=
"taskCount === 0"
>
<view
class=
"upload-img"
v-
else
>
<image
class=
"icon"
:src=
"icon"
></image>
<image
class=
"icon"
:src=
"icon"
></image>
</view>
</view>
</view>
</view>
...
@@ -66,17 +66,19 @@
...
@@ -66,17 +66,19 @@
data
()
{
data
()
{
return
{
return
{
open
:
false
,
open
:
false
,
progressStatus
:
false
progressStatus
:
false
,
clicked
:
1
}
}
},
},
computed
:
{
computed
:
{
icon
()
{
icon
()
{
console
.
log
(
process
.
uniEnv
.
qn_base_url
+
'upload-photo.png'
)
return
process
.
uniEnv
.
qn_base_url
+
'upload-photo.png'
return
process
.
uniEnv
.
qn_base_url
+
'upload-photo.png'
},
},
defaultImg
()
{
defaultImg
()
{
return
process
.
uniEnv
.
qn_base_url
+
'upload-default.png'
return
process
.
uniEnv
.
qn_base_url
+
'upload-default.png'
},
},
taskCount
()
{
taskCount
()
{
return
this
.
uploadTotal
return
this
.
uploadTotal
},
},
uploadStatusName
()
{
uploadStatusName
()
{
...
@@ -101,7 +103,7 @@
...
@@ -101,7 +103,7 @@
const
num
=
this
.
uploadSuccess
const
num
=
this
.
uploadSuccess
const
total
=
this
.
uploadTotal
const
total
=
this
.
uploadTotal
return
total
>
0
?
Math
.
floor
(
Math
.
round
(
num
/
total
*
10000
)
/
100.00
)
:
0
return
total
>
0
?
Math
.
floor
(
Math
.
round
(
num
/
total
*
10000
)
/
100.00
)
:
0
}
}
,
},
},
watch
:
{
watch
:
{
uploadStatus
(
newValue
)
{
uploadStatus
(
newValue
)
{
...
@@ -109,13 +111,22 @@
...
@@ -109,13 +111,22 @@
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
progressStatus
=
true
this
.
progressStatus
=
true
})
})
}
},
},
open
(
val
)
{
if
(
val
==
false
)
{
this
.
changeActive
()
}
},
},
created
()
{
this
.
changeActive
()
},
methods
:
{
methods
:
{
closePopup
()
{
closePopup
()
{
this
.
progressStatus
=
false
this
.
progressStatus
=
false
},
},
openpRrogress
()
{
openpRrogress
()
{
this
.
clicked
+=
1
this
.
open
=
true
this
.
open
=
true
this
.
progressStatus
=
false
this
.
progressStatus
=
false
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
@@ -124,7 +135,13 @@
...
@@ -124,7 +135,13 @@
},
},
retry
()
{
retry
()
{
if
(
this
.
uploadStatus
!==
2
)
upload
.
uploadImageTask
(
this
)
if
(
this
.
uploadStatus
!==
2
)
upload
.
uploadImageTask
(
this
)
}
},
changeActive
()
{
setTimeout
(()
=>
{
// 三秒不点击,算失去活跃
this
.
clicked
=
Math
.
max
(
0
,
this
.
clicked
-
1
)
},
3000
)
}
}
}
}
}
</
script
>
</
script
>
...
@@ -135,16 +152,20 @@
...
@@ -135,16 +152,20 @@
height
:
100%
;
height
:
100%
;
.suspension
{
.suspension
{
position
:
fixed
;
position
:
fixed
;
right
:
5%
;
right
:
20rpx
;
bottom
:
20%
;
bottom
:
20%
;
width
:
80rpx
;
width
:
80rpx
;
height
:
80rpx
;
height
:
80rpx
;
border-radius
:
50%
;
border-radius
:
50%
;
background
:
#2272FF
;
background
:
#2272FF
;
z-index
:
999
;
z-index
:
999
;
opacity
:
1
;
&
.error
{
&
.error
{
background
:
#FA5A49
;
background
:
#FA5A49
;
}
}
&
.no-active
{
opacity
:
0
.6
;
}
.progress
{
.progress
{
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#fff
;
color
:
#fff
;
...
...
src/pages/index/index.vue
View file @
76062105
...
@@ -236,7 +236,8 @@ export default {
...
@@ -236,7 +236,8 @@ export default {
const
callBack
=
(
vm
,
result
)
=>
{
const
callBack
=
(
vm
,
result
)
=>
{
// 后台自动判断入驻流程是否完成,前台通过status确定状态
// 后台自动判断入驻流程是否完成,前台通过status确定状态
if
(
result
&&
result
.
record
)
{
if
(
result
&&
result
.
record
)
{
vm
.
needSettled
=
result
.
needSettled
// 不返回该字段或返回true代表需要入驻
vm
.
needSettled
=
result
.
needSettled
==
undefined
?
true
:
result
.
needSettled
vm
.
status
=
Number
(
result
.
record
.
status
||
'0'
)
vm
.
status
=
Number
(
result
.
record
.
status
||
'0'
)
// vm.status = 8
// vm.status = 8
}
}
...
...
src/pages/index/mine.vue
View file @
76062105
...
@@ -254,7 +254,11 @@
...
@@ -254,7 +254,11 @@
},
},
handleSuperButton
()
{
handleSuperButton
()
{
this
.
$u
.
route
({
url
:
'pages/mine/superLogin/index'
})
if
(
this
.
vuex_token
)
{
this
.
$u
.
route
({
url
:
'pages/mine/superLogin/index'
})
}
else
{
this
.
$u
.
route
({
url
:
"pages/login/index"
})
}
}
}
}
}
}
}
...
...
src/pages/mine/warehouse/index.vue
View file @
76062105
...
@@ -318,7 +318,7 @@
...
@@ -318,7 +318,7 @@
.fixed-button
{
.fixed-button
{
position
:
fixed
;
position
:
fixed
;
right
:
1
0rpx
;
right
:
2
0rpx
;
bottom
:
64rpx
;
bottom
:
64rpx
;
}
}
...
...
src/pages/order/complete.vue
View file @
76062105
...
@@ -349,7 +349,7 @@ const formType = new Map([
...
@@ -349,7 +349,7 @@ const formType = new Map([
[
'decimal'
,
[
'input'
,
'digit'
]],
[
'decimal'
,
[
'input'
,
'digit'
]],
[
'double'
,
[
'input'
,
'digit'
]],
[
'double'
,
[
'input'
,
'digit'
]],
[
'integer'
,
[
'input'
,
'digit'
]],
[
'integer'
,
[
'input'
,
'digit'
]],
[
'string'
,
[
'input'
,
'
text
'
]],
[
'string'
,
[
'input'
,
'
number
'
]],
[
'jscode'
,
[
'input'
,
'text'
]],
[
'jscode'
,
[
'input'
,
'text'
]],
[
'multiinput'
,
[
'multiinput'
,
'text'
]],
[
'multiinput'
,
[
'multiinput'
,
'text'
]],
[
'select'
,
[
'select'
,
'text'
]],
[
'select'
,
[
'select'
,
'text'
]],
...
@@ -833,8 +833,9 @@ export default {
...
@@ -833,8 +833,9 @@ export default {
if
(
ele
.
required
)
{
if
(
ele
.
required
)
{
panelResult
.
required
++
panelResult
.
required
++
let
value
=
this
.
form
[
ele
.
fieldsName
]
let
value
=
this
.
form
[
ele
.
fieldsName
]
if
(
value
&&
!
Array
.
isArray
(
value
))
{
// "ele.fieldsName != 'eSerialNum' || value.length == 8" 意思是: "非付款流水号 || 8位付款流水号"
panelResult
.
submitted
++
if
(
value
&&
!
Array
.
isArray
(
value
)
&&
(
ele
.
fieldsName
!=
'eSerialNum'
||
value
.
length
==
8
))
{
panelResult
.
submitted
++
}
else
if
(
value
&&
Array
.
isArray
(
value
)
&&
value
.
length
>
0
)
{
}
else
if
(
value
&&
Array
.
isArray
(
value
)
&&
value
.
length
>
0
)
{
if
(
ele
.
fieldsName
===
'materialList'
)
{
if
(
ele
.
fieldsName
===
'materialList'
)
{
let
hasMate
=
false
let
hasMate
=
false
...
@@ -1145,12 +1146,12 @@ export default {
...
@@ -1145,12 +1146,12 @@ export default {
const
actualPaid
=
groupItem
.
items
.
find
(
const
actualPaid
=
groupItem
.
items
.
find
(
(
v
)
=>
v
.
fieldsName
===
'actualPaid'
(
v
)
=>
v
.
fieldsName
===
'actualPaid'
)
)
actualPaid
.
required
=
data
.
value
!=
'03'
if
(
actualPaid
)
actualPaid
.
required
=
data
.
value
!=
'03'
const
eSerialNum
=
groupItem
.
items
.
find
(
const
eSerialNum
=
groupItem
.
items
.
find
(
(
v
)
=>
v
.
fieldsName
===
'eSerialNum'
(
v
)
=>
v
.
fieldsName
===
'eSerialNum'
)
)
eSerialNum
.
required
=
data
.
value
!=
'03'
if
(
eSerialNum
)
eSerialNum
.
required
=
data
.
value
!=
'03'
}
}
if
(
if
(
...
...
src/pages/order/search.vue
View file @
76062105
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<u-search
<u-search
v-model=
"search.keyword"
v-model=
"search.keyword"
bg-color=
"#FFFFFF"
bg-color=
"#FFFFFF"
placeholder=
"
搜索:工单号
·用户姓名·手机号·地址"
placeholder=
"
扳手会工单
·用户姓名·手机号·地址"
search-icon-color=
"#999999"
search-icon-color=
"#999999"
color=
"#333333"
color=
"#333333"
placeholder-color=
"#999999"
placeholder-color=
"#999999"
...
...
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