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
0ed3f166
authored
Dec 13, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
PDA小程序-异常问客功能
parent
464f6574
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
93 additions
and
69 deletions
assets/css/tallyGoods/exception.scss
pages/tallyGoods/exception.vue
assets/css/tallyGoods/exception.scss
View file @
0ed3f166
...
...
@@ -33,7 +33,7 @@
height
:
44rpx
;
border-radius
:
2rpx
;
border
:
1rpx
solid
#cad9e0
;
.time
{
.
uni-input-
time
{
padding-left
:
20rpx
;
font-size
:
26rpx
;
color
:
#197adb
;
...
...
@@ -51,6 +51,9 @@
&
:first-child
{
margin-right
:
28rpx
;
}
&
.curr
{
color
:
#197adb
;
}
}
}
}
...
...
pages/tallyGoods/exception.vue
View file @
0ed3f166
...
...
@@ -6,25 +6,27 @@
<text
class=
"iconfont icon-juxing6"
></text>
<input
placeholder=
"请扫描或输入二维码"
class=
"uni-input"
@
input=
"handleInput($event)"
placeholder-style=
"color:#6E767A;"
/>
</view>
<text
class=
"tt"
>
查询
</text>
<text
class=
"tt"
@
click=
"getData()"
>
查询
</text>
</view>
<!-- 日期选择 -->
<view
class=
"data-search row bothSide verCenter"
>
<view
class=
"date-bar row verCenter"
>
<text
class=
"t1"
>
日期选择:
</text>
<view
class=
"wrap row bothSide verCenter"
>
<text
class=
"time"
>
2023-11-27
</text>
<picker
mode=
"date"
@
change=
"bindTimeChange($event)"
>
<input
type=
"text"
class=
"uni-input-time"
placeholder=
"请选择起始时间"
placeholder-style=
"color:#919399"
v-model=
"date_format"
/>
</picker>
<text
class=
"iconfont icon-riqi1"
></text>
</view>
</view>
<view
class=
"tt-box row verCenter"
>
<text
class=
"tt"
>
今日
</text>
<text
class=
"tt"
>
昨日
</text>
<text
class=
"tt"
@
click=
"updateDate(0)"
:class=
"
{curr:date_format_index == 0}"
>今日
</text>
<text
class=
"tt"
@
click=
"updateDate(1)"
:class=
"
{curr:date_format_index == 1}"
>昨日
</text>
</view>
</view>
<view
class=
"section"
>
<view
class=
"tab row verCenter"
>
<view
class=
"box"
:class=
"
{curr:curr == index}" v-for="(v,index) in item" @click="tab(index)">
{{
v
}}{{
index
==
0
?
ask_customer_status_two_num
:
ask_customer_status_one_num
}}
</view>
<view
class=
"box"
:class=
"
{curr:curr == index}" v-for="(v,index) in item"
:key="index"
@click="tab(index)">
{{
v
}}{{
index
==
0
?
ask_customer_status_two_num
:
ask_customer_status_one_num
}}
</view>
</view>
<!-- 列表 -->
<view
class=
"list"
v-if=
"list.length > 0"
>
...
...
@@ -33,15 +35,15 @@
<view
class=
"pp row bothSide verCenter"
style=
"margin-bottom: 16rpx;"
>
<text
class=
"t1"
>
{{
item
.
ask_customer_exception_id_cn
}}
</text>
<view
class=
"row verCenter"
>
<text
class=
"jian row rowCenter verCenter"
>
检
</text>
<text
class=
"jian row rowCenter verCenter"
v-if=
"item.is_goods_check == 1"
>
检
</text>
<text
class=
"t2"
>
{{
item
.
erp_order_sn
}}
</text>
</view>
</view>
<view
class=
"pp row bothSide verCenter
"
>
<view
class=
"pp row bothSide verCenter"
>
<text
class=
"t3"
>
{{
item
.
company_name
}}
</text>
<view
class=
"row verCenter status-1
"
>
<view
:class=
"'row verCenter ' + (item.store_execute_status === 1 ? 'status-1' : (item.store_execute_status === 2 ? 'status-2' : ''))"
v-if=
"curr == 0
"
>
<text
class=
"iconfont icon-a-10cangkucangchu3"
></text>
<text
class=
"t4"
>
仓库待执行
</text>
<text
class=
"t4"
>
{{
item
.
store_execute_status_cn
}}
</text>
</view>
</view>
</view>
...
...
@@ -64,42 +66,6 @@
</view>
</view>
</view>
<!--
<navigator
class=
"box"
url=
"/pages/tallyGoods/exceptionDetail"
>
<view
class=
"top"
>
<view
class=
"pp row bothSide verCenter"
style=
"margin-bottom: 16rpx;"
>
<text
class=
"t1"
>
型号异常
</text>
<view
class=
"row verCenter"
>
<text
class=
"jian row rowCenter verCenter"
>
检
</text>
<text
class=
"t2"
>
A12345-01
</text>
</view>
</view>
<view
class=
"pp row bothSide verCenter "
>
<text
class=
"t3"
>
富开香港有限公司
</text>
<view
class=
"row verCenter status-2"
>
<text
class=
"iconfont icon-bianzu"
></text>
<text
class=
"t4"
>
仓库已执行
</text>
</view>
</view>
</view>
<view
class=
"bottom"
>
<view
class=
"pp row"
style=
"margin-bottom: 12rpx;"
>
<view
class=
"paragraph row verCenter"
style=
"flex: 0 0 100%;"
>
<text
class=
"label"
>
仓库备注:
</text>
<text
class=
"text desc"
>
截取15个字段,多出来的用省略号展示
</text>
</view>
</view>
<view
class=
"pp row"
>
<view
class=
"paragraph row verCenter"
style=
"flex: 0 0 60%;"
>
<text
class=
"label"
>
回复时间:
</text>
<text
class=
"text"
>
2020/07/20 15:12
</text>
</view>
<view
class=
"paragraph row verCenter"
>
<text
class=
"label"
>
执行:
</text>
<text
class=
"text"
>
陈炜乐
</text>
</view>
</view>
</view>
</navigator>
-->
</view>
<!-- 无数据 -->
<view
class=
"no-data column verCenter rowCenter"
v-else
>
...
...
@@ -123,6 +89,8 @@
list
:
[],
//列表
ask_customer_status_one_num
:
''
,
//待确认数量
ask_customer_status_two_num
:
''
,
//已确认数量
date_format
:
''
,
//日期筛选时间
date_format_index
:
0
,
searchParams
:
{
limit
:
1000
,
erp_order_sn
:
''
,
//入仓号
...
...
@@ -137,13 +105,83 @@
},
onShow
()
{
this
.
getAskNum
();
this
.
getData
();
this
.
updateDate
();
},
methods
:
{
handleInput
(
event
)
{
var
val
=
event
.
target
.
value
;
/**
* 日期选择
* @param {Object} type
* @param {Object} e
*/
bindTimeChange
(
e
)
{
this
.
resetChange
();
if
(
this
.
curr
==
0
)
{
//商务已回复
this
.
searchParams
.
ask_customer_sw_confirm_time_begin
=
e
.
detail
.
value
;
this
.
searchParams
.
store_execute_time_begin
=
''
;
}
else
if
(
this
.
curr
==
1
)
{
//等待回复
this
.
searchParams
.
ask_customer_sw_confirm_time_begin
=
''
;
this
.
searchParams
.
store_execute_time_begin
=
e
.
detail
.
value
;
}
this
.
date_format
=
e
.
detail
.
value
;
//显示日期字段更新
this
.
getData
();
},
/**
* @param {Object} index
* tab切换
*/
tab
(
index
)
{
this
.
curr
=
index
;
this
.
resetChange
();
if
(
index
==
0
)
{
//商务已回复
this
.
searchParams
.
ask_customer_sw_status
=
2
;
this
.
searchParams
.
ask_customer_sw_confirm_time_begin
=
this
.
date_format
;
this
.
searchParams
.
store_execute_time_begin
=
''
;
}
else
if
(
index
==
1
)
{
//等待回复
this
.
searchParams
.
ask_customer_sw_status
=
1
;
this
.
searchParams
.
ask_customer_sw_confirm_time_begin
=
''
;
this
.
searchParams
.
store_execute_time_begin
=
this
.
date_format
;
}
this
.
getData
();
},
/**
* @param {Object} dayOffset 今日 昨日
*/
updateDate
(
dayOffset
=
0
)
{
// 获取当前日期
const
today
=
new
Date
();
today
.
setDate
(
today
.
getDate
()
-
dayOffset
);
const
formattedDate
=
`
${
today
.
getFullYear
()}
-
${(
today
.
getMonth
()
+
1
).
toString
().
padStart
(
2
,
'0'
)}
-
${
today
.
getDate
().
toString
().
padStart
(
2
,
'0'
)}
`
;
//处理今日,昨日按钮选中状态
if
(
dayOffset
==
0
)
{
this
.
date_format_index
=
0
;
}
else
if
(
dayOffset
)
{
this
.
date_format_index
=
1
;
}
this
.
date_format
=
formattedDate
;
//显示日期字段更新
if
(
this
.
curr
==
0
)
{
//商务已回复
this
.
searchParams
.
ask_customer_sw_confirm_time_begin
=
formattedDate
;
this
.
searchParams
.
store_execute_time_begin
=
''
;
}
else
if
(
this
.
curr
==
1
)
{
//等待回复
this
.
searchParams
.
ask_customer_sw_confirm_time_begin
=
''
;
this
.
searchParams
.
store_execute_time_begin
=
formattedDate
;
}
this
.
getData
();
},
/**
* @param {Object} event
* 监听入仓号
*/
handleInput
:
debounce
(
function
(
event
)
{
var
val
=
event
.
target
.
value
;
this
.
searchParams
.
erp_order_sn
=
val
;
//赋值入仓号
this
.
getData
();
},
800
),
getData
()
{
this
.
request
(
API
.
askCustomerProblemListV2
,
'GET'
,
this
.
searchParams
,
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
...
...
@@ -155,16 +193,15 @@
});
}
});
},
/**
* 问客数量
*/
getAskNum
()
{
this
.
request
(
API
.
getAskNum
,
'GET'
,
{}
,
false
).
then
(
res
=>
{
this
.
request
(
API
.
getAskNum
,
'GET'
,
this
.
searchParams
,
false
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
this
.
ask_customer_status_one_num
=
res
.
data
.
ask_customer_status_one_num
;
this
.
ask_customer_status_two_num
=
res
.
data
.
ask_customer_status_two_num
;
this
.
ask_customer_status_one_num
=
res
.
data
.
ask_customer_status_one_num
;
//商务已回复更新统计数量
this
.
ask_customer_status_two_num
=
res
.
data
.
ask_customer_status_two_num
;
//等待回复更新统计数量
}
else
{
uni
.
showToast
({
title
:
res
.
err_msg
,
...
...
@@ -174,22 +211,6 @@
});
},
/**
* @param {Object} index
* tab切换
*/
tab
(
index
)
{
this
.
curr
=
index
;
this
.
resetChange
();
if
(
index
==
0
)
{
//商务已回复
this
.
searchParams
.
ask_customer_sw_status
=
2
;
}
else
if
(
index
==
1
)
{
//等待回复
this
.
searchParams
.
ask_customer_sw_status
=
1
;
}
this
.
getData
();
},
/**
* 重置
*/
resetChange
()
{
...
...
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