Commit 60967060 by cen

feat: 更新订单详情和策略组件,增强审批状态展示

- 在 OrderDetail.vue 中新增审批状态和日志信息展示,支持不同审批状态的备注和原因显示
- 在 OrderStrategy.vue 中调整边框样式以提升视觉效果
- 在 OrderCard.vue 中添加异常订单提示,优化用户体验
1 parent 18a4cd70
{ {
"name": "展业助手", "name" : "展业助手",
"appid": "__UNI__D3BD3DF", "appid" : "__UNI__D3BD3DF",
"description": "", "description" : "",
"versionName": "2.20.2", "versionName" : "2.21.1",
"versionCode": 2202, "versionCode" : 2211,
"transformPx": false, "transformPx" : false,
"sassImplementationName": "node-sass", "sassImplementationName" : "node-sass",
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus": { "app-plus" : {
"cache": false, "cache" : false,
"bounce": "none", "bounce" : "none",
"usingComponents": true, "usingComponents" : true,
"nvueStyleCompiler": "uni-app", "nvueStyleCompiler" : "uni-app",
"compilerVersion": 3, "compilerVersion" : 3,
"compatible": { "compatible" : {
"ignoreVersion": true "ignoreVersion" : true
}, },
"screenOrientation": "landscape", "screenOrientation" : "landscape",
"splashscreen": { "splashscreen" : {
"alwaysShowBeforeRender": true, "alwaysShowBeforeRender" : true,
"waiting": true, "waiting" : true,
"autoclose": true, "autoclose" : true,
"delay": 0 "delay" : 0
}, },
/* 模块配置 */ /* 模块配置 */
"modules": { "modules" : {
"Camera": {}, "Camera" : {},
"Record": {}, "Record" : {},
"VideoPlayer": {}, "VideoPlayer" : {},
"AudioPlayer": {}, "AudioPlayer" : {},
"SQLite": {}, "SQLite" : {},
"Maps": {}, "Maps" : {},
"Geolocation": {} "Geolocation" : {}
}, },
/* 应用发布信息 */ /* 应用发布信息 */
"distribute": { "distribute" : {
/* android打包配置 */ /* android打包配置 */
"android": { "android" : {
"permissions": [ "permissions" : [
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
...@@ -54,81 +54,83 @@ ...@@ -54,81 +54,83 @@
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>" "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>"
], ],
"abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"targetSdkVersion": 30, "targetSdkVersion" : 30,
"minSdkVersion": 21, "minSdkVersion" : 21,
"excludePermissions": ["<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>"] "excludePermissions" : [
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>"
]
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios": { "ios" : {
"dSYMs": false, "dSYMs" : false,
"UIBackgroundModes": "audio" "UIBackgroundModes" : "audio"
}, },
/* SDK配置 */ /* SDK配置 */
"sdkConfigs": { "sdkConfigs" : {
"ad": {}, "ad" : {},
"speech": {}, "speech" : {},
"geolocation": { "geolocation" : {
"baidu": { "baidu" : {
"__platform__": ["android"], "__platform__" : [ "android" ],
"appkey_ios": "", "appkey_ios" : "",
"appkey_android": "rfN7u5gCi0KyCGIWWBYGXlmKrVQsKH8z" "appkey_android" : "rfN7u5gCi0KyCGIWWBYGXlmKrVQsKH8z"
} }
}, },
"maps": {} "maps" : {}
}, },
"icons": { "icons" : {
"android": { "android" : {
"hdpi": "static/72.png", "hdpi" : "static/72.png",
"xhdpi": "static/96.png", "xhdpi" : "static/96.png",
"xxhdpi": "static/144.png" "xxhdpi" : "static/144.png"
} }
} }
}, },
"nativePlugins": { "nativePlugins" : {
"Ba-KeepAliveSuit": { "Ba-KeepAliveSuit" : {
"__plugin_info__": { "__plugin_info__" : {
"name": "安卓保活套装(通用、常驻通知、电池优化、自启管理、后台运行等)", "name" : "安卓保活套装(通用、常驻通知、电池优化、自启管理、后台运行等)",
"description": "在Ba-KeepAlive的基础上,新增了忽略电池优化、自启管理、常驻通知。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航(**注意:**不保证支持所有机型和场景,建议先试用再购买)", "description" : "在Ba-KeepAlive的基础上,新增了忽略电池优化、自启管理、常驻通知。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航(**注意:**不保证支持所有机型和场景,建议先试用再购买)",
"platforms": "Android", "platforms" : "Android",
"url": "https://ext.dcloud.net.cn/plugin?id=11765", "url" : "https://ext.dcloud.net.cn/plugin?id=11765",
"android_package_name": "uni.gltap", "android_package_name" : "uni.gltap",
"ios_bundle_id": "", "ios_bundle_id" : "",
"isCloud": true, "isCloud" : true,
"bought": 1, "bought" : 1,
"pid": "11765", "pid" : "11765",
"parameters": {} "parameters" : {}
} }
} }
} }
}, },
/* 快应用特有相关 */ /* 快应用特有相关 */
"quickapp": {}, "quickapp" : {},
/* 小程序特有相关 */ /* 小程序特有相关 */
"mp-weixin": { "mp-weixin" : {
"appid": "wx79d1ff39bee3d047", "appid" : "wx79d1ff39bee3d047",
"setting": { "setting" : {
"urlCheck": false "urlCheck" : false
}, },
"usingComponents": true "usingComponents" : true
}, },
"mp-alipay": { "mp-alipay" : {
"usingComponents": true "usingComponents" : true
}, },
"mp-baidu": { "mp-baidu" : {
"usingComponents": true "usingComponents" : true
}, },
"mp-toutiao": { "mp-toutiao" : {
"usingComponents": true "usingComponents" : true
}, },
"uniStatistics": { "uniStatistics" : {
"enable": false "enable" : false
}, },
"vueVersion": "2", "vueVersion" : "2",
"h5": { "h5" : {
"devServer": { "devServer" : {
"port": 8080, "port" : 8080,
"https": false "https" : false
} }
} }
} }
...@@ -25,8 +25,48 @@ ...@@ -25,8 +25,48 @@
<view class="fs-26">完成施工,如客户有新的需要,可点击再次下单。</view> <view class="fs-26">完成施工,如客户有新的需要,可点击再次下单。</view>
</view> </view>
</view> </view>
<view class="box-shell" v-if="orderInfo.goodsOrderApplyStatus">
<view class="flex justify-between align-center">
<view class="box-shell-title">审批</view>
<view class="status-tag" :class="`status-tag-${orderInfo.goodsOrderApplyStatus}`">
{{ goodsOrderApplyStatus && orderInfo.goodsOrderApplyStatus ? goodsOrderApplyStatus[orderInfo.goodsOrderApplyStatus] : '-' }}
</view>
</view>
<view class="log-info box" v-if="orderInfo.goodsOrderApplyStatus == 1 || orderInfo.goodsOrderApplyStatus == 2">
<view class="log-box">
<template v-for="(i,index) in logList" >
<view
class="log-item"
:key="index"
>
<view class="item flex">
<view class="label">{{ i.name }}</view>
<view class="value" :style="{ color: i.statusColor }">{{ i.status }}</view>
</view>
<view class="item-mark">
<view
:class="['circle', { first: index == 0, 'status-approved': i.status === '审批通过', 'status-pending': i.status === '审批中' }]"
></view>
<template v-if="index != logList.length - 1">
<view class="mark-line"></view>
</template>
</view>
</view>
</template>
</view>
</view>
<view class="flex align-start justify-between remarkBox" v-if="orderInfo.goodsOrderApplyStatus == 3">
<view class="labelremark">审批备注</view>
<view class="valueremark">{{ orderInfo.applyRecordRemark || '-' }}</view>
</view>
<view class="flex align-start justify-between remarkBox" v-if="orderInfo.goodsOrderApplyStatus == 4">
<view class="labelremark">驳回原因</view>
<view class="valueremark">{{ orderInfo.rejectReason || '-' }}</view>
</view>
</view>
<!-- 商品信息 --> <!-- 商品信息 -->
<view class="box-shell"> <view class="box-shell pt-32">
<view class="box-shell-title">商品信息</view> <view class="box-shell-title">商品信息</view>
<!-- 套餐 --> <!-- 套餐 -->
...@@ -301,6 +341,22 @@ export default { ...@@ -301,6 +341,22 @@ export default {
immediate: true immediate: true
} }
}, },
computed: {
logList() {
const status = this.orderInfo.goodsOrderApplyStatus
if (status == 1) {
// 状态为1时,只显示一个:区域经理 - 审批中
return [{ name: '区域经理', value: '1', status: '审批中', statusColor: '#ff9d0a' }]
} else if (status == 2) {
// 状态为2时,显示两个:区域经理 - 审批通过,线上运营 - 审批中
return [
{ name: '区域经理', value: '1', status: '审批通过', statusColor: '#2cca74' },
{ name: '线上运营', value: '2', status: '审批中', statusColor: '#ff9d0a' }
]
}
return []
}
},
data() { data() {
return { return {
...order_mixins.data, ...order_mixins.data,
...@@ -974,6 +1030,135 @@ export default { ...@@ -974,6 +1030,135 @@ export default {
color: #333333; color: #333333;
font-weight: 400; font-weight: 400;
} }
.status-tag-3 {
color: #2cca74;
font-size: toRpx(24);
font-weight: 400;
padding: toRpx(4) toRpx(8);
border-radius: toRpx(4);
border: toRpx(2) solid #2cca74;
}
.status-tag-4 {
color: #F24724;
font-size: toRpx(24);
font-weight: 400;
padding: toRpx(4) toRpx(8);
border-radius: toRpx(4);
border: toRpx(2) solid #F24724;
}
.status-tag-2 {
color: #FAA827;
font-size: toRpx(24);
font-weight: 400;
padding: toRpx(4) toRpx(8);
border-radius: toRpx(4);
border: toRpx(2) solid #FAA827;
}
.status-tag-1 {
color: #FAA827;
font-size: toRpx(24);
font-weight: 400;
padding: toRpx(4) toRpx(8);
border-radius: toRpx(4);
border: toRpx(2) solid #FAA827;
}
.log-info {
margin-bottom: 0;
.log-box {
padding-top: toRpx(32);
.log-item {
min-height: toRpx(84);
position: relative;
padding-left: toRpx(60);
.item {
margin-top: toRpx(16);
.label {
width: toRpx(168);
color: #292d33;
}
.value {
width: calc(100% - #{toRpx(168)});
word-break: break-all;
}
}
.item-mark {
position: absolute;
top: 0;
left: 0;
width: toRpx(32);
.mark-line {
height: toRpx(80);
width: toRpx(2);
background: #d6e4ff;
position: absolute;
top: toRpx(8);
left: 50%;
transform: translateX(-50%);
}
.circle {
position: relative;
width: toRpx(20);
height: toRpx(20);
background: #8eb2fb;
border-radius: 100%;
margin: toRpx(8) auto 0;
z-index: 2;
}
.first {
width: toRpx(32);
height: toRpx(32);
background: #d6e4ff;
position: relative;
&::before,
&::after {
content: '';
position: absolute;
border-radius: 100%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
&::before {
width: toRpx(20);
height: toRpx(20);
background: var(--status-color, #2c66f7);
}
&::after {
width: toRpx(10);
height: toRpx(10);
background: #fff;
}
}
}
}
.log-title {
color: #333333;
font-size: toRpx(32);
font-weight: 500;
line-height: toRpx(44);
}
}
}
.remarkBox {
margin-top: toRpx(32);
.labelremark {
color: #999999;
font-size: toRpx(26);
font-weight: 400;
width: toRpx(156);
margin-right: toRpx(16);
flex-shrink: 0;
}
.valueremark {
color: #222222;
font-size: toRpx(26);
flex: 1;
word-break: break-all;
word-wrap: break-word;
overflow-wrap: break-word;
white-space: normal;
}
}
.meal-box { .meal-box {
border-radius: toRpx(24); border-radius: toRpx(24);
border: toRpx(2) solid #dce0e6; border: toRpx(2) solid #dce0e6;
...@@ -1089,8 +1274,6 @@ export default { ...@@ -1089,8 +1274,6 @@ export default {
font-weight: 400; font-weight: 400;
} }
.image-box { .image-box {
.value {
}
.image { .image {
width: toRpx(106); width: toRpx(106);
height: toRpx(112); height: toRpx(112);
......
...@@ -393,7 +393,7 @@ export default { ...@@ -393,7 +393,7 @@ export default {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: toRpx(24) toRpx(24) 0 toRpx(24); padding: toRpx(24) toRpx(24) 0 toRpx(24);
border-top: toRpx(2) dashed #ebedf0; border-top: toRpx(3) dashed #E4E7EB;
box-sizing: border-box; box-sizing: border-box;
} }
......
...@@ -33,7 +33,9 @@ ...@@ -33,7 +33,9 @@
<view class="order-list align-center"> <view class="order-list align-center">
<view class="order flex align-center"> <view class="order flex align-center">
<view class="order-label">订单类型 </view> <view class="order-label">订单类型 </view>
<view class="order-value flex">{{ orderTypeText[orderCardDetail.orderType] }}</view> <view class="order-value flex">{{ orderTypeText[orderCardDetail.orderType] }}
<view class="flex align-center errorTips" v-if="orderCardDetail.abnormalFlag == true"><view class="sprite-icon icon-errortips"></view>异常</view>
</view>
</view> </view>
</view> </view>
<view class="order-list align-center"> <view class="order-list align-center">
...@@ -1338,4 +1340,10 @@ export default { ...@@ -1338,4 +1340,10 @@ export default {
.updateInfo.isHide { .updateInfo.isHide {
display: none; display: none;
} }
.errorTips {
color: #eb4e4e;
font-size: toRpx(24);
font-weight: 400;
margin-left: toRpx(16);
}
</style> </style>
...@@ -393,7 +393,7 @@ export default { ...@@ -393,7 +393,7 @@ export default {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: toRpx(24) toRpx(24) 0 toRpx(24); padding: toRpx(24) toRpx(24) 0 toRpx(24);
border-top: toRpx(2) dashed #ebedf0; border-top: toRpx(3) dashed #E4E7EB;
box-sizing: border-box; box-sizing: border-box;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!