Browse Source

fix: 保养bug

master
zhang_li 8 months ago
parent
commit
a6cd1710da
  1. 2
      .env.development
  2. 4
      src/pages/upkeepOrder/addServiceRecord.vue
  3. 16
      src/pages/upkeepOrder/detail.vue

2
.env.development

@ -1,3 +1,3 @@
VITE_BASE_URL=http://localhost:12080/admin-api
VITE_BASE_URL=http://192.168.0.106:12080/admin-api
VITE_BASE_URL_IMAGE=http://localhost:12080/admin-api

4
src/pages/upkeepOrder/addServiceRecord.vue

@ -251,7 +251,7 @@ const form = ref({
}
}
if (form.value.id) {
proxy.$modal.confirm('是否修改检修内容').then(() => {
proxy.$modal.confirm('是否修改保养内容').then(() => {
proxy.$modal.loading('加载中')
loading.value = true
upkeepOrderApi.upkeepOrderDetailUpdate(form.value).then((res) => {
@ -276,7 +276,7 @@ const form = ref({
})
})
} else {
proxy.$modal.confirm('是否添加检修内容').then(() => {
proxy.$modal.confirm('是否添加保养内容').then(() => {
proxy.$modal.loading('加载中')
loading.value = true
upkeepOrderApi.upkeepOrderDetailCreate(form.value).then((res) => {

16
src/pages/upkeepOrder/detail.vue

@ -160,7 +160,7 @@
const list = ref([{
name: '设备信息'
}, {
name: '检修内容'
name: '保养内容'
}])
const current = ref(0)
const changeItem = ref({
@ -197,13 +197,13 @@
proxy.$modal.showToast('没有保养内容')
return;
}
if(type == 2){
isTrue.value = serviceList.value.some(item=>item.items.length == 0)
if(isTrue.value){
proxy.$modal.showToast('保养项目没有全部完成')
return;
}
}
// if(type == 2){
// isTrue.value = serviceList.value.some(item=>item.items.length == 0)
// if(isTrue.value){
// proxy.$modal.showToast('')
// return;
// }
// }
const paramsData = {
id: data.value.id

Loading…
Cancel
Save