| | |
| | | import Vue from 'vue'; |
| | | import { config } from '@/common/config.js' |
| | | const http = uni.$u.http |
| | | |
| | | // 企业详情 |
| | | export function company(id){ |
| | | return http.get('/system/company/'+id, { custom: { loading: true }}); |
| | | } |
| | | // 执法记录列表 |
| | | export function companyList(data){ |
| | | return http.get('/enforce/order/companyList', {params: data}, { custom: { loading: true }}); |
| | | } |
| | | // 执法记录详情 |
| | | export function order(id){ |
| | | return http.get('/enforce/order/'+id, { custom: { loading: true }}); |
| | | import Vue from 'vue';
|
| | | import {
|
| | | config
|
| | | } from '@/common/config.js'
|
| | | const http = uni.$u.http
|
| | |
|
| | | // 企业详情
|
| | | export function company(id) {
|
| | | return http.get('/system/company/' + id, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 执法记录列表
|
| | | export function companyList(data) {
|
| | | return http.get('/enforce/order/companyList', {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | // 综合查一次执法记录列表
|
| | | export function togetherList(data) {
|
| | | return http.get('/enforce/order/companyListNew', {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | |
|
| | | // 获取执法评价配置详情
|
| | | export function evaluate() {
|
| | | return http.get('/enforce/evaluate/detail', {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 保存执法评价
|
| | | export function saveOrder(param) {
|
| | | return http.post('/enforce/evaluate/saveOrder', param, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 发起投诉
|
| | | export function orderComplaint(param) {
|
| | | return http.post('/enforce/order/orderComplaint', param, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | // 投诉列表
|
| | | export function logList(data) {
|
| | | return http.get('/enforce/complaint/log/list', {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // complaintList
|
| | | // 投诉列表
|
| | | export function complaintList(data) {
|
| | | return http.get('/enforce/complaint/log/complaintList', {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 建议列表
|
| | | export function pleaseList(data) {
|
| | | return http.get('/enforce/complaint/log/pleaseList', {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 投诉详情
|
| | | export function complaint(id) {
|
| | | return http.get('/enforce/complaint/' + id, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // /enforce/complaint/log/
|
| | | export function complaintDetails(id) {
|
| | | return http.get('/enforce/complaint/log/' + id, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | // /enforce/order/orderComplaintNodeList 投诉单节点 |
| | |
|
| | | export function orderComplaintNodeList(data) {
|
| | | return http.get('/enforce/order/orderComplaintNodeList', {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | | // 无orderid
|
| | | export function orderNodeList(data) {
|
| | | return http.get('/enforce/complaint/log/orderNodeList', {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | // /system/company/list
|
| | | // export function getCompanyList(data){
|
| | | // return http.get('/system/company/list',{params: data}, { custom: { loading: true }});
|
| | | // }
|
| | |
|
| | | // /enforce/order/confirm/{orderId}
|
| | | export function confirmOrderId(data) {
|
| | | return http.post(`/enforce/order/confirm/${data.orderId}`, {
|
| | | params: data
|
| | | }, {
|
| | | custom: {
|
| | | loading: true
|
| | | }
|
| | | });
|
| | | } |