diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts deleted file mode 100644 index 768c310..0000000 --- a/src/api/measure/file.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量文件模块接口api -import request from '../index' -import type { fileSearchType } from '@/views/measure/file/file-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: fileSearchType) { - return request({ - url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function listPageDetailApi(data: object) { - return request({ - url: `${prefix}file/listPage`, - method: 'post', - data, - }) -} -// 废止 -export function updateApi(data: object) { - return request({ - url: `${prefix}file/update`, - method: 'post', - data, - }) -} -// 新建 -export function addApi(data: object) { - return request({ - url: `${prefix}file/add`, - method: 'post', - data, - }) -} -// 删除 -export function deleteApi(data: { id: string }) { - return request({ - url: `${prefix}file/delete`, - method: 'post', - data, - }) -} -// 文件上传 -// export function UploadFile(fileobj: any) { -// const param = new FormData() -// param.append('file', fileobj.file) -// return request({ -// url: 'file/uploadFile', -// method: 'post', -// headers: { 'Content-Type': 'multipart/form-data' }, -// data: param, -// }) -// } -export function UploadFile(data: FormData) { - return request({ - url: 'minio/file/upload', - method: 'post', - data, - }) -} -// 导出 -export function exportFileApi(data: object) { - return request({ - url: '/meter/file/listExport', - method: 'post', - data, - responseType: 'blob', - }) -} - -// 文件审批列表(分页) -export function approvallistPageApi(data: any) { - return request({ - url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 审批详情 -export function approvallistPageDetailApi(data: object) { - return request({ - url: '/meter/file/approval/listPage', - method: 'post', - data, - }) -} - -// 取消 -export function approvalCancel(data: object) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 删除 -export function approvalDelete(data: object) { - return request({ - url: '/meter/file/approval/operate/delete', - method: 'post', - data, - }) -} - -// 保存草稿箱 -export function confirmDrafts(data: object) { - return request({ - url: '/meter/file/save', - method: 'post', - data, - }) -} - -// 提交 ( data 为 保存草稿箱接口的返回值) -export function submitFile(data: object) { - return request({ - url: '/meter/file/submit', - method: 'post', - data, - }) -} -// 更新草稿箱 -export function updateDrafts(data: object) { - return request({ - url: '/meter/file/draftUpdate', - method: 'post', - data, - }) -} - diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts deleted file mode 100644 index 768c310..0000000 --- a/src/api/measure/file.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量文件模块接口api -import request from '../index' -import type { fileSearchType } from '@/views/measure/file/file-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: fileSearchType) { - return request({ - url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function listPageDetailApi(data: object) { - return request({ - url: `${prefix}file/listPage`, - method: 'post', - data, - }) -} -// 废止 -export function updateApi(data: object) { - return request({ - url: `${prefix}file/update`, - method: 'post', - data, - }) -} -// 新建 -export function addApi(data: object) { - return request({ - url: `${prefix}file/add`, - method: 'post', - data, - }) -} -// 删除 -export function deleteApi(data: { id: string }) { - return request({ - url: `${prefix}file/delete`, - method: 'post', - data, - }) -} -// 文件上传 -// export function UploadFile(fileobj: any) { -// const param = new FormData() -// param.append('file', fileobj.file) -// return request({ -// url: 'file/uploadFile', -// method: 'post', -// headers: { 'Content-Type': 'multipart/form-data' }, -// data: param, -// }) -// } -export function UploadFile(data: FormData) { - return request({ - url: 'minio/file/upload', - method: 'post', - data, - }) -} -// 导出 -export function exportFileApi(data: object) { - return request({ - url: '/meter/file/listExport', - method: 'post', - data, - responseType: 'blob', - }) -} - -// 文件审批列表(分页) -export function approvallistPageApi(data: any) { - return request({ - url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 审批详情 -export function approvallistPageDetailApi(data: object) { - return request({ - url: '/meter/file/approval/listPage', - method: 'post', - data, - }) -} - -// 取消 -export function approvalCancel(data: object) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 删除 -export function approvalDelete(data: object) { - return request({ - url: '/meter/file/approval/operate/delete', - method: 'post', - data, - }) -} - -// 保存草稿箱 -export function confirmDrafts(data: object) { - return request({ - url: '/meter/file/save', - method: 'post', - data, - }) -} - -// 提交 ( data 为 保存草稿箱接口的返回值) -export function submitFile(data: object) { - return request({ - url: '/meter/file/submit', - method: 'post', - data, - }) -} -// 更新草稿箱 -export function updateDrafts(data: object) { - return request({ - url: '/meter/file/draftUpdate', - method: 'post', - data, - }) -} - diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts deleted file mode 100644 index faecb03..0000000 --- a/src/api/measure/measureDept.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 计量组织管理接口api -import request from '../index' -import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: searchQueryType) { - return request({ - url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function deptDetailApi(data: object) { - return request({ - url: `${prefix}organize/detail`, - method: 'post', - data, - }) -} -// 导出 -export function exportApi(data: object) { - return request({ - url: `${prefix}organize/listExport`, - method: 'post', - data, - responseType: 'blob', - }) -} -// 更新 -export function updateApi(data: object) { - return request({ - url: `${prefix}organize/update`, - method: 'post', - data, - }) -} -// 获取标准装置列表 -export function standardlistPageApi(data: any) { - return request({ - url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 获取父级组织 -export function getpDeptApi(data: object) { - return request({ - url: '/meter/organize/deptInfo', - method: 'post', - data, - }) -} - -// 获取父级组织 -export function getOrganizeList(data: object) { - return request({ - url: '/meter/organize/list', - method: 'post', - data, - }) -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts deleted file mode 100644 index 768c310..0000000 --- a/src/api/measure/file.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量文件模块接口api -import request from '../index' -import type { fileSearchType } from '@/views/measure/file/file-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: fileSearchType) { - return request({ - url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function listPageDetailApi(data: object) { - return request({ - url: `${prefix}file/listPage`, - method: 'post', - data, - }) -} -// 废止 -export function updateApi(data: object) { - return request({ - url: `${prefix}file/update`, - method: 'post', - data, - }) -} -// 新建 -export function addApi(data: object) { - return request({ - url: `${prefix}file/add`, - method: 'post', - data, - }) -} -// 删除 -export function deleteApi(data: { id: string }) { - return request({ - url: `${prefix}file/delete`, - method: 'post', - data, - }) -} -// 文件上传 -// export function UploadFile(fileobj: any) { -// const param = new FormData() -// param.append('file', fileobj.file) -// return request({ -// url: 'file/uploadFile', -// method: 'post', -// headers: { 'Content-Type': 'multipart/form-data' }, -// data: param, -// }) -// } -export function UploadFile(data: FormData) { - return request({ - url: 'minio/file/upload', - method: 'post', - data, - }) -} -// 导出 -export function exportFileApi(data: object) { - return request({ - url: '/meter/file/listExport', - method: 'post', - data, - responseType: 'blob', - }) -} - -// 文件审批列表(分页) -export function approvallistPageApi(data: any) { - return request({ - url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 审批详情 -export function approvallistPageDetailApi(data: object) { - return request({ - url: '/meter/file/approval/listPage', - method: 'post', - data, - }) -} - -// 取消 -export function approvalCancel(data: object) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 删除 -export function approvalDelete(data: object) { - return request({ - url: '/meter/file/approval/operate/delete', - method: 'post', - data, - }) -} - -// 保存草稿箱 -export function confirmDrafts(data: object) { - return request({ - url: '/meter/file/save', - method: 'post', - data, - }) -} - -// 提交 ( data 为 保存草稿箱接口的返回值) -export function submitFile(data: object) { - return request({ - url: '/meter/file/submit', - method: 'post', - data, - }) -} -// 更新草稿箱 -export function updateDrafts(data: object) { - return request({ - url: '/meter/file/draftUpdate', - method: 'post', - data, - }) -} - diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts deleted file mode 100644 index faecb03..0000000 --- a/src/api/measure/measureDept.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 计量组织管理接口api -import request from '../index' -import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: searchQueryType) { - return request({ - url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function deptDetailApi(data: object) { - return request({ - url: `${prefix}organize/detail`, - method: 'post', - data, - }) -} -// 导出 -export function exportApi(data: object) { - return request({ - url: `${prefix}organize/listExport`, - method: 'post', - data, - responseType: 'blob', - }) -} -// 更新 -export function updateApi(data: object) { - return request({ - url: `${prefix}organize/update`, - method: 'post', - data, - }) -} -// 获取标准装置列表 -export function standardlistPageApi(data: any) { - return request({ - url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 获取父级组织 -export function getpDeptApi(data: object) { - return request({ - url: '/meter/organize/deptInfo', - method: 'post', - data, - }) -} - -// 获取父级组织 -export function getOrganizeList(data: object) { - return request({ - url: '/meter/organize/list', - method: 'post', - data, - }) -} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts deleted file mode 100644 index 50cf032..0000000 --- a/src/api/measure/person.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量人员相关接口api -import request from '../index' -import type { StaffListType } from '@/views/measure/person/person-interface' -// 计量人员列表 -export function getStaffList(data: StaffListType) { - return request({ - url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 计量人员列表-不分页 -export function getStaffListAll(data: { deptId: string; name: string }) { - return request({ - url: '/staff/getUserList', - method: 'post', - data, - }) -} -// 人员详细信息 -export function getStaffDetail(data: object) { - return request({ - url: '/staff/selectStaffInfo', - method: 'post', - data, - }) -} -// 删除人员 -export function getStaffDelete(data: object) { - return request({ - url: '/staff/deleteStaff', - method: 'post', - data, - }) -} -// 新增人员 -export function getStaffAdd(data: object) { - return request({ - url: '/staff/addStaffInfo', - method: 'post', - data, - }) -} -// 编辑人员 -export function getStaffupdate(data: object) { - return request({ - url: '/staff/updateStaffInfo', - method: 'post', - data, - }) -} -// 列表导出 -export function exportList(data: object) { - return request({ - url: '/staff/exportStaffList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 导入计量人员 -export function uploadList(data: FormData) { - return request({ - url: '/staff/batchImportStaff', - method: 'post', - data, - }) -} -// 证书记录列表 -export function getCertificateList(data: StaffListType) { - return request({ - url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 证书记录导出 -export function CertificateListList(data: object) { - return request({ - url: '/certificate/exportCertificateList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 证书记录新增 -export function addCertificateList(data: object) { - return request({ - url: '/certificate/addStaffCertificate', - method: 'post', - data, - }) -} -// 获取证书记录详情 -export function getCertificateDetail(data: object) { - return request({ - url: '/certificate/queryStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录更新 -export function getCertificateUpdate(data: object) { - return request({ - url: '/certificate/updateStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录导入 -export function getCertificateUpload(data: FormData) { - return request({ - url: '/certificate/batchImportCertificate', - method: 'post', - data, - }) -} -// 证书过期提醒 -export function getCertificateRemind(data: object) { - return request({ - url: '/certificate/expirationReminder', - method: 'post', - data, - }) -} -// 证书记录删除 -export function getCertificateRemove(data: object) { - return request({ - url: '/certificate/deleteCertificate', - method: 'post', - data, - }) -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts deleted file mode 100644 index 768c310..0000000 --- a/src/api/measure/file.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量文件模块接口api -import request from '../index' -import type { fileSearchType } from '@/views/measure/file/file-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: fileSearchType) { - return request({ - url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function listPageDetailApi(data: object) { - return request({ - url: `${prefix}file/listPage`, - method: 'post', - data, - }) -} -// 废止 -export function updateApi(data: object) { - return request({ - url: `${prefix}file/update`, - method: 'post', - data, - }) -} -// 新建 -export function addApi(data: object) { - return request({ - url: `${prefix}file/add`, - method: 'post', - data, - }) -} -// 删除 -export function deleteApi(data: { id: string }) { - return request({ - url: `${prefix}file/delete`, - method: 'post', - data, - }) -} -// 文件上传 -// export function UploadFile(fileobj: any) { -// const param = new FormData() -// param.append('file', fileobj.file) -// return request({ -// url: 'file/uploadFile', -// method: 'post', -// headers: { 'Content-Type': 'multipart/form-data' }, -// data: param, -// }) -// } -export function UploadFile(data: FormData) { - return request({ - url: 'minio/file/upload', - method: 'post', - data, - }) -} -// 导出 -export function exportFileApi(data: object) { - return request({ - url: '/meter/file/listExport', - method: 'post', - data, - responseType: 'blob', - }) -} - -// 文件审批列表(分页) -export function approvallistPageApi(data: any) { - return request({ - url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 审批详情 -export function approvallistPageDetailApi(data: object) { - return request({ - url: '/meter/file/approval/listPage', - method: 'post', - data, - }) -} - -// 取消 -export function approvalCancel(data: object) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 删除 -export function approvalDelete(data: object) { - return request({ - url: '/meter/file/approval/operate/delete', - method: 'post', - data, - }) -} - -// 保存草稿箱 -export function confirmDrafts(data: object) { - return request({ - url: '/meter/file/save', - method: 'post', - data, - }) -} - -// 提交 ( data 为 保存草稿箱接口的返回值) -export function submitFile(data: object) { - return request({ - url: '/meter/file/submit', - method: 'post', - data, - }) -} -// 更新草稿箱 -export function updateDrafts(data: object) { - return request({ - url: '/meter/file/draftUpdate', - method: 'post', - data, - }) -} - diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts deleted file mode 100644 index faecb03..0000000 --- a/src/api/measure/measureDept.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 计量组织管理接口api -import request from '../index' -import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: searchQueryType) { - return request({ - url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function deptDetailApi(data: object) { - return request({ - url: `${prefix}organize/detail`, - method: 'post', - data, - }) -} -// 导出 -export function exportApi(data: object) { - return request({ - url: `${prefix}organize/listExport`, - method: 'post', - data, - responseType: 'blob', - }) -} -// 更新 -export function updateApi(data: object) { - return request({ - url: `${prefix}organize/update`, - method: 'post', - data, - }) -} -// 获取标准装置列表 -export function standardlistPageApi(data: any) { - return request({ - url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 获取父级组织 -export function getpDeptApi(data: object) { - return request({ - url: '/meter/organize/deptInfo', - method: 'post', - data, - }) -} - -// 获取父级组织 -export function getOrganizeList(data: object) { - return request({ - url: '/meter/organize/list', - method: 'post', - data, - }) -} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts deleted file mode 100644 index 50cf032..0000000 --- a/src/api/measure/person.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量人员相关接口api -import request from '../index' -import type { StaffListType } from '@/views/measure/person/person-interface' -// 计量人员列表 -export function getStaffList(data: StaffListType) { - return request({ - url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 计量人员列表-不分页 -export function getStaffListAll(data: { deptId: string; name: string }) { - return request({ - url: '/staff/getUserList', - method: 'post', - data, - }) -} -// 人员详细信息 -export function getStaffDetail(data: object) { - return request({ - url: '/staff/selectStaffInfo', - method: 'post', - data, - }) -} -// 删除人员 -export function getStaffDelete(data: object) { - return request({ - url: '/staff/deleteStaff', - method: 'post', - data, - }) -} -// 新增人员 -export function getStaffAdd(data: object) { - return request({ - url: '/staff/addStaffInfo', - method: 'post', - data, - }) -} -// 编辑人员 -export function getStaffupdate(data: object) { - return request({ - url: '/staff/updateStaffInfo', - method: 'post', - data, - }) -} -// 列表导出 -export function exportList(data: object) { - return request({ - url: '/staff/exportStaffList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 导入计量人员 -export function uploadList(data: FormData) { - return request({ - url: '/staff/batchImportStaff', - method: 'post', - data, - }) -} -// 证书记录列表 -export function getCertificateList(data: StaffListType) { - return request({ - url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 证书记录导出 -export function CertificateListList(data: object) { - return request({ - url: '/certificate/exportCertificateList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 证书记录新增 -export function addCertificateList(data: object) { - return request({ - url: '/certificate/addStaffCertificate', - method: 'post', - data, - }) -} -// 获取证书记录详情 -export function getCertificateDetail(data: object) { - return request({ - url: '/certificate/queryStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录更新 -export function getCertificateUpdate(data: object) { - return request({ - url: '/certificate/updateStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录导入 -export function getCertificateUpload(data: FormData) { - return request({ - url: '/certificate/batchImportCertificate', - method: 'post', - data, - }) -} -// 证书过期提醒 -export function getCertificateRemind(data: object) { - return request({ - url: '/certificate/expirationReminder', - method: 'post', - data, - }) -} -// 证书记录删除 -export function getCertificateRemove(data: object) { - return request({ - url: '/certificate/deleteCertificate', - method: 'post', - data, - }) -} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts deleted file mode 100644 index b30ddc9..0000000 --- a/src/api/measure/plan.ts +++ /dev/null @@ -1,165 +0,0 @@ -/** - * 培训计划请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 导出培训计录列表 -export function exportLogList(data: object) { - return request({ - url: `${prefix}/train/log/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 导出培训计划列表 -export function exportPlanList(data: object) { - return request({ - url: `${prefix}/train/plan/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} -// 列表查询 -export function getPlanList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 审批列表查询 -export function getapprovalList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 培训计划审批删除 -export function getApprovalDelete(data: object) { - return request({ - url: `${prefix}/train/plan/approval/operate/delete`, - method: 'post', - data, - }) -} -// 主管部门 -export function getDeptTree(params: object) { - return request({ - url: '/sys/dept/tree', - method: 'get', - params, - }) -} - -// 培训计划保存 -export function getListSave(data: object) { - return request({ - url: `${prefix}/train/plan/save`, - method: 'post', - data, - }) -} -// 培训计划保存后的提交 -export function getListSubmit(data: object) { - return request({ - url: `${prefix}/train/plan/submit`, - method: 'post', - data, - }) -} - -// 培训计划详情 -export function getListDetail(data: object) { - return request({ - url: `${prefix}/train/plan/detail`, - method: 'post', - data, - }) -} -// 培训计划更新 -export function getListUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/update`, - method: 'post', - data, - }) -} - -// 未通过-驳回编辑 -export function getListFailUpdate(data: object) { - return request({ - url: `${prefix}/train/failUpdate`, - method: 'post', - data, - }) -} - -// 草稿箱-编辑 -export function getListDraftUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/draftUpdate`, - method: 'post', - data, - }) -} - -// 培训计划删除 -export function getListDelete(data: object) { - return request({ - url: `${prefix}/train/plan/delete`, - method: 'post', - data, - }) -} - -// 培训记录列表 -export function getLogList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 列表编号查询 -export function getPlanIdList(data: object) { - return request({ - url: `${prefix}/train/plan/list`, - method: 'post', - data, - }) -} - -// 培训记录新建 -export function getListLogAdd(data: object) { - return request({ - url: `${prefix}/train/log/add`, - method: 'post', - data, - }) -} - -// 培训记录修改 -export function getListLogupdate(data: object) { - return request({ - url: `${prefix}/train/log/update`, - method: 'post', - data, - }) -} - -// 培训记录详情 -export function getListLogDetail(data: object) { - return request({ - url: `${prefix}/train/log/detail`, - method: 'post', - data, - }) -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts deleted file mode 100644 index 768c310..0000000 --- a/src/api/measure/file.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量文件模块接口api -import request from '../index' -import type { fileSearchType } from '@/views/measure/file/file-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: fileSearchType) { - return request({ - url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function listPageDetailApi(data: object) { - return request({ - url: `${prefix}file/listPage`, - method: 'post', - data, - }) -} -// 废止 -export function updateApi(data: object) { - return request({ - url: `${prefix}file/update`, - method: 'post', - data, - }) -} -// 新建 -export function addApi(data: object) { - return request({ - url: `${prefix}file/add`, - method: 'post', - data, - }) -} -// 删除 -export function deleteApi(data: { id: string }) { - return request({ - url: `${prefix}file/delete`, - method: 'post', - data, - }) -} -// 文件上传 -// export function UploadFile(fileobj: any) { -// const param = new FormData() -// param.append('file', fileobj.file) -// return request({ -// url: 'file/uploadFile', -// method: 'post', -// headers: { 'Content-Type': 'multipart/form-data' }, -// data: param, -// }) -// } -export function UploadFile(data: FormData) { - return request({ - url: 'minio/file/upload', - method: 'post', - data, - }) -} -// 导出 -export function exportFileApi(data: object) { - return request({ - url: '/meter/file/listExport', - method: 'post', - data, - responseType: 'blob', - }) -} - -// 文件审批列表(分页) -export function approvallistPageApi(data: any) { - return request({ - url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 审批详情 -export function approvallistPageDetailApi(data: object) { - return request({ - url: '/meter/file/approval/listPage', - method: 'post', - data, - }) -} - -// 取消 -export function approvalCancel(data: object) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 删除 -export function approvalDelete(data: object) { - return request({ - url: '/meter/file/approval/operate/delete', - method: 'post', - data, - }) -} - -// 保存草稿箱 -export function confirmDrafts(data: object) { - return request({ - url: '/meter/file/save', - method: 'post', - data, - }) -} - -// 提交 ( data 为 保存草稿箱接口的返回值) -export function submitFile(data: object) { - return request({ - url: '/meter/file/submit', - method: 'post', - data, - }) -} -// 更新草稿箱 -export function updateDrafts(data: object) { - return request({ - url: '/meter/file/draftUpdate', - method: 'post', - data, - }) -} - diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts deleted file mode 100644 index faecb03..0000000 --- a/src/api/measure/measureDept.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 计量组织管理接口api -import request from '../index' -import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: searchQueryType) { - return request({ - url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function deptDetailApi(data: object) { - return request({ - url: `${prefix}organize/detail`, - method: 'post', - data, - }) -} -// 导出 -export function exportApi(data: object) { - return request({ - url: `${prefix}organize/listExport`, - method: 'post', - data, - responseType: 'blob', - }) -} -// 更新 -export function updateApi(data: object) { - return request({ - url: `${prefix}organize/update`, - method: 'post', - data, - }) -} -// 获取标准装置列表 -export function standardlistPageApi(data: any) { - return request({ - url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 获取父级组织 -export function getpDeptApi(data: object) { - return request({ - url: '/meter/organize/deptInfo', - method: 'post', - data, - }) -} - -// 获取父级组织 -export function getOrganizeList(data: object) { - return request({ - url: '/meter/organize/list', - method: 'post', - data, - }) -} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts deleted file mode 100644 index 50cf032..0000000 --- a/src/api/measure/person.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量人员相关接口api -import request from '../index' -import type { StaffListType } from '@/views/measure/person/person-interface' -// 计量人员列表 -export function getStaffList(data: StaffListType) { - return request({ - url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 计量人员列表-不分页 -export function getStaffListAll(data: { deptId: string; name: string }) { - return request({ - url: '/staff/getUserList', - method: 'post', - data, - }) -} -// 人员详细信息 -export function getStaffDetail(data: object) { - return request({ - url: '/staff/selectStaffInfo', - method: 'post', - data, - }) -} -// 删除人员 -export function getStaffDelete(data: object) { - return request({ - url: '/staff/deleteStaff', - method: 'post', - data, - }) -} -// 新增人员 -export function getStaffAdd(data: object) { - return request({ - url: '/staff/addStaffInfo', - method: 'post', - data, - }) -} -// 编辑人员 -export function getStaffupdate(data: object) { - return request({ - url: '/staff/updateStaffInfo', - method: 'post', - data, - }) -} -// 列表导出 -export function exportList(data: object) { - return request({ - url: '/staff/exportStaffList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 导入计量人员 -export function uploadList(data: FormData) { - return request({ - url: '/staff/batchImportStaff', - method: 'post', - data, - }) -} -// 证书记录列表 -export function getCertificateList(data: StaffListType) { - return request({ - url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 证书记录导出 -export function CertificateListList(data: object) { - return request({ - url: '/certificate/exportCertificateList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 证书记录新增 -export function addCertificateList(data: object) { - return request({ - url: '/certificate/addStaffCertificate', - method: 'post', - data, - }) -} -// 获取证书记录详情 -export function getCertificateDetail(data: object) { - return request({ - url: '/certificate/queryStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录更新 -export function getCertificateUpdate(data: object) { - return request({ - url: '/certificate/updateStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录导入 -export function getCertificateUpload(data: FormData) { - return request({ - url: '/certificate/batchImportCertificate', - method: 'post', - data, - }) -} -// 证书过期提醒 -export function getCertificateRemind(data: object) { - return request({ - url: '/certificate/expirationReminder', - method: 'post', - data, - }) -} -// 证书记录删除 -export function getCertificateRemove(data: object) { - return request({ - url: '/certificate/deleteCertificate', - method: 'post', - data, - }) -} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts deleted file mode 100644 index b30ddc9..0000000 --- a/src/api/measure/plan.ts +++ /dev/null @@ -1,165 +0,0 @@ -/** - * 培训计划请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 导出培训计录列表 -export function exportLogList(data: object) { - return request({ - url: `${prefix}/train/log/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 导出培训计划列表 -export function exportPlanList(data: object) { - return request({ - url: `${prefix}/train/plan/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} -// 列表查询 -export function getPlanList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 审批列表查询 -export function getapprovalList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 培训计划审批删除 -export function getApprovalDelete(data: object) { - return request({ - url: `${prefix}/train/plan/approval/operate/delete`, - method: 'post', - data, - }) -} -// 主管部门 -export function getDeptTree(params: object) { - return request({ - url: '/sys/dept/tree', - method: 'get', - params, - }) -} - -// 培训计划保存 -export function getListSave(data: object) { - return request({ - url: `${prefix}/train/plan/save`, - method: 'post', - data, - }) -} -// 培训计划保存后的提交 -export function getListSubmit(data: object) { - return request({ - url: `${prefix}/train/plan/submit`, - method: 'post', - data, - }) -} - -// 培训计划详情 -export function getListDetail(data: object) { - return request({ - url: `${prefix}/train/plan/detail`, - method: 'post', - data, - }) -} -// 培训计划更新 -export function getListUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/update`, - method: 'post', - data, - }) -} - -// 未通过-驳回编辑 -export function getListFailUpdate(data: object) { - return request({ - url: `${prefix}/train/failUpdate`, - method: 'post', - data, - }) -} - -// 草稿箱-编辑 -export function getListDraftUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/draftUpdate`, - method: 'post', - data, - }) -} - -// 培训计划删除 -export function getListDelete(data: object) { - return request({ - url: `${prefix}/train/plan/delete`, - method: 'post', - data, - }) -} - -// 培训记录列表 -export function getLogList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 列表编号查询 -export function getPlanIdList(data: object) { - return request({ - url: `${prefix}/train/plan/list`, - method: 'post', - data, - }) -} - -// 培训记录新建 -export function getListLogAdd(data: object) { - return request({ - url: `${prefix}/train/log/add`, - method: 'post', - data, - }) -} - -// 培训记录修改 -export function getListLogupdate(data: object) { - return request({ - url: `${prefix}/train/log/update`, - method: 'post', - data, - }) -} - -// 培训记录详情 -export function getListLogDetail(data: object) { - return request({ - url: `${prefix}/train/log/detail`, - method: 'post', - data, - }) -} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts deleted file mode 100644 index 1c3ae09..0000000 --- a/src/api/measure/source.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 提交数据 -export function sourceSubmit(data: object) { - return request({ - url: '/meter/supplier/submit', - method: 'post', - data, - }) -} -// 保存至草稿箱 -export function sourceSave(data: object) { - return request({ - url: `${prefix}/supplier/save`, - method: 'post', - data, - }) -} -// 更新草稿箱文件 -export function sourceDraftUpdate(data: object) { - return request({ - url: `${prefix}/supplier/draftUpdate`, - method: 'post', - data, - }) -} -// 驳回后编辑接口 -export function updateSourceApproval(data: object) { - return request({ - url: '/meter/supplier/failUpdate', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts deleted file mode 100644 index 768c310..0000000 --- a/src/api/measure/file.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量文件模块接口api -import request from '../index' -import type { fileSearchType } from '@/views/measure/file/file-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: fileSearchType) { - return request({ - url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function listPageDetailApi(data: object) { - return request({ - url: `${prefix}file/listPage`, - method: 'post', - data, - }) -} -// 废止 -export function updateApi(data: object) { - return request({ - url: `${prefix}file/update`, - method: 'post', - data, - }) -} -// 新建 -export function addApi(data: object) { - return request({ - url: `${prefix}file/add`, - method: 'post', - data, - }) -} -// 删除 -export function deleteApi(data: { id: string }) { - return request({ - url: `${prefix}file/delete`, - method: 'post', - data, - }) -} -// 文件上传 -// export function UploadFile(fileobj: any) { -// const param = new FormData() -// param.append('file', fileobj.file) -// return request({ -// url: 'file/uploadFile', -// method: 'post', -// headers: { 'Content-Type': 'multipart/form-data' }, -// data: param, -// }) -// } -export function UploadFile(data: FormData) { - return request({ - url: 'minio/file/upload', - method: 'post', - data, - }) -} -// 导出 -export function exportFileApi(data: object) { - return request({ - url: '/meter/file/listExport', - method: 'post', - data, - responseType: 'blob', - }) -} - -// 文件审批列表(分页) -export function approvallistPageApi(data: any) { - return request({ - url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 审批详情 -export function approvallistPageDetailApi(data: object) { - return request({ - url: '/meter/file/approval/listPage', - method: 'post', - data, - }) -} - -// 取消 -export function approvalCancel(data: object) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 删除 -export function approvalDelete(data: object) { - return request({ - url: '/meter/file/approval/operate/delete', - method: 'post', - data, - }) -} - -// 保存草稿箱 -export function confirmDrafts(data: object) { - return request({ - url: '/meter/file/save', - method: 'post', - data, - }) -} - -// 提交 ( data 为 保存草稿箱接口的返回值) -export function submitFile(data: object) { - return request({ - url: '/meter/file/submit', - method: 'post', - data, - }) -} -// 更新草稿箱 -export function updateDrafts(data: object) { - return request({ - url: '/meter/file/draftUpdate', - method: 'post', - data, - }) -} - diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts deleted file mode 100644 index faecb03..0000000 --- a/src/api/measure/measureDept.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 计量组织管理接口api -import request from '../index' -import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: searchQueryType) { - return request({ - url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function deptDetailApi(data: object) { - return request({ - url: `${prefix}organize/detail`, - method: 'post', - data, - }) -} -// 导出 -export function exportApi(data: object) { - return request({ - url: `${prefix}organize/listExport`, - method: 'post', - data, - responseType: 'blob', - }) -} -// 更新 -export function updateApi(data: object) { - return request({ - url: `${prefix}organize/update`, - method: 'post', - data, - }) -} -// 获取标准装置列表 -export function standardlistPageApi(data: any) { - return request({ - url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 获取父级组织 -export function getpDeptApi(data: object) { - return request({ - url: '/meter/organize/deptInfo', - method: 'post', - data, - }) -} - -// 获取父级组织 -export function getOrganizeList(data: object) { - return request({ - url: '/meter/organize/list', - method: 'post', - data, - }) -} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts deleted file mode 100644 index 50cf032..0000000 --- a/src/api/measure/person.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量人员相关接口api -import request from '../index' -import type { StaffListType } from '@/views/measure/person/person-interface' -// 计量人员列表 -export function getStaffList(data: StaffListType) { - return request({ - url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 计量人员列表-不分页 -export function getStaffListAll(data: { deptId: string; name: string }) { - return request({ - url: '/staff/getUserList', - method: 'post', - data, - }) -} -// 人员详细信息 -export function getStaffDetail(data: object) { - return request({ - url: '/staff/selectStaffInfo', - method: 'post', - data, - }) -} -// 删除人员 -export function getStaffDelete(data: object) { - return request({ - url: '/staff/deleteStaff', - method: 'post', - data, - }) -} -// 新增人员 -export function getStaffAdd(data: object) { - return request({ - url: '/staff/addStaffInfo', - method: 'post', - data, - }) -} -// 编辑人员 -export function getStaffupdate(data: object) { - return request({ - url: '/staff/updateStaffInfo', - method: 'post', - data, - }) -} -// 列表导出 -export function exportList(data: object) { - return request({ - url: '/staff/exportStaffList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 导入计量人员 -export function uploadList(data: FormData) { - return request({ - url: '/staff/batchImportStaff', - method: 'post', - data, - }) -} -// 证书记录列表 -export function getCertificateList(data: StaffListType) { - return request({ - url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 证书记录导出 -export function CertificateListList(data: object) { - return request({ - url: '/certificate/exportCertificateList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 证书记录新增 -export function addCertificateList(data: object) { - return request({ - url: '/certificate/addStaffCertificate', - method: 'post', - data, - }) -} -// 获取证书记录详情 -export function getCertificateDetail(data: object) { - return request({ - url: '/certificate/queryStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录更新 -export function getCertificateUpdate(data: object) { - return request({ - url: '/certificate/updateStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录导入 -export function getCertificateUpload(data: FormData) { - return request({ - url: '/certificate/batchImportCertificate', - method: 'post', - data, - }) -} -// 证书过期提醒 -export function getCertificateRemind(data: object) { - return request({ - url: '/certificate/expirationReminder', - method: 'post', - data, - }) -} -// 证书记录删除 -export function getCertificateRemove(data: object) { - return request({ - url: '/certificate/deleteCertificate', - method: 'post', - data, - }) -} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts deleted file mode 100644 index b30ddc9..0000000 --- a/src/api/measure/plan.ts +++ /dev/null @@ -1,165 +0,0 @@ -/** - * 培训计划请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 导出培训计录列表 -export function exportLogList(data: object) { - return request({ - url: `${prefix}/train/log/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 导出培训计划列表 -export function exportPlanList(data: object) { - return request({ - url: `${prefix}/train/plan/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} -// 列表查询 -export function getPlanList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 审批列表查询 -export function getapprovalList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 培训计划审批删除 -export function getApprovalDelete(data: object) { - return request({ - url: `${prefix}/train/plan/approval/operate/delete`, - method: 'post', - data, - }) -} -// 主管部门 -export function getDeptTree(params: object) { - return request({ - url: '/sys/dept/tree', - method: 'get', - params, - }) -} - -// 培训计划保存 -export function getListSave(data: object) { - return request({ - url: `${prefix}/train/plan/save`, - method: 'post', - data, - }) -} -// 培训计划保存后的提交 -export function getListSubmit(data: object) { - return request({ - url: `${prefix}/train/plan/submit`, - method: 'post', - data, - }) -} - -// 培训计划详情 -export function getListDetail(data: object) { - return request({ - url: `${prefix}/train/plan/detail`, - method: 'post', - data, - }) -} -// 培训计划更新 -export function getListUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/update`, - method: 'post', - data, - }) -} - -// 未通过-驳回编辑 -export function getListFailUpdate(data: object) { - return request({ - url: `${prefix}/train/failUpdate`, - method: 'post', - data, - }) -} - -// 草稿箱-编辑 -export function getListDraftUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/draftUpdate`, - method: 'post', - data, - }) -} - -// 培训计划删除 -export function getListDelete(data: object) { - return request({ - url: `${prefix}/train/plan/delete`, - method: 'post', - data, - }) -} - -// 培训记录列表 -export function getLogList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 列表编号查询 -export function getPlanIdList(data: object) { - return request({ - url: `${prefix}/train/plan/list`, - method: 'post', - data, - }) -} - -// 培训记录新建 -export function getListLogAdd(data: object) { - return request({ - url: `${prefix}/train/log/add`, - method: 'post', - data, - }) -} - -// 培训记录修改 -export function getListLogupdate(data: object) { - return request({ - url: `${prefix}/train/log/update`, - method: 'post', - data, - }) -} - -// 培训记录详情 -export function getListLogDetail(data: object) { - return request({ - url: `${prefix}/train/log/detail`, - method: 'post', - data, - }) -} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts deleted file mode 100644 index 1c3ae09..0000000 --- a/src/api/measure/source.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 提交数据 -export function sourceSubmit(data: object) { - return request({ - url: '/meter/supplier/submit', - method: 'post', - data, - }) -} -// 保存至草稿箱 -export function sourceSave(data: object) { - return request({ - url: `${prefix}/supplier/save`, - method: 'post', - data, - }) -} -// 更新草稿箱文件 -export function sourceDraftUpdate(data: object) { - return request({ - url: `${prefix}/supplier/draftUpdate`, - method: 'post', - data, - }) -} -// 驳回后编辑接口 -export function updateSourceApproval(data: object) { - return request({ - url: '/meter/supplier/failUpdate', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/views/data/1 b/src/views/data/1 deleted file mode 100644 index e69de29..0000000 --- a/src/views/data/1 +++ /dev/null diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts deleted file mode 100644 index 768c310..0000000 --- a/src/api/measure/file.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量文件模块接口api -import request from '../index' -import type { fileSearchType } from '@/views/measure/file/file-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: fileSearchType) { - return request({ - url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function listPageDetailApi(data: object) { - return request({ - url: `${prefix}file/listPage`, - method: 'post', - data, - }) -} -// 废止 -export function updateApi(data: object) { - return request({ - url: `${prefix}file/update`, - method: 'post', - data, - }) -} -// 新建 -export function addApi(data: object) { - return request({ - url: `${prefix}file/add`, - method: 'post', - data, - }) -} -// 删除 -export function deleteApi(data: { id: string }) { - return request({ - url: `${prefix}file/delete`, - method: 'post', - data, - }) -} -// 文件上传 -// export function UploadFile(fileobj: any) { -// const param = new FormData() -// param.append('file', fileobj.file) -// return request({ -// url: 'file/uploadFile', -// method: 'post', -// headers: { 'Content-Type': 'multipart/form-data' }, -// data: param, -// }) -// } -export function UploadFile(data: FormData) { - return request({ - url: 'minio/file/upload', - method: 'post', - data, - }) -} -// 导出 -export function exportFileApi(data: object) { - return request({ - url: '/meter/file/listExport', - method: 'post', - data, - responseType: 'blob', - }) -} - -// 文件审批列表(分页) -export function approvallistPageApi(data: any) { - return request({ - url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 审批详情 -export function approvallistPageDetailApi(data: object) { - return request({ - url: '/meter/file/approval/listPage', - method: 'post', - data, - }) -} - -// 取消 -export function approvalCancel(data: object) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 删除 -export function approvalDelete(data: object) { - return request({ - url: '/meter/file/approval/operate/delete', - method: 'post', - data, - }) -} - -// 保存草稿箱 -export function confirmDrafts(data: object) { - return request({ - url: '/meter/file/save', - method: 'post', - data, - }) -} - -// 提交 ( data 为 保存草稿箱接口的返回值) -export function submitFile(data: object) { - return request({ - url: '/meter/file/submit', - method: 'post', - data, - }) -} -// 更新草稿箱 -export function updateDrafts(data: object) { - return request({ - url: '/meter/file/draftUpdate', - method: 'post', - data, - }) -} - diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts deleted file mode 100644 index faecb03..0000000 --- a/src/api/measure/measureDept.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 计量组织管理接口api -import request from '../index' -import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: searchQueryType) { - return request({ - url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function deptDetailApi(data: object) { - return request({ - url: `${prefix}organize/detail`, - method: 'post', - data, - }) -} -// 导出 -export function exportApi(data: object) { - return request({ - url: `${prefix}organize/listExport`, - method: 'post', - data, - responseType: 'blob', - }) -} -// 更新 -export function updateApi(data: object) { - return request({ - url: `${prefix}organize/update`, - method: 'post', - data, - }) -} -// 获取标准装置列表 -export function standardlistPageApi(data: any) { - return request({ - url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 获取父级组织 -export function getpDeptApi(data: object) { - return request({ - url: '/meter/organize/deptInfo', - method: 'post', - data, - }) -} - -// 获取父级组织 -export function getOrganizeList(data: object) { - return request({ - url: '/meter/organize/list', - method: 'post', - data, - }) -} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts deleted file mode 100644 index 50cf032..0000000 --- a/src/api/measure/person.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量人员相关接口api -import request from '../index' -import type { StaffListType } from '@/views/measure/person/person-interface' -// 计量人员列表 -export function getStaffList(data: StaffListType) { - return request({ - url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 计量人员列表-不分页 -export function getStaffListAll(data: { deptId: string; name: string }) { - return request({ - url: '/staff/getUserList', - method: 'post', - data, - }) -} -// 人员详细信息 -export function getStaffDetail(data: object) { - return request({ - url: '/staff/selectStaffInfo', - method: 'post', - data, - }) -} -// 删除人员 -export function getStaffDelete(data: object) { - return request({ - url: '/staff/deleteStaff', - method: 'post', - data, - }) -} -// 新增人员 -export function getStaffAdd(data: object) { - return request({ - url: '/staff/addStaffInfo', - method: 'post', - data, - }) -} -// 编辑人员 -export function getStaffupdate(data: object) { - return request({ - url: '/staff/updateStaffInfo', - method: 'post', - data, - }) -} -// 列表导出 -export function exportList(data: object) { - return request({ - url: '/staff/exportStaffList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 导入计量人员 -export function uploadList(data: FormData) { - return request({ - url: '/staff/batchImportStaff', - method: 'post', - data, - }) -} -// 证书记录列表 -export function getCertificateList(data: StaffListType) { - return request({ - url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 证书记录导出 -export function CertificateListList(data: object) { - return request({ - url: '/certificate/exportCertificateList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 证书记录新增 -export function addCertificateList(data: object) { - return request({ - url: '/certificate/addStaffCertificate', - method: 'post', - data, - }) -} -// 获取证书记录详情 -export function getCertificateDetail(data: object) { - return request({ - url: '/certificate/queryStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录更新 -export function getCertificateUpdate(data: object) { - return request({ - url: '/certificate/updateStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录导入 -export function getCertificateUpload(data: FormData) { - return request({ - url: '/certificate/batchImportCertificate', - method: 'post', - data, - }) -} -// 证书过期提醒 -export function getCertificateRemind(data: object) { - return request({ - url: '/certificate/expirationReminder', - method: 'post', - data, - }) -} -// 证书记录删除 -export function getCertificateRemove(data: object) { - return request({ - url: '/certificate/deleteCertificate', - method: 'post', - data, - }) -} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts deleted file mode 100644 index b30ddc9..0000000 --- a/src/api/measure/plan.ts +++ /dev/null @@ -1,165 +0,0 @@ -/** - * 培训计划请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 导出培训计录列表 -export function exportLogList(data: object) { - return request({ - url: `${prefix}/train/log/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 导出培训计划列表 -export function exportPlanList(data: object) { - return request({ - url: `${prefix}/train/plan/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} -// 列表查询 -export function getPlanList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 审批列表查询 -export function getapprovalList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 培训计划审批删除 -export function getApprovalDelete(data: object) { - return request({ - url: `${prefix}/train/plan/approval/operate/delete`, - method: 'post', - data, - }) -} -// 主管部门 -export function getDeptTree(params: object) { - return request({ - url: '/sys/dept/tree', - method: 'get', - params, - }) -} - -// 培训计划保存 -export function getListSave(data: object) { - return request({ - url: `${prefix}/train/plan/save`, - method: 'post', - data, - }) -} -// 培训计划保存后的提交 -export function getListSubmit(data: object) { - return request({ - url: `${prefix}/train/plan/submit`, - method: 'post', - data, - }) -} - -// 培训计划详情 -export function getListDetail(data: object) { - return request({ - url: `${prefix}/train/plan/detail`, - method: 'post', - data, - }) -} -// 培训计划更新 -export function getListUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/update`, - method: 'post', - data, - }) -} - -// 未通过-驳回编辑 -export function getListFailUpdate(data: object) { - return request({ - url: `${prefix}/train/failUpdate`, - method: 'post', - data, - }) -} - -// 草稿箱-编辑 -export function getListDraftUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/draftUpdate`, - method: 'post', - data, - }) -} - -// 培训计划删除 -export function getListDelete(data: object) { - return request({ - url: `${prefix}/train/plan/delete`, - method: 'post', - data, - }) -} - -// 培训记录列表 -export function getLogList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 列表编号查询 -export function getPlanIdList(data: object) { - return request({ - url: `${prefix}/train/plan/list`, - method: 'post', - data, - }) -} - -// 培训记录新建 -export function getListLogAdd(data: object) { - return request({ - url: `${prefix}/train/log/add`, - method: 'post', - data, - }) -} - -// 培训记录修改 -export function getListLogupdate(data: object) { - return request({ - url: `${prefix}/train/log/update`, - method: 'post', - data, - }) -} - -// 培训记录详情 -export function getListLogDetail(data: object) { - return request({ - url: `${prefix}/train/log/detail`, - method: 'post', - data, - }) -} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts deleted file mode 100644 index 1c3ae09..0000000 --- a/src/api/measure/source.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 提交数据 -export function sourceSubmit(data: object) { - return request({ - url: '/meter/supplier/submit', - method: 'post', - data, - }) -} -// 保存至草稿箱 -export function sourceSave(data: object) { - return request({ - url: `${prefix}/supplier/save`, - method: 'post', - data, - }) -} -// 更新草稿箱文件 -export function sourceDraftUpdate(data: object) { - return request({ - url: `${prefix}/supplier/draftUpdate`, - method: 'post', - data, - }) -} -// 驳回后编辑接口 -export function updateSourceApproval(data: object) { - return request({ - url: '/meter/supplier/failUpdate', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/views/data/1 b/src/views/data/1 deleted file mode 100644 index e69de29..0000000 --- a/src/views/data/1 +++ /dev/null diff --git a/src/views/data/device/index.vue b/src/views/data/device/index.vue index 61d58cd..3a1cca7 100644 --- a/src/views/data/device/index.vue +++ b/src/views/data/device/index.vue @@ -1,89 +1,98 @@ + + + + diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts deleted file mode 100644 index 768c310..0000000 --- a/src/api/measure/file.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量文件模块接口api -import request from '../index' -import type { fileSearchType } from '@/views/measure/file/file-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: fileSearchType) { - return request({ - url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function listPageDetailApi(data: object) { - return request({ - url: `${prefix}file/listPage`, - method: 'post', - data, - }) -} -// 废止 -export function updateApi(data: object) { - return request({ - url: `${prefix}file/update`, - method: 'post', - data, - }) -} -// 新建 -export function addApi(data: object) { - return request({ - url: `${prefix}file/add`, - method: 'post', - data, - }) -} -// 删除 -export function deleteApi(data: { id: string }) { - return request({ - url: `${prefix}file/delete`, - method: 'post', - data, - }) -} -// 文件上传 -// export function UploadFile(fileobj: any) { -// const param = new FormData() -// param.append('file', fileobj.file) -// return request({ -// url: 'file/uploadFile', -// method: 'post', -// headers: { 'Content-Type': 'multipart/form-data' }, -// data: param, -// }) -// } -export function UploadFile(data: FormData) { - return request({ - url: 'minio/file/upload', - method: 'post', - data, - }) -} -// 导出 -export function exportFileApi(data: object) { - return request({ - url: '/meter/file/listExport', - method: 'post', - data, - responseType: 'blob', - }) -} - -// 文件审批列表(分页) -export function approvallistPageApi(data: any) { - return request({ - url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 审批详情 -export function approvallistPageDetailApi(data: object) { - return request({ - url: '/meter/file/approval/listPage', - method: 'post', - data, - }) -} - -// 取消 -export function approvalCancel(data: object) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 删除 -export function approvalDelete(data: object) { - return request({ - url: '/meter/file/approval/operate/delete', - method: 'post', - data, - }) -} - -// 保存草稿箱 -export function confirmDrafts(data: object) { - return request({ - url: '/meter/file/save', - method: 'post', - data, - }) -} - -// 提交 ( data 为 保存草稿箱接口的返回值) -export function submitFile(data: object) { - return request({ - url: '/meter/file/submit', - method: 'post', - data, - }) -} -// 更新草稿箱 -export function updateDrafts(data: object) { - return request({ - url: '/meter/file/draftUpdate', - method: 'post', - data, - }) -} - diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts deleted file mode 100644 index faecb03..0000000 --- a/src/api/measure/measureDept.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 计量组织管理接口api -import request from '../index' -import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: searchQueryType) { - return request({ - url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function deptDetailApi(data: object) { - return request({ - url: `${prefix}organize/detail`, - method: 'post', - data, - }) -} -// 导出 -export function exportApi(data: object) { - return request({ - url: `${prefix}organize/listExport`, - method: 'post', - data, - responseType: 'blob', - }) -} -// 更新 -export function updateApi(data: object) { - return request({ - url: `${prefix}organize/update`, - method: 'post', - data, - }) -} -// 获取标准装置列表 -export function standardlistPageApi(data: any) { - return request({ - url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 获取父级组织 -export function getpDeptApi(data: object) { - return request({ - url: '/meter/organize/deptInfo', - method: 'post', - data, - }) -} - -// 获取父级组织 -export function getOrganizeList(data: object) { - return request({ - url: '/meter/organize/list', - method: 'post', - data, - }) -} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts deleted file mode 100644 index 50cf032..0000000 --- a/src/api/measure/person.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量人员相关接口api -import request from '../index' -import type { StaffListType } from '@/views/measure/person/person-interface' -// 计量人员列表 -export function getStaffList(data: StaffListType) { - return request({ - url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 计量人员列表-不分页 -export function getStaffListAll(data: { deptId: string; name: string }) { - return request({ - url: '/staff/getUserList', - method: 'post', - data, - }) -} -// 人员详细信息 -export function getStaffDetail(data: object) { - return request({ - url: '/staff/selectStaffInfo', - method: 'post', - data, - }) -} -// 删除人员 -export function getStaffDelete(data: object) { - return request({ - url: '/staff/deleteStaff', - method: 'post', - data, - }) -} -// 新增人员 -export function getStaffAdd(data: object) { - return request({ - url: '/staff/addStaffInfo', - method: 'post', - data, - }) -} -// 编辑人员 -export function getStaffupdate(data: object) { - return request({ - url: '/staff/updateStaffInfo', - method: 'post', - data, - }) -} -// 列表导出 -export function exportList(data: object) { - return request({ - url: '/staff/exportStaffList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 导入计量人员 -export function uploadList(data: FormData) { - return request({ - url: '/staff/batchImportStaff', - method: 'post', - data, - }) -} -// 证书记录列表 -export function getCertificateList(data: StaffListType) { - return request({ - url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 证书记录导出 -export function CertificateListList(data: object) { - return request({ - url: '/certificate/exportCertificateList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 证书记录新增 -export function addCertificateList(data: object) { - return request({ - url: '/certificate/addStaffCertificate', - method: 'post', - data, - }) -} -// 获取证书记录详情 -export function getCertificateDetail(data: object) { - return request({ - url: '/certificate/queryStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录更新 -export function getCertificateUpdate(data: object) { - return request({ - url: '/certificate/updateStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录导入 -export function getCertificateUpload(data: FormData) { - return request({ - url: '/certificate/batchImportCertificate', - method: 'post', - data, - }) -} -// 证书过期提醒 -export function getCertificateRemind(data: object) { - return request({ - url: '/certificate/expirationReminder', - method: 'post', - data, - }) -} -// 证书记录删除 -export function getCertificateRemove(data: object) { - return request({ - url: '/certificate/deleteCertificate', - method: 'post', - data, - }) -} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts deleted file mode 100644 index b30ddc9..0000000 --- a/src/api/measure/plan.ts +++ /dev/null @@ -1,165 +0,0 @@ -/** - * 培训计划请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 导出培训计录列表 -export function exportLogList(data: object) { - return request({ - url: `${prefix}/train/log/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 导出培训计划列表 -export function exportPlanList(data: object) { - return request({ - url: `${prefix}/train/plan/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} -// 列表查询 -export function getPlanList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 审批列表查询 -export function getapprovalList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 培训计划审批删除 -export function getApprovalDelete(data: object) { - return request({ - url: `${prefix}/train/plan/approval/operate/delete`, - method: 'post', - data, - }) -} -// 主管部门 -export function getDeptTree(params: object) { - return request({ - url: '/sys/dept/tree', - method: 'get', - params, - }) -} - -// 培训计划保存 -export function getListSave(data: object) { - return request({ - url: `${prefix}/train/plan/save`, - method: 'post', - data, - }) -} -// 培训计划保存后的提交 -export function getListSubmit(data: object) { - return request({ - url: `${prefix}/train/plan/submit`, - method: 'post', - data, - }) -} - -// 培训计划详情 -export function getListDetail(data: object) { - return request({ - url: `${prefix}/train/plan/detail`, - method: 'post', - data, - }) -} -// 培训计划更新 -export function getListUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/update`, - method: 'post', - data, - }) -} - -// 未通过-驳回编辑 -export function getListFailUpdate(data: object) { - return request({ - url: `${prefix}/train/failUpdate`, - method: 'post', - data, - }) -} - -// 草稿箱-编辑 -export function getListDraftUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/draftUpdate`, - method: 'post', - data, - }) -} - -// 培训计划删除 -export function getListDelete(data: object) { - return request({ - url: `${prefix}/train/plan/delete`, - method: 'post', - data, - }) -} - -// 培训记录列表 -export function getLogList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 列表编号查询 -export function getPlanIdList(data: object) { - return request({ - url: `${prefix}/train/plan/list`, - method: 'post', - data, - }) -} - -// 培训记录新建 -export function getListLogAdd(data: object) { - return request({ - url: `${prefix}/train/log/add`, - method: 'post', - data, - }) -} - -// 培训记录修改 -export function getListLogupdate(data: object) { - return request({ - url: `${prefix}/train/log/update`, - method: 'post', - data, - }) -} - -// 培训记录详情 -export function getListLogDetail(data: object) { - return request({ - url: `${prefix}/train/log/detail`, - method: 'post', - data, - }) -} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts deleted file mode 100644 index 1c3ae09..0000000 --- a/src/api/measure/source.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 提交数据 -export function sourceSubmit(data: object) { - return request({ - url: '/meter/supplier/submit', - method: 'post', - data, - }) -} -// 保存至草稿箱 -export function sourceSave(data: object) { - return request({ - url: `${prefix}/supplier/save`, - method: 'post', - data, - }) -} -// 更新草稿箱文件 -export function sourceDraftUpdate(data: object) { - return request({ - url: `${prefix}/supplier/draftUpdate`, - method: 'post', - data, - }) -} -// 驳回后编辑接口 -export function updateSourceApproval(data: object) { - return request({ - url: '/meter/supplier/failUpdate', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/views/data/1 b/src/views/data/1 deleted file mode 100644 index e69de29..0000000 --- a/src/views/data/1 +++ /dev/null diff --git a/src/views/data/device/index.vue b/src/views/data/device/index.vue index 61d58cd..3a1cca7 100644 --- a/src/views/data/device/index.vue +++ b/src/views/data/device/index.vue @@ -1,89 +1,98 @@ + + + + diff --git a/src/views/data/electricity/index.vue b/src/views/data/electricity/index.vue index db0efa4..01525f3 100644 --- a/src/views/data/electricity/index.vue +++ b/src/views/data/electricity/index.vue @@ -5,19 +5,19 @@ import tab from '@/views/data/collect/tab.vue' const tablistData = ref([ { - id: '1', + id: '3', title: '配电网', }, { - id: '2', + id: '0', title: '分布式光伏', }, { - id: '3', + id: '1', title: '楼宇', }, { - id: '4', + id: '2', title: '电动汽车及储能', }, ]) diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts deleted file mode 100644 index 768c310..0000000 --- a/src/api/measure/file.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量文件模块接口api -import request from '../index' -import type { fileSearchType } from '@/views/measure/file/file-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: fileSearchType) { - return request({ - url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function listPageDetailApi(data: object) { - return request({ - url: `${prefix}file/listPage`, - method: 'post', - data, - }) -} -// 废止 -export function updateApi(data: object) { - return request({ - url: `${prefix}file/update`, - method: 'post', - data, - }) -} -// 新建 -export function addApi(data: object) { - return request({ - url: `${prefix}file/add`, - method: 'post', - data, - }) -} -// 删除 -export function deleteApi(data: { id: string }) { - return request({ - url: `${prefix}file/delete`, - method: 'post', - data, - }) -} -// 文件上传 -// export function UploadFile(fileobj: any) { -// const param = new FormData() -// param.append('file', fileobj.file) -// return request({ -// url: 'file/uploadFile', -// method: 'post', -// headers: { 'Content-Type': 'multipart/form-data' }, -// data: param, -// }) -// } -export function UploadFile(data: FormData) { - return request({ - url: 'minio/file/upload', - method: 'post', - data, - }) -} -// 导出 -export function exportFileApi(data: object) { - return request({ - url: '/meter/file/listExport', - method: 'post', - data, - responseType: 'blob', - }) -} - -// 文件审批列表(分页) -export function approvallistPageApi(data: any) { - return request({ - url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 审批详情 -export function approvallistPageDetailApi(data: object) { - return request({ - url: '/meter/file/approval/listPage', - method: 'post', - data, - }) -} - -// 取消 -export function approvalCancel(data: object) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 删除 -export function approvalDelete(data: object) { - return request({ - url: '/meter/file/approval/operate/delete', - method: 'post', - data, - }) -} - -// 保存草稿箱 -export function confirmDrafts(data: object) { - return request({ - url: '/meter/file/save', - method: 'post', - data, - }) -} - -// 提交 ( data 为 保存草稿箱接口的返回值) -export function submitFile(data: object) { - return request({ - url: '/meter/file/submit', - method: 'post', - data, - }) -} -// 更新草稿箱 -export function updateDrafts(data: object) { - return request({ - url: '/meter/file/draftUpdate', - method: 'post', - data, - }) -} - diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts deleted file mode 100644 index faecb03..0000000 --- a/src/api/measure/measureDept.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 计量组织管理接口api -import request from '../index' -import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: searchQueryType) { - return request({ - url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function deptDetailApi(data: object) { - return request({ - url: `${prefix}organize/detail`, - method: 'post', - data, - }) -} -// 导出 -export function exportApi(data: object) { - return request({ - url: `${prefix}organize/listExport`, - method: 'post', - data, - responseType: 'blob', - }) -} -// 更新 -export function updateApi(data: object) { - return request({ - url: `${prefix}organize/update`, - method: 'post', - data, - }) -} -// 获取标准装置列表 -export function standardlistPageApi(data: any) { - return request({ - url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 获取父级组织 -export function getpDeptApi(data: object) { - return request({ - url: '/meter/organize/deptInfo', - method: 'post', - data, - }) -} - -// 获取父级组织 -export function getOrganizeList(data: object) { - return request({ - url: '/meter/organize/list', - method: 'post', - data, - }) -} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts deleted file mode 100644 index 50cf032..0000000 --- a/src/api/measure/person.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量人员相关接口api -import request from '../index' -import type { StaffListType } from '@/views/measure/person/person-interface' -// 计量人员列表 -export function getStaffList(data: StaffListType) { - return request({ - url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 计量人员列表-不分页 -export function getStaffListAll(data: { deptId: string; name: string }) { - return request({ - url: '/staff/getUserList', - method: 'post', - data, - }) -} -// 人员详细信息 -export function getStaffDetail(data: object) { - return request({ - url: '/staff/selectStaffInfo', - method: 'post', - data, - }) -} -// 删除人员 -export function getStaffDelete(data: object) { - return request({ - url: '/staff/deleteStaff', - method: 'post', - data, - }) -} -// 新增人员 -export function getStaffAdd(data: object) { - return request({ - url: '/staff/addStaffInfo', - method: 'post', - data, - }) -} -// 编辑人员 -export function getStaffupdate(data: object) { - return request({ - url: '/staff/updateStaffInfo', - method: 'post', - data, - }) -} -// 列表导出 -export function exportList(data: object) { - return request({ - url: '/staff/exportStaffList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 导入计量人员 -export function uploadList(data: FormData) { - return request({ - url: '/staff/batchImportStaff', - method: 'post', - data, - }) -} -// 证书记录列表 -export function getCertificateList(data: StaffListType) { - return request({ - url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 证书记录导出 -export function CertificateListList(data: object) { - return request({ - url: '/certificate/exportCertificateList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 证书记录新增 -export function addCertificateList(data: object) { - return request({ - url: '/certificate/addStaffCertificate', - method: 'post', - data, - }) -} -// 获取证书记录详情 -export function getCertificateDetail(data: object) { - return request({ - url: '/certificate/queryStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录更新 -export function getCertificateUpdate(data: object) { - return request({ - url: '/certificate/updateStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录导入 -export function getCertificateUpload(data: FormData) { - return request({ - url: '/certificate/batchImportCertificate', - method: 'post', - data, - }) -} -// 证书过期提醒 -export function getCertificateRemind(data: object) { - return request({ - url: '/certificate/expirationReminder', - method: 'post', - data, - }) -} -// 证书记录删除 -export function getCertificateRemove(data: object) { - return request({ - url: '/certificate/deleteCertificate', - method: 'post', - data, - }) -} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts deleted file mode 100644 index b30ddc9..0000000 --- a/src/api/measure/plan.ts +++ /dev/null @@ -1,165 +0,0 @@ -/** - * 培训计划请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 导出培训计录列表 -export function exportLogList(data: object) { - return request({ - url: `${prefix}/train/log/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 导出培训计划列表 -export function exportPlanList(data: object) { - return request({ - url: `${prefix}/train/plan/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} -// 列表查询 -export function getPlanList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 审批列表查询 -export function getapprovalList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 培训计划审批删除 -export function getApprovalDelete(data: object) { - return request({ - url: `${prefix}/train/plan/approval/operate/delete`, - method: 'post', - data, - }) -} -// 主管部门 -export function getDeptTree(params: object) { - return request({ - url: '/sys/dept/tree', - method: 'get', - params, - }) -} - -// 培训计划保存 -export function getListSave(data: object) { - return request({ - url: `${prefix}/train/plan/save`, - method: 'post', - data, - }) -} -// 培训计划保存后的提交 -export function getListSubmit(data: object) { - return request({ - url: `${prefix}/train/plan/submit`, - method: 'post', - data, - }) -} - -// 培训计划详情 -export function getListDetail(data: object) { - return request({ - url: `${prefix}/train/plan/detail`, - method: 'post', - data, - }) -} -// 培训计划更新 -export function getListUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/update`, - method: 'post', - data, - }) -} - -// 未通过-驳回编辑 -export function getListFailUpdate(data: object) { - return request({ - url: `${prefix}/train/failUpdate`, - method: 'post', - data, - }) -} - -// 草稿箱-编辑 -export function getListDraftUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/draftUpdate`, - method: 'post', - data, - }) -} - -// 培训计划删除 -export function getListDelete(data: object) { - return request({ - url: `${prefix}/train/plan/delete`, - method: 'post', - data, - }) -} - -// 培训记录列表 -export function getLogList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 列表编号查询 -export function getPlanIdList(data: object) { - return request({ - url: `${prefix}/train/plan/list`, - method: 'post', - data, - }) -} - -// 培训记录新建 -export function getListLogAdd(data: object) { - return request({ - url: `${prefix}/train/log/add`, - method: 'post', - data, - }) -} - -// 培训记录修改 -export function getListLogupdate(data: object) { - return request({ - url: `${prefix}/train/log/update`, - method: 'post', - data, - }) -} - -// 培训记录详情 -export function getListLogDetail(data: object) { - return request({ - url: `${prefix}/train/log/detail`, - method: 'post', - data, - }) -} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts deleted file mode 100644 index 1c3ae09..0000000 --- a/src/api/measure/source.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 提交数据 -export function sourceSubmit(data: object) { - return request({ - url: '/meter/supplier/submit', - method: 'post', - data, - }) -} -// 保存至草稿箱 -export function sourceSave(data: object) { - return request({ - url: `${prefix}/supplier/save`, - method: 'post', - data, - }) -} -// 更新草稿箱文件 -export function sourceDraftUpdate(data: object) { - return request({ - url: `${prefix}/supplier/draftUpdate`, - method: 'post', - data, - }) -} -// 驳回后编辑接口 -export function updateSourceApproval(data: object) { - return request({ - url: '/meter/supplier/failUpdate', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/views/data/1 b/src/views/data/1 deleted file mode 100644 index e69de29..0000000 --- a/src/views/data/1 +++ /dev/null diff --git a/src/views/data/device/index.vue b/src/views/data/device/index.vue index 61d58cd..3a1cca7 100644 --- a/src/views/data/device/index.vue +++ b/src/views/data/device/index.vue @@ -1,89 +1,98 @@ + + + + diff --git a/src/views/data/electricity/index.vue b/src/views/data/electricity/index.vue index db0efa4..01525f3 100644 --- a/src/views/data/electricity/index.vue +++ b/src/views/data/electricity/index.vue @@ -5,19 +5,19 @@ import tab from '@/views/data/collect/tab.vue' const tablistData = ref([ { - id: '1', + id: '3', title: '配电网', }, { - id: '2', + id: '0', title: '分布式光伏', }, { - id: '3', + id: '1', title: '楼宇', }, { - id: '4', + id: '2', title: '电动汽车及储能', }, ]) diff --git a/src/views/data/electricity/network.vue b/src/views/data/electricity/network.vue index b1da8b5..ccea8ee 100644 --- a/src/views/data/electricity/network.vue +++ b/src/views/data/electricity/network.vue @@ -1,5 +1,8 @@ + + + + diff --git a/src/views/data/electricity/index.vue b/src/views/data/electricity/index.vue index db0efa4..01525f3 100644 --- a/src/views/data/electricity/index.vue +++ b/src/views/data/electricity/index.vue @@ -5,19 +5,19 @@ import tab from '@/views/data/collect/tab.vue' const tablistData = ref([ { - id: '1', + id: '3', title: '配电网', }, { - id: '2', + id: '0', title: '分布式光伏', }, { - id: '3', + id: '1', title: '楼宇', }, { - id: '4', + id: '2', title: '电动汽车及储能', }, ]) diff --git a/src/views/data/electricity/network.vue b/src/views/data/electricity/network.vue index b1da8b5..ccea8ee 100644 --- a/src/views/data/electricity/network.vue +++ b/src/views/data/electricity/network.vue @@ -1,5 +1,8 @@ + + + + diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts deleted file mode 100644 index 768c310..0000000 --- a/src/api/measure/file.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量文件模块接口api -import request from '../index' -import type { fileSearchType } from '@/views/measure/file/file-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: fileSearchType) { - return request({ - url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function listPageDetailApi(data: object) { - return request({ - url: `${prefix}file/listPage`, - method: 'post', - data, - }) -} -// 废止 -export function updateApi(data: object) { - return request({ - url: `${prefix}file/update`, - method: 'post', - data, - }) -} -// 新建 -export function addApi(data: object) { - return request({ - url: `${prefix}file/add`, - method: 'post', - data, - }) -} -// 删除 -export function deleteApi(data: { id: string }) { - return request({ - url: `${prefix}file/delete`, - method: 'post', - data, - }) -} -// 文件上传 -// export function UploadFile(fileobj: any) { -// const param = new FormData() -// param.append('file', fileobj.file) -// return request({ -// url: 'file/uploadFile', -// method: 'post', -// headers: { 'Content-Type': 'multipart/form-data' }, -// data: param, -// }) -// } -export function UploadFile(data: FormData) { - return request({ - url: 'minio/file/upload', - method: 'post', - data, - }) -} -// 导出 -export function exportFileApi(data: object) { - return request({ - url: '/meter/file/listExport', - method: 'post', - data, - responseType: 'blob', - }) -} - -// 文件审批列表(分页) -export function approvallistPageApi(data: any) { - return request({ - url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 审批详情 -export function approvallistPageDetailApi(data: object) { - return request({ - url: '/meter/file/approval/listPage', - method: 'post', - data, - }) -} - -// 取消 -export function approvalCancel(data: object) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 删除 -export function approvalDelete(data: object) { - return request({ - url: '/meter/file/approval/operate/delete', - method: 'post', - data, - }) -} - -// 保存草稿箱 -export function confirmDrafts(data: object) { - return request({ - url: '/meter/file/save', - method: 'post', - data, - }) -} - -// 提交 ( data 为 保存草稿箱接口的返回值) -export function submitFile(data: object) { - return request({ - url: '/meter/file/submit', - method: 'post', - data, - }) -} -// 更新草稿箱 -export function updateDrafts(data: object) { - return request({ - url: '/meter/file/draftUpdate', - method: 'post', - data, - }) -} - diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts deleted file mode 100644 index faecb03..0000000 --- a/src/api/measure/measureDept.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 计量组织管理接口api -import request from '../index' -import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: searchQueryType) { - return request({ - url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function deptDetailApi(data: object) { - return request({ - url: `${prefix}organize/detail`, - method: 'post', - data, - }) -} -// 导出 -export function exportApi(data: object) { - return request({ - url: `${prefix}organize/listExport`, - method: 'post', - data, - responseType: 'blob', - }) -} -// 更新 -export function updateApi(data: object) { - return request({ - url: `${prefix}organize/update`, - method: 'post', - data, - }) -} -// 获取标准装置列表 -export function standardlistPageApi(data: any) { - return request({ - url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 获取父级组织 -export function getpDeptApi(data: object) { - return request({ - url: '/meter/organize/deptInfo', - method: 'post', - data, - }) -} - -// 获取父级组织 -export function getOrganizeList(data: object) { - return request({ - url: '/meter/organize/list', - method: 'post', - data, - }) -} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts deleted file mode 100644 index 50cf032..0000000 --- a/src/api/measure/person.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量人员相关接口api -import request from '../index' -import type { StaffListType } from '@/views/measure/person/person-interface' -// 计量人员列表 -export function getStaffList(data: StaffListType) { - return request({ - url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 计量人员列表-不分页 -export function getStaffListAll(data: { deptId: string; name: string }) { - return request({ - url: '/staff/getUserList', - method: 'post', - data, - }) -} -// 人员详细信息 -export function getStaffDetail(data: object) { - return request({ - url: '/staff/selectStaffInfo', - method: 'post', - data, - }) -} -// 删除人员 -export function getStaffDelete(data: object) { - return request({ - url: '/staff/deleteStaff', - method: 'post', - data, - }) -} -// 新增人员 -export function getStaffAdd(data: object) { - return request({ - url: '/staff/addStaffInfo', - method: 'post', - data, - }) -} -// 编辑人员 -export function getStaffupdate(data: object) { - return request({ - url: '/staff/updateStaffInfo', - method: 'post', - data, - }) -} -// 列表导出 -export function exportList(data: object) { - return request({ - url: '/staff/exportStaffList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 导入计量人员 -export function uploadList(data: FormData) { - return request({ - url: '/staff/batchImportStaff', - method: 'post', - data, - }) -} -// 证书记录列表 -export function getCertificateList(data: StaffListType) { - return request({ - url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 证书记录导出 -export function CertificateListList(data: object) { - return request({ - url: '/certificate/exportCertificateList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 证书记录新增 -export function addCertificateList(data: object) { - return request({ - url: '/certificate/addStaffCertificate', - method: 'post', - data, - }) -} -// 获取证书记录详情 -export function getCertificateDetail(data: object) { - return request({ - url: '/certificate/queryStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录更新 -export function getCertificateUpdate(data: object) { - return request({ - url: '/certificate/updateStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录导入 -export function getCertificateUpload(data: FormData) { - return request({ - url: '/certificate/batchImportCertificate', - method: 'post', - data, - }) -} -// 证书过期提醒 -export function getCertificateRemind(data: object) { - return request({ - url: '/certificate/expirationReminder', - method: 'post', - data, - }) -} -// 证书记录删除 -export function getCertificateRemove(data: object) { - return request({ - url: '/certificate/deleteCertificate', - method: 'post', - data, - }) -} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts deleted file mode 100644 index b30ddc9..0000000 --- a/src/api/measure/plan.ts +++ /dev/null @@ -1,165 +0,0 @@ -/** - * 培训计划请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 导出培训计录列表 -export function exportLogList(data: object) { - return request({ - url: `${prefix}/train/log/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 导出培训计划列表 -export function exportPlanList(data: object) { - return request({ - url: `${prefix}/train/plan/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} -// 列表查询 -export function getPlanList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 审批列表查询 -export function getapprovalList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 培训计划审批删除 -export function getApprovalDelete(data: object) { - return request({ - url: `${prefix}/train/plan/approval/operate/delete`, - method: 'post', - data, - }) -} -// 主管部门 -export function getDeptTree(params: object) { - return request({ - url: '/sys/dept/tree', - method: 'get', - params, - }) -} - -// 培训计划保存 -export function getListSave(data: object) { - return request({ - url: `${prefix}/train/plan/save`, - method: 'post', - data, - }) -} -// 培训计划保存后的提交 -export function getListSubmit(data: object) { - return request({ - url: `${prefix}/train/plan/submit`, - method: 'post', - data, - }) -} - -// 培训计划详情 -export function getListDetail(data: object) { - return request({ - url: `${prefix}/train/plan/detail`, - method: 'post', - data, - }) -} -// 培训计划更新 -export function getListUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/update`, - method: 'post', - data, - }) -} - -// 未通过-驳回编辑 -export function getListFailUpdate(data: object) { - return request({ - url: `${prefix}/train/failUpdate`, - method: 'post', - data, - }) -} - -// 草稿箱-编辑 -export function getListDraftUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/draftUpdate`, - method: 'post', - data, - }) -} - -// 培训计划删除 -export function getListDelete(data: object) { - return request({ - url: `${prefix}/train/plan/delete`, - method: 'post', - data, - }) -} - -// 培训记录列表 -export function getLogList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 列表编号查询 -export function getPlanIdList(data: object) { - return request({ - url: `${prefix}/train/plan/list`, - method: 'post', - data, - }) -} - -// 培训记录新建 -export function getListLogAdd(data: object) { - return request({ - url: `${prefix}/train/log/add`, - method: 'post', - data, - }) -} - -// 培训记录修改 -export function getListLogupdate(data: object) { - return request({ - url: `${prefix}/train/log/update`, - method: 'post', - data, - }) -} - -// 培训记录详情 -export function getListLogDetail(data: object) { - return request({ - url: `${prefix}/train/log/detail`, - method: 'post', - data, - }) -} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts deleted file mode 100644 index 1c3ae09..0000000 --- a/src/api/measure/source.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 提交数据 -export function sourceSubmit(data: object) { - return request({ - url: '/meter/supplier/submit', - method: 'post', - data, - }) -} -// 保存至草稿箱 -export function sourceSave(data: object) { - return request({ - url: `${prefix}/supplier/save`, - method: 'post', - data, - }) -} -// 更新草稿箱文件 -export function sourceDraftUpdate(data: object) { - return request({ - url: `${prefix}/supplier/draftUpdate`, - method: 'post', - data, - }) -} -// 驳回后编辑接口 -export function updateSourceApproval(data: object) { - return request({ - url: '/meter/supplier/failUpdate', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/views/data/1 b/src/views/data/1 deleted file mode 100644 index e69de29..0000000 --- a/src/views/data/1 +++ /dev/null diff --git a/src/views/data/device/index.vue b/src/views/data/device/index.vue index 61d58cd..3a1cca7 100644 --- a/src/views/data/device/index.vue +++ b/src/views/data/device/index.vue @@ -1,89 +1,98 @@ + + + + diff --git a/src/views/data/electricity/index.vue b/src/views/data/electricity/index.vue index db0efa4..01525f3 100644 --- a/src/views/data/electricity/index.vue +++ b/src/views/data/electricity/index.vue @@ -5,19 +5,19 @@ import tab from '@/views/data/collect/tab.vue' const tablistData = ref([ { - id: '1', + id: '3', title: '配电网', }, { - id: '2', + id: '0', title: '分布式光伏', }, { - id: '3', + id: '1', title: '楼宇', }, { - id: '4', + id: '2', title: '电动汽车及储能', }, ]) diff --git a/src/views/data/electricity/network.vue b/src/views/data/electricity/network.vue index b1da8b5..ccea8ee 100644 --- a/src/views/data/electricity/network.vue +++ b/src/views/data/electricity/network.vue @@ -1,5 +1,8 @@ + + + + diff --git a/src/views/data/electricity/page.vue b/src/views/data/electricity/page.vue index dd7aab8..aff3ce4 100644 --- a/src/views/data/electricity/page.vue +++ b/src/views/data/electricity/page.vue @@ -1,5 +1,8 @@ + + + + diff --git a/src/views/data/electricity/index.vue b/src/views/data/electricity/index.vue index db0efa4..01525f3 100644 --- a/src/views/data/electricity/index.vue +++ b/src/views/data/electricity/index.vue @@ -5,19 +5,19 @@ import tab from '@/views/data/collect/tab.vue' const tablistData = ref([ { - id: '1', + id: '3', title: '配电网', }, { - id: '2', + id: '0', title: '分布式光伏', }, { - id: '3', + id: '1', title: '楼宇', }, { - id: '4', + id: '2', title: '电动汽车及储能', }, ]) diff --git a/src/views/data/electricity/network.vue b/src/views/data/electricity/network.vue index b1da8b5..ccea8ee 100644 --- a/src/views/data/electricity/network.vue +++ b/src/views/data/electricity/network.vue @@ -1,5 +1,8 @@ + + + + diff --git a/src/views/data/electricity/page.vue b/src/views/data/electricity/page.vue index dd7aab8..aff3ce4 100644 --- a/src/views/data/electricity/page.vue +++ b/src/views/data/electricity/page.vue @@ -1,5 +1,8 @@ + + + + diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts deleted file mode 100644 index 768c310..0000000 --- a/src/api/measure/file.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量文件模块接口api -import request from '../index' -import type { fileSearchType } from '@/views/measure/file/file-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: fileSearchType) { - return request({ - url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function listPageDetailApi(data: object) { - return request({ - url: `${prefix}file/listPage`, - method: 'post', - data, - }) -} -// 废止 -export function updateApi(data: object) { - return request({ - url: `${prefix}file/update`, - method: 'post', - data, - }) -} -// 新建 -export function addApi(data: object) { - return request({ - url: `${prefix}file/add`, - method: 'post', - data, - }) -} -// 删除 -export function deleteApi(data: { id: string }) { - return request({ - url: `${prefix}file/delete`, - method: 'post', - data, - }) -} -// 文件上传 -// export function UploadFile(fileobj: any) { -// const param = new FormData() -// param.append('file', fileobj.file) -// return request({ -// url: 'file/uploadFile', -// method: 'post', -// headers: { 'Content-Type': 'multipart/form-data' }, -// data: param, -// }) -// } -export function UploadFile(data: FormData) { - return request({ - url: 'minio/file/upload', - method: 'post', - data, - }) -} -// 导出 -export function exportFileApi(data: object) { - return request({ - url: '/meter/file/listExport', - method: 'post', - data, - responseType: 'blob', - }) -} - -// 文件审批列表(分页) -export function approvallistPageApi(data: any) { - return request({ - url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 审批详情 -export function approvallistPageDetailApi(data: object) { - return request({ - url: '/meter/file/approval/listPage', - method: 'post', - data, - }) -} - -// 取消 -export function approvalCancel(data: object) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 删除 -export function approvalDelete(data: object) { - return request({ - url: '/meter/file/approval/operate/delete', - method: 'post', - data, - }) -} - -// 保存草稿箱 -export function confirmDrafts(data: object) { - return request({ - url: '/meter/file/save', - method: 'post', - data, - }) -} - -// 提交 ( data 为 保存草稿箱接口的返回值) -export function submitFile(data: object) { - return request({ - url: '/meter/file/submit', - method: 'post', - data, - }) -} -// 更新草稿箱 -export function updateDrafts(data: object) { - return request({ - url: '/meter/file/draftUpdate', - method: 'post', - data, - }) -} - diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts deleted file mode 100644 index faecb03..0000000 --- a/src/api/measure/measureDept.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 计量组织管理接口api -import request from '../index' -import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: searchQueryType) { - return request({ - url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function deptDetailApi(data: object) { - return request({ - url: `${prefix}organize/detail`, - method: 'post', - data, - }) -} -// 导出 -export function exportApi(data: object) { - return request({ - url: `${prefix}organize/listExport`, - method: 'post', - data, - responseType: 'blob', - }) -} -// 更新 -export function updateApi(data: object) { - return request({ - url: `${prefix}organize/update`, - method: 'post', - data, - }) -} -// 获取标准装置列表 -export function standardlistPageApi(data: any) { - return request({ - url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 获取父级组织 -export function getpDeptApi(data: object) { - return request({ - url: '/meter/organize/deptInfo', - method: 'post', - data, - }) -} - -// 获取父级组织 -export function getOrganizeList(data: object) { - return request({ - url: '/meter/organize/list', - method: 'post', - data, - }) -} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts deleted file mode 100644 index 50cf032..0000000 --- a/src/api/measure/person.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量人员相关接口api -import request from '../index' -import type { StaffListType } from '@/views/measure/person/person-interface' -// 计量人员列表 -export function getStaffList(data: StaffListType) { - return request({ - url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 计量人员列表-不分页 -export function getStaffListAll(data: { deptId: string; name: string }) { - return request({ - url: '/staff/getUserList', - method: 'post', - data, - }) -} -// 人员详细信息 -export function getStaffDetail(data: object) { - return request({ - url: '/staff/selectStaffInfo', - method: 'post', - data, - }) -} -// 删除人员 -export function getStaffDelete(data: object) { - return request({ - url: '/staff/deleteStaff', - method: 'post', - data, - }) -} -// 新增人员 -export function getStaffAdd(data: object) { - return request({ - url: '/staff/addStaffInfo', - method: 'post', - data, - }) -} -// 编辑人员 -export function getStaffupdate(data: object) { - return request({ - url: '/staff/updateStaffInfo', - method: 'post', - data, - }) -} -// 列表导出 -export function exportList(data: object) { - return request({ - url: '/staff/exportStaffList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 导入计量人员 -export function uploadList(data: FormData) { - return request({ - url: '/staff/batchImportStaff', - method: 'post', - data, - }) -} -// 证书记录列表 -export function getCertificateList(data: StaffListType) { - return request({ - url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 证书记录导出 -export function CertificateListList(data: object) { - return request({ - url: '/certificate/exportCertificateList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 证书记录新增 -export function addCertificateList(data: object) { - return request({ - url: '/certificate/addStaffCertificate', - method: 'post', - data, - }) -} -// 获取证书记录详情 -export function getCertificateDetail(data: object) { - return request({ - url: '/certificate/queryStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录更新 -export function getCertificateUpdate(data: object) { - return request({ - url: '/certificate/updateStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录导入 -export function getCertificateUpload(data: FormData) { - return request({ - url: '/certificate/batchImportCertificate', - method: 'post', - data, - }) -} -// 证书过期提醒 -export function getCertificateRemind(data: object) { - return request({ - url: '/certificate/expirationReminder', - method: 'post', - data, - }) -} -// 证书记录删除 -export function getCertificateRemove(data: object) { - return request({ - url: '/certificate/deleteCertificate', - method: 'post', - data, - }) -} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts deleted file mode 100644 index b30ddc9..0000000 --- a/src/api/measure/plan.ts +++ /dev/null @@ -1,165 +0,0 @@ -/** - * 培训计划请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 导出培训计录列表 -export function exportLogList(data: object) { - return request({ - url: `${prefix}/train/log/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 导出培训计划列表 -export function exportPlanList(data: object) { - return request({ - url: `${prefix}/train/plan/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} -// 列表查询 -export function getPlanList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 审批列表查询 -export function getapprovalList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 培训计划审批删除 -export function getApprovalDelete(data: object) { - return request({ - url: `${prefix}/train/plan/approval/operate/delete`, - method: 'post', - data, - }) -} -// 主管部门 -export function getDeptTree(params: object) { - return request({ - url: '/sys/dept/tree', - method: 'get', - params, - }) -} - -// 培训计划保存 -export function getListSave(data: object) { - return request({ - url: `${prefix}/train/plan/save`, - method: 'post', - data, - }) -} -// 培训计划保存后的提交 -export function getListSubmit(data: object) { - return request({ - url: `${prefix}/train/plan/submit`, - method: 'post', - data, - }) -} - -// 培训计划详情 -export function getListDetail(data: object) { - return request({ - url: `${prefix}/train/plan/detail`, - method: 'post', - data, - }) -} -// 培训计划更新 -export function getListUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/update`, - method: 'post', - data, - }) -} - -// 未通过-驳回编辑 -export function getListFailUpdate(data: object) { - return request({ - url: `${prefix}/train/failUpdate`, - method: 'post', - data, - }) -} - -// 草稿箱-编辑 -export function getListDraftUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/draftUpdate`, - method: 'post', - data, - }) -} - -// 培训计划删除 -export function getListDelete(data: object) { - return request({ - url: `${prefix}/train/plan/delete`, - method: 'post', - data, - }) -} - -// 培训记录列表 -export function getLogList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 列表编号查询 -export function getPlanIdList(data: object) { - return request({ - url: `${prefix}/train/plan/list`, - method: 'post', - data, - }) -} - -// 培训记录新建 -export function getListLogAdd(data: object) { - return request({ - url: `${prefix}/train/log/add`, - method: 'post', - data, - }) -} - -// 培训记录修改 -export function getListLogupdate(data: object) { - return request({ - url: `${prefix}/train/log/update`, - method: 'post', - data, - }) -} - -// 培训记录详情 -export function getListLogDetail(data: object) { - return request({ - url: `${prefix}/train/log/detail`, - method: 'post', - data, - }) -} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts deleted file mode 100644 index 1c3ae09..0000000 --- a/src/api/measure/source.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 提交数据 -export function sourceSubmit(data: object) { - return request({ - url: '/meter/supplier/submit', - method: 'post', - data, - }) -} -// 保存至草稿箱 -export function sourceSave(data: object) { - return request({ - url: `${prefix}/supplier/save`, - method: 'post', - data, - }) -} -// 更新草稿箱文件 -export function sourceDraftUpdate(data: object) { - return request({ - url: `${prefix}/supplier/draftUpdate`, - method: 'post', - data, - }) -} -// 驳回后编辑接口 -export function updateSourceApproval(data: object) { - return request({ - url: '/meter/supplier/failUpdate', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/views/data/1 b/src/views/data/1 deleted file mode 100644 index e69de29..0000000 --- a/src/views/data/1 +++ /dev/null diff --git a/src/views/data/device/index.vue b/src/views/data/device/index.vue index 61d58cd..3a1cca7 100644 --- a/src/views/data/device/index.vue +++ b/src/views/data/device/index.vue @@ -1,89 +1,98 @@ + + + + diff --git a/src/views/data/electricity/index.vue b/src/views/data/electricity/index.vue index db0efa4..01525f3 100644 --- a/src/views/data/electricity/index.vue +++ b/src/views/data/electricity/index.vue @@ -5,19 +5,19 @@ import tab from '@/views/data/collect/tab.vue' const tablistData = ref([ { - id: '1', + id: '3', title: '配电网', }, { - id: '2', + id: '0', title: '分布式光伏', }, { - id: '3', + id: '1', title: '楼宇', }, { - id: '4', + id: '2', title: '电动汽车及储能', }, ]) diff --git a/src/views/data/electricity/network.vue b/src/views/data/electricity/network.vue index b1da8b5..ccea8ee 100644 --- a/src/views/data/electricity/network.vue +++ b/src/views/data/electricity/network.vue @@ -1,5 +1,8 @@ + + + + diff --git a/src/views/data/electricity/page.vue b/src/views/data/electricity/page.vue index dd7aab8..aff3ce4 100644 --- a/src/views/data/electricity/page.vue +++ b/src/views/data/electricity/page.vue @@ -1,5 +1,8 @@ + + + + diff --git a/src/views/decision/index.vue b/src/views/decision/index.vue index 0b610fe..728f4db 100644 --- a/src/views/decision/index.vue +++ b/src/views/decision/index.vue @@ -1,3 +1,7 @@ + + diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts deleted file mode 100644 index 768c310..0000000 --- a/src/api/measure/file.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量文件模块接口api -import request from '../index' -import type { fileSearchType } from '@/views/measure/file/file-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: fileSearchType) { - return request({ - url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function listPageDetailApi(data: object) { - return request({ - url: `${prefix}file/listPage`, - method: 'post', - data, - }) -} -// 废止 -export function updateApi(data: object) { - return request({ - url: `${prefix}file/update`, - method: 'post', - data, - }) -} -// 新建 -export function addApi(data: object) { - return request({ - url: `${prefix}file/add`, - method: 'post', - data, - }) -} -// 删除 -export function deleteApi(data: { id: string }) { - return request({ - url: `${prefix}file/delete`, - method: 'post', - data, - }) -} -// 文件上传 -// export function UploadFile(fileobj: any) { -// const param = new FormData() -// param.append('file', fileobj.file) -// return request({ -// url: 'file/uploadFile', -// method: 'post', -// headers: { 'Content-Type': 'multipart/form-data' }, -// data: param, -// }) -// } -export function UploadFile(data: FormData) { - return request({ - url: 'minio/file/upload', - method: 'post', - data, - }) -} -// 导出 -export function exportFileApi(data: object) { - return request({ - url: '/meter/file/listExport', - method: 'post', - data, - responseType: 'blob', - }) -} - -// 文件审批列表(分页) -export function approvallistPageApi(data: any) { - return request({ - url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 审批详情 -export function approvallistPageDetailApi(data: object) { - return request({ - url: '/meter/file/approval/listPage', - method: 'post', - data, - }) -} - -// 取消 -export function approvalCancel(data: object) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 删除 -export function approvalDelete(data: object) { - return request({ - url: '/meter/file/approval/operate/delete', - method: 'post', - data, - }) -} - -// 保存草稿箱 -export function confirmDrafts(data: object) { - return request({ - url: '/meter/file/save', - method: 'post', - data, - }) -} - -// 提交 ( data 为 保存草稿箱接口的返回值) -export function submitFile(data: object) { - return request({ - url: '/meter/file/submit', - method: 'post', - data, - }) -} -// 更新草稿箱 -export function updateDrafts(data: object) { - return request({ - url: '/meter/file/draftUpdate', - method: 'post', - data, - }) -} - diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts deleted file mode 100644 index faecb03..0000000 --- a/src/api/measure/measureDept.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 计量组织管理接口api -import request from '../index' -import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: searchQueryType) { - return request({ - url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function deptDetailApi(data: object) { - return request({ - url: `${prefix}organize/detail`, - method: 'post', - data, - }) -} -// 导出 -export function exportApi(data: object) { - return request({ - url: `${prefix}organize/listExport`, - method: 'post', - data, - responseType: 'blob', - }) -} -// 更新 -export function updateApi(data: object) { - return request({ - url: `${prefix}organize/update`, - method: 'post', - data, - }) -} -// 获取标准装置列表 -export function standardlistPageApi(data: any) { - return request({ - url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 获取父级组织 -export function getpDeptApi(data: object) { - return request({ - url: '/meter/organize/deptInfo', - method: 'post', - data, - }) -} - -// 获取父级组织 -export function getOrganizeList(data: object) { - return request({ - url: '/meter/organize/list', - method: 'post', - data, - }) -} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts deleted file mode 100644 index 50cf032..0000000 --- a/src/api/measure/person.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量人员相关接口api -import request from '../index' -import type { StaffListType } from '@/views/measure/person/person-interface' -// 计量人员列表 -export function getStaffList(data: StaffListType) { - return request({ - url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 计量人员列表-不分页 -export function getStaffListAll(data: { deptId: string; name: string }) { - return request({ - url: '/staff/getUserList', - method: 'post', - data, - }) -} -// 人员详细信息 -export function getStaffDetail(data: object) { - return request({ - url: '/staff/selectStaffInfo', - method: 'post', - data, - }) -} -// 删除人员 -export function getStaffDelete(data: object) { - return request({ - url: '/staff/deleteStaff', - method: 'post', - data, - }) -} -// 新增人员 -export function getStaffAdd(data: object) { - return request({ - url: '/staff/addStaffInfo', - method: 'post', - data, - }) -} -// 编辑人员 -export function getStaffupdate(data: object) { - return request({ - url: '/staff/updateStaffInfo', - method: 'post', - data, - }) -} -// 列表导出 -export function exportList(data: object) { - return request({ - url: '/staff/exportStaffList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 导入计量人员 -export function uploadList(data: FormData) { - return request({ - url: '/staff/batchImportStaff', - method: 'post', - data, - }) -} -// 证书记录列表 -export function getCertificateList(data: StaffListType) { - return request({ - url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 证书记录导出 -export function CertificateListList(data: object) { - return request({ - url: '/certificate/exportCertificateList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 证书记录新增 -export function addCertificateList(data: object) { - return request({ - url: '/certificate/addStaffCertificate', - method: 'post', - data, - }) -} -// 获取证书记录详情 -export function getCertificateDetail(data: object) { - return request({ - url: '/certificate/queryStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录更新 -export function getCertificateUpdate(data: object) { - return request({ - url: '/certificate/updateStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录导入 -export function getCertificateUpload(data: FormData) { - return request({ - url: '/certificate/batchImportCertificate', - method: 'post', - data, - }) -} -// 证书过期提醒 -export function getCertificateRemind(data: object) { - return request({ - url: '/certificate/expirationReminder', - method: 'post', - data, - }) -} -// 证书记录删除 -export function getCertificateRemove(data: object) { - return request({ - url: '/certificate/deleteCertificate', - method: 'post', - data, - }) -} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts deleted file mode 100644 index b30ddc9..0000000 --- a/src/api/measure/plan.ts +++ /dev/null @@ -1,165 +0,0 @@ -/** - * 培训计划请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 导出培训计录列表 -export function exportLogList(data: object) { - return request({ - url: `${prefix}/train/log/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 导出培训计划列表 -export function exportPlanList(data: object) { - return request({ - url: `${prefix}/train/plan/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} -// 列表查询 -export function getPlanList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 审批列表查询 -export function getapprovalList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 培训计划审批删除 -export function getApprovalDelete(data: object) { - return request({ - url: `${prefix}/train/plan/approval/operate/delete`, - method: 'post', - data, - }) -} -// 主管部门 -export function getDeptTree(params: object) { - return request({ - url: '/sys/dept/tree', - method: 'get', - params, - }) -} - -// 培训计划保存 -export function getListSave(data: object) { - return request({ - url: `${prefix}/train/plan/save`, - method: 'post', - data, - }) -} -// 培训计划保存后的提交 -export function getListSubmit(data: object) { - return request({ - url: `${prefix}/train/plan/submit`, - method: 'post', - data, - }) -} - -// 培训计划详情 -export function getListDetail(data: object) { - return request({ - url: `${prefix}/train/plan/detail`, - method: 'post', - data, - }) -} -// 培训计划更新 -export function getListUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/update`, - method: 'post', - data, - }) -} - -// 未通过-驳回编辑 -export function getListFailUpdate(data: object) { - return request({ - url: `${prefix}/train/failUpdate`, - method: 'post', - data, - }) -} - -// 草稿箱-编辑 -export function getListDraftUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/draftUpdate`, - method: 'post', - data, - }) -} - -// 培训计划删除 -export function getListDelete(data: object) { - return request({ - url: `${prefix}/train/plan/delete`, - method: 'post', - data, - }) -} - -// 培训记录列表 -export function getLogList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 列表编号查询 -export function getPlanIdList(data: object) { - return request({ - url: `${prefix}/train/plan/list`, - method: 'post', - data, - }) -} - -// 培训记录新建 -export function getListLogAdd(data: object) { - return request({ - url: `${prefix}/train/log/add`, - method: 'post', - data, - }) -} - -// 培训记录修改 -export function getListLogupdate(data: object) { - return request({ - url: `${prefix}/train/log/update`, - method: 'post', - data, - }) -} - -// 培训记录详情 -export function getListLogDetail(data: object) { - return request({ - url: `${prefix}/train/log/detail`, - method: 'post', - data, - }) -} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts deleted file mode 100644 index 1c3ae09..0000000 --- a/src/api/measure/source.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 提交数据 -export function sourceSubmit(data: object) { - return request({ - url: '/meter/supplier/submit', - method: 'post', - data, - }) -} -// 保存至草稿箱 -export function sourceSave(data: object) { - return request({ - url: `${prefix}/supplier/save`, - method: 'post', - data, - }) -} -// 更新草稿箱文件 -export function sourceDraftUpdate(data: object) { - return request({ - url: `${prefix}/supplier/draftUpdate`, - method: 'post', - data, - }) -} -// 驳回后编辑接口 -export function updateSourceApproval(data: object) { - return request({ - url: '/meter/supplier/failUpdate', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/views/data/1 b/src/views/data/1 deleted file mode 100644 index e69de29..0000000 --- a/src/views/data/1 +++ /dev/null diff --git a/src/views/data/device/index.vue b/src/views/data/device/index.vue index 61d58cd..3a1cca7 100644 --- a/src/views/data/device/index.vue +++ b/src/views/data/device/index.vue @@ -1,89 +1,98 @@ + + + + diff --git a/src/views/data/electricity/index.vue b/src/views/data/electricity/index.vue index db0efa4..01525f3 100644 --- a/src/views/data/electricity/index.vue +++ b/src/views/data/electricity/index.vue @@ -5,19 +5,19 @@ import tab from '@/views/data/collect/tab.vue' const tablistData = ref([ { - id: '1', + id: '3', title: '配电网', }, { - id: '2', + id: '0', title: '分布式光伏', }, { - id: '3', + id: '1', title: '楼宇', }, { - id: '4', + id: '2', title: '电动汽车及储能', }, ]) diff --git a/src/views/data/electricity/network.vue b/src/views/data/electricity/network.vue index b1da8b5..ccea8ee 100644 --- a/src/views/data/electricity/network.vue +++ b/src/views/data/electricity/network.vue @@ -1,5 +1,8 @@ + + + + diff --git a/src/views/data/electricity/page.vue b/src/views/data/electricity/page.vue index dd7aab8..aff3ce4 100644 --- a/src/views/data/electricity/page.vue +++ b/src/views/data/electricity/page.vue @@ -1,5 +1,8 @@ + + + + diff --git a/src/views/decision/index.vue b/src/views/decision/index.vue index 0b610fe..728f4db 100644 --- a/src/views/decision/index.vue +++ b/src/views/decision/index.vue @@ -1,3 +1,7 @@ + + diff --git a/src/views/evaluate/index.vue b/src/views/evaluate/index.vue index 4f5b661..61e6a5f 100644 --- a/src/views/evaluate/index.vue +++ b/src/views/evaluate/index.vue @@ -1,3 +1,7 @@ + + diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts deleted file mode 100644 index 768c310..0000000 --- a/src/api/measure/file.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量文件模块接口api -import request from '../index' -import type { fileSearchType } from '@/views/measure/file/file-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: fileSearchType) { - return request({ - url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function listPageDetailApi(data: object) { - return request({ - url: `${prefix}file/listPage`, - method: 'post', - data, - }) -} -// 废止 -export function updateApi(data: object) { - return request({ - url: `${prefix}file/update`, - method: 'post', - data, - }) -} -// 新建 -export function addApi(data: object) { - return request({ - url: `${prefix}file/add`, - method: 'post', - data, - }) -} -// 删除 -export function deleteApi(data: { id: string }) { - return request({ - url: `${prefix}file/delete`, - method: 'post', - data, - }) -} -// 文件上传 -// export function UploadFile(fileobj: any) { -// const param = new FormData() -// param.append('file', fileobj.file) -// return request({ -// url: 'file/uploadFile', -// method: 'post', -// headers: { 'Content-Type': 'multipart/form-data' }, -// data: param, -// }) -// } -export function UploadFile(data: FormData) { - return request({ - url: 'minio/file/upload', - method: 'post', - data, - }) -} -// 导出 -export function exportFileApi(data: object) { - return request({ - url: '/meter/file/listExport', - method: 'post', - data, - responseType: 'blob', - }) -} - -// 文件审批列表(分页) -export function approvallistPageApi(data: any) { - return request({ - url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 审批详情 -export function approvallistPageDetailApi(data: object) { - return request({ - url: '/meter/file/approval/listPage', - method: 'post', - data, - }) -} - -// 取消 -export function approvalCancel(data: object) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 删除 -export function approvalDelete(data: object) { - return request({ - url: '/meter/file/approval/operate/delete', - method: 'post', - data, - }) -} - -// 保存草稿箱 -export function confirmDrafts(data: object) { - return request({ - url: '/meter/file/save', - method: 'post', - data, - }) -} - -// 提交 ( data 为 保存草稿箱接口的返回值) -export function submitFile(data: object) { - return request({ - url: '/meter/file/submit', - method: 'post', - data, - }) -} -// 更新草稿箱 -export function updateDrafts(data: object) { - return request({ - url: '/meter/file/draftUpdate', - method: 'post', - data, - }) -} - diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts deleted file mode 100644 index faecb03..0000000 --- a/src/api/measure/measureDept.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 计量组织管理接口api -import request from '../index' -import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: searchQueryType) { - return request({ - url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function deptDetailApi(data: object) { - return request({ - url: `${prefix}organize/detail`, - method: 'post', - data, - }) -} -// 导出 -export function exportApi(data: object) { - return request({ - url: `${prefix}organize/listExport`, - method: 'post', - data, - responseType: 'blob', - }) -} -// 更新 -export function updateApi(data: object) { - return request({ - url: `${prefix}organize/update`, - method: 'post', - data, - }) -} -// 获取标准装置列表 -export function standardlistPageApi(data: any) { - return request({ - url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 获取父级组织 -export function getpDeptApi(data: object) { - return request({ - url: '/meter/organize/deptInfo', - method: 'post', - data, - }) -} - -// 获取父级组织 -export function getOrganizeList(data: object) { - return request({ - url: '/meter/organize/list', - method: 'post', - data, - }) -} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts deleted file mode 100644 index 50cf032..0000000 --- a/src/api/measure/person.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量人员相关接口api -import request from '../index' -import type { StaffListType } from '@/views/measure/person/person-interface' -// 计量人员列表 -export function getStaffList(data: StaffListType) { - return request({ - url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 计量人员列表-不分页 -export function getStaffListAll(data: { deptId: string; name: string }) { - return request({ - url: '/staff/getUserList', - method: 'post', - data, - }) -} -// 人员详细信息 -export function getStaffDetail(data: object) { - return request({ - url: '/staff/selectStaffInfo', - method: 'post', - data, - }) -} -// 删除人员 -export function getStaffDelete(data: object) { - return request({ - url: '/staff/deleteStaff', - method: 'post', - data, - }) -} -// 新增人员 -export function getStaffAdd(data: object) { - return request({ - url: '/staff/addStaffInfo', - method: 'post', - data, - }) -} -// 编辑人员 -export function getStaffupdate(data: object) { - return request({ - url: '/staff/updateStaffInfo', - method: 'post', - data, - }) -} -// 列表导出 -export function exportList(data: object) { - return request({ - url: '/staff/exportStaffList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 导入计量人员 -export function uploadList(data: FormData) { - return request({ - url: '/staff/batchImportStaff', - method: 'post', - data, - }) -} -// 证书记录列表 -export function getCertificateList(data: StaffListType) { - return request({ - url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 证书记录导出 -export function CertificateListList(data: object) { - return request({ - url: '/certificate/exportCertificateList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 证书记录新增 -export function addCertificateList(data: object) { - return request({ - url: '/certificate/addStaffCertificate', - method: 'post', - data, - }) -} -// 获取证书记录详情 -export function getCertificateDetail(data: object) { - return request({ - url: '/certificate/queryStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录更新 -export function getCertificateUpdate(data: object) { - return request({ - url: '/certificate/updateStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录导入 -export function getCertificateUpload(data: FormData) { - return request({ - url: '/certificate/batchImportCertificate', - method: 'post', - data, - }) -} -// 证书过期提醒 -export function getCertificateRemind(data: object) { - return request({ - url: '/certificate/expirationReminder', - method: 'post', - data, - }) -} -// 证书记录删除 -export function getCertificateRemove(data: object) { - return request({ - url: '/certificate/deleteCertificate', - method: 'post', - data, - }) -} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts deleted file mode 100644 index b30ddc9..0000000 --- a/src/api/measure/plan.ts +++ /dev/null @@ -1,165 +0,0 @@ -/** - * 培训计划请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 导出培训计录列表 -export function exportLogList(data: object) { - return request({ - url: `${prefix}/train/log/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 导出培训计划列表 -export function exportPlanList(data: object) { - return request({ - url: `${prefix}/train/plan/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} -// 列表查询 -export function getPlanList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 审批列表查询 -export function getapprovalList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 培训计划审批删除 -export function getApprovalDelete(data: object) { - return request({ - url: `${prefix}/train/plan/approval/operate/delete`, - method: 'post', - data, - }) -} -// 主管部门 -export function getDeptTree(params: object) { - return request({ - url: '/sys/dept/tree', - method: 'get', - params, - }) -} - -// 培训计划保存 -export function getListSave(data: object) { - return request({ - url: `${prefix}/train/plan/save`, - method: 'post', - data, - }) -} -// 培训计划保存后的提交 -export function getListSubmit(data: object) { - return request({ - url: `${prefix}/train/plan/submit`, - method: 'post', - data, - }) -} - -// 培训计划详情 -export function getListDetail(data: object) { - return request({ - url: `${prefix}/train/plan/detail`, - method: 'post', - data, - }) -} -// 培训计划更新 -export function getListUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/update`, - method: 'post', - data, - }) -} - -// 未通过-驳回编辑 -export function getListFailUpdate(data: object) { - return request({ - url: `${prefix}/train/failUpdate`, - method: 'post', - data, - }) -} - -// 草稿箱-编辑 -export function getListDraftUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/draftUpdate`, - method: 'post', - data, - }) -} - -// 培训计划删除 -export function getListDelete(data: object) { - return request({ - url: `${prefix}/train/plan/delete`, - method: 'post', - data, - }) -} - -// 培训记录列表 -export function getLogList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 列表编号查询 -export function getPlanIdList(data: object) { - return request({ - url: `${prefix}/train/plan/list`, - method: 'post', - data, - }) -} - -// 培训记录新建 -export function getListLogAdd(data: object) { - return request({ - url: `${prefix}/train/log/add`, - method: 'post', - data, - }) -} - -// 培训记录修改 -export function getListLogupdate(data: object) { - return request({ - url: `${prefix}/train/log/update`, - method: 'post', - data, - }) -} - -// 培训记录详情 -export function getListLogDetail(data: object) { - return request({ - url: `${prefix}/train/log/detail`, - method: 'post', - data, - }) -} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts deleted file mode 100644 index 1c3ae09..0000000 --- a/src/api/measure/source.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 提交数据 -export function sourceSubmit(data: object) { - return request({ - url: '/meter/supplier/submit', - method: 'post', - data, - }) -} -// 保存至草稿箱 -export function sourceSave(data: object) { - return request({ - url: `${prefix}/supplier/save`, - method: 'post', - data, - }) -} -// 更新草稿箱文件 -export function sourceDraftUpdate(data: object) { - return request({ - url: `${prefix}/supplier/draftUpdate`, - method: 'post', - data, - }) -} -// 驳回后编辑接口 -export function updateSourceApproval(data: object) { - return request({ - url: '/meter/supplier/failUpdate', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/views/data/1 b/src/views/data/1 deleted file mode 100644 index e69de29..0000000 --- a/src/views/data/1 +++ /dev/null diff --git a/src/views/data/device/index.vue b/src/views/data/device/index.vue index 61d58cd..3a1cca7 100644 --- a/src/views/data/device/index.vue +++ b/src/views/data/device/index.vue @@ -1,89 +1,98 @@ + + + + diff --git a/src/views/data/electricity/index.vue b/src/views/data/electricity/index.vue index db0efa4..01525f3 100644 --- a/src/views/data/electricity/index.vue +++ b/src/views/data/electricity/index.vue @@ -5,19 +5,19 @@ import tab from '@/views/data/collect/tab.vue' const tablistData = ref([ { - id: '1', + id: '3', title: '配电网', }, { - id: '2', + id: '0', title: '分布式光伏', }, { - id: '3', + id: '1', title: '楼宇', }, { - id: '4', + id: '2', title: '电动汽车及储能', }, ]) diff --git a/src/views/data/electricity/network.vue b/src/views/data/electricity/network.vue index b1da8b5..ccea8ee 100644 --- a/src/views/data/electricity/network.vue +++ b/src/views/data/electricity/network.vue @@ -1,5 +1,8 @@ + + + + diff --git a/src/views/data/electricity/page.vue b/src/views/data/electricity/page.vue index dd7aab8..aff3ce4 100644 --- a/src/views/data/electricity/page.vue +++ b/src/views/data/electricity/page.vue @@ -1,5 +1,8 @@ + + + + diff --git a/src/views/decision/index.vue b/src/views/decision/index.vue index 0b610fe..728f4db 100644 --- a/src/views/decision/index.vue +++ b/src/views/decision/index.vue @@ -1,3 +1,7 @@ + + diff --git a/src/views/evaluate/index.vue b/src/views/evaluate/index.vue index 4f5b661..61e6a5f 100644 --- a/src/views/evaluate/index.vue +++ b/src/views/evaluate/index.vue @@ -1,3 +1,7 @@ + + diff --git a/src/views/evaluate/page.vue b/src/views/evaluate/page.vue new file mode 100644 index 0000000..d98573e --- /dev/null +++ b/src/views/evaluate/page.vue @@ -0,0 +1,13 @@ + + diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts deleted file mode 100644 index 768c310..0000000 --- a/src/api/measure/file.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量文件模块接口api -import request from '../index' -import type { fileSearchType } from '@/views/measure/file/file-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: fileSearchType) { - return request({ - url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function listPageDetailApi(data: object) { - return request({ - url: `${prefix}file/listPage`, - method: 'post', - data, - }) -} -// 废止 -export function updateApi(data: object) { - return request({ - url: `${prefix}file/update`, - method: 'post', - data, - }) -} -// 新建 -export function addApi(data: object) { - return request({ - url: `${prefix}file/add`, - method: 'post', - data, - }) -} -// 删除 -export function deleteApi(data: { id: string }) { - return request({ - url: `${prefix}file/delete`, - method: 'post', - data, - }) -} -// 文件上传 -// export function UploadFile(fileobj: any) { -// const param = new FormData() -// param.append('file', fileobj.file) -// return request({ -// url: 'file/uploadFile', -// method: 'post', -// headers: { 'Content-Type': 'multipart/form-data' }, -// data: param, -// }) -// } -export function UploadFile(data: FormData) { - return request({ - url: 'minio/file/upload', - method: 'post', - data, - }) -} -// 导出 -export function exportFileApi(data: object) { - return request({ - url: '/meter/file/listExport', - method: 'post', - data, - responseType: 'blob', - }) -} - -// 文件审批列表(分页) -export function approvallistPageApi(data: any) { - return request({ - url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 审批详情 -export function approvallistPageDetailApi(data: object) { - return request({ - url: '/meter/file/approval/listPage', - method: 'post', - data, - }) -} - -// 取消 -export function approvalCancel(data: object) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 删除 -export function approvalDelete(data: object) { - return request({ - url: '/meter/file/approval/operate/delete', - method: 'post', - data, - }) -} - -// 保存草稿箱 -export function confirmDrafts(data: object) { - return request({ - url: '/meter/file/save', - method: 'post', - data, - }) -} - -// 提交 ( data 为 保存草稿箱接口的返回值) -export function submitFile(data: object) { - return request({ - url: '/meter/file/submit', - method: 'post', - data, - }) -} -// 更新草稿箱 -export function updateDrafts(data: object) { - return request({ - url: '/meter/file/draftUpdate', - method: 'post', - data, - }) -} - diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts deleted file mode 100644 index faecb03..0000000 --- a/src/api/measure/measureDept.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 计量组织管理接口api -import request from '../index' -import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: searchQueryType) { - return request({ - url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function deptDetailApi(data: object) { - return request({ - url: `${prefix}organize/detail`, - method: 'post', - data, - }) -} -// 导出 -export function exportApi(data: object) { - return request({ - url: `${prefix}organize/listExport`, - method: 'post', - data, - responseType: 'blob', - }) -} -// 更新 -export function updateApi(data: object) { - return request({ - url: `${prefix}organize/update`, - method: 'post', - data, - }) -} -// 获取标准装置列表 -export function standardlistPageApi(data: any) { - return request({ - url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 获取父级组织 -export function getpDeptApi(data: object) { - return request({ - url: '/meter/organize/deptInfo', - method: 'post', - data, - }) -} - -// 获取父级组织 -export function getOrganizeList(data: object) { - return request({ - url: '/meter/organize/list', - method: 'post', - data, - }) -} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts deleted file mode 100644 index 50cf032..0000000 --- a/src/api/measure/person.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量人员相关接口api -import request from '../index' -import type { StaffListType } from '@/views/measure/person/person-interface' -// 计量人员列表 -export function getStaffList(data: StaffListType) { - return request({ - url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 计量人员列表-不分页 -export function getStaffListAll(data: { deptId: string; name: string }) { - return request({ - url: '/staff/getUserList', - method: 'post', - data, - }) -} -// 人员详细信息 -export function getStaffDetail(data: object) { - return request({ - url: '/staff/selectStaffInfo', - method: 'post', - data, - }) -} -// 删除人员 -export function getStaffDelete(data: object) { - return request({ - url: '/staff/deleteStaff', - method: 'post', - data, - }) -} -// 新增人员 -export function getStaffAdd(data: object) { - return request({ - url: '/staff/addStaffInfo', - method: 'post', - data, - }) -} -// 编辑人员 -export function getStaffupdate(data: object) { - return request({ - url: '/staff/updateStaffInfo', - method: 'post', - data, - }) -} -// 列表导出 -export function exportList(data: object) { - return request({ - url: '/staff/exportStaffList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 导入计量人员 -export function uploadList(data: FormData) { - return request({ - url: '/staff/batchImportStaff', - method: 'post', - data, - }) -} -// 证书记录列表 -export function getCertificateList(data: StaffListType) { - return request({ - url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 证书记录导出 -export function CertificateListList(data: object) { - return request({ - url: '/certificate/exportCertificateList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 证书记录新增 -export function addCertificateList(data: object) { - return request({ - url: '/certificate/addStaffCertificate', - method: 'post', - data, - }) -} -// 获取证书记录详情 -export function getCertificateDetail(data: object) { - return request({ - url: '/certificate/queryStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录更新 -export function getCertificateUpdate(data: object) { - return request({ - url: '/certificate/updateStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录导入 -export function getCertificateUpload(data: FormData) { - return request({ - url: '/certificate/batchImportCertificate', - method: 'post', - data, - }) -} -// 证书过期提醒 -export function getCertificateRemind(data: object) { - return request({ - url: '/certificate/expirationReminder', - method: 'post', - data, - }) -} -// 证书记录删除 -export function getCertificateRemove(data: object) { - return request({ - url: '/certificate/deleteCertificate', - method: 'post', - data, - }) -} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts deleted file mode 100644 index b30ddc9..0000000 --- a/src/api/measure/plan.ts +++ /dev/null @@ -1,165 +0,0 @@ -/** - * 培训计划请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 导出培训计录列表 -export function exportLogList(data: object) { - return request({ - url: `${prefix}/train/log/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 导出培训计划列表 -export function exportPlanList(data: object) { - return request({ - url: `${prefix}/train/plan/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} -// 列表查询 -export function getPlanList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 审批列表查询 -export function getapprovalList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 培训计划审批删除 -export function getApprovalDelete(data: object) { - return request({ - url: `${prefix}/train/plan/approval/operate/delete`, - method: 'post', - data, - }) -} -// 主管部门 -export function getDeptTree(params: object) { - return request({ - url: '/sys/dept/tree', - method: 'get', - params, - }) -} - -// 培训计划保存 -export function getListSave(data: object) { - return request({ - url: `${prefix}/train/plan/save`, - method: 'post', - data, - }) -} -// 培训计划保存后的提交 -export function getListSubmit(data: object) { - return request({ - url: `${prefix}/train/plan/submit`, - method: 'post', - data, - }) -} - -// 培训计划详情 -export function getListDetail(data: object) { - return request({ - url: `${prefix}/train/plan/detail`, - method: 'post', - data, - }) -} -// 培训计划更新 -export function getListUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/update`, - method: 'post', - data, - }) -} - -// 未通过-驳回编辑 -export function getListFailUpdate(data: object) { - return request({ - url: `${prefix}/train/failUpdate`, - method: 'post', - data, - }) -} - -// 草稿箱-编辑 -export function getListDraftUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/draftUpdate`, - method: 'post', - data, - }) -} - -// 培训计划删除 -export function getListDelete(data: object) { - return request({ - url: `${prefix}/train/plan/delete`, - method: 'post', - data, - }) -} - -// 培训记录列表 -export function getLogList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 列表编号查询 -export function getPlanIdList(data: object) { - return request({ - url: `${prefix}/train/plan/list`, - method: 'post', - data, - }) -} - -// 培训记录新建 -export function getListLogAdd(data: object) { - return request({ - url: `${prefix}/train/log/add`, - method: 'post', - data, - }) -} - -// 培训记录修改 -export function getListLogupdate(data: object) { - return request({ - url: `${prefix}/train/log/update`, - method: 'post', - data, - }) -} - -// 培训记录详情 -export function getListLogDetail(data: object) { - return request({ - url: `${prefix}/train/log/detail`, - method: 'post', - data, - }) -} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts deleted file mode 100644 index 1c3ae09..0000000 --- a/src/api/measure/source.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 提交数据 -export function sourceSubmit(data: object) { - return request({ - url: '/meter/supplier/submit', - method: 'post', - data, - }) -} -// 保存至草稿箱 -export function sourceSave(data: object) { - return request({ - url: `${prefix}/supplier/save`, - method: 'post', - data, - }) -} -// 更新草稿箱文件 -export function sourceDraftUpdate(data: object) { - return request({ - url: `${prefix}/supplier/draftUpdate`, - method: 'post', - data, - }) -} -// 驳回后编辑接口 -export function updateSourceApproval(data: object) { - return request({ - url: '/meter/supplier/failUpdate', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/views/data/1 b/src/views/data/1 deleted file mode 100644 index e69de29..0000000 --- a/src/views/data/1 +++ /dev/null diff --git a/src/views/data/device/index.vue b/src/views/data/device/index.vue index 61d58cd..3a1cca7 100644 --- a/src/views/data/device/index.vue +++ b/src/views/data/device/index.vue @@ -1,89 +1,98 @@ + + + + diff --git a/src/views/data/electricity/index.vue b/src/views/data/electricity/index.vue index db0efa4..01525f3 100644 --- a/src/views/data/electricity/index.vue +++ b/src/views/data/electricity/index.vue @@ -5,19 +5,19 @@ import tab from '@/views/data/collect/tab.vue' const tablistData = ref([ { - id: '1', + id: '3', title: '配电网', }, { - id: '2', + id: '0', title: '分布式光伏', }, { - id: '3', + id: '1', title: '楼宇', }, { - id: '4', + id: '2', title: '电动汽车及储能', }, ]) diff --git a/src/views/data/electricity/network.vue b/src/views/data/electricity/network.vue index b1da8b5..ccea8ee 100644 --- a/src/views/data/electricity/network.vue +++ b/src/views/data/electricity/network.vue @@ -1,5 +1,8 @@ + + + + diff --git a/src/views/data/electricity/page.vue b/src/views/data/electricity/page.vue index dd7aab8..aff3ce4 100644 --- a/src/views/data/electricity/page.vue +++ b/src/views/data/electricity/page.vue @@ -1,5 +1,8 @@ + + + + diff --git a/src/views/decision/index.vue b/src/views/decision/index.vue index 0b610fe..728f4db 100644 --- a/src/views/decision/index.vue +++ b/src/views/decision/index.vue @@ -1,3 +1,7 @@ + + diff --git a/src/views/evaluate/index.vue b/src/views/evaluate/index.vue index 4f5b661..61e6a5f 100644 --- a/src/views/evaluate/index.vue +++ b/src/views/evaluate/index.vue @@ -1,3 +1,7 @@ + + diff --git a/src/views/evaluate/page.vue b/src/views/evaluate/page.vue new file mode 100644 index 0000000..d98573e --- /dev/null +++ b/src/views/evaluate/page.vue @@ -0,0 +1,13 @@ + + diff --git a/src/views/footprint/index.vue b/src/views/footprint/index.vue index 4f5b661..61e6a5f 100644 --- a/src/views/footprint/index.vue +++ b/src/views/footprint/index.vue @@ -1,3 +1,7 @@ + + diff --git a/public/conditions.json b/public/conditions.json deleted file mode 100644 index b7629ed..0000000 --- a/public/conditions.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "code": "200", - "msg": "操作成功", - "data": [ - // { - // "columnId": "1090", - // "showType": "1", - // "showName": "预计采购总费用", - // "columnName": "planProcurementTotalMoney", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // }, - // { - // "columnId": "1092", - // "showType": "3", - // "showName": "采购类型", - // "columnName": "procurementType", - // "columnType": "String", - // "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - // }, - // { - // "columnId": "1093", - // "showType": "1", - // "showName": "园区面积", - // "columnName": "parkArea", - // "columnType": "Double", - // "fixedDownBoxValue": "" - // } - ] -} diff --git "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 58920ac..0000000 --- "a/public/conditions\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,34 +0,0 @@ -export default { - "code": "200", - "msg": "操作成功", - "data": [ - { - //条件id columnId == 0 为发起人 - "columnId": "1090", - //columnType == "String" && showType == "3"为多选 columnType == "Double"为区间 - "showType": "1", - "showName": "预计采购总费用", - //columnName 条件自定义字段 - "columnName": "planProcurementTotalMoney", - "columnType": "Double", - //fixedDownBoxValue 匹配 columnType == "String" && showType == "3"时子选项内容 - "fixedDownBoxValue": "" - }, - { - "columnId": "1092", - "showType": "3", - "showName": "采购类型", - "columnName": "procurementType", - "columnType": "String", - "fixedDownBoxValue": "{\"1\":{\"key\":\"1\",\"value\":\"新开园区集中采购\",\"column\":\"\",\"type\":\"1\"}}" - }, - { - "columnId": "1093", - "showType": "1", - "showName": "园区面积", - "columnName": "parkArea", - "columnType": "Double", - "fixedDownBoxValue": "" - } - ] -} \ No newline at end of file diff --git a/public/data.json b/public/data.json deleted file mode 100644 index d2088c9..0000000 --- a/public/data.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "code": "200", - "msg": "success", - "data": { - "tableId": 1, - "workFlowDef": { - "name": "合同审批" - }, - "directorMaxLevel": 4, - "flowPermission": [], - "nodeConfig": { - "nodeName": "发起人", - "type": 0, - "priorityLevel": "", - "settype": "", - "selectMode": "", - "selectRange": "", - "directorLevel": "", - "examineMode": "", - "noHanderAction": "", - "examineEndDirectorLevel": "", - "ccSelfSelectFlag": "", - "conditionList": [], - "nodeUserList": [], - - "conditionNodes": [] - } - } -} diff --git "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" "b/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" deleted file mode 100644 index 633c7a9..0000000 --- "a/public/data\345\255\227\346\256\265\346\263\250\351\207\212.js" +++ /dev/null @@ -1,141 +0,0 @@ -export default { - "_value": { - "formId":"",//表单id - "formName":"",//表单名称 - "formDesc":"",//表单描述 - "tableId": 1,//审批id - "workFlowDef": { - "id":"",//流程定义id,更新流程定义使用(更新必传) - "directorId":"",//传入用户id,代表流程负责人 - "name": "合同审批",//审批名称 - }, - "directorMaxLevel": 4,//审批主管最大层级 - "flowPermission": [],//发起人 - "decisionItem": 1, //1同意驳回拒绝、2同意驳回、3拒绝 - "nodeConfig": { - "nodeName": "发起人",//节点名称 - "type": 0,// 0 发起人 1审批 2抄送 3条件 4路由 - "priorityLevel": "",// 条件优先级 - "settype": "",// 审批人设置 1指定成员 2主管 4发起人自选 5发起人自己 7连续多级主管 - "selectMode": "", //审批人数 1选一个人 2选多个人 - "selectRange": "", //选择范围 1.全公司 2指定成员 2指定角色 - "directorLevel": "", //审批终点 最高层主管数 - "examineMode": "", //多人审批时采用的审批方式 1依次审批 2会签 3或签 - "noHanderAction": "",//审批人为空时 1自动审批通过/不允许发起 2转交给审核管理员 - "examineEndDirectorLevel": "", //审批终点 第n层主管 - "ccSelfSelectFlag": "", //允许发起人自选抄送人 - "conditionList": [], //当审批单同时满足以下条件时进入此流程 - "nodeUserList": [], //操作人 - "childNode": { - "nodeName": "审核人", - "error": false, //当前审批是否通过校验 - "type": 1, - "settype": 2, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 0, - "childNode": { - "nodeName": "路由", - "type": 4, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": { - "nodeName": "抄送人", - "type": 2, - "ccSelfSelectFlag": 1, - "childNode": null, - "nodeUserList": [], - "error": false - }, - "conditionNodes": [{ //条件节点 - "nodeName": "条件1", - "type": 3, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [{ //当前条件 - "columnId": 0, //发起人 - "type": 1, //1 发起人 2其他 - "optType": "", //["", "<", ">", "≤", "=", "≥"][optType] - "zdy1": "",//左侧自定义内容 - "zdy2": "",//右侧自定义内容 - "opt1": "",//左侧符号 < ≤ - "opt2": "",//右侧符号 < ≤ - "columnDbname": "",//条件字段名称 - "columnType": "",//条件字段类型 - "showType": "",//3多选 其他 - "showName": "",//展示名 - "fixedDownBoxValue": ""//多选数组 - }], - "nodeUserList": [{ - "targetId": 85, - "type": 1, - "name": "天旭" - }], - "childNode": { - "nodeName": "审核人", - "type": 1, - "priorityLevel": 1, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [{ - "targetId": 2515744, - "type": 1, - "name": "哈哈哈哈" - }], - "childNode": null, - "conditionNodes": [], - "error": false - }, - "conditionNodes": [], - "error": false - }, { - "nodeName": "条件2", - "type": 3, - "priorityLevel": 2, - "settype": 1, - "selectMode": 0, - "selectRange": 0, - "directorLevel": 1, - "examineMode": 1, - "noHanderAction": 2, - "examineEndDirectorLevel": 1, - "ccSelfSelectFlag": 1, - "conditionList": [], - "nodeUserList": [], - "childNode": null, - "conditionNodes": [], - "error": false - }] - }, - "nodeUserList": [] - }, - "conditionNodes": [] - } - } -} diff --git a/public/myData.json b/public/myData.json deleted file mode 100644 index c594e52..0000000 --- a/public/myData.json +++ /dev/null @@ -1,64 +0,0 @@ -export default { -     "_value": { -         "formId": "555", //表单id -         "formName": "555", //表单名称 -         "formDesc": "555", //表单描述 -         "formContent": "555", //表单内容 -         "tableId": 1, -         "workFlowDef": { -             "flowKey": "", //流程定义key,更新流程定义使用(更新必传) -             "directorId": "1", //传入用户id,代表流程负责人 -             "name": "1228测试" -         }, -         "directorMaxLevel": 4, -         "flowPermission": [], -         "nodeConfig": { -             "nodeName": "发起人", -             "type": 0, -             "priorityLevel": "", -             "settype": "", -             "selectMode": "", -             "selectRange": "", -             "directorLevel": "", -             "examineMode": "", -             "noHanderAction": "", -             "examineEndDirectorLevel": "", -             "ccSelfSelectFlag": "", -             "conditionList": [], -             "nodeUserList": [], -             "childNode": { -                 "nodeName": "审核人", -                 "error": false, -                 "type": 1, -                 "settype": 1, -                 "selectMode": 0, -                 "selectRange": 0, -                 "directorLevel": 1, -                 "examineMode": "3", -                 "noHanderAction": 2, -                 "examineEndDirectorLevel": 0, -                 "childNode": { -                     "nodeName": "审核人", -                     "error": false, -                     "type": 1, -                     "settype": 5, -                     "selectMode": 0, -                     "selectRange": 0, -                     "directorLevel": 1, -                     "examineMode": "", -                     "noHanderAction": 2, -                     "examineEndDirectorLevel": 0, -                     "childNode": null, -                     "nodeUserList": [] -                 }, -                 "nodeUserList": [ -                     { -                         "type": 1, -                         "targetId": "1", -                         "name": "雅楠" -                     }, -                     { -                         "type": 1, -                         "targetId": "2", -                         "nam -} diff --git a/src/api/api/index.ts b/src/api/api/index.ts new file mode 100644 index 0000000..0ec0f43 --- /dev/null +++ b/src/api/api/index.ts @@ -0,0 +1,111 @@ +import request from '@/api/index' +enum api { + // 配电网列表 + electricity = 'carbonElectricity/listPage', + electricityAdd = 'carbonElectricity/add', + electricityUpdate = 'carbonElectricity/update', + electricityDelete = 'carbonElectricity/delete', + // 光伏/楼宇/电动车管理列表 + monitorStation = '/monitorStation/listPage', + monitorStationAdd = '/monitorStation/add', + monitorStationUpdate = '/monitorStation/update', + monitorStationdDelete = '/monitorStation/delete', + // 设备管理列表 + device = '/carbonDevice/listPage', + deviceAdd = '/carbonDevice/add', + deviceUpdate = '/carbonDevice/update', + deviceDelete = '/carbonDevice/delete', +} +// 配电网列表 +export function getElectricityList(params: any) { + return request({ + url: `${api.electricity}`, + method: 'get', + params, + }) +} +// 添加 配电网 +export function addElectricityList(data: any) { + return request({ + url: `${api.electricityAdd}`, + method: 'post', + data, + }) +} +// 修改 配电网 +export function updateElectricityList(data: any) { + return request({ + url: `${api.electricityUpdate}`, + method: 'post', + data, + }) +} +// 删除 配电网 +export function deleteElectricityList(id: any) { + return request({ + url: `${api.electricityDelete}?id=${id}`, + method: 'post', + }) +} +// 光伏/楼宇/电动车管理列表 +export function getMonitorStation(params: any) { + return request({ + url: `${api.monitorStation}`, + method: 'get', + params, + }) +} +// 添加 光伏/楼宇/电动车管 +export function addMonitorStation(data: any) { + return request({ + url: `${api.monitorStationAdd}`, + method: 'post', + data, + }) +} +// 修改 光伏/楼宇/电动车管 +export function updateMonitorStation(data: any) { + return request({ + url: `${api.monitorStationUpdate}`, + method: 'post', + data, + }) +} +// 删除 光伏/楼宇/电动车管 +export function deleteMonitorStation(id: any) { + return request({ + url: `${api.monitorStationdDelete}?id=${id}`, + method: 'post', + }) +} +// 设备管理列表 +export function getDeviceList(params: any) { + return request({ + url: `${api.device}`, + method: 'get', + params, + }) +} +// 添加 设备管理 +export function addDeviceList(data: any) { + return request({ + url: `${api.deviceAdd}`, + method: 'post', + data, + }) +} +// 修改 设备管理 +export function updateDeviceList(data: any) { + return request({ + url: `${api.deviceUpdate}`, + method: 'post', + data, + }) +} +// 删除 设备管理 +export function deleteDeviceList(id: any) { + return request({ + url: `${api.deviceDelete}?id=${id}`, + method: 'post', + }) +} diff --git a/src/api/approval.ts b/src/api/approval.ts deleted file mode 100644 index 68d4e20..0000000 --- a/src/api/approval.ts +++ /dev/null @@ -1,32 +0,0 @@ -// 审批接口 -import request from './index' -const approvalType: { [key: string]: string } = { - agree: '/approval/operate/agree', - refuse: '/approval/operate/refuse', - reject: '/approval/operate/reject', -} -// 审批操作接口 -export function submitApproval(type: string, data: { processId?: string; taskId?: string; comments: string }) { - return request({ - url: approvalType[type], - method: 'post', - data, - }) -} - -// 取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 查询审批记录 -export function fetchApproval(processId: string) { - return request({ - url: '/approval/operate/approvalLog', - method: 'get', - params: { processId }, - }) -} diff --git a/src/api/business/cert.ts b/src/api/business/cert.ts deleted file mode 100644 index 9de249a..0000000 --- a/src/api/business/cert.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 证书打印 -*/ -import request from '../index' -import type { ICertApprove, ICertExport, ICertInitiate, ICertPrintSearch } from '@/views/business/schedule/certPrint/cert-interface' - -// 证书打印列表 -export function getCertList(data: ICertPrintSearch) { - return request({ - url: `/business/certificatePrint/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 发起申请 -export function submitApproval(data: ICertInitiate) { - return request({ - url: '/business/certificatePrint/submitApproval', - method: 'post', - data, - }) -} - -// 同意 -export function agreeCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/agree', - method: 'post', - data, - }) -} - -// 拒绝 -export function refuseCert(data: ICertApprove) { - return request({ - url: '/business/certificatePrint/refuse', - method: 'post', - data, - }) -} - -// 证书导出 -export function exportCert(data: ICertExport) { - return request({ - url: '/business/certificatePrint/export', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/environmentRecord.ts b/src/api/business/lab/environmentRecord.ts deleted file mode 100644 index b67ab35..0000000 --- a/src/api/business/lab/environmentRecord.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 环境记录单接口 -*/ -import request from '../../index' -import type { IEnvironmentalDetail, IListQuery } from '@/views/business/lab/environmental/environmentalList_interface' -const prefix = '/business/environmentRecord' - -// 环境记录单列表查询-分页 -export function getEnvironmentRecordList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 环境记录单删除 -export function getEnvironmentRecordDelete(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增环境记录单 -export function getEnvironmentRecordAdd(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 环境监测记录单-详情 -export function getEnvironmentRecordDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 环境监测记录单-编辑 -export function getEnvironmentRecordUpdate(data: IEnvironmentalDetail) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportEnvironmentRecord(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/business/lab/primitiveLogList.ts b/src/api/business/lab/primitiveLogList.ts deleted file mode 100644 index f8143b7..0000000 --- a/src/api/business/lab/primitiveLogList.ts +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 原始记录接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/primitiveLog/primitiveLogList' -const prefix = '/business/originalRecord' - -// 列表查询 -export function getPrimitiveLogList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportPrimitiveLogList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deletePrimitiveLogList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新建 -export function addPrimitiveLog(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updatePrimitiveLog(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 获取详情 -export function getPrimitiveLogDetail(data: { id: string }) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/lab/report.ts b/src/api/business/lab/report.ts deleted file mode 100644 index a027580..0000000 --- a/src/api/business/lab/report.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 证书报告接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/lab/reportOnCredentials/report_interface' -const prefix = '/business/certificateReport' - -// 列表查询 -export function getReportList(data: IListQuery) { - return request({ - url: `${prefix}/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReportList(data: Omit) { - return request({ - url: `${prefix}/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除 -export function deleteReportList(data: { id: string }) { - return request({ - url: `${prefix}/batchDelete`, - method: 'post', - data, - }) -} - -// 提交 -export function submitReportList(data: { id: string; formId: string }) { - return request({ - url: `${prefix}/submit`, - method: 'post', - data, - }) -} - -// // 新建 -// export function addPrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/add`, -// method: 'post', -// data, -// }) -// } - -// // 编辑 -// export function updatePrimitiveLog(data: any) { -// return request({ -// url: `${prefix}/update`, -// method: 'post', -// data, -// }) -// } - -// // 获取详情 -// export function getPrimitiveLogDetail(data: { id: string }) { -// return request({ -// url: `${prefix}/detail`, -// method: 'post', -// data, -// }) -// } - diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts deleted file mode 100644 index b21f20d..0000000 --- a/src/api/business/schedule/interchangeList.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * 设备收发接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/interchange/interchange_interface' - -// 列表查询 -export function getInterChangeList(data: IListQuery) { - return request({ - url: `/device/dispatch/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportInterchangeList(data: Omit) { - return request({ - url: '/device/dispatch/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 更改状态-回退、收入、归还、无需检测 按钮 -export function interchangeStatusChange(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/status/change', - method: 'post', - data, - }) -} - -// 根据样品id催办 -export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/rushDoProcess', - method: 'post', - data, - }) -} - -// 根据样品id终止、完成 -export function interchangeListTerminate(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { - return request({ - url: '/device/dispatch/terminate', - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/interchangeReceipt.ts b/src/api/business/schedule/interchangeReceipt.ts deleted file mode 100644 index 574d62e..0000000 --- a/src/api/business/schedule/interchangeReceipt.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 设备交接单 -*/ -import request from '../../index' -import type { IListQuery, ISampleListQuery } from '@/views/business/schedule/interchangeReceipt/receiptList-interface' -const prefix = '/business/interchange' - -// 列表查询 -export function getReceiptList(data: IListQuery) { - return request({ - url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportReceiptList(data: Omit) { - return request({ - url: `${prefix}/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 取消 -export function deleteReceiptList(data: { id: string }) { - return request({ - url: `${prefix}/delete`, - method: 'post', - data, - }) -} - -// 新增 -export function addInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateInterchangeReceipt(data: any) { - return request({ - url: `${prefix}/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getInterchangeReceiptDetail(data: any) { - return request({ - url: `${prefix}/detail`, - method: 'post', - data, - }) -} - -// 关联委托书的且是已收入的样品的列表 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sampleList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/schedule/order.ts b/src/api/business/schedule/order.ts deleted file mode 100644 index b10cf2c..0000000 --- a/src/api/business/schedule/order.ts +++ /dev/null @@ -1,71 +0,0 @@ -/** - * 委托书接口 -*/ -import request from '../../index' -import type { IListQuery } from '@/views/business/schedule/order/orderList_interface' -const prefix = '/business' - -// 列表查询 -export function getOrderList(data: IListQuery) { - return request({ - url: `${prefix}/order/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportOrderList(data: Omit) { - return request({ - url: `${prefix}/order/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 接收 -export function receiveOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/receive`, - method: 'post', - data, - }) -} - -// 退回 -export function backOrder(data: { id: string }) { - return request({ - url: `${prefix}/order/back`, - method: 'post', - data, - }) -} - -// 新增 -export function addOrder(data: any) { - return request({ - url: `${prefix}/order/add`, - method: 'post', - data, - }) -} - -// 编辑 -export function updateOrder(data: any) { - return request({ - url: `${prefix}/order/update`, - method: 'post', - data, - }) -} - -// 详情 -export function getOrderDetail(data: any) { - return request({ - url: `${prefix}/order/detail`, - method: 'post', - data, - }) -} - diff --git a/src/api/business/task.ts b/src/api/business/task.ts deleted file mode 100644 index 9c21a82..0000000 --- a/src/api/business/task.ts +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 任务分发,实验室检测 -*/ -import request from '../index' -import type { ISendBack, ITaskQuery } from '@/views/business/schedule/task/task-interface' -const prefix = '/meter' - -// 任务分发列表查询 -export function getTaskList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/handOut/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 任务分发详情 -export function getTaskDetail(data: { orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/detail', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportTaskList(data: Omit) { - return request({ - url: '/business/labExecutive/handOut/listExport', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 初始化检定流程 -export function init(data: { measureContent: string; orderId: string; sampleId: string }) { - return request({ - url: '/business/labExecutive/handOut/initList', - method: 'post', - data, - }) -} - -// 收发员任务分发 -export function setMeasureProcess(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/execute', - method: 'post', - data, - }) -} - -// 实验室编辑实验室检测列表 -export function setMeasureProcessByFfy(data: { orderId: string; sampleId: string; measureProcessList: any[] }) { - return request({ - url: '/business/labExecutive/handOut/updateList', - method: 'post', - data, - }) -} - -// 退回(待检测/检测中->退回) -export function sendBackProcess(data: ISendBack) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 实验室收入样品 -export function takeInSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 检完样品-手动/批量 -export function overSample(data: { orderId: string; sampleId: string }[]) { - return request({ - url: `${prefix}/schedule/task/setSchedule`, - method: 'post', - data, - }) -} - -// 我的检测-列表 -export function getMyMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/myExecutive/list?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 部门检测-列表 -export function getDeptMeasureList(data: ITaskQuery) { - return request({ - url: `/business/labExecutive/deptExecutive/List?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts deleted file mode 100644 index c581a4e..0000000 --- a/src/api/customer/advice.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 客户关系-投诉建议请求接口 - */ -import request from '../index' -import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' - -// 列表查询 -export function getAdviceList(data: IAdviceQuery) { - return request({ - url: `/customer/advice/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteAdvice(data: { id: string }) { - return request({ - url: '/customer/advice/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getAdviceDetail(data: { id: string }) { - return request({ - url: '/customer/advice/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addAdvice(data: object) { - return request({ - url: '/customer/advice/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateAdvice(data: object) { - return request({ - url: '/customer/advice/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportAdviceList(data: Omit) { - return request({ - url: '/customer/advice/export', - method: 'post', - responseType: 'blob', - data, - }) -} - diff --git a/src/api/customer/bench.ts b/src/api/customer/bench.ts deleted file mode 100644 index ca7d608..0000000 --- a/src/api/customer/bench.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 工作台 - */ -import request from '../index' -// import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' -const prefix = '/customer' - -// 样品新增趋势 -export function getSampleAddData() { - return request({ - url: `${prefix}/workbench/sample/increaseTrend`, - method: 'post', - }) -} - -// 样品到期趋势 -export function getSampleExpireData() { - return request({ - url: `${prefix}/workbench/sample/expireTrend`, - method: 'post', - }) -} - -// 客户新增趋势 -export function getCustomerExpireData() { - return request({ - url: `${prefix}/workbench/increaseTrend`, - method: 'post', - }) -} - -// 优质客户名单 -export function getHighQualityCustomerList() { - return request({ - url: `${prefix}/workbench/excellentList`, - method: 'post', - }) -} diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts deleted file mode 100644 index 724da6e..0000000 --- a/src/api/customer/customer.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * 客户管理请求接口 - */ -import request from '../index' -import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' - -// 列表查询 -export function getCustomerList(data: ICustomerQuery) { - return request({ - url: `/customer/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 列表查询 -export function getCustomerListSimple(data: ICustomerQuery) { - return request({ - url: '/customer/listPage', - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteCustomer(data: { id: string }) { - return request({ - url: '/customer/delete', - method: 'post', - data, - }) -} - -// 查看详情 -export function getCustomerDetail(data: { id: string }) { - return request({ - url: '/customer/detail', - method: 'post', - data, - }) -} - -// 新增数据 -export function addCustomer(data: object) { - return request({ - url: '/customer/add', - method: 'post', - data, - }) -} -// 编辑数据 -export function updateCustomer(data: object) { - return request({ - url: '/customer/update', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportCustomerList(data: Omit) { - return request({ - url: '/customer/export', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 根据客户查样品id -export function getSampleByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查合同记录 -export function getContractByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 根据客户查检定记录 -export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { - return request({ - url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts deleted file mode 100644 index 21a9c9e..0000000 --- a/src/api/customer/sampleList.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 样品列表接口 - */ -import request from '../index' -import type { ISampleListQuery } from '@/views/customer/sample/list/sample_list_interface' -const prefix = '/customer' - -// 列表查询 -export function getSampleList(data: ISampleListQuery) { - return request({ - url: `${prefix}/sample/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function deleteSample(data: { id: string }) { - return request({ - url: `${prefix}/sample/delete`, - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSapmleList(data: Omit) { - return request({ - url: `${prefix}/sample/export`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 新增数据 -export function addSample(data: object) { - return request({ - url: `${prefix}/sample/add`, - method: 'post', - data, - }) -} -// 编辑数据 -export function updateSample(data: object) { - return request({ - url: `${prefix}/sample/update`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSapmleDetail(data: { id: string }) { - return request({ - url: `${prefix}/sample/detail`, - method: 'post', - data, - }) -} - -// 查询检定记录 -export function getMesureRecords(data: { id: string }) { - return request({ - url: `${prefix}/sample/mesureRecordsBySampleId`, - method: 'post', - data, - }) -} - -// 查询检定证书 -export function getCertification(data: { id: string }) { - return request({ - url: `${prefix}/sample/certificationBySampleId`, - method: 'post', - data, - }) -} diff --git a/src/api/device/bench.ts b/src/api/device/bench.ts deleted file mode 100644 index f4792d1..0000000 --- a/src/api/device/bench.ts +++ /dev/null @@ -1,44 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -const prefix = '/equipment/workbench' - -// 设备检定趋势 -export function getMeasureTrend() { - return request({ - url: `${prefix}/measureTrend`, - method: 'post', - }) -} - -// 装置检定趋势 -export function getStandardTrend() { - return request({ - url: `${prefix}/standardTrend`, - method: 'post', - }) -} - -// 本月统计数据 -export function getMonthlyStatistics() { - return request({ - url: `${prefix}/dataStatistics`, - method: 'post', - }) -} - -// 我的设备 -export function getMyEquipment() { - return request({ - url: `${prefix}/myselfEquipment`, - method: 'post', - }) -} - -// 设备台账检定提醒 -export function getStandingBookRemind() { - return request({ - url: `${prefix}/remindListPage`, - method: 'post', - }) -} - diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts deleted file mode 100644 index 5bd4111..0000000 --- a/src/api/device/borrow.ts +++ /dev/null @@ -1,100 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -import type{ IlistQuery } from '@/views/device/borrow/borrow' - -// 设备借用申请列表 -export function getApplyList(data: IlistQuery) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 设备借用申请新建 -export function addApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用取消审批 -export function cancelApproval(data: { processInstanceId?: string; comments: string }) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 设备借用申请详情 -export function detailApply(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备借用申请编辑 -export function editApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用驳回后编辑 -export function failUpdate(data: object) { - return request({ - url: '/equipmentApply/failUpdate', - method: 'post', - data, - }) -} -// 设备借用申请删除 -export function deleteApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 状态管理提交 -export function submitApply(data: object) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用设备-借用 -export function borrowApply(data: object) { - return request({ - url: '/equipmentApply/borrowEquipmentApply', - method: 'post', - data, - }) -} - -// 设备借用-归还 -export function returnApply(data: object) { - return request({ - url: '/equipmentApply/returnEquipmentApply', - method: 'post', - data, - }) -} -// 设备借用申请导出 -export function exportApply(data: IlistQuery) { - return request({ - url: '/equipmentApply/exportList', - method: 'post', - data, - responseType: 'blob', - }) -} diff --git a/src/api/device/checkList.ts b/src/api/device/checkList.ts deleted file mode 100644 index 6afd53a..0000000 --- a/src/api/device/checkList.ts +++ /dev/null @@ -1,155 +0,0 @@ -// 设备借用相关接口api -import request from '../index' -// 设备管理点检查列表 -export function getcheckInfoList(data: { limit: number; offset: number }) { - return request({ - url: `/check/checkInfoList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getDeleteCheckInfo(data: object) { - return request({ - url: '/check/deleteCheckInfo', - method: 'post', - data, - }) -} - -// 数据导出 -export function getExportCheckInfoList(data: object) { - return request({ - url: '/check/exportCheckInfoList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 获取详情数据 -export function getselectCheckInfo(data: object) { - return request({ - url: '/check/selectCheckInfo', - method: 'post', - data, - }) -} -// 获取详情数据 -export function getAddCheckInfo(data: object) { - return request({ - url: '/check/addCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单列表 -export function getacceptanceCheckList(data: { limit: number; offset: number }) { - return request({ - url: `/acceptanceCheck/acceptanceCheckList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请新建 -export function addEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/addEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请详情信息 -export function equipmentApplyInfo(data: object) { - return request({ - url: '/equipmentApply/equipmentApplyInfo', - method: 'post', - data, - }) -} - -// 设备维护列表 -export function getEquipmentApplyList(data: { limit: number; offset: number }) { - return request({ - url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 设备检修申请提交 -export function submitEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请删除 -export function deleteEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/deleteEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修申请编辑 -export function updateEquipmentApply(data: object) { - return request({ - url: '/equipmentApply/updateEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单保存 -export function addAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/addAcceptanceCheck', - method: 'post', - data, - }) -} - -// 设备检修保养验收单提交 -export function submitAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/submitEquipmentApply', - method: 'post', - data, - }) -} - -// 设备检修保养验收单编辑 -export function updateAcceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/updateAcceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单详情信息 -export function acceptanceCheckInfo(data: object) { - return request({ - url: '/acceptanceCheck/acceptanceCheckInfo', - method: 'post', - data, - }) -} - -// 设备检修保养验收单审批删除 -export function deleteAcceptanceCheck(data: object) { - return request({ - url: '/acceptanceCheck/deleteEquipmentApply', - method: 'post', - data, - }) -} - diff --git a/src/api/device/receive.ts b/src/api/device/receive.ts deleted file mode 100644 index da7ac90..0000000 --- a/src/api/device/receive.ts +++ /dev/null @@ -1,82 +0,0 @@ -/** - * 设备领用接口 - */ -import request from '../index' -import type{ IlistQuery } from '@/views/device/receive/receive' -const prefix = '/equipmentApply' - -/** - * ----------------------------------设备领用申请---------------------------------- - */ - -// 列表 -export function getReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} - -// 列表导出 -export function exportReceiveApplyList(data: IlistQuery) { - return request({ - url: `${prefix}/exportList`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 列表删除 -export function delReceiveApplyList(data: { id: string; taskId: string }) { - return request({ - url: `${prefix}/deleteEquipmentApply`, - method: 'post', - data, - }) -} - -// 新建--点击保存 -export function saveAddReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/addEquipmentApply`, - method: 'post', - data, - }) -} -// 新建--提交 -export function submitReceiveApplyList(data: { formId: string; id: string }) { - return request({ - url: `${prefix}/submitEquipmentApply`, - method: 'post', - data, - }) -} - -// 编辑--保存 -export function saveEditReceiveApplyList(data: { applyUnit: string; applyPerson: string; time: string ;applyDesc: string; applyType: string; equipmentList: { equipmentId: string }[] }) { - return request({ - url: `${prefix}/updateEquipmentApply`, - method: 'post', - data, - }) -} - -// 详情 -export function getReceiveApplyListDetail(data: { id: string }) { - return request({ - url: `${prefix}/equipmentApplyInfo`, - method: 'post', - data, - }) -} - -// 领用-退领 -export function updateProcessResult(data: { id: string; processResult: string }) { - return request({ - url: `${prefix}/updateProcessResult`, - method: 'post', - data, - }) -} diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts deleted file mode 100644 index 31f6b25..0000000 --- a/src/api/device/standard.ts +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 标准装置请求接口 - */ -import request from '../index' -const prefix = '/meter' -// 列表查询 -export function getStandardList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/standard/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListAdd(data: object) { - return request({ - url: `${prefix}/standard/add`, - method: 'post', - data, - }) -} -// 列表新增 -export function getStandardListDelete(data: object) { - return request({ - url: `${prefix}/standard/delete`, - method: 'post', - data, - }) -} - -// 详情信息 -export function getStandardListDetail(data: object) { - return request({ - url: `${prefix}/standard/detail`, - method: 'post', - data, - }) -} - -// 更新信息 -export function getStandardLisUpdate(data: object) { - return request({ - url: `${prefix}/standard/update`, - method: 'post', - data, - }) -} - -// 获取部门信息 -export function getUsersDept(data: { offset: number; limit: number }) { - return request({ - url: `/meter/organize/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 获取申请列表 -export function getstandardEquipmentApplyList(data: { offset: number; limit: number }) { - return request({ - url: `/standard/standardEquipmentApplyList?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getStandardLisdelete(data: object) { - return request({ - url: '/standard/deleteStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 删除申请列表信息 -export function getOperateDelete(data: object) { - return request({ - url: '/standard/approval/operate/delete', - method: 'post', - data, - }) -} - -// 新建申请列表信息 -export function getStandardLisAdd(data: object) { - return request({ - url: '/standard/addStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 获取到申请列表信息 -export function getStandardLisdetali(data: object) { - return request({ - url: '/standard/standardEquipmentApplyInfo', - method: 'post', - data, - }) -} - -// 获取到到期提醒列表 -export function getRemindListPage(data: { offset: number; limit: number }) { - return request({ - url: `/meter/standard/remindListPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 点击提醒 -export function setRemind(data: object) { - return request({ - url: '/meter/standard/remind', - method: 'post', - data, - }) -} - -// 点击提交 -export function submitStandardEquipmentApply(data: object) { - return request({ - url: '/standard/submitStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 申请编辑 -export function updateStandardEquipmentApply(data: object) { - return request({ - url: '/standard/updateStandardEquipmentApply', - method: 'post', - data, - }) -} - -// 批量添加标准装置底部计量人员 -export function setBatchAdd(data: object) { - return request({ - url: '/meter/standard/user/batchAdd', - method: 'post', - data, - }) -} - -// 标准装置-计量人员列表(分页) -export function getuserListPage(data: object) { - return request({ - url: '/meter/standard/user/listPage', - method: 'post', - data, - }) -} - -// 标准装置-删除计量人员 -export function getuserDelete(data: object) { - return request({ - url: '/meter/standard/user/delete', - method: 'post', - data, - }) -} - -// 标准装置-配套设备列表(分页) -export function getEquipmentListPage(data: object) { - return request({ - url: '/meter/standard/equipment/listPage', - method: 'post', - data, - }) -} - -// 添加标准配套设备 -export function getEquipmenteAdd(data: object) { - return request({ - url: '/meter/standard/equipment/add', - method: 'post', - data, - }) -} - -// 添加检定规程 -export function getRegulationAdd(data: object) { - return request({ - url: '/meter/standard/regulation/add', - method: 'post', - data, - }) -} - -// 标准装置-检定规程列表(分页) -export function getRegulationListPage(data: object) { - return request({ - url: '/meter/standard/regulation/listPage', - method: 'post', - data, - }) -} - -// 标准装置导出 -export function getExportExcel(data: object) { - return request({ - url: '/meter/standard/exportExcel', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 标准装置申请导出 -export function getExportList(data: object) { - return request({ - url: '/standard/exportList', - method: 'post', - responseType: 'blob', - data, - }) -} - -// 删除标准配套设备 -export function getEquipmentDelete(data: object) { - return request({ - url: '/meter/standard/equipment/delete', - method: 'post', - data, - }) -} - -// 批量删除计量人员 -export function getUserBatchDelete(data: object) { - return request({ - url: '/meter/standard/user/batchDelete', - method: 'post', - data, - }) -} - diff --git a/src/api/device/standingBook.ts b/src/api/device/standingBook.ts deleted file mode 100644 index 0f47a88..0000000 --- a/src/api/device/standingBook.ts +++ /dev/null @@ -1,79 +0,0 @@ -// 设备台账相关接口api -import request from '../index' -import type { fixedAssetsParams } from '@/views/device/standingBook/standingBook-interface' -// 固定资产列表(分页) -export function listPageApi(data: fixedAssetsParams) { - return request({ - url: `/meter/assets/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 删除固定资产 -export function assetsDeleteApi(data: object) { - return request({ - url: '/meter/assets/delete', - method: 'post', - data, - }) -} -// 固定资产详情 -export function assetsDetailApi(data: object) { - return request({ - url: '/meter/assets/detail', - method: 'post', - data, - }) -} -// 固定资产导出到excel -export function listExportApi(data: object) { - return request({ - url: '/meter/assets/exportExcel', - method: 'post', - data, - responseType: 'blob', - }) -} -// 批量导入测量设备信息 -export function listImporttApi(data: FormData) { - return request({ - url: '/meter/assets/importMeterEquipment', - method: 'post', - data, - }) -} -// 更新固定资产 -export function assetsUpdateApi(data: object) { - return request({ - url: '/meter/assets/update', - method: 'post', - data, - }) -} -// 添加固定资产 -export function assetsAddApi(data: object) { - return request({ - url: '/meter/assets/add', - method: 'post', - data, - }) -} - -// 通过设备id查询出状态变更记录 -export function queryStateChangeLogList(data: object) { - return request({ - url: '/meter/assets/queryStateChangeLogList', - method: 'post', - data, - }) -} - -// 通过设备id查询出使用记录 -export function queryUseLogList(data: object) { - return request({ - url: '/meter/assets/queryUseLogList', - method: 'post', - data, - }) -} - diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts deleted file mode 100644 index 7f9431b..0000000 --- a/src/api/device/stateManage.ts +++ /dev/null @@ -1,72 +0,0 @@ -// 状态管理相关接口api -import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' - -// 设备申请列表 -export function getStatusList(data: ISearchQuery) { - return request({ - url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 状态管理新建 -export function addStatus(data: Object) { - return request({ - url: '/meter/stateManage/addStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理编辑 -export function updateStatus(data: Object) { - return request({ - url: '/meter/stateManage/updateStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理删除 -export function deleteStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/deleteStateManageList', - method: 'post', - data, - }) -} -// 状态管理取消 -export function cancelStatus(data: Iapprove) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} -// 状态管理提交 -export function submitStatus(data: Iapprove) { - return request({ - url: '/meter/stateManage/submitStandardEquipmentApply', - method: 'post', - data, - }) -} -// 状态管理详情 -export function detailStatus(data: object) { - return request({ - url: '/meter/stateManage/selectStateManageInfo', - method: 'post', - data, - }) -} - -// 状态管理导出 -export function exportStatus(data: object) { - return request({ - url: '/meter/stateManage/exportStateManageList', - method: 'post', - responseType: 'blob', - data, - }) -} diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts deleted file mode 100644 index 768c310..0000000 --- a/src/api/measure/file.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量文件模块接口api -import request from '../index' -import type { fileSearchType } from '@/views/measure/file/file-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: fileSearchType) { - return request({ - url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function listPageDetailApi(data: object) { - return request({ - url: `${prefix}file/listPage`, - method: 'post', - data, - }) -} -// 废止 -export function updateApi(data: object) { - return request({ - url: `${prefix}file/update`, - method: 'post', - data, - }) -} -// 新建 -export function addApi(data: object) { - return request({ - url: `${prefix}file/add`, - method: 'post', - data, - }) -} -// 删除 -export function deleteApi(data: { id: string }) { - return request({ - url: `${prefix}file/delete`, - method: 'post', - data, - }) -} -// 文件上传 -// export function UploadFile(fileobj: any) { -// const param = new FormData() -// param.append('file', fileobj.file) -// return request({ -// url: 'file/uploadFile', -// method: 'post', -// headers: { 'Content-Type': 'multipart/form-data' }, -// data: param, -// }) -// } -export function UploadFile(data: FormData) { - return request({ - url: 'minio/file/upload', - method: 'post', - data, - }) -} -// 导出 -export function exportFileApi(data: object) { - return request({ - url: '/meter/file/listExport', - method: 'post', - data, - responseType: 'blob', - }) -} - -// 文件审批列表(分页) -export function approvallistPageApi(data: any) { - return request({ - url: `/meter/file/approval/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 审批详情 -export function approvallistPageDetailApi(data: object) { - return request({ - url: '/meter/file/approval/listPage', - method: 'post', - data, - }) -} - -// 取消 -export function approvalCancel(data: object) { - return request({ - url: '/approval/operate/revoke', - method: 'post', - data, - }) -} - -// 删除 -export function approvalDelete(data: object) { - return request({ - url: '/meter/file/approval/operate/delete', - method: 'post', - data, - }) -} - -// 保存草稿箱 -export function confirmDrafts(data: object) { - return request({ - url: '/meter/file/save', - method: 'post', - data, - }) -} - -// 提交 ( data 为 保存草稿箱接口的返回值) -export function submitFile(data: object) { - return request({ - url: '/meter/file/submit', - method: 'post', - data, - }) -} -// 更新草稿箱 -export function updateDrafts(data: object) { - return request({ - url: '/meter/file/draftUpdate', - method: 'post', - data, - }) -} - diff --git a/src/api/measure/measureDept.ts b/src/api/measure/measureDept.ts deleted file mode 100644 index faecb03..0000000 --- a/src/api/measure/measureDept.ts +++ /dev/null @@ -1,62 +0,0 @@ -// 计量组织管理接口api -import request from '../index' -import type { searchQueryType } from '@/views/measure/measureDept/measureDept-interface' -const prefix = 'meter/' -// 文件列表(分页) -export function listPageApi(data: searchQueryType) { - return request({ - url: `${prefix}organize/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 详情 -export function deptDetailApi(data: object) { - return request({ - url: `${prefix}organize/detail`, - method: 'post', - data, - }) -} -// 导出 -export function exportApi(data: object) { - return request({ - url: `${prefix}organize/listExport`, - method: 'post', - data, - responseType: 'blob', - }) -} -// 更新 -export function updateApi(data: object) { - return request({ - url: `${prefix}organize/update`, - method: 'post', - data, - }) -} -// 获取标准装置列表 -export function standardlistPageApi(data: any) { - return request({ - url: `/meter/standard/listPage?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 获取父级组织 -export function getpDeptApi(data: object) { - return request({ - url: '/meter/organize/deptInfo', - method: 'post', - data, - }) -} - -// 获取父级组织 -export function getOrganizeList(data: object) { - return request({ - url: '/meter/organize/list', - method: 'post', - data, - }) -} diff --git a/src/api/measure/person.ts b/src/api/measure/person.ts deleted file mode 100644 index 50cf032..0000000 --- a/src/api/measure/person.ts +++ /dev/null @@ -1,133 +0,0 @@ -// 计量人员相关接口api -import request from '../index' -import type { StaffListType } from '@/views/measure/person/person-interface' -// 计量人员列表 -export function getStaffList(data: StaffListType) { - return request({ - url: `/staff/selectStaffList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 计量人员列表-不分页 -export function getStaffListAll(data: { deptId: string; name: string }) { - return request({ - url: '/staff/getUserList', - method: 'post', - data, - }) -} -// 人员详细信息 -export function getStaffDetail(data: object) { - return request({ - url: '/staff/selectStaffInfo', - method: 'post', - data, - }) -} -// 删除人员 -export function getStaffDelete(data: object) { - return request({ - url: '/staff/deleteStaff', - method: 'post', - data, - }) -} -// 新增人员 -export function getStaffAdd(data: object) { - return request({ - url: '/staff/addStaffInfo', - method: 'post', - data, - }) -} -// 编辑人员 -export function getStaffupdate(data: object) { - return request({ - url: '/staff/updateStaffInfo', - method: 'post', - data, - }) -} -// 列表导出 -export function exportList(data: object) { - return request({ - url: '/staff/exportStaffList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 导入计量人员 -export function uploadList(data: FormData) { - return request({ - url: '/staff/batchImportStaff', - method: 'post', - data, - }) -} -// 证书记录列表 -export function getCertificateList(data: StaffListType) { - return request({ - url: `/certificate/queryCertificateList?limit=${data.limit}&offset=${data.offset}`, - method: 'post', - data, - }) -} -// 证书记录导出 -export function CertificateListList(data: object) { - return request({ - url: '/certificate/exportCertificateList', - method: 'post', - data, - responseType: 'blob', - }) -} -// 证书记录新增 -export function addCertificateList(data: object) { - return request({ - url: '/certificate/addStaffCertificate', - method: 'post', - data, - }) -} -// 获取证书记录详情 -export function getCertificateDetail(data: object) { - return request({ - url: '/certificate/queryStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录更新 -export function getCertificateUpdate(data: object) { - return request({ - url: '/certificate/updateStaffCertificateInfo', - method: 'post', - data, - }) -} -// 证书记录导入 -export function getCertificateUpload(data: FormData) { - return request({ - url: '/certificate/batchImportCertificate', - method: 'post', - data, - }) -} -// 证书过期提醒 -export function getCertificateRemind(data: object) { - return request({ - url: '/certificate/expirationReminder', - method: 'post', - data, - }) -} -// 证书记录删除 -export function getCertificateRemove(data: object) { - return request({ - url: '/certificate/deleteCertificate', - method: 'post', - data, - }) -} diff --git a/src/api/measure/plan.ts b/src/api/measure/plan.ts deleted file mode 100644 index b30ddc9..0000000 --- a/src/api/measure/plan.ts +++ /dev/null @@ -1,165 +0,0 @@ -/** - * 培训计划请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 导出培训计录列表 -export function exportLogList(data: object) { - return request({ - url: `${prefix}/train/log/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 导出培训计划列表 -export function exportPlanList(data: object) { - return request({ - url: `${prefix}/train/plan/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} -// 列表查询 -export function getPlanList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 审批列表查询 -export function getapprovalList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/plan/approval/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 培训计划审批删除 -export function getApprovalDelete(data: object) { - return request({ - url: `${prefix}/train/plan/approval/operate/delete`, - method: 'post', - data, - }) -} -// 主管部门 -export function getDeptTree(params: object) { - return request({ - url: '/sys/dept/tree', - method: 'get', - params, - }) -} - -// 培训计划保存 -export function getListSave(data: object) { - return request({ - url: `${prefix}/train/plan/save`, - method: 'post', - data, - }) -} -// 培训计划保存后的提交 -export function getListSubmit(data: object) { - return request({ - url: `${prefix}/train/plan/submit`, - method: 'post', - data, - }) -} - -// 培训计划详情 -export function getListDetail(data: object) { - return request({ - url: `${prefix}/train/plan/detail`, - method: 'post', - data, - }) -} -// 培训计划更新 -export function getListUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/update`, - method: 'post', - data, - }) -} - -// 未通过-驳回编辑 -export function getListFailUpdate(data: object) { - return request({ - url: `${prefix}/train/failUpdate`, - method: 'post', - data, - }) -} - -// 草稿箱-编辑 -export function getListDraftUpdate(data: object) { - return request({ - url: `${prefix}/train/plan/draftUpdate`, - method: 'post', - data, - }) -} - -// 培训计划删除 -export function getListDelete(data: object) { - return request({ - url: `${prefix}/train/plan/delete`, - method: 'post', - data, - }) -} - -// 培训记录列表 -export function getLogList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/train/log/listPage?offset=${data.offset}&limit=${data.limit} `, - method: 'post', - data, - }) -} - -// 列表编号查询 -export function getPlanIdList(data: object) { - return request({ - url: `${prefix}/train/plan/list`, - method: 'post', - data, - }) -} - -// 培训记录新建 -export function getListLogAdd(data: object) { - return request({ - url: `${prefix}/train/log/add`, - method: 'post', - data, - }) -} - -// 培训记录修改 -export function getListLogupdate(data: object) { - return request({ - url: `${prefix}/train/log/update`, - method: 'post', - data, - }) -} - -// 培训记录详情 -export function getListLogDetail(data: object) { - return request({ - url: `${prefix}/train/log/detail`, - method: 'post', - data, - }) -} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts deleted file mode 100644 index 1c3ae09..0000000 --- a/src/api/measure/source.ts +++ /dev/null @@ -1,92 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 提交数据 -export function sourceSubmit(data: object) { - return request({ - url: '/meter/supplier/submit', - method: 'post', - data, - }) -} -// 保存至草稿箱 -export function sourceSave(data: object) { - return request({ - url: `${prefix}/supplier/save`, - method: 'post', - data, - }) -} -// 更新草稿箱文件 -export function sourceDraftUpdate(data: object) { - return request({ - url: `${prefix}/supplier/draftUpdate`, - method: 'post', - data, - }) -} -// 驳回后编辑接口 -export function updateSourceApproval(data: object) { - return request({ - url: '/meter/supplier/failUpdate', - method: 'post', - data, - }) -} - -// 导出列表 -export function exportSourceList(data: { businessContent: string; supplierName: string; supplierNo: string; ids: string[] }) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: { offset: number; limit: number }) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/views/data/1 b/src/views/data/1 deleted file mode 100644 index e69de29..0000000 --- a/src/views/data/1 +++ /dev/null diff --git a/src/views/data/device/index.vue b/src/views/data/device/index.vue index 61d58cd..3a1cca7 100644 --- a/src/views/data/device/index.vue +++ b/src/views/data/device/index.vue @@ -1,89 +1,98 @@ + + + + diff --git a/src/views/data/electricity/index.vue b/src/views/data/electricity/index.vue index db0efa4..01525f3 100644 --- a/src/views/data/electricity/index.vue +++ b/src/views/data/electricity/index.vue @@ -5,19 +5,19 @@ import tab from '@/views/data/collect/tab.vue' const tablistData = ref([ { - id: '1', + id: '3', title: '配电网', }, { - id: '2', + id: '0', title: '分布式光伏', }, { - id: '3', + id: '1', title: '楼宇', }, { - id: '4', + id: '2', title: '电动汽车及储能', }, ]) diff --git a/src/views/data/electricity/network.vue b/src/views/data/electricity/network.vue index b1da8b5..ccea8ee 100644 --- a/src/views/data/electricity/network.vue +++ b/src/views/data/electricity/network.vue @@ -1,5 +1,8 @@ + + + + diff --git a/src/views/data/electricity/page.vue b/src/views/data/electricity/page.vue index dd7aab8..aff3ce4 100644 --- a/src/views/data/electricity/page.vue +++ b/src/views/data/electricity/page.vue @@ -1,5 +1,8 @@ + + + + diff --git a/src/views/decision/index.vue b/src/views/decision/index.vue index 0b610fe..728f4db 100644 --- a/src/views/decision/index.vue +++ b/src/views/decision/index.vue @@ -1,3 +1,7 @@ + + diff --git a/src/views/evaluate/index.vue b/src/views/evaluate/index.vue index 4f5b661..61e6a5f 100644 --- a/src/views/evaluate/index.vue +++ b/src/views/evaluate/index.vue @@ -1,3 +1,7 @@ + + diff --git a/src/views/evaluate/page.vue b/src/views/evaluate/page.vue new file mode 100644 index 0000000..d98573e --- /dev/null +++ b/src/views/evaluate/page.vue @@ -0,0 +1,13 @@ + + diff --git a/src/views/footprint/index.vue b/src/views/footprint/index.vue index 4f5b661..61e6a5f 100644 --- a/src/views/footprint/index.vue +++ b/src/views/footprint/index.vue @@ -1,3 +1,7 @@ + + diff --git a/src/views/warning/index.vue b/src/views/warning/index.vue index d9e996d..37490fd 100644 --- a/src/views/warning/index.vue +++ b/src/views/warning/index.vue @@ -1,3 +1,8 @@ + + +