Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsMin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8afaf4c5
authored
Dec 14, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
PDA小程序-异常问客功能
parent
96ac235a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
277 additions
and
23 deletions
assets/css/tallyGoods/exceptionDetail.scss
pages/home/index.vue
pages/tallyGoods/addException.vue
pages/tallyGoods/exception.vue
pages/tallyGoods/exceptionDetail.vue
assets/css/tallyGoods/exceptionDetail.scss
0 → 100644
View file @
8afaf4c5
.page-exectionDetail
{
padding
:
24rpx
;
.base-information
{
padding
:
24rpx
24rpx
0
24rpx
;
background
:
#ffffff
;
border-radius
:
4rpx
;
margin-bottom
:
16rpx
;
.top
{
margin-bottom
:
24rpx
;
.title
{
.arrow
{
width
:
12rpx
;
height
:
12rpx
;
background
:
#197adb
;
margin-right
:
16rpx
;
border-radius
:
50%
;
}
.tt
{
font-size
:
32rpx
;
color
:
#1e2021
;
font-weight
:
bold
;
}
}
}
.pp
{
margin-bottom
:
20rpx
;
&
:last-child
{
margin-bottom
:
0
;
}
&
.mb24
{
margin-bottom
:
24rpx
;
}
.t1
{
width
:
120rpx
;
font-size
:
24rpx
;
color
:
#6e767a
;
margin-right
:
16rpx
;
}
.t2
{
width
:
73%
;
font-size
:
24rpx
;
color
:
#404547
;
}
.type
{
width
:
72rpx
;
height
:
36rpx
;
border-radius
:
4rpx
;
border
:
1px
solid
#197adb
;
font-size
:
24rpx
;
color
:
#197adb
;
margin-left
:
28rpx
;
}
}
.status-box
{
height
:
80rpx
;
border-top
:
1px
solid
#e6edf0
;
.bb
{
flex
:
0
0
50%
;
.t1
{
font-size
:
24rpx
;
color
:
#6e767a
;
}
.t2
{
margin-left
:
16rpx
;
font-size
:
24rpx
;
color
:
#404547
;
font-weight
:
bold
;
}
.t3
{
font-size
:
24rpx
;
color
:
#197adb
;
font-weight
:
bold
;
margin-left
:
16rpx
;
}
}
}
}
.question-box
{
background
:
#ffffff
;
border-radius
:
4rpx
;
padding
:
24rpx
;
margin-bottom
:
16rpx
;
.top
{
margin-bottom
:
24rpx
;
.title
{
.arrow
{
width
:
12rpx
;
height
:
12rpx
;
background
:
#197adb
;
margin-right
:
16rpx
;
border-radius
:
50%
;
}
.tt
{
font-size
:
32rpx
;
color
:
#1e2021
;
font-weight
:
bold
;
}
}
.exception-ico
{
.iconfont
{
font-size
:
33rpx
;
color
:
#bb3434
;
}
.tt
{
font-size
:
24rpx
;
color
:
#bb3434
;
font-weight
:
bold
;
margin-left
:
8rpx
;
}
}
}
.status-box
{
height
:
80rpx
;
border-top
:
1px
solid
#e6edf0
;
.bb
{
flex
:
0
0
50%
;
.t1
{
font-size
:
24rpx
;
color
:
#6e767a
;
}
.t2
{
margin-left
:
16rpx
;
font-size
:
24rpx
;
color
:
#404547
;
font-weight
:
bold
;
}
}
}
.uni-table
{
.uni-th
{
height
:
62rpx
;
background
:
#f1f4f6
;
border-top
:
1px
solid
#cad9e0
;
border-bottom
:
1px
solid
#cad9e0
;
text
{
flex
:
0
0
20%
;
font-size
:
22rpx
;
color
:
#6e767a
;
padding-left
:
23rpx
;
border-right
:
1px
solid
#cad9e0
;
&
:last-child
{
border-right
:
none
;
}
}
.tc
{
justify-content
:
center
;
padding-left
:
0
;
}
}
.uni-tr
{
height
:
62rpx
;
border-bottom
:
1px
solid
#cad9e0
;
.txt
{
font-size
:
22rpx
;
color
:
#404547
;
letter-spacing
:
normal
;
word-break
:
break-all
;
&
.desc
{
overflow
:
hidden
;
display
:
-
webkit-box
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
}
}
.w
{
height
:
100%
;
flex
:
0
0
20%
;
padding-left
:
23rpx
;
border-right
:
1px
solid
#cad9e0
;
&
:last-child
{
border-right
:
none
;
}
}
.tc
{
justify-content
:
center
;
text-align
:
center
;
padding-left
:
0
;
}
}
}
.show-pic
{
padding-top
:
24rpx
;
padding-bottom
:
47rpx
;
border-bottom
:
1px
solid
#e6edf0
;
.pic-title
{
font-size
:
24rpx
;
color
:
#6e767a
;
margin-bottom
:
23rpx
;
}
.list
{
flex-wrap
:
wrap
;
.box
{
width
:
145rpx
;
height
:
145rpx
;
margin-right
:
24rpx
;
&
:nth-of-type
(
4n
)
{
margin-right
:
0
;
}
image
{
width
:
145rpx
;
height
:
145rpx
;
}
}
}
}
.text-box
{
padding-top
:
24rpx
;
.tt-box
{
margin-bottom
:
20rpx
;
&
:last-child
{
margin-bottom
:
0
;
}
.label
{
width
:
120rpx
;
font-size
:
24rpx
;
color
:
#6e767a
;
white-space
:
nowrap
;
}
.t1
{
font-size
:
24rpx
;
color
:
#404547
;
}
.t2
{
font-size
:
24rpx
;
color
:
#bb3434
;
}
}
}
}
.btn
{
margin-top
:
48rpx
;
height
:
88rpx
;
background
:
#197adb
;
border-radius
:
4rpx
;
font-size
:
28rpx
;
color
:
#ffffff
;
&
.disabled
{
background
:
#9ca8ad
;
border-radius
:
4rpx
;
}
}
}
pages/home/index.vue
View file @
8afaf4c5
...
...
@@ -130,7 +130,7 @@
},
{
name
:
'新增异常'
,
iconfont
:
'icon-
a-10cangkucangchu2
'
,
iconfont
:
'icon-
jinggao1
'
,
tips
:
''
}
]
...
...
pages/tallyGoods/addException.vue
View file @
8afaf4c5
...
...
@@ -296,7 +296,15 @@
this
.
request
(
API
.
addAskCustomerV2
,
'POST'
,
this
.
formParams
,
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
uni
.
showToast
({
title
:
'新增成功'
,
icon
:
'success'
});
setTimeout
(()
=>
{
uni
.
switchTab
({
url
:
'/pages/tallyGoods/exception'
})
},
2000
)
}
else
{
uni
.
showModal
({
title
:
'提示'
,
...
...
pages/tallyGoods/exception.vue
View file @
8afaf4c5
...
...
@@ -30,7 +30,7 @@
</view>
<!-- 列表 -->
<view
class=
"list"
v-if=
"list.length > 0"
>
<
view
class=
"box"
v-for=
"(item, index) in list"
:key=
"index
"
>
<
navigator
class=
"box"
v-for=
"(item, index) in list"
:key=
"index"
:url=
"'/pages/tallyGoods/exceptionDetail?ask_customer_problem_list_id='+item.ask_customer_problem_list_id
"
>
<view
class=
"top"
>
<view
class=
"pp row bothSide verCenter"
style=
"margin-bottom: 16rpx;"
>
<text
class=
"t1"
>
{{
item
.
ask_customer_exception_id_cn
}}
</text>
...
...
@@ -65,7 +65,7 @@
</view>
</view>
</view>
</
view
>
</
navigator
>
</view>
<!-- 无数据 -->
<view
class=
"no-data column verCenter rowCenter"
v-else
>
...
...
pages/tallyGoods/exceptionDetail.vue
View file @
8afaf4c5
<
template
>
<view
class=
"
tallyE
xectionDetail"
>
<view
class=
"
page-e
xectionDetail"
>
<view
class=
"base-information"
>
<view
class=
"top row bothSide verCenter"
>
<view
class=
"title row verCenter"
>
...
...
@@ -30,7 +30,7 @@
<text
class=
"t2"
>
{{
customerDetail
.
ask_customer_sw_status_cn
||
'--'
}}
</text>
</view>
<view
class=
"bb row verCenter"
>
<text
class=
"t1"
>
仓库状态:
</text>
<text
class=
"t1"
>
仓库
执行
状态:
</text>
<text
class=
"t3"
>
{{
customerDetail
.
store_execute_status_cn
||
'--'
}}
</text>
</view>
</view>
...
...
@@ -54,7 +54,7 @@
<text
class=
"row verCenter"
>
仓库数据
</text>
<text
class=
"row verCenter"
>
商务回复
</text>
</view>
<view
class=
"uni-tr row verCenter"
v-for=
"(item, index) in customerDetail.
order_goods
"
:key=
"index"
>
<view
class=
"uni-tr row verCenter"
v-for=
"(item, index) in customerDetail.
goods_info
"
:key=
"index"
>
<text
class=
"txt w row verCenter tc"
>
{{
index
+
1
}}
</text>
<text
class=
"txt w row verCenter"
>
{{
item
.
goods_type
}}
</text>
<text
class=
"txt w row verCenter"
>
{{
item
.
order_result
}}
</text>
...
...
@@ -73,17 +73,17 @@
<view
class=
"text-box"
>
<view
class=
"tt-box row"
>
<text
class=
"label"
>
仓库备注:
</text>
<text
class=
"t1"
>
{{
customerDetail
.
ask_customer_remark
||
'
--
'
}}
</text>
<text
class=
"t1"
>
{{
customerDetail
.
ask_customer_remark
||
''
}}
</text>
</view>
<view
class=
"tt-box row"
>
<text
class=
"label"
>
商务回复:
</text>
<text
class=
"t2"
>
{{
customerDetail
.
ask_customer_sw_confirm_remark
||
'
--
'
}}
</text>
<text
class=
"t2"
>
{{
customerDetail
.
ask_customer_sw_confirm_remark
||
''
}}
</text>
</view>
</view>
</view>
<template
v-if=
"customerDetail.ask_customer_sw_status == 2 && customerDetail.store_execute_status == 1"
>
<view
class=
"btn row rowCenter verCenter"
@
click=
"
changeWatch(customerDetail.ask_customer_problem_list_id)"
v-if=
"customerDetail.is_watch == 0
"
>
核对并执行
</view>
<view
class=
"btn row rowCenter verCenter disabled"
v-if=
"customerDetail.
is_watch == 1
"
>
已核对
</view>
<template>
<view
class=
"btn row rowCenter verCenter"
@
click=
"
executeJob(customerDetail.ask_customer_problem_list_id)"
v-if=
"customerDetail.store_execute_status == 1
"
>
核对并执行
</view>
<view
class=
"btn row rowCenter verCenter disabled"
v-if=
"customerDetail.
store_execute_status == 2
"
>
已核对
</view>
</
template
>
</view>
</template>
...
...
@@ -116,40 +116,43 @@
});
},
getData
()
{
this
.
request
(
API
.
askCustomerProblemDetail
,
'GET'
,
{
ask_customer_problem_list_id
:
this
.
ask_customer_problem_list_id
}).
then
(
res
=>
{
this
.
request
(
API
.
getAskCustomerDetailV2
,
'GET'
,
{
ask_customer_problem_list_id
:
this
.
ask_customer_problem_list_id
}).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
customerDetail
=
res
.
data
;
}
else
{
uni
.
showToast
({
title
:
res
.
err_msg
,
icon
:
'
error
'
icon
:
'
none
'
});
}
});
},
changeWatch
(
id
)
{
this
.
request
(
API
.
changeWatch
,
'GET'
,
{
ask_customer_problem_list_id
:
id
},
true
).
then
(
res
=>
{
/**
* 核对并执行
*/
executeJob
(
ask_customer_problem_list_id
)
{
this
.
request
(
API
.
executeJob
,
'POST'
,
{
ask_customer_problem_list_id
:
ask_customer_problem_list_id
}).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
uni
.
showToast
({
title
:
'操作成功'
,
icon
:
'
none
'
icon
:
'
success
'
});
setTimeout
(()
=>
{
this
.
getData
();
},
2000
)
;
},
2000
)
}
else
{
uni
.
showModal
({
title
:
'提示'
,
content
:
res
.
err_msg
,
showCancel
:
false
uni
.
showToast
({
title
:
res
.
err_msg
,
icon
:
'none'
});
}
});
}
}
};
</
script
>
<
style
scoped
lang=
"scss"
>
@import
'../../assets/css/
goods/tallyExec
tionDetail.scss'
;
@import
'../../assets/css/
tallyGoods/excep
tionDetail.scss'
;
</
style
>
\ No newline at end of file
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