@@ -106,6 +106,9 @@ httpN.interceptors.response.use( | |||
// console.log('响应N==>', response) | |||
const code = response.data.code || 200; | |||
const msg = response.data.message; | |||
// 处理msg中有多个'业务校验失败:',只显示一个 | |||
msg.replace(/(业务校验失败:)+/, "业务校验失败:"); | |||
// console.log('响应N==>', code,":", msg) | |||
// console.log('canShowError',canShowError) | |||
// 处理 401002 错误(token已过期) |
@@ -28,7 +28,7 @@ | |||
<el-button v-if="IsPermission(route, 'CANCEL_LIST') && scope.row.orderStatus === 'NORMAL'" type="warning" size="small" class="code-btn" @click="auditCancel(scope.row)">取消</el-button> | |||
<el-button v-if="IsPermission(route, 'INFO_LIST')" type="success" size="small" class="code-btn" @click="showInfo(scope.row)">详情</el-button> | |||
<el-button v-if="IsPermission(route, 'AUDIT_LIST') && scope.row.orderStatus === 'NORMAL' && scope.row.orderStep === 'WAITING_AUDIT' && | |||
(scope.row.orderType === 'USER_UPDATE' || scope.row.orderType === 'LOSS' || scope.row.orderType === 'RELEASE_VEHICLE') | |||
(scope.row.orderType === 'USER_UPDATE' || scope.row.orderType === 'RELEASE_VEHICLE' || scope.row.orderType === 'CANCEL') | |||
" type="primary" size="small" class="code-btn" @click="audit(scope.row)">审核</el-button> | |||
</template> | |||
@@ -412,17 +412,26 @@ function submitLoss(){ | |||
obuId: obuId, | |||
}; | |||
// console.log("===>params",params) | |||
if (lossForm.value.businessType === 2 || lossForm.value.businessType === 5) { | |||
params.cardId = '' | |||
} | |||
if (lossForm.value.businessType === 1 || lossForm.value.businessType === 4) { | |||
params.obuId = '' | |||
} | |||
// console.log("===>params",params) | |||
lossForm.value.showLoading = true; | |||
BaseService.postN('/managew/api/device/loss',params).then((res: any) => { | |||
if (res && res.statusCode === 0) { | |||
ElMessage.success(res.message); | |||
lossForm.value.submitBtn = false; | |||
lossForm.value.showLoading = false; | |||
lossForm.value.showDialog = false; | |||
getList(); | |||
} | |||
}).catch((error) => { | |||
lossForm.value.submitBtn = false; | |||
lossForm.value.showLoading = false; | |||
}) | |||
} | |||