Commit dcb49802 by liangjianmin

css

parent b29d9507
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<view class="notice column"> <view class="notice column">
<text class="title">公告通知</text> <text class="title">公告通知</text>
<view class="list column"> <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"> <view class="row verCenter">
<text class="arrow"></text> <text class="arrow"></text>
<text class="content">{{ item.notice_title }}</text> <text class="content">{{ item.notice_title }}</text>
...@@ -21,7 +21,17 @@ ...@@ -21,7 +21,17 @@
<view class="section"> <view class="section">
<view class="list column"> <view class="list column">
<template v-if="list.length > 0"> <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="base-info column">
<view class="row verCenter mb20"> <view class="row verCenter mb20">
<view class="t1">{{ item.erp_order_sn }}</view> <view class="t1">{{ item.erp_order_sn }}</view>
...@@ -35,18 +45,20 @@ ...@@ -35,18 +45,20 @@
</view> </view>
<view class="time-info"> <view class="time-info">
<!-- 紧急情况区分 --> <!-- 紧急情况区分 -->
<template v-if="item.is_urgent == '紧急'"> <template v-if="item.is_urgent == '紧急'">
<view class="status0 row verCenter"> <view class="status0 row verCenter">
<text class="iconfont icon-jinggao"></text> <text class="iconfont icon-jinggao"></text>
<span>{{item.is_urgent}}</span> <span>{{ item.is_urgent }}</span>
</view> </view>
</template> </template>
<template v-else> <template v-else>
<view class="status2">{{ item.handle_type_cn }}</view> <view class="status2">{{ item.handle_type_cn }}</view>
</template> </template>
<view class="time"> <view class="time">
<text class="t1">已耗时:</text> <text class="t1" v-if="currentIndex === 0">已耗时:</text>
<text class="t2">{{ item.ask_time }}</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>
</view> </view>
</navigator> </navigator>
...@@ -97,6 +109,10 @@ export default { ...@@ -97,6 +109,10 @@ export default {
}, },
onLoad(options) { onLoad(options) {
this.getData(); this.getData();
this.list = [];
this.page = 1;
this.currentIndex = 0;
this.changeTab(0);
}, },
onReachBottom() { onReachBottom() {
if (this.flag) return; if (this.flag) return;
...@@ -104,10 +120,7 @@ export default { ...@@ -104,10 +120,7 @@ export default {
this.getAskCustomerProblemList(); this.getAskCustomerProblemList();
}, },
onShow() { onShow() {
this.list = [];
this.page = 1;
this.currentIndex = 0;
this.changeTab(0);
}, },
methods: { methods: {
getData() { getData() {
...@@ -132,7 +145,7 @@ export default { ...@@ -132,7 +145,7 @@ export default {
this.flag = true; this.flag = true;
this.more = 'noMore'; this.more = 'noMore';
} }
} else if (res.err_code === 20045) { } else if (res.err_code === 20045) {
this.is_login = false; this.is_login = false;
this.flag = true; this.flag = true;
this.more = 'noMore'; this.more = 'noMore';
......
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
<text class="remark-title">客户备注信息:</text> <text class="remark-title">客户备注信息:</text>
<view class="text-area"><textarea placeholder="此处提交的备注信息,仓库和商务均可看到(选填)" v-model="ask_customer_confirm_remark"></textarea></view> <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="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> </view>
<uni-popup ref="popup" type="bottom"> <uni-popup ref="popup" type="bottom">
<view class="popup-layer"> <view class="popup-layer">
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
</view> </view>
</view> </view>
<button class="btn1 row rowCenter verCenter" @click="this.$refs.popup.close()">确认操作</button> <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> </view>
</uni-popup> </uni-popup>
</view> </view>
...@@ -274,6 +274,8 @@ export default { ...@@ -274,6 +274,8 @@ export default {
this.$set(this.order_goods[this.order_goods_index], 'customer_result', '来货数据'); this.$set(this.order_goods[this.order_goods_index], 'customer_result', '来货数据');
} else if (index == 3) { } else if (index == 3) {
this.$set(this.order_goods[this.order_goods_index], 'customer_result', this.customer_result_text); 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) { changeTab(index) {
...@@ -284,6 +286,11 @@ export default { ...@@ -284,6 +286,11 @@ export default {
this.ask_customer_confirm_feedback = '人工处理'; this.ask_customer_confirm_feedback = '人工处理';
} }
}, },
canel() {
this.current = 0;
this.change(0);
this.$refs.popup.close();
},
toChat() { toChat() {
this.request(API.turnManualProcessing, 'POST', { ask_customer_problem_list_id: this.ask_customer_problem_list_id }, true).then(res => { this.request(API.turnManualProcessing, 'POST', { ask_customer_problem_list_id: this.ask_customer_problem_list_id }, true).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
......
...@@ -43,15 +43,17 @@ ...@@ -43,15 +43,17 @@
<template v-if="item.is_urgent == '紧急'"> <template v-if="item.is_urgent == '紧急'">
<view class="status0 row verCenter"> <view class="status0 row verCenter">
<text class="iconfont icon-jinggao"></text> <text class="iconfont icon-jinggao"></text>
<span>{{item.is_urgent}}</span> <span>{{ item.is_urgent }}</span>
</view> </view>
</template> </template>
<template v-else> <template v-else>
<view class="status2">{{ item.handle_type_cn }}</view> <view class="status2">{{ item.handle_type_cn }}</view>
</template> </template>
<view class="time"> <view class="time">
<text class="t1">已耗时:</text> <text class="t1" v-if="currentIndex === 0">已耗时:</text>
<text class="t2">{{ item.ask_time }}</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>
</view> </view>
</navigator> </navigator>
...@@ -100,22 +102,24 @@ export default { ...@@ -100,22 +102,24 @@ export default {
is_login: true is_login: true
}; };
}, },
onLoad(options) {}, onLoad(options) {
onShow() {
this.list = []; this.list = [];
this.page = 1; this.page = 1;
this.currentIndex = 0; this.currentIndex = 0;
this.changeTab(0); this.changeTab(0);
}, },
onShow() {
},
methods: { methods: {
inputChange() { inputChange() {
this.list = []; this.list = [];
this.page = 1; this.page = 1;
this.currentIndex = 0; this.currentIndex = 0;
setTimeout(()=>{ setTimeout(() => {
this.changeTab(0); this.changeTab(0);
},200) }, 200);
}, },
getAskCustomerProblemList() { getAskCustomerProblemList() {
this.request( this.request(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment