Commit dcb49802 by liangjianmin

css

parent b29d9507
......@@ -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';
......
......@@ -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) {
......
......@@ -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(
......
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