diff --git a/src/api/report.js b/src/api/report.js
index d18ccfb..c386e02 100644
--- a/src/api/report.js
+++ b/src/api/report.js
@@ -16,9 +16,9 @@ export function repairPage(params,type) {
if(type == 'DEVICE'){
return http.get('/eam/device-repair-request/getAppPage',{params})
}else if(type == 'MOLD'){
- return http.post('/eam/mold-repair-request/getAppPage',{params})
+ return http.get('/eam/mold-repair-request/getAppPage',{params})
}else if(type == 'TECH'){
- return http.post('/eam/tech-repair-request/getAppPage',{params})
+ return http.get('/eam/tech-repair-request/getAppPage',{params})
}
}
// 撤销
@@ -26,8 +26,8 @@ export function repairCancel(id,type) {
if(type == 'DEVICE'){
return http.delete('/eam/device-repair-request/cancel?id='+id)
}else if(type == 'MOLD'){
- return http.post('/eam/mold-repair-request/cancel?id='+id)
+ return http.delete('/eam/mold-repair-request/cancel?id='+id)
}else if(type == 'TECH'){
- return http.post('/eam/tech-repair-request/cancel?id='+id)
+ return http.delete('/eam/tech-repair-request/cancel?id='+id)
}
}
diff --git a/src/pages/deviceReport/index.vue b/src/pages/deviceReport/index.vue
index 3620cd2..9173e5a 100644
--- a/src/pages/deviceReport/index.vue
+++ b/src/pages/deviceReport/index.vue
@@ -4,8 +4,7 @@
-
+
@@ -44,7 +43,13 @@
type="primary" shape='circle' />
- 撤销
+ 撤销
diff --git a/src/pages/deviceReport/myDeviceReport.vue b/src/pages/deviceReport/myDeviceReport.vue
index 1d88bbc..868849c 100644
--- a/src/pages/deviceReport/myDeviceReport.vue
+++ b/src/pages/deviceReport/myDeviceReport.vue
@@ -59,7 +59,7 @@
ref,
getCurrentInstance
} from 'vue'
- import * as deviceApi from "@/api/device.js"
+ import * as reportApi from "@/api/report.js"
const { proxy } = getCurrentInstance()
const params = ref({
pageNo: 1,
@@ -72,7 +72,7 @@
if (status.value == 'nomore') return;
status.value = 'loading';
proxy.$modal.loading('加载中')
- await deviceApi.deviceRepairPage(params.value).then((res) => {
+ await reportApi.repairPage(params.value,'DEVICE').then((res) => {
proxy.$modal.closeLoading()
if (res.data.list.length > 0) {
list.value = list.value.concat(res.data.list);
diff --git a/src/pages/index.vue b/src/pages/index.vue
index 3118b01..e36c992 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -162,16 +162,20 @@
await proxy.$onLaunched;
if (getAccessToken()) {
meaus.value = store.meaus
- if(meaus.value&&meaus.value[3]&&meaus.value[3].children){
- isShowItemApprove1.value = meaus.value[3].children.some(item=>{
+ console.log(meaus.value)
+ let isHave = meaus.value.find (item=>item.path == 'parePartsManagement')
+ let isHaveIndex = meaus.value.findIndex (item=>item.path == 'parePartsManagement')
+ if(isHave&&isHave.children){
+ isShowItemApprove1.value = isHave.children.some(item=>{
return item.componentName == 'itemApprove1'
})
- isShowItemApprove2.value = meaus.value[3].children.some(item=>{
+ isShowItemApprove2.value = isHave.children.some(item=>{
return item.componentName == 'itemApprove2'
})
await sparePartsApplicationApprovePage()
await sparePartsApplicationApprovePage1()
-
+ console.log(isShowItemApprove1.value)
+ console.log(isShowItemApprove2.value)
// 如果只有一级审核 、待审核数量等于一级审核数量
if(isShowItemApprove1.value && !isShowItemApprove2.value){
number.value =number1.value
@@ -182,7 +186,7 @@
}
// 如果一级审核二级审核都存在 待审核数量等于二级审核数量
if(isShowItemApprove1.value && isShowItemApprove2.value){
- meaus.value[3].children.splice(1,1)
+ meaus.value[isHaveIndex].children.splice(1,1)
number.value =number2.value
}
}
diff --git a/src/pages/overhaulOrder/addForm.vue b/src/pages/overhaulOrder/addForm.vue
index b1e3d1c..4f36151 100644
--- a/src/pages/overhaulOrder/addForm.vue
+++ b/src/pages/overhaulOrder/addForm.vue
@@ -142,7 +142,7 @@
//维修人员
const selecUserList = ref([])//维修人员
const isShowSelecUser = ref(false)
- const chooseUserInfo = ref({})
+ const chooseUserInfo = ref(null)
function submit() {
// 校验
if (!form.value.describes) {
@@ -393,6 +393,10 @@
}
// 选择人员
function chooseUser() {
+ if(!chooseUserInfo.value){
+ proxy.$modal.showToast('请选择人员')
+ return;
+ }
form.value[field.value] = chooseUserInfo.value
isShowSelecUser.value = false
}
diff --git a/src/pages/overhaulOrder/index.vue b/src/pages/overhaulOrder/index.vue
index 40a4815..0a69431 100644
--- a/src/pages/overhaulOrder/index.vue
+++ b/src/pages/overhaulOrder/index.vue
@@ -5,7 +5,7 @@
title="检修工单">
-
+
diff --git a/src/pages/repairOrder/detail.vue b/src/pages/repairOrder/detail.vue
index c36a910..7a4545e 100644
--- a/src/pages/repairOrder/detail.vue
+++ b/src/pages/repairOrder/detail.vue
@@ -9,7 +9,7 @@
v-if="data.status == 'PECEIVED' && (!serviceList || serviceList && serviceList.length == 0)">转办
-->
+ v-if="data.status == 'PECEIVED'&&((type=='DEVICE'&&auth.hasPermi('eam:device-maintenance-job-main:turnToAPP'))||(type=='MOLD'&&auth.hasPermi('eam:mold-maintenance-job-main:turnToAPP'))||(type=='TECH'&&auth.hasPermi('eam:tech-maintenance-job-main:turnToAPP')))">
转办
@@ -207,23 +207,23 @@
撤回
+ v-if="item.status==0&&auth.hasPermi('eam:item-apply-request-main:cancelAPP')" @click="cancle(item)">撤回
diff --git a/src/pages/sparePartsApplicationApprove/index.vue b/src/pages/sparePartsApplicationApprove/index.vue
index 690e2eb..cd4d4cb 100644
--- a/src/pages/sparePartsApplicationApprove/index.vue
+++ b/src/pages/sparePartsApplicationApprove/index.vue
@@ -38,9 +38,9 @@
驳回
+ v-if="item.status==0&&((from==2&&auth.hasPermi('eam:item-apply-request-main:role0APP'))||(from==3&&auth.hasPermi('eam:item-apply-request-main:role1APP')))" @click="reject(item)">驳回
通过
+ v-if="item.status==0&&((from==2&&auth.hasPermi('eam:item-apply-request-main:role0APP'))||(from==3&&auth.hasPermi('eam:item-apply-request-main:role1APP')))" @click="agree(item)">通过
diff --git a/src/pages/spotCheckOrder/detail.vue b/src/pages/spotCheckOrder/detail.vue
index a812bd1..b9694fd 100644
--- a/src/pages/spotCheckOrder/detail.vue
+++ b/src/pages/spotCheckOrder/detail.vue
@@ -95,7 +95,7 @@