Commit 8afaf4c5 by LJM

PDA小程序-异常问客功能

parent 96ac235a
.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;
}
}
}
......@@ -130,7 +130,7 @@
},
{
name: '新增异常',
iconfont: 'icon-a-10cangkucangchu2',
iconfont: 'icon-jinggao1',
tips: ''
}
]
......
......@@ -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: '提示',
......
......@@ -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>
......
<template>
<view class="tallyExectionDetail">
<view class="page-exectionDetail">
<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/tallyExectionDetail.scss';
@import '../../assets/css/tallyGoods/exceptionDetail.scss';
</style>
\ No newline at end of file
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