diff --git a/config/status.js b/config/status.js index a53d0ae..e945e18 100644 --- a/config/status.js +++ b/config/status.js @@ -17,6 +17,10 @@ export const tabList = { name: "待维修", key: "1,2,3", }, + { + name: "已驳回", + key: "100,101,102", + }, { name: "确认方案", @@ -52,6 +56,10 @@ export const tabList = { name: "待维修", key: "1,2,3,4", }, + { + name: "已驳回", + key: "100,101,102", + }, { name: "维修中", key: "5", @@ -76,7 +84,7 @@ export const tabList = { }, { name: "已驳回", - key: "2", + key: "100,101,102", }, { name: "待审批", @@ -122,7 +130,7 @@ export const tabList = { }, { name: "已驳回", - key: "0", + key: "100,101,102", }, { name: "维修中", @@ -247,6 +255,10 @@ export const tabTaskRepairList = { name: "待付款", key: "6", }, + { + name: "已驳回", + key: "100,101,102", + }, { name: "已完成", key: "7,8", @@ -281,6 +293,10 @@ export const tabTaskRepairList = { name: "待付款", key: "6", }, + { + name: "已驳回", + key: "100,101,102", + }, { name: "已完成", key: "7,8", @@ -319,6 +335,10 @@ export const tabTaskRepairList = { name: "待付款", key: "6", }, + { + name: "已驳回", + key: "100,101,102", + }, { name: "已完成", key: "7,8", @@ -354,6 +374,10 @@ export const tabTaskRepairList = { name: "待付款", key: "6", }, + { + name: "已驳回", + key: "100,101,102", + }, { name: "已完成", key: "7,8", @@ -375,5 +399,6 @@ export const tabTaskListColor={ "待评价": "#67c23a", "维修完成": "#67c23a", "待付款": "#67c23a", + "已驳回": "#f56c6c", } diff --git a/pages/login/login.vue b/pages/login/login.vue index d4f9422..efe0c2a 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -128,11 +128,12 @@ export default { this.$refs.BetLoading.hide(); }) .catch((err) => { + if (err.error_code == 2004) { - uni.redirectTo({ - url: "/pages/login/authInfo", - }); - return false + // uni.redirectTo({ + // url: "/pages/login/authInfo", + // }); + uni.showToast({ title: "密码错误", icon: "none" }); } this.$refs.BetLoading.hide(); }); diff --git a/pages/register/index.vue b/pages/register/index.vue index 43f42db..851b913 100644 --- a/pages/register/index.vue +++ b/pages/register/index.vue @@ -200,9 +200,6 @@ export default { } else { uni.$u.toast(res.msg); } - }).finally(err => { - // this.BetLoading.hide(); - uni.$u.toast(err.data.msg); }) } else { // this.BetLoading.hide(); diff --git a/pages/submission/records.vue b/pages/submission/records.vue index 1161967..58355c8 100644 --- a/pages/submission/records.vue +++ b/pages/submission/records.vue @@ -59,7 +59,7 @@ - 接单 确认付款 @@ -72,7 +72,7 @@ - 审批 @@ -83,7 +83,7 @@ @click="orderConfirm(item)">确认 驳回 - 提交 维修完成 diff --git a/pages/submission/sendOrders.vue b/pages/submission/sendOrders.vue index 3ede987..7f4a7b4 100644 --- a/pages/submission/sendOrders.vue +++ b/pages/submission/sendOrders.vue @@ -34,7 +34,7 @@ + v-if="(dataTypes == 4 || dataTypes == 2) && (detailForm.status == 1 || detailForm.status == 0 || detailForm.status == 100)"> 派单信息 @@ -63,7 +63,7 @@ - + 处理情况 @@ -83,7 +83,7 @@ + v-if="(dataTypes == 4 && (detailForm.status == 2||detailForm.status == 101)) || (dataTypes == 3 && (detailForm.status == 3||detailForm.status == 102)) || (dataTypes == 1 && detailForm.status == 4)"> 维修详情 @@ -133,15 +133,15 @@ + v-if="(dataTypes == 3 && (detailForm.status == 3||detailForm.status == 102)) || (dataTypes == 1 && detailForm.status == 4) && repairInfo.isMaterial == 1"> {{ approveInfo.totalPrice }} - 折 + {{ approveInfo.discountPrice }} @@ -151,7 +151,7 @@ - + 主管审批 @@ -161,8 +161,9 @@ - - + + @@ -185,22 +186,24 @@ - + - + 取消 确定派单 - + 取消 提交 - + 取消 提交 @@ -255,7 +258,7 @@ - + @@ -280,7 +283,7 @@ export default { return this.$store.state.dataType == 2 ? false : true }, optionDisabled() { - return (this.$store.state.dataType == 3 && this.detailForm.status == 3) || (this.$store.state.dataType == 1 && this.detailForm.status == 4) ? true : false + return (this.$store.state.dataType == 3 && (this.detailForm.status == 3||this.detailForm.status == 102)) || (this.$store.state.dataType == 1 && this.detailForm.status == 4) ? true : false }, }, @@ -450,8 +453,8 @@ export default { // 获取审批总价 this.approveInfo.totalPrice = data - this.approveInfo.discount = this.detailForm.discount - this.approveInfo.discountPrice = this.detailForm.discountPrice + this.approveInfo.discount = this.detailForm.discount + this.approveInfo.discountPrice = this.detailForm.discountPrice } })