| | |
| | | import Vue from 'vue'; |
| | | import { config } from '@/common/config.js' |
| | | const http = uni.$u.http |
| | | // 新增执法单 |
| | | export function orderAdd(param) { |
| | | return http.post('/enforce/order/add', param, { custom: { loading: true }}); |
| | | } |
| | | // 查询企业 |
| | | export function companyList(data){ |
| | | return http.get('/system/company/list', {params: data}, { custom: { loading: true }}); |
| | | } |
| | | |
| | | // 执法人员 /enforce/peer/list |
| | | export function enforceList(data) { |
| | | return http.get('/enforce/order/peerList', {params: data}, { custom: { loading: true }}); |
| | | } |
| | | // 申请记录 |
| | | |
| | | export function orderList(data) { |
| | | return http.get('/enforce/order/list', {params: data}, { custom: { loading: true }}); |
| | | } |
| | | // 获取执法单 详情 /enforce/order/{orderId} |
| | | export function orderDetails(data) { |
| | | return http.get(`/enforce/order/${data.orderId}`, {params: data}, { custom: { loading: true }}); |
| | | } |
| | | // 执法审批 |
| | | |
| | | export function checkLogList(data) { |
| | | return http.get(`/enforce/check/log/list`, {params: data}, { custom: { loading: true }}); |
| | | import Vue from 'vue';
|
| | | import {
|
| | | config
|
| | | } from '@/common/config.js'
|
| | | const http = uni.$u.http
|
| | | // 新增执法单
|
| | | export function orderAdd(param) {
|
| | | return http.post('/enforce/order/add', param, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 查询企业 |
| | | export function companyList(data) {
|
| | | return http.get('/system/company/list', {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | // 执法人员 /enforce/peer/list
|
| | | export function enforceList(data) {
|
| | | return http.get('/enforce/order/peerList', {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 申请记录 |
| | |
|
| | | export function orderList(data) {
|
| | | return http.get('/enforce/order/list', {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 获取执法单 详情 /enforce/order/{orderId}
|
| | | export function orderDetails(data) {
|
| | | return http.get(`/enforce/order/${data.orderId}`, {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 获取执法单 详情 /enforce/order/{orderId}
|
| | | export function orderDetailsLog(data) {
|
| | | return http.get(`/enforce/complaint/log/${data.id}`, {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 执法审批列表 |
| | |
|
| | | export function checkLogList(data) {
|
| | | return http.get(`/enforce/order/checkList`, {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 执法审批
|
| | | export function checkUpd(data) {
|
| | | return http.post(`/tool/check/checkOrder`, data, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | // 执法单节点 |
| | | export function orderNodeList(data) {
|
| | | return http.get(`/enforce/order/orderNodeList`, {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 执法审批记录 /enforce/check/log/list
|
| | | export function enforceLogList(data) {
|
| | | return http.get(`/enforce/check/log/list`, {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 审批人审批记录 /enforce/order/checkedList
|
| | |
|
| | | export function checkedList(data) {
|
| | | return http.get(`/enforce/order/checkedList`, {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 扫码接口 |
| | | export function getScanList(data) {
|
| | | return http.get(`/enforce/order/getScanList`, {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 确认执法 /enforce/order/doScanOrder/{orderId}
|
| | | export function doScanOrder(data) {
|
| | | return http.post(`/enforce/order/doScanOrder/${data}`, {}, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 带上报执法列表 /enforce/order/execute/list
|
| | | export function executeList(data) {
|
| | | return http.get(`/enforce/order/execute/list`, {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 修改执法单 /enforce/order/upd
|
| | | export function orderUpd(data) {
|
| | | return http.post(`/enforce/order/doResultOrder`, data, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | // /commonList
|
| | | export function commonList(data) {
|
| | | return http.get(`/enforce/order/commonList`, {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | // 获取科室列表
|
| | | export function officeList(data) {
|
| | | return http.get(`/system/dept/list`, {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | // 获取整改计划列表
|
| | | export function getRectifyList(data) {
|
| | | return http.get(`/enforce/order/enforceOrder/list`, {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | } |