Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d87cef07
authored
Dec 08, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 查询
1 parent
08a13f23
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
97 additions
and
54 deletions
assets/css/common.scss
assets/css/sprite.scss
assets/images/sprite.png
components/HomeFrame/index.vue
components/OrderPopup/components/Customer.vue
pages/equity/tool/components/ContractPopup.vue
pages/equity/tool/components/DefeatOrder.vue
pages/equity/tool/components/OrderCard.vue
pages/equity/tool/components/OrderManagement.vue
assets/css/common.scss
View file @
d87cef0
...
@@ -198,6 +198,9 @@
...
@@ -198,6 +198,9 @@
.py-16
{
.py-16
{
padding
:
toRpx
(
16
)
0
;
padding
:
toRpx
(
16
)
0
;
}
}
.py-24
{
padding
:
toRpx
(
24
)
0
;
}
.pt-32
{
.pt-32
{
padding-top
:
toRpx
(
32
)
!
important
;
padding-top
:
toRpx
(
32
)
!
important
;
}
}
...
...
assets/css/sprite.scss
View file @
d87cef0
This diff is collapsed.
Click to expand it.
assets/images/sprite.png
View file @
d87cef0
2.92 MB
|
W:
|
H:
2.92 MB
|
W:
|
H:
2-up
Swipe
Onion skin
components/HomeFrame/index.vue
View file @
d87cef0
This diff is collapsed.
Click to expand it.
components/OrderPopup/components/Customer.vue
View file @
d87cef0
...
@@ -48,6 +48,9 @@ export default {
...
@@ -48,6 +48,9 @@ export default {
}
}
let
apiTargetName
=
!
params
.
defeat
?
'getQuotationCustomerList'
:
'getWorkPackageGoodsList'
let
apiTargetName
=
!
params
.
defeat
?
'getQuotationCustomerList'
:
'getWorkPackageGoodsList'
console
.
log
(
apiTargetName
,
'apiTargetName'
)
console
.
log
(
apiTargetName
,
'apiTargetName'
)
if
(
params
.
defeat
)
{
apiParams
.
keyword
=
searchValue
}
const
{
list
}
=
await
uni
.
$api
.
popupApi
[
apiTargetName
](
apiParams
)
const
{
list
}
=
await
uni
.
$api
.
popupApi
[
apiTargetName
](
apiParams
)
let
customerList
=
list
let
customerList
=
list
if
(
params
.
defeat
)
{
if
(
params
.
defeat
)
{
...
...
pages/equity/tool/components/ContractPopup.vue
View file @
d87cef0
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</view>
</view>
<view
class=
"file-info"
>
<view
class=
"file-info"
>
<text
class=
"file-name"
>
{{
getFileName
(
file
)
}}
</text>
<text
class=
"file-name"
>
{{
getFileName
(
file
)
}}
</text>
<
text
class=
"file-size"
>
{{
formatFileSize
(
file
.
size
)
}}
</text
>
<
!--
<text
class=
"file-size"
>
{{
formatFileSize
(
file
.
size
)
}}
</text>
--
>
</view>
</view>
</view>
</view>
<!-- 图片文件显示 -->
<!-- 图片文件显示 -->
...
@@ -90,12 +90,12 @@ export default {
...
@@ -90,12 +90,12 @@ export default {
console
.
log
(
'data'
,
data
)
console
.
log
(
'data'
,
data
)
if
(
data
&&
data
.
zyPayUrl
)
{
if
(
data
&&
data
.
zyPayUrl
)
{
const
urls
=
data
.
zyPayUrl
.
split
(
','
).
filter
(
url
=>
url
.
trim
())
const
urls
=
data
.
zyPayUrl
.
split
(
','
).
filter
(
url
=>
url
.
trim
())
this
.
$set
(
this
.
contractData
,
this
.
uploadField
.
key
,
urls
.
map
(
url
=>
({
this
.
$set
(
this
.
contractData
,
this
.
uploadField
.
key
,
urls
.
map
(
url
=>
({
url
:
url
.
trim
(),
url
:
url
.
trim
(),
type
:
this
.
getFileTypeFromUrl
(
url
.
trim
()),
type
:
this
.
getFileTypeFromUrl
(
url
.
trim
()),
name
:
this
.
getFileNameFromUrl
(
url
.
trim
()),
name
:
this
.
getFileNameFromUrl
(
url
.
trim
()),
size
:
0
// 从字符串无法获取文件大小
size
:
0
// 从字符串无法获取文件大小
})))
})))
console
.
log
(
'this.contractData'
,
this
.
contractData
)
console
.
log
(
'this.contractData'
,
this
.
contractData
)
}
}
...
@@ -253,9 +253,10 @@ export default {
...
@@ -253,9 +253,10 @@ export default {
uni
.
showLoading
({
title
:
'上传中...'
,
mask
:
true
})
uni
.
showLoading
({
title
:
'上传中...'
,
mask
:
true
})
// 使用tempFilePath进行上传
// 使用tempFilePath进行上传
uploadFile
(
null
,
fileData
.
tempFilePath
)
uploadFile
(
fileData
.
tempFile
,
fileData
.
tempFilePath
)
.
then
(
url
=>
{
.
then
(
url
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
console
.
log
(
'上传成功'
,
url
)
// 添加到合同文件列表
// 添加到合同文件列表
this
.
addContractFile
({
this
.
addContractFile
({
url
:
url
,
url
:
url
,
...
@@ -280,12 +281,14 @@ export default {
...
@@ -280,12 +281,14 @@ export default {
// 获取合同文件数组
// 获取合同文件数组
getContractFiles
()
{
getContractFiles
()
{
console
.
log
(
this
.
contractData
,
'this.contractData'
)
const
files
=
this
.
contractData
[
this
.
uploadField
.
key
]
const
files
=
this
.
contractData
[
this
.
uploadField
.
key
]
return
Array
.
isArray
(
files
)
?
files
:
[]
return
Array
.
isArray
(
files
)
?
files
:
[]
},
},
// 检查是否是PDF文件
// 检查是否是PDF文件
isPdfFile
(
file
)
{
isPdfFile
(
file
)
{
console
.
log
(
file
,
'file'
)
if
(
typeof
file
===
'object'
&&
file
.
type
)
{
if
(
typeof
file
===
'object'
&&
file
.
type
)
{
return
file
.
type
===
'pdf'
return
file
.
type
===
'pdf'
}
}
...
...
pages/equity/tool/components/DefeatOrder.vue
View file @
d87cef0
...
@@ -683,7 +683,7 @@ export default {
...
@@ -683,7 +683,7 @@ export default {
padding-bottom
:
toRpx
(
24
);
padding-bottom
:
toRpx
(
24
);
position
:
relative
;
position
:
relative
;
.scroll-view
{
.scroll-view
{
height
:
100%
;
height
:
calc
(
100%
-
#{
toRpx
(
168
)}
)
;
}
}
}
}
...
...
pages/equity/tool/components/OrderCard.vue
View file @
d87cef0
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
<PublishPopup
ref=
"defeatOrderPopup"
popupClass=
"defeatOrderPopup"
type=
"center"
:showClose=
"true"
:isMaskClick=
"false"
title=
"战败原因"
>
<PublishPopup
ref=
"defeatOrderPopup"
popupClass=
"defeatOrderPopup"
type=
"center"
:showClose=
"true"
:isMaskClick=
"false"
title=
"战败原因"
>
<template
#
content
>
<template
#
content
>
<view
class=
"defeat-order-box modatcontent"
>
<view
class=
"defeat-order-box modatcontent"
>
<textarea
class=
"defeat-textarea"
placeholder=
"请填写战败原因"
maxlength=
"
15
"
v-model=
"textareaValue"
/>
<textarea
class=
"defeat-textarea"
placeholder=
"请填写战败原因"
maxlength=
"
30
"
v-model=
"textareaValue"
/>
</view>
</view>
</
template
>
</
template
>
<
template
#
footer
>
<
template
#
footer
>
...
@@ -557,47 +557,80 @@ export default {
...
@@ -557,47 +557,80 @@ export default {
urls
=
val
.
contractFiles
.
map
(
file
=>
file
.
url
).
filter
(
url
=>
url
)
urls
=
val
.
contractFiles
.
map
(
file
=>
file
.
url
).
filter
(
url
=>
url
)
}
}
console
.
log
(
urls
)
console
.
log
(
urls
)
uni
.
$api
.
equityApi
const
that
=
this
.
getQuotationInfoById
({
if
(
this
.
orderCardDetail
.
zyPayStatus
==
2
&&
this
.
orderCardDetail
.
canUpdateZyPayUrl
==
1
)
{
id
:
this
.
orderCardDetail
?.
id
uni
.
showModal
({
title
:
'修改确认'
,
content
:
'本次操作将永久替换原图或协议(仅限1次修改权限),请确认是否更新?'
,
confirmText
:
'确定'
,
confirmColor
:
'#347BFF'
,
success
(
res
)
{
if
(
res
.
confirm
)
{
uni
.
showLoading
({
mask
:
true
})
console
.
log
(
that
.
orderCardDetail
)
uni
.
$api
.
equityApi
.
updateZyInfo
({
id
:
that
.
orderCardDetail
?.
id
,
zyPayUrl
:
urls
.
join
(
','
)
}).
then
(
res
=>
{
uni
.
hideLoading
()
uni
.
showToast
({
title
:
'提交成功'
,
icon
:
'none'
})
setTimeout
(()
=>
{
that
.
$emit
(
'refresh'
)
// _this.getList();
},
500
)
})
}
}
})
})
.
then
(
res
=>
{
}
else
{
console
.
log
(
res
,
'res'
)
uni
.
$api
.
equityApi
let
orderInfo
=
{}
.
getQuotationInfoById
({
let
{
default4SStoreInfo
}
=
this
.
userInfo
id
:
this
.
orderCardDetail
?.
id
orderInfo
.
check
=
true
orderInfo
.
id
=
res
.
id
orderInfo
.
orderId
=
res
.
orderId
orderInfo
.
merchantId4s
=
default4SStoreInfo
?.
merchantId
orderInfo
.
merchantName4s
=
default4SStoreInfo
?.
merchantName
orderInfo
.
referrer
=
res
.
referrer
orderInfo
.
referrerId
=
res
.
referrerId
console
.
log
(
orderInfo
,
'orderInfo'
)
uni
.
showLoading
({
mask
:
true
})
})
uni
.
$api
.
equityApi
.
then
(
res
=>
{
.
updateCustomerInfo
({
console
.
log
(
res
,
'res'
)
...
orderInfo
,
let
orderInfo
=
{}
zyPayUrl
:
urls
.
join
(
','
)
let
{
default4SStoreInfo
}
=
this
.
userInfo
})
orderInfo
.
check
=
true
.
then
(
result
=>
{
orderInfo
.
id
=
res
.
id
console
.
log
(
result
,
'resultresult'
)
orderInfo
.
orderId
=
res
.
orderId
this
.
$refs
.
contractPopupRef
.
close
()
orderInfo
.
merchantId4s
=
default4SStoreInfo
?.
merchantId
uni
.
hideLoading
()
orderInfo
.
merchantName4s
=
default4SStoreInfo
?.
merchantName
setTimeout
(()
=>
{
orderInfo
.
referrer
=
res
.
referrer
this
.
$emit
(
'refresh'
)
orderInfo
.
referrerId
=
res
.
referrerId
// _this.getList();
console
.
log
(
orderInfo
,
'orderInfo'
)
},
500
)
uni
.
showLoading
({
})
mask
:
true
.
catch
(
err
=>
{
console
.
log
(
err
)
uni
.
hideLoading
()
})
})
})
uni
.
$api
.
equityApi
.
catch
(
err
=>
{
.
updateCustomerInfo
({
uni
.
hideLoading
()
...
orderInfo
,
})
zyPayUrl
:
urls
.
join
(
','
)
})
.
then
(
result
=>
{
console
.
log
(
result
,
'resultresult'
)
this
.
$refs
.
contractPopupRef
.
close
()
uni
.
hideLoading
()
uni
.
showToast
({
title
:
'提交成功'
,
icon
:
'none'
})
setTimeout
(()
=>
{
this
.
$emit
(
'refresh'
)
// _this.getList();
},
500
)
})
.
catch
(
err
=>
{
console
.
log
(
err
)
uni
.
hideLoading
()
})
})
.
catch
(
err
=>
{
uni
.
hideLoading
()
})
}
}
}
},
},
get
methods
()
{
get
methods
()
{
...
...
pages/equity/tool/components/OrderManagement.vue
View file @
d87cef0
<
template
>
<
template
>
<view
class=
"order-management"
>
<view
class=
"order-management"
>
<view
class=
"search-box"
>
<view
class=
"search-box"
>
<input
class=
"search-input"
placeholder-class=
"placeholder"
v-model=
"customerName"
confirm-type=
"search"
@
confirm=
"search"
placeholder=
"输入客户姓名搜索"
/>
<input
class=
"search-input"
placeholder-class=
"placeholder"
v-model=
"customerName"
confirm-type=
"search"
@
confirm=
"search"
placeholder=
"输入客户姓名
/商品名称/订单编号/手机号
搜索"
/>
<view
class=
"clear flex"
@
click=
"clear"
>
<view
class=
"clear flex"
@
click=
"clear"
>
<uni-icons
type=
"closeempty"
size=
"16"
v-if=
"customerName"
></uni-icons>
<uni-icons
type=
"closeempty"
size=
"16"
v-if=
"customerName"
></uni-icons>
</view>
</view>
</view>
</view>
<view
class=
"tab-container flex"
>
<view
class=
"tab-container flex"
>
<view
class=
"flex"
>
<view
class=
"flex
tab-flex-box
"
>
<view
class=
"tab-item"
:class=
"
{ active: tabIndex === index }" v-for="(item, index) in tabList" :key="index" @click="switchTab(index)">
<view
class=
"tab-item"
:class=
"
{ active: tabIndex === index }" v-for="(item, index) in tabList" :key="index" @click="switchTab(index)">
<text>
{{
item
.
tabName
}}
</text>
<text>
{{
item
.
tabName
}}
</text>
<text
class=
"num"
>
{{
item
.
num
}}
</text>
<text
class=
"num"
>
{{
item
.
num
}}
</text>
...
@@ -319,7 +319,6 @@ export default {
...
@@ -319,7 +319,6 @@ export default {
.search-box
{
.search-box
{
padding
:
toRpx
(
40
)
toRpx
(
48
)
toRpx
(
0
);
padding
:
toRpx
(
40
)
toRpx
(
48
)
toRpx
(
0
);
margin-bottom
:
toRpx
(
24
);
position
:
relative
;
position
:
relative
;
&::after
{
&::after
{
content
:
''
;
content
:
''
;
...
@@ -387,9 +386,11 @@ export default {
...
@@ -387,9 +386,11 @@ export default {
.tab-container
{
.tab-container
{
display
:
flex
;
display
:
flex
;
//
justify-content
:
start
;
//
justify-content
:
start
;
padding
:
toRpx
(
0
)
toRpx
(
48
);
margin-bottom
:
toRpx
(
24
);
position
:
relative
;
position
:
relative
;
padding-right
:
toRpx
(
48
);
.tab-flex-box
{
padding
:
toRpx
(
24
)
0
toRpx
(
24
)
toRpx
(
48
);
}
.flex
:first-child
{
.flex
:first-child
{
display
:
flex
;
display
:
flex
;
...
...
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