1
This commit is contained in:
parent
dadef36afc
commit
7db0c4b604
@ -19,7 +19,7 @@
|
|||||||
订单编号:{{ item.orderNo }}
|
订单编号:{{ item.orderNo }}
|
||||||
</view>
|
</view>
|
||||||
<text class="orderStatus" :class="['status_'+item.orderStatus]">
|
<text class="orderStatus" :class="['status_'+item.orderStatus]">
|
||||||
{{ getStatus(item.orderStatus,item.mainStatus,item.payType) }}
|
{{ getStatus(item.orderStatus,item.mainStatus,item.payType,item.payTime) }}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="orderInfo">
|
<view class="orderInfo">
|
||||||
@ -216,7 +216,7 @@ export default {
|
|||||||
* @param payType 支付方式
|
* @param payType 支付方式
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
getStatus(orderStatus,mainStatus,payType) {
|
getStatus(orderStatus,mainStatus,payType,payTime) {
|
||||||
let str = "";
|
let str = "";
|
||||||
if("0"==orderStatus){
|
if("0"==orderStatus){
|
||||||
//未支付的情况下,返回工单的状态
|
//未支付的情况下,返回工单的状态
|
||||||
@ -238,7 +238,11 @@ export default {
|
|||||||
str = "挂单/记账"
|
str = "挂单/记账"
|
||||||
}else if("02"==mainStatus){
|
}else if("02"==mainStatus){
|
||||||
//已结账
|
//已结账
|
||||||
str = "已结账"
|
if(!payTime){
|
||||||
|
str = "待支付"
|
||||||
|
}else{
|
||||||
|
str = "已结账"
|
||||||
|
}
|
||||||
}else if("03"==mainStatus){
|
}else if("03"==mainStatus){
|
||||||
//已作废
|
//已作废
|
||||||
str = "已作废"
|
str = "已作废"
|
||||||
|
Loading…
Reference in New Issue
Block a user