Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
scmMiniprogram
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
dcb49802
authored
Sep 24, 2021
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
b29d9507
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
21 deletions
pages/index/index.vue
pages/question/handle.vue
pages/question/list.vue
pages/index/index.vue
View file @
dcb49802
...
...
@@ -3,7 +3,7 @@
<view
class=
"notice column"
>
<text
class=
"title"
>
公告通知
</text>
<view
class=
"list column"
>
<navigator
class=
"box row bothSide verCenter"
hover-class=
"none"
:url=
"'/pages/index/notice?id='
+
item.id"
v-for=
"item in noticeData"
>
<navigator
class=
"box row bothSide verCenter"
hover-class=
"none"
:url=
"'/pages/index/notice?id='
+
item.id"
v-for=
"item in noticeData"
>
<view
class=
"row verCenter"
>
<text
class=
"arrow"
></text>
<text
class=
"content"
>
{{
item
.
notice_title
}}
</text>
...
...
@@ -21,7 +21,17 @@
<view
class=
"section"
>
<view
class=
"list column"
>
<template
v-if=
"list.length > 0"
>
<navigator
class=
"box row bothSide"
:class=
"
{ curr: item.is_urgent == '紧急' }" :url="item.ask_customer_status == 2 ? '/pages/question/detail?id=' + item.ask_customer_problem_list_id: '/pages/question/handle?id=' + item.ask_customer_problem_list_id" hover-class="none" v-for="item in list">
<navigator
class=
"box row bothSide"
:class=
"
{ curr: item.is_urgent == '紧急' }"
:url="
item.ask_customer_status == 2
? '/pages/question/detail?id=' + item.ask_customer_problem_list_id
: '/pages/question/handle?id=' + item.ask_customer_problem_list_id
"
hover-class="none"
v-for="item in list"
>
<view
class=
"base-info column"
>
<view
class=
"row verCenter mb20"
>
<view
class=
"t1"
>
{{
item
.
erp_order_sn
}}
</view>
...
...
@@ -35,18 +45,20 @@
</view>
<view
class=
"time-info"
>
<!-- 紧急情况区分 -->
<template
v-if=
"item.is_urgent == '紧急'"
>
<template
v-if=
"item.is_urgent == '紧急'"
>
<view
class=
"status0 row verCenter"
>
<text
class=
"iconfont icon-jinggao"
></text>
<span>
{{
item
.
is_urgent
}}
</span>
<span>
{{
item
.
is_urgent
}}
</span>
</view>
</
template
>
<
template
v-else
>
<view
class=
"status2"
>
{{
item
.
handle_type_cn
}}
</view>
</
template
>
<view
class=
"time"
>
<text
class=
"t1"
>
已耗时:
</text>
<text
class=
"t2"
>
{{ item.ask_time }}
</text>
<text
class=
"t1"
v-if=
"currentIndex === 0"
>
已耗时:
</text>
<text
class=
"t2"
v-if=
"currentIndex === 0"
>
{{ item.ask_time }}
</text>
<text
class=
"t2"
v-if=
"currentIndex === 1"
>
{{ item.ask_customer_confirm_time_cn }}
</text>
<text
class=
"t2"
v-if=
"currentIndex === 2"
>
{{ item.store_execute_time_cn }}
</text>
</view>
</view>
</navigator>
...
...
@@ -97,6 +109,10 @@ export default {
},
onLoad
(
options
)
{
this
.
getData
();
this
.
list
=
[];
this
.
page
=
1
;
this
.
currentIndex
=
0
;
this
.
changeTab
(
0
);
},
onReachBottom
()
{
if
(
this
.
flag
)
return
;
...
...
@@ -104,10 +120,7 @@ export default {
this
.
getAskCustomerProblemList
();
},
onShow
()
{
this
.
list
=
[];
this
.
page
=
1
;
this
.
currentIndex
=
0
;
this
.
changeTab
(
0
);
},
methods
:
{
getData
()
{
...
...
@@ -132,7 +145,7 @@ export default {
this
.
flag
=
true
;
this
.
more
=
'noMore'
;
}
}
else
if
(
res
.
err_code
===
20045
)
{
}
else
if
(
res
.
err_code
===
20045
)
{
this
.
is_login
=
false
;
this
.
flag
=
true
;
this
.
more
=
'noMore'
;
...
...
pages/question/handle.vue
View file @
dcb49802
...
...
@@ -122,7 +122,7 @@
<text
class=
"remark-title"
>
客户备注信息:
</text>
<view
class=
"text-area"
><textarea
placeholder=
"此处提交的备注信息,仓库和商务均可看到(选填)"
v-model=
"ask_customer_confirm_remark"
></textarea></view>
<button
class=
"btn row rowCenter verCenter"
@
click=
"submit()"
>
提交操作
</button>
<
button
class=
"btn1 row rowCenter verCenter"
>
暂不处理
</button
>
<
navigator
class=
"btn1 row rowCenter verCenter"
hover-class=
"none"
open-type=
"switchTab"
url=
"/pages/question/list"
>
暂不处理
</navigator
>
</view>
<uni-popup
ref=
"popup"
type=
"bottom"
>
<view
class=
"popup-layer"
>
...
...
@@ -186,7 +186,7 @@
</view>
</view>
<button
class=
"btn1 row rowCenter verCenter"
@
click=
"this.$refs.popup.close()"
>
确认操作
</button>
<button
class=
"btn2 row rowCenter verCenter"
@
click=
"
this.$refs.popup.close
()"
>
取 消
</button>
<button
class=
"btn2 row rowCenter verCenter"
@
click=
"
canel
()"
>
取 消
</button>
</view>
</uni-popup>
</view>
...
...
@@ -274,6 +274,8 @@ export default {
this
.
$set
(
this
.
order_goods
[
this
.
order_goods_index
],
'customer_result'
,
'来货数据'
);
}
else
if
(
index
==
3
)
{
this
.
$set
(
this
.
order_goods
[
this
.
order_goods_index
],
'customer_result'
,
this
.
customer_result_text
);
}
else
{
this
.
$set
(
this
.
order_goods
[
this
.
order_goods_index
],
'customer_result'
,
'请选择'
);
}
},
changeTab
(
index
)
{
...
...
@@ -284,6 +286,11 @@ export default {
this
.
ask_customer_confirm_feedback
=
'人工处理'
;
}
},
canel
()
{
this
.
current
=
0
;
this
.
change
(
0
);
this
.
$refs
.
popup
.
close
();
},
toChat
()
{
this
.
request
(
API
.
turnManualProcessing
,
'POST'
,
{
ask_customer_problem_list_id
:
this
.
ask_customer_problem_list_id
},
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
...
...
pages/question/list.vue
View file @
dcb49802
...
...
@@ -43,15 +43,17 @@
<template
v-if=
"item.is_urgent == '紧急'"
>
<view
class=
"status0 row verCenter"
>
<text
class=
"iconfont icon-jinggao"
></text>
<span>
{{
item
.
is_urgent
}}
</span>
<span>
{{
item
.
is_urgent
}}
</span>
</view>
</
template
>
<
template
v-else
>
<view
class=
"status2"
>
{{
item
.
handle_type_cn
}}
</view>
</
template
>
<view
class=
"time"
>
<text
class=
"t1"
>
已耗时:
</text>
<text
class=
"t2"
>
{{ item.ask_time }}
</text>
<text
class=
"t1"
v-if=
"currentIndex === 0"
>
已耗时:
</text>
<text
class=
"t2"
v-if=
"currentIndex === 0"
>
{{ item.ask_time }}
</text>
<text
class=
"t2"
v-if=
"currentIndex === 1"
>
{{ item.ask_customer_confirm_time_cn }}
</text>
<text
class=
"t2"
v-if=
"currentIndex === 2"
>
{{ item.store_execute_time_cn }}
</text>
</view>
</view>
</navigator>
...
...
@@ -100,22 +102,24 @@ export default {
is_login
:
true
};
},
onLoad
(
options
)
{},
onShow
()
{
onLoad
(
options
)
{
this
.
list
=
[];
this
.
page
=
1
;
this
.
currentIndex
=
0
;
this
.
changeTab
(
0
);
},
onShow
()
{
},
methods
:
{
inputChange
()
{
this
.
list
=
[];
this
.
page
=
1
;
this
.
currentIndex
=
0
;
setTimeout
(()
=>
{
this
.
changeTab
(
0
);
},
200
)
setTimeout
(()
=>
{
this
.
changeTab
(
0
);
},
200
);
},
getAskCustomerProblemList
()
{
this
.
request
(
...
...
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