Browse Source

fix: bug

master
zhang_li 8 months ago
parent
commit
5c135980cc
  1. 4
      src/pages/deviceReport/addForm.vue
  2. 8
      src/pages/overhaulOrder/addForm.vue
  3. 8
      src/pages/overhaulOrder/addServiceRecord.vue
  4. 8
      src/pages/repairOrder/addForm.vue
  5. 8
      src/pages/repairOrder/addServiceRecord.vue
  6. 29
      src/pages/repairOrder/detail.vue
  7. 4
      src/pages/repairOrder/transfer.vue
  8. 4
      src/pages/sparePartsApplication/addForm.vue
  9. 4
      src/pages/sparePartsServiceWorkOrderList/addForm.vue
  10. 4
      src/pages/spotCheckOrder/addForm.vue
  11. 12
      src/pages/upkeepOrder/addServiceRecord.vue

4
src/pages/deviceReport/addForm.vue

@ -219,8 +219,12 @@
proxy.$tab.navigateBack() proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else {
if(res.msg){
proxy.$modal.showToast(res.msg)
}else{ }else{
proxy.$modal.showToast('添加失败') proxy.$modal.showToast('添加失败')
}
loading.value = false loading.value = false
} }
}).catch(() => { }).catch(() => {

8
src/pages/overhaulOrder/addForm.vue

@ -148,8 +148,12 @@
proxy.$tab.navigateBack() proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else {
if(res.msg){
proxy.$modal.showToast(res.msg)
}else{ }else{
proxy.$modal.showToast('添加失败') proxy.$modal.showToast('添加失败')
}
loading.value = false loading.value = false
} }
}).catch(() => { }).catch(() => {
@ -169,8 +173,12 @@
proxy.$tab.navigateBack() proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else {
if(res.msg){
proxy.$modal.showToast(res.msg)
}else{ }else{
proxy.$modal.showToast('添加失败') proxy.$modal.showToast('添加失败')
}
loading.value = false loading.value = false
} }
}).catch(() => { }).catch(() => {

8
src/pages/overhaulOrder/addServiceRecord.vue

@ -281,8 +281,12 @@
proxy.$tab.navigateBack() proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else {
if(res.msg){
proxy.$modal.showToast(res.msg)
}else{ }else{
proxy.$modal.showToast('添加失败') proxy.$modal.showToast('添加失败')
}
loading.value = false loading.value = false
} }
}).catch(() => { }).catch(() => {
@ -302,8 +306,12 @@
proxy.$tab.navigateBack() proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else {
if(res.msg){
proxy.$modal.showToast(res.msg)
}else{ }else{
proxy.$modal.showToast('添加失败') proxy.$modal.showToast('添加失败')
}
loading.value = false loading.value = false
} }
}).catch(() => { }).catch(() => {

8
src/pages/repairOrder/addForm.vue

@ -233,8 +233,12 @@
proxy.$tab.navigateBack() proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else {
if(res.msg){
proxy.$modal.showToast(res.msg)
}else{ }else{
proxy.$modal.showToast('添加失败') proxy.$modal.showToast('添加失败')
}
loading.value = false loading.value = false
} }
}).catch(() => { }).catch(() => {
@ -254,8 +258,12 @@
proxy.$tab.navigateBack() proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else {
if(res.msg){
proxy.$modal.showToast(res.msg)
}else{ }else{
proxy.$modal.showToast('添加失败') proxy.$modal.showToast('添加失败')
}
loading.value = false loading.value = false
} }
}).catch(() => { }).catch(() => {

8
src/pages/repairOrder/addServiceRecord.vue

@ -177,8 +177,12 @@
proxy.$tab.navigateBack() proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else {
if(res.msg){
proxy.$modal.showToast(res.msg)
}else{ }else{
proxy.$modal.showToast('添加失败') proxy.$modal.showToast('添加失败')
}
loading.value = false loading.value = false
} }
}).catch(() => { }).catch(() => {
@ -198,8 +202,12 @@
proxy.$tab.navigateBack() proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else {
if(res.msg){
proxy.$modal.showToast(res.msg)
}else{ }else{
proxy.$modal.showToast('添加失败') proxy.$modal.showToast('添加失败')
}
loading.value = false loading.value = false
} }
}).catch(() => { }).catch(() => {

29
src/pages/repairOrder/detail.vue

@ -322,7 +322,7 @@
orderClick(2) orderClick(2)
} }
// APP // APP
function orderClick(type) { async function orderClick(type) {
// //
// if (this.data.status == 'PENDING') { // if (this.data.status == 'PENDING') {
// if (this.$store.state.user.dept.parentId != this.data.factoryAreaNumber) { // if (this.$store.state.user.dept.parentId != this.data.factoryAreaNumber) {
@ -353,6 +353,32 @@
classes: data.value.classes, classes: data.value.classes,
faultType: data.value.faultType faultType: data.value.faultType
} }
if(type ==2){
proxy.$modal.loading('加载中')
loading.value = true
//
if (data.value.status == 'PECEIVED') {
await repairOrderApi.repairOrderUpdate(dataTwo).then((res) => { }).catch(() => {
proxy.$modal.closeLoading()
loading.value = false
})
}
await repairOrderApi.orderClick(dataOne).then((res) => {
if (res.data) {
proxy.$modal.showToast('操作成功')
setTimeout(() => {
proxy.$tab.navigateBack()
loading.value = false
}, 1500)
} else {
proxy.$modal.showToast('操作失败')
loading.value = false
}
}).catch(() => {
proxy.$modal.closeLoading()
loading.value = false
})
}else{
let tips = data.value.status == 'PENDING' ? '是否接单?' : data.value.status == 'PECEIVED' ? '是否完成?' : data let tips = data.value.status == 'PENDING' ? '是否接单?' : data.value.status == 'PECEIVED' ? '是否完成?' : data
.value.status == 'COMPLETED' ? '是否验证完结?' : '' .value.status == 'COMPLETED' ? '是否验证完结?' : ''
proxy.$modal.confirm(tips).then(async () => { proxy.$modal.confirm(tips).then(async () => {
@ -382,6 +408,7 @@
}) })
}) })
} }
}
// //
function getDeviceRepairDetailsByNumber() { function getDeviceRepairDetailsByNumber() {
repairOrderApi.getDeviceRepairDetailsByNumber({ repairOrderApi.getDeviceRepairDetailsByNumber({

4
src/pages/repairOrder/transfer.vue

@ -182,8 +182,12 @@
proxy.$tab.navigateBack(2) proxy.$tab.navigateBack(2)
loading.value = false loading.value = false
}, 1500) }, 1500)
} else {
if(res.msg){
proxy.$modal.showToast(res.msg)
}else{ }else{
proxy.$modal.showToast('转办失败') proxy.$modal.showToast('转办失败')
}
loading.value = false loading.value = false
} }
}).catch(() => { }).catch(() => {

4
src/pages/sparePartsApplication/addForm.vue

@ -184,8 +184,12 @@
proxy.$tab.navigateBack() proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else {
if(res.msg){
proxy.$modal.showToast(res.msg)
}else{ }else{
proxy.$modal.showToast('添加失败') proxy.$modal.showToast('添加失败')
}
loading.value = false loading.value = false
} }
}).catch(() => { }).catch(() => {

4
src/pages/sparePartsServiceWorkOrderList/addForm.vue

@ -161,8 +161,12 @@
proxy.$tab.navigateBack() proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else {
if(res.msg){
proxy.$modal.showToast(res.msg)
}else{ }else{
proxy.$modal.showToast('添加失败') proxy.$modal.showToast('添加失败')
}
loading.value = false loading.value = false
} }
}).catch(() => { }).catch(() => {

4
src/pages/spotCheckOrder/addForm.vue

@ -188,8 +188,12 @@
proxy.$tab.navigateBack() proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else {
if(res.msg){
proxy.$modal.showToast(res.msg)
}else{ }else{
proxy.$modal.showToast('添加失败') proxy.$modal.showToast('添加失败')
}
loading.value = false loading.value = false
} }
}).catch(() => { }).catch(() => {

12
src/pages/upkeepOrder/addServiceRecord.vue

@ -9,10 +9,10 @@
<u-input v-model="form.equipmentParts" placeholder="请输入保养部位" maxlength="50" disabled/> <u-input v-model="form.equipmentParts" placeholder="请输入保养部位" maxlength="50" disabled/>
</u-form-item> --> </u-form-item> -->
<u-form-item label="预估人数" prop="peoples" class="disabled"> <u-form-item label="预估人数" prop="peoples" class="disabled">
<u-input v-model="form.peoples" type="number" placeholder="请输入预估人数" maxlength="50"/> <u-input v-model="form.peoples" type="number" placeholder="请输入预估人数" maxlength="50" disabled/>
</u-form-item> </u-form-item>
<u-form-item label="预估分钟" prop="estimatedMinutes" class="disabled"> <u-form-item label="预估分钟" prop="estimatedMinutes" class="disabled">
<u-input v-model="form.estimatedMinutes" type="number" placeholder="请输入预估分钟" maxlength="50"/> <u-input v-model="form.estimatedMinutes" type="number" placeholder="请输入预估分钟" maxlength="50" disabled/>
</u-form-item> </u-form-item>
<u-form-item label="实际分钟" prop="actualMinutes" required> <u-form-item label="实际分钟" prop="actualMinutes" required>
<u-input v-model="form.actualMinutes" type="number" placeholder="请输入实际分钟" maxlength="50"/> <u-input v-model="form.actualMinutes" type="number" placeholder="请输入实际分钟" maxlength="50"/>
@ -262,8 +262,12 @@ const form = ref({
proxy.$tab.navigateBack() proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else {
if(res.msg){
proxy.$modal.showToast(res.msg)
}else{ }else{
proxy.$modal.showToast('添加失败') proxy.$modal.showToast('添加失败')
}
loading.value = false loading.value = false
} }
}).catch(() => { }).catch(() => {
@ -283,8 +287,12 @@ const form = ref({
proxy.$tab.navigateBack() proxy.$tab.navigateBack()
loading.value = false loading.value = false
}, 1500) }, 1500)
} else {
if(res.msg){
proxy.$modal.showToast(res.msg)
}else{ }else{
proxy.$modal.showToast('添加失败') proxy.$modal.showToast('添加失败')
}
loading.value = false loading.value = false
} }
}).catch(() => { }).catch(() => {

Loading…
Cancel
Save