Commit 32b9aac4 by zhangzhen

新增19个模块的页面代码

parent c4b8612c
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
export const getList = (params,pageData) => {
let url = `/service/S_FW_SH_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_FW_SH_02`
let d = setResultData(params)
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
const setParamsDataAndDetail = (data,detail=[]) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
if(detail&&detail.length){
let data2 = detail[0];
let obj2 = {}
for (let i in data2) {
obj2[i] = data2[i]
}
let keyList2 = Object.keys(obj2);
keyList2.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
detail.forEach(item => {
paramsData.__blocks__.result.rows.push(Object.values(item));
})
}
return paramsData
}
//文件与数据绑定-文档表
export const fileBindByRecord = (data) => {
let url = `/service/S_BD_IMG_02`
let d = setResultData(data)
return http.post(url, d)
}
//查询文件
export const fileQueryByRecord = (data) => {
let url = `/service/S_BD_IMG_03`
let d = setParamsData(data)
return http.post(url, d)
}
export const getParamsList = () => {
let url = `/service/S_XT_BX_00`
return http.post(url)
}
export const getList = (params,pageData) => {
let url = `/service/S_XT_BX_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_XT_BX_02`
let d = setResultData(params)
return http.post(url, d)
}
export const getSubList = (params) => {
let url = `/service/S_XT_BX_04`
let d = setParamsData(params)
return http.post(url, d)
}
export const subOrderSave = (params,detail) => {
let url = `/service/S_XT_BX_05`
let d = setParamsDataAndDetail(params,detail)
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
//文件与数据绑定-文档表
export const fileBindByRecord = (data) => {
let url = `/service/S_BD_IMG_02`
let d = setResultData(data)
return http.post(url, d)
}
//查询文件
export const fileQueryByRecord = (data) => {
let url = `/service/S_BD_IMG_03`
let d = setParamsData(data)
return http.post(url, d)
}
export const getList = (params,pageData) => {
let url = `/service/S_XT_WB_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_XT_WB_02`
let d = setResultData(params)
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
//文件与数据绑定-文档表
export const fileBindByRecord = (data) => {
let url = `/service/S_BD_IMG_02`
let d = setResultData(data)
return http.post(url, d)
}
//查询文件
export const fileQueryByRecord = (data) => {
let url = `/service/S_BD_IMG_03`
let d = setParamsData(data)
return http.post(url, d)
}
export const getList = (params,pageData) => {
let url = `/service/S_XT_SQ_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_XT_SQ_02`
let d = setResultData(params)
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
export const getList = (params,pageData) => {
let url = `/service/S_FW_GH_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_FW_GH_02`
let d = setResultData(params)
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
export const getList = (params,pageData) => {
let url = `/service/S_FW_TS_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_FW_TS_02`
let d = setResultData(params)
return http.post(url, d)
}
......@@ -184,6 +184,18 @@ export const getImgInfoList = (data) => {
return http.post(url, d)
}
export const getImgInfoListSB = (data) => {
let url = `/service/S_XC_IMG_SB`;
let d = setParamsData(data)
return http.post(url, d)
}
//文件与数据绑定-设备表
export const fileBindByRecord2 = (data) => {
let url = `/service/S_BD_IMG_SB`
let d = setResultData(data)
return http.post(url, d)
}
//上传文件
......
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
export const getList = (params,pageData) => {
let url = `/service/S_YX_TG_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_YX_TG_02`
let d = setResultData(params)
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
export const getInitLoadData = (params) => {
let url = `/service/S_YX_DY_00`
let d = setParamsData(params)
return http.post(url, d)
}
export const getList1 = (params,pageData) => {
let url = `/service/S_YX_DY_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const getList2 = (params,pageData) => {
let url = `/service/S_YX_DY_02`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const getList3 = (params,pageData) => {
let url = `/service/S_YX_DY_03`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const getList4 = (params,pageData) => {
let url = `/service/S_YX_DY_04`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_FW_GH_02`
let d = setResultData(params)
return http.post(url, d)
}
export const orderSave1 = (params) => {
let url = `/service/S_YX_DY_05`
let d = setResultData(params)
return http.post(url, d)
}
export const orderSave2 = (params) => {
let url = `/service/S_YX_DY_06`
let d = setResultData(params)
d.__blocks__.resultA = d.__blocks__.result
return http.post(url, d)
}
export const orderSave3 = (params) => {
let url = `/service/S_YX_DY_07`
let d = setResultData(params)
d.__blocks__.resultB = d.__blocks__.result
return http.post(url, d)
}
export const orderSave4 = (params) => {
let url = `/service/S_YX_DY_08`
let d = setResultData(params)
d.__blocks__.resultC = d.__blocks__.result
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
export const getInitLoadData = (params) => {
let url = `/service/S_YX_ZY_00`
let d = setParamsData(params)
return http.post(url, d)
}
export const getList1 = (params,pageData) => {
let url = `/service/S_YX_ZY_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const getList2 = (params,pageData) => {
let url = `/service/S_YX_ZY_02`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const getList3 = (params,pageData) => {
let url = `/service/S_YX_ZY_03`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const getList4 = (params,pageData) => {
let url = `/service/S_YX_ZY_04`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_FW_GH_02`
let d = setResultData(params)
return http.post(url, d)
}
export const orderSave1 = (params) => {
let url = `/service/S_YX_ZY_05`
let d = setResultData(params)
return http.post(url, d)
}
export const orderSave2 = (params) => {
let url = `/service/S_YX_ZY_06`
let d = setResultData(params)
d.__blocks__.resultA = d.__blocks__.result
return http.post(url, d)
}
export const orderSave3 = (params) => {
let url = `/service/S_YX_ZY_07`
let d = setResultData(params)
d.__blocks__.resultB = d.__blocks__.result
return http.post(url, d)
}
export const orderSave4 = (params) => {
let url = `/service/S_YX_ZY_08`
let d = setResultData(params)
d.__blocks__.resultC = d.__blocks__.result
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
//文件与数据绑定-文档表
export const fileBindByRecord = (data) => {
let url = `/service/S_BD_IMG_02`
let d = setResultData(data)
return http.post(url, d)
}
//查询文件
export const fileQueryByRecord = (data) => {
let url = `/service/S_BD_IMG_03`
let d = setParamsData(data)
return http.post(url, d)
}
export const getParamsList = () => {
let url = `/service/S_XT_HY_00`
return http.post(url)
}
export const getList = (params,pageData) => {
let url = `/service/S_XT_HY_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_XT_HY_02`
let d = setResultData(params)
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
//文件与数据绑定-文档表
export const fileBindByRecord = (data) => {
let url = `/service/S_BD_IMG_02`
let d = setResultData(data)
return http.post(url, d)
}
//查询文件
export const fileQueryByRecord = (data) => {
let url = `/service/S_BD_IMG_03`
let d = setParamsData(data)
return http.post(url, d)
}
export const getList = (params,pageData) => {
let url = `/service/S_XT_GG_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_XT_GG_02`
let d = setResultData(params)
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
const setResultDataAndDetail = (data,detail=[]) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
if(detail&&detail.length){
let data2 = detail[0];
let obj2 = {}
for (let i in data2) {
obj2[i] = data2[i]
}
let keyList2 = Object.keys(obj2);
keyList2.forEach((item, index) => {
paramsData.__blocks__.detail.meta.columns.push({
pos: index,
name: item
})
})
detail.forEach(item => {
paramsData.__blocks__.detail.rows.push(Object.values(item));
})
}
return paramsData
}
//文件与数据绑定-文档表
export const fileBindByRecord = (data) => {
let url = `/service/S_BD_IMG_02`
let d = setResultData(data)
return http.post(url, d)
}
//查询文件
export const fileQueryByRecord = (data) => {
let url = `/service/S_BD_IMG_03`
let d = setParamsData(data)
return http.post(url, d)
}
export const getParamsList = () => {
let url = `/service/S_BG_PD_00`
return http.post(url)
}
export const getList = (params,pageData) => {
let url = `/service/S_BG_PD_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_BG_PD_02`
let d = setResultData(params)
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
const setResultDataAndDetail = (data,detail=[]) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
if(detail&&detail.length){
let data2 = detail[0];
let obj2 = {}
for (let i in data2) {
obj2[i] = data2[i]
}
let keyList2 = Object.keys(obj2);
keyList2.forEach((item, index) => {
paramsData.__blocks__.detail.meta.columns.push({
pos: index,
name: item
})
})
detail.forEach(item => {
paramsData.__blocks__.detail.rows.push(Object.values(item));
})
}
return paramsData
}
//文件与数据绑定-文档表
export const fileBindByRecord = (data) => {
let url = `/service/S_BD_IMG_02`
let d = setResultData(data)
return http.post(url, d)
}
//查询文件
export const fileQueryByRecord = (data) => {
let url = `/service/S_BD_IMG_03`
let d = setParamsData(data)
return http.post(url, d)
}
export const getParamsList = () => {
let url = `/service/S_BG_LY_00`
return http.post(url)
}
export const getSubParams = () => {
let url = `/service/S_BG_LY_03`
return http.post(url)
}
export const getList = (params,pageData) => {
let url = `/service/S_BG_LY_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params,detail) => {
let url = `/service/S_BG_LY_02`
let d = setResultDataAndDetail(params,detail)
return http.post(url, d)
}
export const getSubList = (params) => {
let url = `/service/S_BG_LY_04`
let d = setParamsData(params)
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
const setResultDataAndDetail = (data,detail=[]) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
if(detail&&detail.length){
let data2 = detail[0];
let obj2 = {}
for (let i in data2) {
obj2[i] = data2[i]
}
let keyList2 = Object.keys(obj2);
keyList2.forEach((item, index) => {
paramsData.__blocks__.detail.meta.columns.push({
pos: index,
name: item
})
})
detail.forEach(item => {
paramsData.__blocks__.detail.rows.push(Object.values(item));
})
}
return paramsData
}
//文件与数据绑定-文档表
export const fileBindByRecord = (data) => {
let url = `/service/S_BD_IMG_02`
let d = setResultData(data)
return http.post(url, d)
}
//查询文件
export const fileQueryByRecord = (data) => {
let url = `/service/S_BD_IMG_03`
let d = setParamsData(data)
return http.post(url, d)
}
export const getParamsList = () => {
let url = `/service/S_BG_RK_00`
return http.post(url)
}
export const getSubParams = () => {
let url = `/service/S_BG_RK_03`
return http.post(url)
}
export const getList = (params,pageData) => {
let url = `/service/S_BG_RK_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params,detail) => {
let url = `/service/S_BG_RK_02`
let d = setResultDataAndDetail(params,detail)
return http.post(url, d)
}
export const getSubList = (params) => {
let url = `/service/S_BG_RK_04`
let d = setParamsData(params)
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
//文件与数据绑定-文档表
export const fileBindByRecord = (data) => {
let url = `/service/S_BD_IMG_02`
let d = setResultData(data)
return http.post(url, d)
}
//查询文件
export const fileQueryByRecord = (data) => {
let url = `/service/S_BD_IMG_03`
let d = setParamsData(data)
return http.post(url, d)
}
export const getParamsList = () => {
let url = `/service/S_BG_TZ_00`
return http.post(url)
}
export const getList = (params,pageData) => {
let url = `/service/S_BG_TZ_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_BG_TZ_02`
let d = setResultData(params)
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
const setParamsDataAndDetail = (data,detail=[]) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
if(detail&&detail.length){
let data2 = detail[0];
let obj2 = {}
for (let i in data2) {
obj2[i] = data2[i]
}
let keyList2 = Object.keys(obj2);
keyList2.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
detail.forEach(item => {
paramsData.__blocks__.result.rows.push(Object.values(item));
})
}
return paramsData
}
//文件与数据绑定-文档表
export const fileBindByRecord = (data) => {
let url = `/service/S_BD_IMG_02`
let d = setResultData(data)
return http.post(url, d)
}
//查询文件
export const fileQueryByRecord = (data) => {
let url = `/service/S_BD_IMG_03`
let d = setParamsData(data)
return http.post(url, d)
}
export const getParamsList = () => {
let url = `/service/S_CG_XJ_00`
return http.post(url)
}
export const getSubParams = () => {
let url = `/service/S_YX_YJ_03`
return http.post(url)
}
export const getList = (params,pageData) => {
let url = `/service/S_CG_XJ_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_CG_XJ_02`
let d = setResultData(params)
return http.post(url, d)
}
export const getSubList = (params) => {
let url = `/service/S_CG_XJ_04`
let d = setParamsData(params)
return http.post(url, d)
}
export const subOrderSave = (params,detail) => {
let url = `/service/S_CG_XJ_05`
let d = setParamsDataAndDetail(params,detail)
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
const setResultDataAndDetail = (data,detail=[]) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
if(detail&&detail.length){
let data2 = detail[0];
let obj2 = {}
for (let i in data2) {
obj2[i] = data2[i]
}
let keyList2 = Object.keys(obj2);
keyList2.forEach((item, index) => {
paramsData.__blocks__.detail.meta.columns.push({
pos: index,
name: item
})
})
detail.forEach(item => {
paramsData.__blocks__.detail.rows.push(Object.values(item));
})
}
return paramsData
}
//文件与数据绑定-文档表
export const fileBindByRecord = (data) => {
let url = `/service/S_BD_IMG_02`
let d = setResultData(data)
return http.post(url, d)
}
//查询文件
export const fileQueryByRecord = (data) => {
let url = `/service/S_BD_IMG_03`
let d = setParamsData(data)
return http.post(url, d)
}
export const getParamsList = () => {
let url = `/service/S_YX_YJ_00`
return http.post(url)
}
export const getSubParams = () => {
let url = `/service/S_YX_YJ_03`
return http.post(url)
}
export const getList = (params,pageData) => {
let url = `/service/S_YX_YJ_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params,detail) => {
let url = `/service/S_YX_YJ_02`
let d = setResultDataAndDetail(params,detail)
return http.post(url, d)
}
export const getSubList = (params) => {
let url = `/service/S_YX_YJ_04`
let d = setParamsData(params)
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
export const getList = (params,pageData) => {
let url = `/service/S_FW_JY_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_FW_JY_02`
let d = setResultData(params)
return http.post(url, d)
}
import http from "@/common/vmeitime-http/index.js"
const setParamsData = (data = {},pageData) => {
let obj = {}
for (let i in data) {
obj[i] = data[i]
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {
count: 0,
limit: pageData && pageData.limit? pageData.limit : 10,
offset: pageData && pageData.offset? pageData.offset*pageData.limit : 0,
orderBy: pageData && pageData.orderBy? pageData.orderBy:"",
showCount: pageData && pageData.showCount? pageData.showCount : "true"
},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.inqu_status.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.inqu_status.rows.push(Object.values(obj));
return paramsData
}
const setResultData = (data) => {
let obj = {}
for (let i in data) {
if (data[i] !== '') {
obj[i] = data[i]
}
}
let paramsData = {
"__version__": "2.0",
"__sys__": {},
"__blocks__": {
"inqu_status": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"result": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
},
"detail": {
"attr": {},
"meta": {
"desc": "",
"attr": {},
"columns": []
},
"rows": []
}
}
}
let keyList = Object.keys(obj);
keyList.forEach((item, index) => {
paramsData.__blocks__.result.meta.columns.push({
pos: index,
name: item
})
})
paramsData.__blocks__.result.rows.push(Object.values(obj));
return paramsData
}
export const getList = (params,pageData) => {
let url = `/service/S_FW_HF_01`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const getOrderList = (params,pageData) => {
let url = `/service/S_FW_HF_03`
let d = setParamsData(params,pageData)
return http.post(url, d)
}
export const orderSave = (params) => {
let url = `/service/S_FW_HF_02`
let d = setResultData(params)
return http.post(url, d)
}
<template>
<view>
<cu-custom :isBack="true">
<block slot="backText">
<view class="list-icon" @tap="onBack">
<text class="cuIcon-back text-white text-bold text-xl"></text>
</view>
</block>
<block slot="content">
<text class="text-white">售后详情</text>
</block>
</cu-custom>
<view v-if="statusBarHeight>0" class="content-black" :style="{height:statusBarHeight+45+'px'}"></view>
<view class="complaint_warp">
<view class="common_warp">
<view class="view_type">
<view class="common_title type_title">
售后单号
</view>
<view class="type_cons">
{{dataInfo.afterSaleNo}}
</view>
<view class="type_status" :class="dataInfo.status==1?'type_status_active':''">
{{statusEnum[dataInfo.status]}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
客户名称
</view>
<view class="type_cons">
{{dataInfo.customName}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
售后方式
</view>
<view class="type_cons">
{{columns1Enum[dataInfo.afterSaleType]}}
</view>
</view>
<view v-if="dataInfo.dealUserName && dataInfo.dealUserName.length>=2" class="view_type tel_cons">
<view class="common_title type_title">
处理人
</view>
<view class="type_cons">
{{dataInfo.dealUserName}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
售后日期
</view>
<view class="type_cons">
{{dataInfo.afterSaleDate}}
</view>
</view>
<view class="view_type tel_cons none_border">
<view class="common_title type_title">
售后内容与图片
</view>
<view class="text_cons">
{{dataInfo.afterSaleContent}}
</view>
</view>
<view class="upload_img">
<view class="upload_img_cons img_for" v-for="(item,index) in fileList" :key="index">
<image class="cons_image" :src="item.img" mode="aspectFill"></image>
</view>
</view>
</view>
<view class="common_warp" v-if='dataInfo.dealContent && dataInfo.dealContent.length>=2'>
<view class="common_title type_title">
处理反馈
</view>
<view class="text_cons">
{{dataInfo.dealContent}}
</view>
</view>
</view>
</view>
</template>
<script>
import config from "@/config/index.config";
import moment from "@/common/moment.js";
import {getList} from "@/api/after-sale.js";
import {getDict,fileQueryByRecord} from "@/api/index.js"
import {toJsonData} from "@/utils/tools.js";
export default {
data() {
return {
assetsPath: config.assetsPath,
statusBarHeight: uni.getStorageSync("statusHeight") || 0,
dataInfo: {},
fileList: [],
columns1Enum:{},
columns2Enum:{},
statusEnum:{
1:"已处理",
0:"待处理"
}
}
},
onLoad(option) {
if(option && option.id){
this.id = option.id;
this.onLoading()
}else{
uni.showToast({
icon:"none",
title:"数据查询失败,立即返回上一页"
});
uni.redirectTo({
url:"/pages/after-sale/index"
})
}
},
methods: {
onBack() {
uni.navigateBack();
},
onLoading(){
uni.showLoading({
title:'加载中...'
})
getDict({
codeset: 'app.hpfw.afterSaleType'
}).then(res => {
res.data.list.map( item => {
this.columns1Enum[item.value] = item.label;
return item
})
this.onGetList();
})
},
onGetList(){
getList({
id:this.id
}).then(res=>{
uni.hideLoading();
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns).map(item=>{
let createdTime =item.createdTime? item.createdTime.split(''):[];
return {
...item,
afterSaleDate: moment(item.afterSaleDate).format("YYYY-MM-DD"),
createdTime:createdTime.length>=13? `${createdTime[0]}${createdTime[1]}${createdTime[2]}${createdTime[3]}/${createdTime[4]}${createdTime[5]}/${createdTime[6]}${createdTime[7]} ${createdTime[8]}${createdTime[9]}:${createdTime[10]}${createdTime[11]}:${createdTime[12]}${createdTime[13]}` :''
}
})
if(list&&list.length && list.length ===1){
this.dataInfo = list[0];
fileQueryByRecord({
bizId: this.dataInfo.afterSaleNo,
bizType:"AFTER_SALE"
}).then(res => {
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns)
if(list && list.length){
list.forEach(item => {
if(['image','png','jpg','jpeg','webp'].includes(item.docType)){
this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId
})
}
})
}
})
}
})
}
}
}
</script>
<style lang="scss">
.complaint_warp {
width: 100vw;
// background: #F5F6F9;
padding: 24upx 32upx;
padding-bottom: 60upx;
box-sizing: border-box;
}
.common_warp{
width: 100%;
border-radius: 12upx;
background-color: #fff;
padding: 34upx 24upx 40upx 24upx;
box-sizing: border-box;
margin-bottom: 24upx;
}
.view_type {
width: 100%;
display: flex;
align-items: center;
border-bottom: 1px solid #EEE;
padding-bottom: 32upx;
}
.type_title {
flex-shrink: 0;
margin-right: 32upx;
margin-bottom: 0;
}
.common_title{
color: #666;
font-size: 28upx;
}
.type_cons {
flex: 1;
color: #333;
font-size: 28upx;
font-style: normal;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tel_cons {
padding-top: 32upx;
}
.none_border {
border-bottom: none;
display: block;
}
.type_status {
flex-shrink: 0;
width: 106upx;
height: 44upx;
border-radius: 40upx;
background: #ECF0FF;
display: flex;
align-items: center;
justify-content: center;
color: #2E45F3;
font-size: 24upx;
font-style: normal;
font-weight: 400;
line-height: 24upx;
/* 120% */
}
.type_status_active {
background: #F5F6FA;
color: rgba(159, 161, 168, 0.60);
}
.text_cons {
width: 100%;
color: #333;
font-family: PingFang SC;
font-size: 28upx;
font-style: normal;
font-weight: 400;
line-height: 42upx;
/* 100% */
padding-top: 24upx;
}
.upload_img {
width: 100%;
display: flex;
}
.upload_img_cons {
width: 144upx;
height: 144upx;
border-radius: 12upx;
background: #F5F6FA;
overflow: hidden;
position: relative;
}
.img_for {
margin-right: 12upx;
}
.img_for:last-child {
margin-right: 0;
}
.cons_image {
display: block;
width: 144upx;
height: 144upx;
}
</style>
\ No newline at end of file
<template>
<view>
<cu-custom :isBack="true">
<block slot="backText">
<view class="list-icon" @tap="onBack">
<text class="cuIcon-back text-white text-bold text-xl"></text>
</view>
</block>
<block slot="content">
<text class="text-white">详情</text>
</block>
</cu-custom>
<view v-if="statusBarHeight>0" class="content-black" :style="{height:statusBarHeight+45+'px'}"></view>
<view class="complaint_warp">
<view class="common_warp">
<view class="view_type tel_cons">
<view class="common_title type_title ">
保险单号
</view>
<view class="type_cons">
{{dataInfo.applyNo}}
</view>
<view class="type_status" :class="dataInfo.applyStatus==1?'type_status_active':''">
{{statusEnum[dataInfo.applyStatus]}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
保单申请人
</view>
<view class="type_cons">
{{columns2Enum[dataInfo.applyPersonnel]}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
车牌号
</view>
<view class="type_cons">
{{dataInfo.licensePlateCode}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
申请日期
</view>
<view class="type_cons">
{{dataInfo.applyDate}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
创建时间
</view>
<view class="type_cons">
{{dataInfo.createdTime}}
</view>
</view>
<view class="view_type tel_cons none_border">
<view class="common_title type_title">
上传图片
</view>
</view>
<view class="upload_img">
<view class="upload_img_cons img_for" v-for="(item,index) in fileList" :key="index">
<image class="cons_image" :src="item.img" mode="aspectFill"></image>
</view>
</view>
</view>
</view>
<view v-if="detailList.length" class="flex-col">
<view class="flex-between margin-sm">
<text class="text-black text-xl">保险明细</text>
</view>
<view class="flex-col">
<view v-for="(item,k) in detailList" :key="k" class="create_complaint create_complaint_item">
<view class="view_type tel_cons">
<view class="common_title type_title">
车牌号
</view>
<view class="type_cons">
{{item.licensePlateCode}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
车险险种
</view>
<view class="type_cons">
{{item.insuranceType}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
投保开始时间
</view>
<view class="type_cons">
{{item.insuranceStartDate}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
投保结束时间
</view>
<view class="type_cons">
{{item.insuranceEndDate}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
保险金额
</view>
<view class="type_cons">
{{item.insuranceAmount}}
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import config from "@/config/index.config";
import { getDict } from "@/api/index.js";
import moment from "@/common/moment.js";
import {getList,getParamsList,getSubList,fileQueryByRecord} from "@/api/car-insurance.js";
import {toJsonData} from "@/utils/tools.js";
export default {
data() {
return {
assetsPath: config.assetsPath,
statusBarHeight: uni.getStorageSync("statusHeight") || 0,
dataInfo: {},
fileList: [],
columns1Enum:{},
columns2Enum:{},
columns3Enum:{},
statusEnum:{
3:"已提交",
2:"未提交",
1:"已通过",
0:"申请中"
},
detailList:[]
}
},
onLoad(option) {
if(option && option.id){
this.id = option.id;
this.onLoading()
}else{
uni.showToast({
icon:"none",
title:"数据查询失败,立即返回上一页"
});
uni.redirectTo({
url:"/pages/car-insurance/index"
})
}
},
methods: {
onBack() {
uni.navigateBack();
},
onLoading(){
uni.showLoading({
title:'加载中...'
})
getParamsList().then(res => {
toJsonData(res.data.__blocks__.user_block_id.rows, res.data.__blocks__.user_block_id.meta.columns).forEach(item =>{
this.columns2Enum[item.valueField] = item.textField
})
this.onGetList();
})
},
onGetList(){
getList({
sellDate:'',
id:this.id
}).then(res=>{
uni.hideLoading();
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns).map(item=>{
let createdTime =item.createdTime? item.createdTime.split(''):[];
return {
...item,
applyDate:moment(item.applyDate).format("YYYY-MM-DD"),
createdTime:createdTime.length>=13? `${createdTime[0]}${createdTime[1]}${createdTime[2]}${createdTime[3]}/${createdTime[4]}${createdTime[5]}/${createdTime[6]}${createdTime[7]} ${createdTime[8]}${createdTime[9]}:${createdTime[10]}${createdTime[11]}:${createdTime[12]}${createdTime[13]}` :''
}
})
if(list&&list.length && list.length ===1){
this.dataInfo = list[0];
this.onGetSubList();
fileQueryByRecord({
matId: this.dataInfo.id,
bizType:"CLBX"
}).then(res => {
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns)
if(list && list.length){
list.forEach(item => {
let docTypeArr = item.docName.split('.');
if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){
this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId
})
}
})
}
})
}
})
},
onGetSubList(){
getSubList({
tHpxt002Id: this.dataInfo.id
}).then(res => {
this.detailList = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns).map(item => {
return {
...item,
insuranceStartDate:moment(item.insuranceStartDate).format("YYYY-MM-DD"),
insuranceEndDate:moment(item.insuranceEndDate).format("YYYY-MM-DD")
}
})
})
}
}
}
</script>
<style lang="scss">
.complaint_warp {
width: 100vw;
// background: #F5F6F9;
padding: 24upx 32upx;
box-sizing: border-box;
}
.common_warp{
width: 100%;
border-radius: 12upx;
background-color: #fff;
padding: 24upx 24upx 20upx 24upx;
box-sizing: border-box;
}
.view_type {
width: 100%;
display: flex;
align-items: center;
border-bottom: 1px solid #EEE;
padding-bottom: 20upx;
}
.type_title {
flex-shrink: 0;
margin-right: 32upx;
margin-bottom: 0;
}
.common_title{
color: #666;
font-size: 28upx;
}
.type_cons {
flex: 1;
color: #333;
font-size: 28upx;
font-style: normal;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tel_cons {
padding-top: 20upx;
}
.none_border {
border-bottom: none;
display: block;
}
.type_status {
flex-shrink: 0;
width: 106upx;
height: 44upx;
border-radius: 40upx;
background: #ECF0FF;
display: flex;
align-items: center;
justify-content: center;
color: #2E45F3;
font-size: 24upx;
font-style: normal;
font-weight: 400;
line-height: 24upx;
/* 120% */
}
.type_status_active {
background: #F5F6FA;
color: rgba(159, 161, 168, 0.60);
}
.text_cons {
width: 100%;
color: #333;
font-family: PingFang SC;
font-size: 28upx;
font-style: normal;
font-weight: 400;
line-height: 42upx;
/* 100% */
padding-top: 24upx;
}
.upload_img {
width: 100%;
display: flex;
}
.upload_img_cons {
width: 144upx;
height: 144upx;
border-radius: 12upx;
background: #F5F6FA;
overflow: hidden;
position: relative;
}
.img_for {
margin-right: 12upx;
}
.img_for:last-child {
margin-right: 0;
}
.cons_image {
display: block;
width: 144upx;
height: 144upx;
}
.create_complaint_item{
box-shadow: 0 0 6upx rgba(0, 0, 0, 0.23);
border-radius: 12upx;
padding: 12upx 20upx;
background-color: #f1f1f1;
margin: 12upx 24upx;
.common_warp{
background-color: transparent;
}
}
</style>
\ No newline at end of file
<template>
<view>
<cu-custom :isBack="true">
<block slot="backText">
<view class="list-icon" @tap="onBack">
<text class="cuIcon-back text-white text-bold text-xl"></text>
</view>
</block>
<block slot="content">
<text class="text-white">详情</text>
</block>
</cu-custom>
<view v-if="statusBarHeight>0" class="content-black" :style="{height:statusBarHeight+45+'px'}"></view>
<view class="complaint_warp">
<view class="common_warp">
<view class="view_type">
<view class="common_title type_title">
维保单号
</view>
<view class="type_cons">
{{dataInfo.maintenanceNumber}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
维保类型
</view>
<view class="type_cons">
{{columns1Enum[dataInfo.maintenanceType]}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
车牌号
</view>
<view class="type_cons">
{{dataInfo.licensePlate}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
经办人
</view>
<view class="type_cons">
{{dataInfo.handler}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
维保费用
</view>
<view class="type_cons">
{{dataInfo.maintenanceCost}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
申请日期
</view>
<view class="type_cons">
{{dataInfo.maintenanceDate}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
创建时间
</view>
<view class="type_cons">
{{dataInfo.createdTime}}
</view>
</view>
<view class="view_type tel_cons none_border">
<view class="common_title type_title">
申请事由与上传图片
</view>
<view class="text_cons">
{{dataInfo.maintenanceReason}}
</view>
</view>
<view class="upload_img">
<view class="upload_img_cons img_for" v-for="(item,index) in fileList" :key="index">
<image class="cons_image" :src="item.img" mode="aspectFill"></image>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import config from "@/config/index.config";
import { getDict } from "@/api/index.js";
import moment from "@/common/moment.js";
import {getList,fileQueryByRecord} from "@/api/car-maintenance.js";
import {toJsonData} from "@/utils/tools.js";
export default {
data() {
return {
assetsPath: config.assetsPath,
statusBarHeight: uni.getStorageSync("statusHeight") || 0,
dataInfo: {},
fileList: [],
columns1Enum:{},
columns2Enum:{},
statusEnum:{
1:"已通过",
0:"待审核"
}
}
},
onLoad(option) {
if(option && option.id){
this.id = option.id;
this.onLoading()
}else{
uni.showToast({
icon:"none",
title:"数据查询失败,立即返回上一页"
});
uni.redirectTo({
url:"/pages/car-maintenance/index"
})
}
},
methods: {
onBack() {
uni.navigateBack();
},
onLoading(){
uni.showLoading({
title:'加载中...'
})
getDict({
codeset: 'hpjx.hpxt.maintenanceType'
}).then(res => {
res.data.list.map( item => {
this.columns1Enum[item.value] = item.label;
return item
})
})
this.onGetList();
},
onGetList(){
getList({
id:this.id
}).then(res=>{
uni.hideLoading();
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns).map(item=>{
let createdTime =item.createdTime? item.createdTime.split(''):[];
return {
...item,
startTime: moment(item.startTime).format("YYYY-MM-DD"),
endTime: moment(item.endTime).format("YYYY-MM-DD"),
createdTime:createdTime.length>=13? `${createdTime[0]}${createdTime[1]}${createdTime[2]}${createdTime[3]}/${createdTime[4]}${createdTime[5]}/${createdTime[6]}${createdTime[7]} ${createdTime[8]}${createdTime[9]}:${createdTime[10]}${createdTime[11]}:${createdTime[12]}${createdTime[13]}` :''
}
})
if(list&&list.length && list.length ===1){
this.dataInfo = list[0];
fileQueryByRecord({
matId: this.dataInfo.id,
bizType:"CLWB"
}).then(res => {
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns)
if(list && list.length){
list.forEach(item => {
let docTypeArr = item.docName.split('.');
if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){
this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId
})
}
})
}
})
}
})
}
}
}
</script>
<style lang="scss">
.complaint_warp {
width: 100vw;
// background: #F5F6F9;
padding: 24upx 32upx;
padding-bottom: 60upx;
box-sizing: border-box;
}
.common_warp{
width: 100%;
border-radius: 12upx;
background-color: #fff;
padding: 34upx 24upx 40upx 24upx;
box-sizing: border-box;
margin-bottom: 24upx;
}
.view_type {
width: 100%;
display: flex;
align-items: center;
border-bottom: 1px solid #EEE;
padding-bottom: 32upx;
}
.type_title {
flex-shrink: 0;
margin-right: 32upx;
margin-bottom: 0;
}
.common_title{
color: #666;
font-size: 28upx;
}
.type_cons {
flex: 1;
color: #333;
font-size: 28upx;
font-style: normal;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tel_cons {
padding-top: 32upx;
}
.none_border {
border-bottom: none;
display: block;
}
.type_status {
flex-shrink: 0;
width: 106upx;
height: 44upx;
border-radius: 40upx;
background: #ECF0FF;
display: flex;
align-items: center;
justify-content: center;
color: #2E45F3;
font-size: 24upx;
font-style: normal;
font-weight: 400;
line-height: 24upx;
/* 120% */
}
.type_status_active {
background: #F5F6FA;
color: rgba(159, 161, 168, 0.60);
}
.text_cons {
width: 100%;
color: #333;
font-family: PingFang SC;
font-size: 28upx;
font-style: normal;
font-weight: 400;
line-height: 42upx;
/* 100% */
padding-top: 24upx;
}
.upload_img {
width: 100%;
display: flex;
}
.upload_img_cons {
width: 144upx;
height: 144upx;
border-radius: 12upx;
background: #F5F6FA;
overflow: hidden;
position: relative;
}
.img_for {
margin-right: 12upx;
}
.img_for:last-child {
margin-right: 0;
}
.cons_image {
display: block;
width: 144upx;
height: 144upx;
}
</style>
\ No newline at end of file
<template>
<view>
<cu-custom :isBack="true">
<block slot="backText">
<view class="list-icon" @tap="onBack">
<text class="cuIcon-back text-white text-bold text-xl"></text>
</view>
</block>
<block slot="content">
<text class="text-white">详情</text>
</block>
</cu-custom>
<view v-if="statusBarHeight>0" class="content-black" :style="{height:statusBarHeight+45+'px'}"></view>
<view class="complaint_warp">
<view class="common_warp">
<view class="view_type">
<view class="common_title type_title">
申请单号
</view>
<view class="type_cons">
{{dataInfo.applyNo}}
</view>
<view class="type_status" :class="dataInfo.proApplyStatus==1?'type_status_active':''">
{{statusEnum[dataInfo.proApplyStatus]}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
申请人
</view>
<view class="type_cons">
{{dataInfo.applyPersonnel}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
车牌号
</view>
<view class="type_cons">
{{dataInfo.licensePlateCode}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
使用开始时间
</view>
<view class="type_cons">
{{dataInfo.startTime}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
使用结束时间
</view>
<view class="type_cons">
{{dataInfo.endTime}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
目的地
</view>
<view class="type_cons">
{{dataInfo.destination}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
里程(km)
</view>
<view class="type_cons">
{{dataInfo.mileage}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
申请日期
</view>
<view class="type_cons">
{{dataInfo.applyDate}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
创建时间
</view>
<view class="type_cons">
{{dataInfo.createdTime}}
</view>
</view>
<view class="view_type tel_cons none_border">
<view class="common_title type_title">
申请事由与上传图片
</view>
<view class="text_cons">
{{dataInfo.reason}}
</view>
</view>
<view class="upload_img">
<view class="upload_img_cons img_for" v-for="(item,index) in fileList" :key="index">
<image class="cons_image" :src="item.img" mode="aspectFill"></image>
</view>
</view>
</view>
<view class="common_warp" v-if='dataInfo.status==1'>
<view class="common_title type_title">
车辆返还状态
</view>
<view class="text_cons">
{{dataInfo.status==1?'已返还':'未返还'}}
</view>
</view>
</view>
</view>
</template>
<script>
import config from "@/config/index.config";
import moment from "@/common/moment.js";
import {getList,fileQueryByRecord} from "@/api/car-subscribe.js";
import {toJsonData} from "@/utils/tools.js";
export default {
data() {
return {
assetsPath: config.assetsPath,
statusBarHeight: uni.getStorageSync("statusHeight") || 0,
dataInfo: {},
fileList: [],
columns1Enum:{},
columns2Enum:{},
statusEnum:{
1:"已通过",
0:"待审核"
}
}
},
onLoad(option) {
if(option && option.id){
this.id = option.id;
this.onLoading()
}else{
uni.showToast({
icon:"none",
title:"数据查询失败,立即返回上一页"
});
uni.redirectTo({
url:"/pages/car-subscribe/index"
})
}
},
methods: {
onBack() {
uni.navigateBack();
},
onLoading(){
uni.showLoading({
title:'加载中...'
})
this.onGetList();
},
onGetList(){
getList({
id:this.id
}).then(res=>{
uni.hideLoading();
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns).map(item=>{
let createdTime =item.createdTime? item.createdTime.split(''):[];
return {
...item,
startTime: moment(item.startTime).format("YYYY-MM-DD"),
endTime: moment(item.endTime).format("YYYY-MM-DD"),
createdTime:createdTime.length>=13? `${createdTime[0]}${createdTime[1]}${createdTime[2]}${createdTime[3]}/${createdTime[4]}${createdTime[5]}/${createdTime[6]}${createdTime[7]} ${createdTime[8]}${createdTime[9]}:${createdTime[10]}${createdTime[11]}:${createdTime[12]}${createdTime[13]}` :''
}
})
if(list&&list.length && list.length ===1){
this.dataInfo = list[0];
fileQueryByRecord({
matId: this.dataInfo.id,
bizType:"CLSQ"
}).then(res => {
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns)
if(list && list.length){
list.forEach(item => {
let docTypeArr = item.docName.split('.');
if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){
this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId
})
}
})
}
})
}
})
}
}
}
</script>
<style lang="scss">
.complaint_warp {
width: 100vw;
// background: #F5F6F9;
padding: 24upx 32upx;
padding-bottom: 60upx;
box-sizing: border-box;
}
.common_warp{
width: 100%;
border-radius: 12upx;
background-color: #fff;
padding: 34upx 24upx 40upx 24upx;
box-sizing: border-box;
margin-bottom: 24upx;
}
.view_type {
width: 100%;
display: flex;
align-items: center;
border-bottom: 1px solid #EEE;
padding-bottom: 32upx;
}
.type_title {
flex-shrink: 0;
margin-right: 32upx;
margin-bottom: 0;
}
.common_title{
color: #666;
font-size: 28upx;
}
.type_cons {
flex: 1;
color: #333;
font-size: 28upx;
font-style: normal;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tel_cons {
padding-top: 32upx;
}
.none_border {
border-bottom: none;
display: block;
}
.type_status {
flex-shrink: 0;
width: 106upx;
height: 44upx;
border-radius: 40upx;
background: #ECF0FF;
display: flex;
align-items: center;
justify-content: center;
color: #2E45F3;
font-size: 24upx;
font-style: normal;
font-weight: 400;
line-height: 24upx;
/* 120% */
}
.type_status_active {
background: #F5F6FA;
color: rgba(159, 161, 168, 0.60);
}
.text_cons {
width: 100%;
color: #333;
font-family: PingFang SC;
font-size: 28upx;
font-style: normal;
font-weight: 400;
line-height: 42upx;
/* 100% */
padding-top: 24upx;
}
.upload_img {
width: 100%;
display: flex;
}
.upload_img_cons {
width: 144upx;
height: 144upx;
border-radius: 12upx;
background: #F5F6FA;
overflow: hidden;
position: relative;
}
.img_for {
margin-right: 12upx;
}
.img_for:last-child {
margin-right: 0;
}
.cons_image {
display: block;
width: 144upx;
height: 144upx;
}
</style>
\ No newline at end of file
<template>
<view>
<cu-custom :isBack="true">
<block slot="backText">
<view class="list-icon" @tap="onBack">
<text class="cuIcon-back text-white text-bold text-xl"></text>
</view>
</block>
<block slot="content">
<text class="text-white">详情</text>
</block>
</cu-custom>
<view v-if="statusBarHeight>0" class="content-black" :style="{height:statusBarHeight+45+'px'}"></view>
<view class="complaint_warp">
<view class="common_warp">
<view class="view_type">
<view class="common_title type_title">
建议单号
</view>
<view class="type_cons">
{{dataInfo.careNo}}
</view>
<view class="type_status" :class="dataInfo.status==1?'type_status_active':''">
{{statusEnum[dataInfo.status]}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
客户名称
</view>
<view class="type_cons">
{{dataInfo.customName}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
建议方式
</view>
<view class="type_cons">
{{columns1Enum[dataInfo.careWay]}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
建议类型
</view>
<view class="type_cons">
{{columns2Enum[dataInfo.careType]}}
</view>
</view>
<view v-if="dataInfo.dealUserName && dataInfo.dealUserName.length>=2" class="view_type tel_cons">
<view class="common_title type_title">
处理人
</view>
<view class="type_cons">
{{dataInfo.dealUserName}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
建议日期
</view>
<view class="type_cons">
{{dataInfo.careDate}}
</view>
</view>
<view class="view_type tel_cons none_border">
<view class="common_title type_title">
关怀描述与凭证
</view>
<view class="text_cons">
{{dataInfo.careContent}}
</view>
</view>
<view class="upload_img">
<view class="upload_img_cons img_for" v-for="(item,index) in fileList" :key="index">
<image class="cons_image" :src="item.img" mode="aspectFill"></image>
</view>
</view>
</view>
<view class="common_warp" v-if='dataInfo.dealContent && dataInfo.dealContent.length>=2'>
<view class="common_title type_title">
客户反馈
</view>
<view class="text_cons">
{{dataInfo.dealContent}}
</view>
</view>
</view>
</view>
</template>
<script>
import config from "@/config/index.config";
import moment from "@/common/moment.js";
import {getList} from "@/api/care.js";
import {getDict,fileQueryByRecord} from "@/api/index.js"
import {toJsonData} from "@/utils/tools.js";
export default {
data() {
return {
assetsPath: config.assetsPath,
statusBarHeight: uni.getStorageSync("statusHeight") || 0,
dataInfo: {},
fileList: [],
columns1Enum:{},
columns2Enum:{},
statusEnum:{
1:"已处理",
0:"待处理"
}
}
},
onLoad(option) {
if(option && option.id){
this.id = option.id;
this.onLoading()
}else{
uni.showToast({
icon:"none",
title:"数据查询失败,立即返回上一页"
});
uni.redirectTo({
url:"/pages/care/index"
})
}
},
methods: {
onBack() {
uni.navigateBack();
},
onLoading(){
uni.showLoading({
title:'加载中...'
})
getDict({
codeset: 'app.hpfw.careWay'
}).then(res => {
res.data.list.map( item => {
this.columns1Enum[item.value] = item.label;
return item
})
})
getDict({
codeset: 'app.hpfw.careType'
}).then(res => {
res.data.list.map( item => {
this.columns2Enum[item.value] = item.label;
return item
})
this.onGetList();
})
},
onGetList(){
getList({
id:this.id
}).then(res=>{
uni.hideLoading();
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns).map(item=>{
let createdTime =item.createdTime? item.createdTime.split(''):[];
return {
...item,
careDate: moment(item.careDate).format("YYYY-MM-DD"),
createdTime:createdTime.length>=13? `${createdTime[0]}${createdTime[1]}${createdTime[2]}${createdTime[3]}/${createdTime[4]}${createdTime[5]}/${createdTime[6]}${createdTime[7]} ${createdTime[8]}${createdTime[9]}:${createdTime[10]}${createdTime[11]}:${createdTime[12]}${createdTime[13]}` :''
}
})
if(list&&list.length && list.length ===1){
this.dataInfo = list[0];
fileQueryByRecord({
bizId: this.dataInfo.careNo,
bizType:"CARE"
}).then(res => {
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns)
if(list && list.length){
list.forEach(item => {
if(['image','png','jpg','jpeg','webp'].includes(item.docType)){
this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId
})
}
})
}
})
}
})
}
}
}
</script>
<style lang="scss">
.complaint_warp {
width: 100vw;
// background: #F5F6F9;
padding: 24upx 32upx;
padding-bottom: 60upx;
box-sizing: border-box;
}
.common_warp{
width: 100%;
border-radius: 12upx;
background-color: #fff;
padding: 34upx 24upx 40upx 24upx;
box-sizing: border-box;
margin-bottom: 24upx;
}
.view_type {
width: 100%;
display: flex;
align-items: center;
border-bottom: 1px solid #EEE;
padding-bottom: 32upx;
}
.type_title {
flex-shrink: 0;
margin-right: 32upx;
margin-bottom: 0;
}
.common_title{
color: #666;
font-size: 28upx;
}
.type_cons {
flex: 1;
color: #333;
font-size: 28upx;
font-style: normal;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tel_cons {
padding-top: 32upx;
}
.none_border {
border-bottom: none;
display: block;
}
.type_status {
flex-shrink: 0;
width: 106upx;
height: 44upx;
border-radius: 40upx;
background: #ECF0FF;
display: flex;
align-items: center;
justify-content: center;
color: #2E45F3;
font-size: 24upx;
font-style: normal;
font-weight: 400;
line-height: 24upx;
/* 120% */
}
.type_status_active {
background: #F5F6FA;
color: rgba(159, 161, 168, 0.60);
}
.text_cons {
width: 100%;
color: #333;
font-family: PingFang SC;
font-size: 28upx;
font-style: normal;
font-weight: 400;
line-height: 42upx;
/* 100% */
padding-top: 24upx;
}
.upload_img {
width: 100%;
display: flex;
}
.upload_img_cons {
width: 144upx;
height: 144upx;
border-radius: 12upx;
background: #F5F6FA;
overflow: hidden;
position: relative;
}
.img_for {
margin-right: 12upx;
}
.img_for:last-child {
margin-right: 0;
}
.cons_image {
display: block;
width: 144upx;
height: 144upx;
}
</style>
\ No newline at end of file
<template>
<view>
<cu-custom :isBack="true">
<block slot="backText">
<view class="list-icon" @tap="onBack">
<text class="cuIcon-back text-white text-bold text-xl"></text>
</view>
</block>
<block slot="content">
<text class="text-white">投诉详情</text>
</block>
</cu-custom>
<view v-if="statusBarHeight>0" class="content-black" :style="{height:statusBarHeight+45+'px'}"></view>
<view class="complaint_warp">
<view class="common_warp">
<view class="view_type">
<view class="common_title type_title">
投诉单号
</view>
<view class="type_cons">
{{dataInfo.complaintNo}}
</view>
<view class="type_status" :class="dataInfo.status==1?'type_status_active':''">
{{statusEnum[dataInfo.status]}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
客户名称
</view>
<view class="type_cons">
{{dataInfo.customName}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
投诉方式
</view>
<view class="type_cons">
{{columns1Enum[dataInfo.complaintWay]}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
投诉类型
</view>
<view class="type_cons">
{{columns2Enum[dataInfo.complaintType]}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
被投诉人
</view>
<view class="type_cons">
{{dataInfo.complaintUserName}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
受理人
</view>
<view class="type_cons">
{{dataInfo.acceptUserName}}
</view>
</view>
<view v-if="dataInfo.dealUserName && dataInfo.dealUserName.length>=2" class="view_type tel_cons">
<view class="common_title type_title">
处理人
</view>
<view class="type_cons">
{{dataInfo.dealUserName}}
</view>
</view>
<view class="view_type tel_cons">
<view class="common_title type_title">
投诉日期
</view>
<view class="type_cons">
{{dataInfo.complaintDate}}
</view>
</view>
<view class="view_type tel_cons none_border">
<view class="common_title type_title">
问题描述与凭证
</view>
<view class="text_cons">
{{dataInfo.complaintContent}}
</view>
</view>
<view class="upload_img">
<view class="upload_img_cons img_for" v-for="(item,index) in fileList" :key="index">
<image class="cons_image" :src="item.img" mode="aspectFill"></image>
</view>
</view>
</view>
<view class="common_warp" v-if='dataInfo.dealContent && dataInfo.dealContent.length>=2'>
<view class="common_title type_title">
平台回复
</view>
<view class="text_cons">
{{dataInfo.dealContent}}
</view>
</view>
</view>
</view>
</template>
<script>
import config from "@/config/index.config";
import moment from "@/common/moment.js";
import {getList} from "@/api/complaint.js";
import {getDict,fileQueryByRecord} from "@/api/index.js"
import {toJsonData} from "@/utils/tools.js";
export default {
data() {
return {
assetsPath: config.assetsPath,
statusBarHeight: uni.getStorageSync("statusHeight") || 0,
dataInfo: {},
fileList: [],
columns1Enum:{},
columns2Enum:{},
statusEnum:{
1:"已处理",
0:"待处理"
}
}
},
onLoad(option) {
if(option && option.id){
this.id = option.id;
this.onLoading()
}else{
uni.showToast({
icon:"none",
title:"数据查询失败,立即返回上一页"
});
uni.redirectTo({
url:"/pages/complaint/index"
})
}
},
methods: {
onBack() {
uni.navigateBack();
},
onLoading(){
uni.showLoading({
title:'加载中...'
})
getDict({
codeset: 'app.hpfw.complaintWay'
}).then(res => {
res.data.list.map( item => {
this.columns1Enum[item.value] = item.label;
return item
})
})
getDict({
codeset: 'app.hpfw.complaintType'
}).then(res => {
res.data.list.map( item => {
this.columns2Enum[item.value] = item.label;
return item
})
this.onGetList();
})
},
onGetList(){
getList({
id:this.id
}).then(res=>{
uni.hideLoading();
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns).map(item=>{
let createdTime =item.createdTime? item.createdTime.split(''):[];
return {
...item,
complaintDate: moment(item.complaintDate).format("YYYY-MM-DD"),
createdTime:createdTime.length>=13? `${createdTime[0]}${createdTime[1]}${createdTime[2]}${createdTime[3]}/${createdTime[4]}${createdTime[5]}/${createdTime[6]}${createdTime[7]} ${createdTime[8]}${createdTime[9]}:${createdTime[10]}${createdTime[11]}:${createdTime[12]}${createdTime[13]}` :''
}
})
if(list&&list.length && list.length ===1){
this.dataInfo = list[0];
fileQueryByRecord({
bizId: this.dataInfo.complaintNo,
bizType:"COMPLAINT"
}).then(res => {
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns)
if(list && list.length){
list.forEach(item => {
if(['image','png','jpg','jpeg','webp'].includes(item.docType)){
this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId
})
}
})
}
})
}
})
}
}
}
</script>
<style lang="scss">
.complaint_warp {
width: 100vw;
// background: #F5F6F9;
padding: 24upx 32upx;
padding-bottom: 60upx;
box-sizing: border-box;
}
.common_warp{
width: 100%;
border-radius: 12upx;
background-color: #fff;
padding: 34upx 24upx 40upx 24upx;
box-sizing: border-box;
margin-bottom: 24upx;
}
.view_type {
width: 100%;
display: flex;
align-items: center;
border-bottom: 1px solid #EEE;
padding-bottom: 32upx;
}
.type_title {
flex-shrink: 0;
margin-right: 32upx;
margin-bottom: 0;
}
.common_title{
color: #666;
font-size: 28upx;
}
.type_cons {
flex: 1;
color: #333;
font-size: 28upx;
font-style: normal;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tel_cons {
padding-top: 32upx;
}
.none_border {
border-bottom: none;
display: block;
}
.type_status {
flex-shrink: 0;
width: 106upx;
height: 44upx;
border-radius: 40upx;
background: #ECF0FF;
display: flex;
align-items: center;
justify-content: center;
color: #2E45F3;
font-size: 24upx;
font-style: normal;
font-weight: 400;
line-height: 24upx;
/* 120% */
}
.type_status_active {
background: #F5F6FA;
color: rgba(159, 161, 168, 0.60);
}
.text_cons {
width: 100%;
color: #333;
font-family: PingFang SC;
font-size: 28upx;
font-style: normal;
font-weight: 400;
line-height: 42upx;
/* 100% */
padding-top: 24upx;
}
.upload_img {
width: 100%;
display: flex;
}
.upload_img_cons {
width: 144upx;
height: 144upx;
border-radius: 12upx;
background: #F5F6FA;
overflow: hidden;
position: relative;
}
.img_for {
margin-right: 12upx;
}
.img_for:last-child {
margin-right: 0;
}
.cons_image {
display: block;
width: 144upx;
height: 144upx;
}
</style>
\ No newline at end of file
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment