Commit 4eea2003 by zhangzhen

功能优化完善

parent 32b9aac4
...@@ -108,6 +108,10 @@ const setResultData = (data) => { ...@@ -108,6 +108,10 @@ const setResultData = (data) => {
return paramsData return paramsData
} }
export const getParamsList = () => {
let url = `/service/S_FW_SH_00`
return http.post(url)
}
export const getList = (params,pageData) => { export const getList = (params,pageData) => {
let url = `/service/S_FW_SH_01` let url = `/service/S_FW_SH_01`
......
...@@ -108,6 +108,10 @@ const setResultData = (data) => { ...@@ -108,6 +108,10 @@ const setResultData = (data) => {
return paramsData return paramsData
} }
export const getParamsList = () => {
let url = `/service/S_FW_GH_00`
return http.post(url)
}
export const getList = (params,pageData) => { export const getList = (params,pageData) => {
let url = `/service/S_FW_GH_01` let url = `/service/S_FW_GH_01`
......
...@@ -109,6 +109,12 @@ const setResultData = (data) => { ...@@ -109,6 +109,12 @@ const setResultData = (data) => {
} }
export const getParamsList = () => {
let url = `/service/S_FW_TS_00`
let d = setParamsData()
return http.post(url, d)
}
export const getList = (params,pageData) => { export const getList = (params,pageData) => {
let url = `/service/S_FW_TS_01` let url = `/service/S_FW_TS_01`
let d = setParamsData(params,pageData) let d = setParamsData(params,pageData)
......
...@@ -190,6 +190,25 @@ export const getImgInfoListSB = (data) => { ...@@ -190,6 +190,25 @@ export const getImgInfoListSB = (data) => {
return http.post(url, d) return http.post(url, d)
} }
export const queryCustCode = (data) => {
let url = `/service/S_HGXS_003`
return http.post(url, data)
}
//文件与数据绑定-设备表
export const fileBindByRecord = (data) => {
let url = `/service/S_FL_BD_01`
let d = setResultData(data)
return http.post(url, d)
}
//查询文件
export const fileQueryByRecord = (data) => {
let url = `/service/S_FL_BD_02`
let d = setParamsData(data)
return http.post(url, d)
}
//文件与数据绑定-设备表 //文件与数据绑定-设备表
export const fileBindByRecord2 = (data) => { export const fileBindByRecord2 = (data) => {
let url = `/service/S_BD_IMG_SB` let url = `/service/S_BD_IMG_SB`
......
...@@ -108,6 +108,11 @@ const setResultData = (data) => { ...@@ -108,6 +108,11 @@ const setResultData = (data) => {
return paramsData return paramsData
} }
export const getParamsList = () => {
let url = `/service/S_FW_JY_00`
let d = setParamsData()
return http.post(url, d)
}
export const getList = (params,pageData) => { export const getList = (params,pageData) => {
let url = `/service/S_FW_JY_01` let url = `/service/S_FW_JY_01`
......
...@@ -1173,7 +1173,7 @@ ...@@ -1173,7 +1173,7 @@
"path" : "pages/suggest/index", "path" : "pages/suggest/index",
"style" : "style" :
{ {
"navigationBarTitleText" : "客户投诉", "navigationBarTitleText" : "客户建议",
"navigationBarBackgroundColor": "#0072fc", "navigationBarBackgroundColor": "#0072fc",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationStyle": "custom", "navigationStyle": "custom",
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
} from '@/utils/index.js' } from '@/utils/index.js'
import {uploadFile2} from "@/api/index.js"; import {uploadFile2} from "@/api/index.js";
import {getDict,queryCustCode,fileBindByRecord} from "@/api/index.js" import {getDict,queryCustCode,fileBindByRecord} from "@/api/index.js"
import {orderSave} from "@/api/after-sale.js"; import {getParamsList,orderSave} from "@/api/after-sale.js";
export default{ export default{
data(){ data(){
...@@ -144,7 +144,8 @@ ...@@ -144,7 +144,8 @@
}, },
methods:{ methods:{
onLoading(){ onLoading(){
queryCustCode().then(res => { getParamsList().then(res => {
console.log(res,99999)
if(res.data.__sys__.status === 0){ if(res.data.__sys__.status === 0){
let list = toJsonData(res.data.__blocks__.customer_record_block_id.rows, res.data.__blocks__.customer_record_block_id.meta.columns).map(item =>{ let list = toJsonData(res.data.__blocks__.customer_record_block_id.rows, res.data.__blocks__.customer_record_block_id.meta.columns).map(item =>{
return { return {
...@@ -156,13 +157,13 @@ ...@@ -156,13 +157,13 @@
} }
}) })
getDict({ getDict({
codeset: 'app.hpfw.afterSaleType' codeset: 'app.fw.afterSaleType'
}).then(res => { }).then(res => {
this.columns1 = res.data.list this.columns1 = res.data.list
}) })
getDict({ getDict({
codeset: 'app.hpfw.afterSaleUrgency' codeset: 'app.fw.afterSaleUrgency'
}).then(res => { }).then(res => {
this.columns2 = res.data.list this.columns2 = res.data.list
}) })
......
...@@ -259,16 +259,16 @@ ...@@ -259,16 +259,16 @@
methods:{ methods:{
onLoading(){ onLoading(){
getDict({ getDict({
codeset: 'app.hpfw.afterSaleType' codeset: 'app.fw.afterSaleType'
}).then(res => { }).then(res => {
this.columns1 = res.data.list.map( item => { this.columns1 = res.data.list.map(item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
return item return item
}) })
}) })
getDict({ getDict({
codeset: 'app.hpfw.afterSaleUrgency' codeset: 'app.fw.afterSaleUrgency'
}).then(res => { }).then(res => {
this.columns2 = res.data.list.map( item => { this.columns2 = res.data.list.map( item => {
this.columns2Enum[item.value] = item.label; this.columns2Enum[item.value] = item.label;
......
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
title:'加载中...' title:'加载中...'
}) })
getDict({ getDict({
codeset: 'app.hpfw.afterSaleType' codeset: 'app.fw.afterSaleType'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -161,12 +161,10 @@ ...@@ -161,12 +161,10 @@
}).then(res => { }).then(res => {
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns) let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns)
if(list && list.length){ if(list && list.length){
list.forEach(item => { list.forEach(item => {
if(['image','png','jpg','jpeg','webp'].includes(item.docType)){ if(['image','png','jpg','jpeg','webp'].includes(item.docType)){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
......
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
</view> </view>
</view> </view>
</view> </view>
<u-calendar :show="show2" mode="single" :defaultDate="defaultDate" :minDate="minDate" :monthNum='4' <u-calendar :show="show2" mode="single" :defaultDate="defaultDate" :minDate="minDate" :monthNum='13'
@confirm="onConfirm" @close="onCancel"></u-calendar> @confirm="onConfirm" @close="onCancel"></u-calendar>
</view> </view>
</template> </template>
......
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
let docTypeArr = item.docName.split('.'); let docTypeArr = item.docName.split('.');
if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){ if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
......
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
methods: { methods: {
onLoading() { onLoading() {
getDict({ getDict({
codeset: 'hpjx.hpxt.maintenanceType' codeset: 'hggp.hgxt.maintenanceType'
}).then(res => { }).then(res => {
this.columns1 = res.data.list this.columns1 = res.data.list
}) })
...@@ -203,8 +203,9 @@ ...@@ -203,8 +203,9 @@
}) })
orderSave(this.formData).then(res => { orderSave(this.formData).then(res => {
if (res.data.__sys__.status === 0) { if (res.data.__sys__.status === 0) {
if (res.data.detail && this.fileList.length) { let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns);
this.dataInfo = res.data.detail; if (list && list.length && this.fileList.length) {
this.dataInfo = list[0];
this.onFileBindByRecord(0) this.onFileBindByRecord(0)
} else { } else {
this.onSaveSuccess() this.onSaveSuccess()
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
methods:{ methods:{
onLoading(){ onLoading(){
getDict({ getDict({
codeset: 'hpjx.hpxt.maintenanceType' codeset: 'hggp.hgxt.maintenanceType'
}).then(res => { }).then(res => {
this.columns1 = res.data.list.map( item => { this.columns1 = res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
......
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
title:'加载中...' title:'加载中...'
}) })
getDict({ getDict({
codeset: 'hpjx.hpxt.maintenanceType' codeset: 'hggp.hgxt.maintenanceType'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
let docTypeArr = item.docName.split('.'); let docTypeArr = item.docName.split('.');
if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){ if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
......
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
let docTypeArr = item.docName.split('.'); let docTypeArr = item.docName.split('.');
if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){ if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
} from '@/utils/index.js' } from '@/utils/index.js'
import {uploadFile2} from "@/api/index.js"; import {uploadFile2} from "@/api/index.js";
import {getDict,queryCustCode,fileBindByRecord} from "@/api/index.js" import {getDict,queryCustCode,fileBindByRecord} from "@/api/index.js"
import {orderSave} from "@/api/care.js"; import {orderSave,getParamsList} from "@/api/care.js";
export default{ export default{
data(){ data(){
...@@ -142,8 +142,7 @@ ...@@ -142,8 +142,7 @@
}, },
methods:{ methods:{
onLoading(){ onLoading(){
getParamsList().then(res => {
queryCustCode().then(res => {
if(res.data.__sys__.status === 0){ if(res.data.__sys__.status === 0){
let list = toJsonData(res.data.__blocks__.customer_record_block_id.rows, res.data.__blocks__.customer_record_block_id.meta.columns).map(item =>{ let list = toJsonData(res.data.__blocks__.customer_record_block_id.rows, res.data.__blocks__.customer_record_block_id.meta.columns).map(item =>{
return { return {
...@@ -155,13 +154,13 @@ ...@@ -155,13 +154,13 @@
} }
}) })
getDict({ getDict({
codeset: 'app.hpfw.careWay' codeset: 'app.fw.careWay'
}).then(res => { }).then(res => {
this.columns1 = res.data.list this.columns1 = res.data.list
}) })
getDict({ getDict({
codeset: 'app.hpfw.careType' codeset: 'app.fw.careType'
}).then(res => { }).then(res => {
this.columns2 = res.data.list this.columns2 = res.data.list
}) })
......
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
methods:{ methods:{
onLoading(){ onLoading(){
getDict({ getDict({
codeset: 'app.hpfw.careWay' codeset: 'app.fw.careWay'
}).then(res => { }).then(res => {
this.columns1 = res.data.list.map( item => { this.columns1 = res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
}) })
getDict({ getDict({
codeset: 'app.hpfw.careType' codeset: 'app.fw.careType'
}).then(res => { }).then(res => {
this.columns2 = res.data.list.map( item => { this.columns2 = res.data.list.map( item => {
this.columns2Enum[item.value] = item.label; this.columns2Enum[item.value] = item.label;
......
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
title:'加载中...' title:'加载中...'
}) })
getDict({ getDict({
codeset: 'app.hpfw.careWay' codeset: 'app.fw.careWay'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
}) })
getDict({ getDict({
codeset: 'app.hpfw.careType' codeset: 'app.fw.careType'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns2Enum[item.value] = item.label; this.columns2Enum[item.value] = item.label;
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
list.forEach(item => { list.forEach(item => {
if(['image','png','jpg','jpeg','webp'].includes(item.docType)){ if(['image','png','jpg','jpeg','webp'].includes(item.docType)){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
......
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
} from '@/utils/index.js' } from '@/utils/index.js'
import {uploadFile2} from "@/api/index.js"; import {uploadFile2} from "@/api/index.js";
import {getDict,queryComboBox,queryCustCode,fileBindByRecord} from "@/api/index.js" import {getDict,queryComboBox,queryCustCode,fileBindByRecord} from "@/api/index.js"
import {orderSave} from "@/api/complaint.js"; import {orderSave,getParamsList} from "@/api/complaint.js";
export default{ export default{
data(){ data(){
...@@ -199,37 +199,46 @@ ...@@ -199,37 +199,46 @@
methods:{ methods:{
onLoading(){ onLoading(){
queryCustCode().then(res => { // queryCustCode().then(res => {
if(res.data.__sys__.status === 0){ // if(res.data.__sys__.status === 0){
let list = toJsonData(res.data.__blocks__.customer_record_block_id.rows, res.data.__blocks__.customer_record_block_id.meta.columns).map(item =>{ // let list = toJsonData(res.data.__blocks__.customer_record_block_id.rows, res.data.__blocks__.customer_record_block_id.meta.columns).map(item =>{
return { // return {
value: item.valueField, // value: item.valueField,
label: item.textField // label: item.textField
} // }
}) // })
this.pickerList1.push(...list); // this.pickerList1.push(...list);
} // }
}) // })
getDict({ getDict({
codeset: 'app.hpfw.complaintWay' codeset: 'app.fw.complaintWay'
}).then(res => { }).then(res => {
this.columns1 = res.data.list this.columns1 = res.data.list
}) })
getDict({ getDict({
codeset: 'app.hpfw.complaintType' codeset: 'app.fw.complaintType'
}).then(res => { }).then(res => {
this.columns2 = res.data.list this.columns2 = res.data.list
}) })
queryComboBox().then(res => { getParamsList().then(res => {
if(res.data.__sys__.status === 0){ if(res.data.__sys__.status === 0){
let list = toJsonData(res.data.__blocks__.user_block_id.rows, res.data.__blocks__.user_block_id.meta.columns).map(item =>{
let list = toJsonData(res.data.__blocks__.customer_record_block_id.rows, res.data.__blocks__.customer_record_block_id.meta.columns).map(item =>{
return {
value: item.valueField,
label: item.textField
}
})
this.pickerList1.push(...list);
let list2 = toJsonData(res.data.__blocks__.user_block_id.rows, res.data.__blocks__.user_block_id.meta.columns).map(item =>{
return { return {
value: item.valueField, value: item.valueField,
label: item.textField label: item.textField
} }
}) })
this.pickerList2.push(...list); this.pickerList2.push(...list2);
} }
}) })
}, },
......
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
methods:{ methods:{
onLoading(){ onLoading(){
getDict({ getDict({
codeset: 'app.hpfw.complaintWay' codeset: 'app.fw.complaintWay'
}).then(res => { }).then(res => {
this.columns1 = res.data.list.map( item => { this.columns1 = res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -298,7 +298,7 @@ ...@@ -298,7 +298,7 @@
}) })
getDict({ getDict({
codeset: 'app.hpfw.complaintType' codeset: 'app.fw.complaintType'
}).then(res => { }).then(res => {
this.columns2 = res.data.list.map( item => { this.columns2 = res.data.list.map( item => {
this.columns2Enum[item.value] = item.label; this.columns2Enum[item.value] = item.label;
......
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
title:'加载中...' title:'加载中...'
}) })
getDict({ getDict({
codeset: 'app.hpfw.complaintWay' codeset: 'app.fw.complaintWay'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
}) })
getDict({ getDict({
codeset: 'app.hpfw.complaintType' codeset: 'app.fw.complaintType'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns2Enum[item.value] = item.label; this.columns2Enum[item.value] = item.label;
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
list.forEach(item => { list.forEach(item => {
if(['image','png','jpg','jpeg','webp'].includes(item.docType)){ if(['image','png','jpg','jpeg','webp'].includes(item.docType)){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
......
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
} from "@/api/market-promotion.js"; } from "@/api/market-promotion.js";
import { import {
getDict, getDict,
getImgInfoList getImgInfoListSB
} from "@/api/index.js" } from "@/api/index.js"
import { import {
toJsonData toJsonData
...@@ -209,9 +209,9 @@ ...@@ -209,9 +209,9 @@
}) })
if (list && list.length && list.length === 1) { if (list && list.length && list.length === 1) {
this.dataInfo = list[0]; this.dataInfo = list[0];
getImgInfoList({ getImgInfoListSB({
matId: this.dataInfo.id, matId: this.dataInfo.id,
bizType: "HPYX010" bizType: "YX010"
}).then(res => { }).then(res => {
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__ let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__
.result.meta.columns) .result.meta.columns)
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
if (['image', 'png', 'jpg', 'jpeg', 'webp'].includes( if (['image', 'png', 'jpg', 'jpeg', 'webp'].includes(
docTypeArr[docTypeArr.length - 1])) { docTypeArr[docTypeArr.length - 1])) {
this.fileList.push({ this.fileList.push({
img: this.assetsPath + "/hpjx/file/download/" + img: this.assetsPath + "/hggp/file/download/" +
item.docId item.docId
}) })
} }
......
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
<script> <script>
import config from "@/config/index.config"; import config from "@/config/index.config";
import moment from "@/common/moment.js"; import moment from "@/common/moment.js";
import {getDict,getImgInfoList} from "@/api/index.js" import {getDict,getImgInfoListSB} from "@/api/index.js"
import {toJsonData} from "@/utils/tools.js"; import {toJsonData} from "@/utils/tools.js";
import {getInitLoadData,getList1,getList2,getList3,getList4} from "@/api/marketing-resources.js"; import {getInitLoadData,getList1,getList2,getList3,getList4} from "@/api/marketing-resources.js";
export default { export default {
...@@ -375,7 +375,7 @@ ...@@ -375,7 +375,7 @@
}) })
if(list&&list.length && list.length ===1){ if(list&&list.length && list.length ===1){
this.dataInfo = list[0]; this.dataInfo = list[0];
getImgInfoList({ getImgInfoListSB({
matId: this.dataInfo.id, matId: this.dataInfo.id,
bizType:this.tabList[this.tabId].bizType, bizType:this.tabList[this.tabId].bizType,
}).then(res => { }).then(res => {
...@@ -385,7 +385,7 @@ ...@@ -385,7 +385,7 @@
let docTypeArr = item.docName.split('.'); let docTypeArr = item.docName.split('.');
if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){ if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
......
...@@ -196,13 +196,13 @@ ...@@ -196,13 +196,13 @@
methods: { methods: {
onLoading() { onLoading() {
getDict({ getDict({
codeset: 'hpjx.hpxt.meetingNature' codeset: 'hggp.hgxt.meetingNature'
}).then(res => { }).then(res => {
this.columns1 = res.data.list this.columns1 = res.data.list
}) })
getDict({ getDict({
codeset: 'hpjx.hpxt.importanceLevel' codeset: 'hggp.hgxt.importanceLevel'
}).then(res => { }).then(res => {
this.columns2 = res.data.list this.columns2 = res.data.list
}) })
......
...@@ -272,7 +272,7 @@ ...@@ -272,7 +272,7 @@
methods:{ methods:{
onLoading(){ onLoading(){
getDict({ getDict({
codeset: 'hpjx.hpxt.meetingNature' codeset: 'hggp.hgxt.meetingNature'
}).then(res => { }).then(res => {
this.columns1 = res.data.list.map( item => { this.columns1 = res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -281,7 +281,7 @@ ...@@ -281,7 +281,7 @@
}) })
getDict({ getDict({
codeset: 'hpjx.hpxt.importanceLevel' codeset: 'hggp.hgxt.importanceLevel'
}).then(res => { }).then(res => {
this.columns2 = res.data.list.map( item => { this.columns2 = res.data.list.map( item => {
this.columns2Enum[item.value] = item.label; this.columns2Enum[item.value] = item.label;
......
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
}) })
getDict({ getDict({
codeset: 'hpjx.hpxt.meetingNature' codeset: 'hggp.hgxt.meetingNature'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
}) })
getDict({ getDict({
codeset: 'hpjx.hpxt.importanceLevel' codeset: 'hggp.hgxt.importanceLevel'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns2Enum[item.value] = item.label; this.columns2Enum[item.value] = item.label;
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
let docTypeArr = item.docName.split('.'); let docTypeArr = item.docName.split('.');
if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){ if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
......
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
methods: { methods: {
onLoading() { onLoading() {
getDict({ getDict({
codeset: 'app.hpfw.noticeType' codeset: 'app.fw.noticeType'
}).then(res => { }).then(res => {
this.columns1 = res.data.list; this.columns1 = res.data.list;
}) })
......
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
methods:{ methods:{
onLoading(){ onLoading(){
getDict({ getDict({
codeset: 'app.hpfw.noticeType' codeset: 'app.fw.noticeType'
}).then(res => { }).then(res => {
this.columns1 = res.data.list.map( item => { this.columns1 = res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
......
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
title:'加载中...' title:'加载中...'
}) })
getDict({ getDict({
codeset: 'app.hpfw.noticeType' codeset: 'app.fw.noticeType'
}).then(res => { }).then(res => {
res.data.list.forEach( item => { res.data.list.forEach( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
let docTypeArr = item.docName.split('.'); let docTypeArr = item.docName.split('.');
if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){ if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
......
...@@ -233,7 +233,7 @@ ...@@ -233,7 +233,7 @@
methods: { methods: {
onLoading() { onLoading() {
getDict({ getDict({
codeset: 'hpjx.hpbg.itemType' codeset: 'hggp.hgbg.itemType'
}).then(res => { }).then(res => {
res.data.list.forEach( item => { res.data.list.forEach( item => {
this.columns2Enum[item.value] = item.label; this.columns2Enum[item.value] = item.label;
......
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
methods:{ methods:{
onLoading(){ onLoading(){
getDict({ getDict({
codeset: 'hpjx.hpbg.itemType' codeset: 'hggp.hgbg.itemType'
}).then(res => { }).then(res => {
this.columns1 = res.data.list.map( item => { this.columns1 = res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
......
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
<script> <script>
import config from "@/config/index.config"; import config from "@/config/index.config";
import { getDict,getImgInfoList } from "@/api/index.js"; import { getDict,getImgInfoListSB } from "@/api/index.js";
import moment from "@/common/moment.js"; import moment from "@/common/moment.js";
import {getList,getParamsList} from "@/api/office-supplies-stocktaking.js"; import {getList,getParamsList} from "@/api/office-supplies-stocktaking.js";
import {toJsonData} from "@/utils/tools.js"; import {toJsonData} from "@/utils/tools.js";
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
title:'加载中...' title:'加载中...'
}) })
getDict({ getDict({
codeset: 'hpjx.hpbg.itemType' codeset: 'hggp.hgbg.itemType'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
}) })
if(list&&list.length && list.length ===1){ if(list&&list.length && list.length ===1){
this.dataInfo = list[0]; this.dataInfo = list[0];
getImgInfoList({ getImgInfoListSB({
matId: this.dataInfo.id, matId: this.dataInfo.id,
bizType:"BG004" bizType:"BG004"
}).then(res => { }).then(res => {
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
let docTypeArr = item.docName.split('.'); let docTypeArr = item.docName.split('.');
if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){ if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
......
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
methods: { methods: {
onLoading() { onLoading() {
getDict({ getDict({
codeset: 'hpjx.hpbg.itemType' codeset: 'hggp.hgbg.itemType'
}).then(res => { }).then(res => {
this.columns2 = res.data.list.map( item => { this.columns2 = res.data.list.map( item => {
this.columns2Enum[item.value] = item.label; this.columns2Enum[item.value] = item.label;
......
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
<script> <script>
import config from "@/config/index.config"; import config from "@/config/index.config";
import { getDict,getImgInfoList } from "@/api/index.js"; import { getDict,getImgInfoListSB } from "@/api/index.js";
import moment from "@/common/moment.js"; import moment from "@/common/moment.js";
import {getList,getParamsList,getSubList} from "@/api/office-supplies-use.js"; import {getList,getParamsList,getSubList} from "@/api/office-supplies-use.js";
import {toJsonData} from "@/utils/tools.js"; import {toJsonData} from "@/utils/tools.js";
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
title:'加载中...' title:'加载中...'
}) })
getDict({ getDict({
codeset: 'hpjx.hpbg.itemType' codeset: 'hggp.hgbg.itemType'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
if(list&&list.length && list.length ===1){ if(list&&list.length && list.length ===1){
this.dataInfo = list[0]; this.dataInfo = list[0];
this.onGetSubList(); this.onGetSubList();
getImgInfoList({ getImgInfoListSB({
matId: this.dataInfo.id, matId: this.dataInfo.id,
bizType:"BG003" bizType:"BG003"
}).then(res => { }).then(res => {
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
let docTypeArr = item.docName.split('.'); let docTypeArr = item.docName.split('.');
if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){ if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
......
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
methods: { methods: {
onLoading() { onLoading() {
getDict({ getDict({
codeset: 'hpjx.hpbg.itemType' codeset: 'hggp.hgbg.itemType'
}).then(res => { }).then(res => {
this.columns2 = res.data.list.map( item => { this.columns2 = res.data.list.map( item => {
this.columns2Enum[item.value] = item.label; this.columns2Enum[item.value] = item.label;
......
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
methods:{ methods:{
onLoading(){ onLoading(){
getDict({ getDict({
codeset: 'hpjx.hpbg.itemType' codeset: 'hggp.hgbg.itemType'
}).then(res => { }).then(res => {
this.columns1 = res.data.list.map( item => { this.columns1 = res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<script> <script>
import config from "@/config/index.config"; import config from "@/config/index.config";
import { getDict,getImgInfoList } from "@/api/index.js"; import { getDict,getImgInfoListSB } from "@/api/index.js";
import moment from "@/common/moment.js"; import moment from "@/common/moment.js";
import {getList,getParamsList,getSubList} from "@/api/office-supplies-warehousing.js"; import {getList,getParamsList,getSubList} from "@/api/office-supplies-warehousing.js";
import {toJsonData} from "@/utils/tools.js"; import {toJsonData} from "@/utils/tools.js";
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
title:'加载中...' title:'加载中...'
}) })
getDict({ getDict({
codeset: 'hpjx.hpbg.itemType' codeset: 'hggp.hgbg.itemType'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
if(list&&list.length && list.length ===1){ if(list&&list.length && list.length ===1){
this.dataInfo = list[0]; this.dataInfo = list[0];
this.onGetSubList(); this.onGetSubList();
getImgInfoList({ getImgInfoListSB({
matId: this.dataInfo.id, matId: this.dataInfo.id,
bizType:"BG002" bizType:"BG002"
}).then(res => { }).then(res => {
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
let docTypeArr = item.docName.split('.'); let docTypeArr = item.docName.split('.');
if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){ if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
......
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
methods: { methods: {
onLoading() { onLoading() {
getDict({ getDict({
codeset: 'hpjx.hpbg.itemType' codeset: 'hggp.hgbg.itemType'
}).then(res => { }).then(res => {
this.columns1 = res.data.list this.columns1 = res.data.list
}) })
...@@ -257,7 +257,9 @@ ...@@ -257,7 +257,9 @@
bizType: 'BG001', bizType: 'BG001',
docId: this.fileList[i].id, docId: this.fileList[i].id,
docName:this.fileList[i].name, docName:this.fileList[i].name,
docSize:this.fileList[i].size docSize:this.fileList[i].size,
realPath:' ',
docTag:' '
}; };
fileBindByRecord2(fileData).then(res => { fileBindByRecord2(fileData).then(res => {
let k = i + 1; let k = i + 1;
......
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
methods:{ methods:{
onLoading(){ onLoading(){
getDict({ getDict({
codeset: 'hpjx.hpbg.itemType' codeset: 'hggp.hgbg.itemType'
}).then(res => { }).then(res => {
this.columns1 = res.data.list.map( item => { this.columns1 = res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
<script> <script>
import config from "@/config/index.config"; import config from "@/config/index.config";
import { getDict,getImgInfoList } from "@/api/index.js"; import { getDict,getImgInfoListSB } from "@/api/index.js";
import moment from "@/common/moment.js"; import moment from "@/common/moment.js";
import {getList} from "@/api/office-supplies.js"; import {getList} from "@/api/office-supplies.js";
import {toJsonData} from "@/utils/tools.js"; import {toJsonData} from "@/utils/tools.js";
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
title:'加载中...' title:'加载中...'
}) })
getDict({ getDict({
codeset: 'hpjx.hpbg.itemType' codeset: 'hggp.hgbg.itemType'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
}) })
if(list&&list.length && list.length ===1){ if(list&&list.length && list.length ===1){
this.dataInfo = list[0]; this.dataInfo = list[0];
getImgInfoList({ getImgInfoListSB({
matId: this.dataInfo.id, matId: this.dataInfo.id,
bizType:"BG001" bizType:"BG001"
}).then(res => { }).then(res => {
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
let docTypeArr = item.docName.split('.'); let docTypeArr = item.docName.split('.');
if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){ if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
......
...@@ -348,14 +348,14 @@ ...@@ -348,14 +348,14 @@
methods: { methods: {
onLoading() { onLoading() {
getDict({ getDict({
codeset: 'hpjx.hpcg.inquiryType' codeset: 'hggp.hgcg.inquiryType'
}).then(res => { }).then(res => {
this.columns1 = res.data.list this.columns1 = res.data.list
}) })
getDict({ getDict({
codeset: 'hpjx.hpcw.taxPoints' codeset: 'hggp.cw.taxPoints'
}).then(res => { }).then(res => {
this.columns2 = res.data.list.map( item => { this.columns2 = res.data.list.map( item => {
this.columns2Enum[item.value] = item.label; this.columns2Enum[item.value] = item.label;
...@@ -364,7 +364,7 @@ ...@@ -364,7 +364,7 @@
}) })
getDict({ getDict({
codeset: 'hpjx.hpcw.billTybe' codeset: 'hggp.cw.billTybe'
}).then(res => { }).then(res => {
this.columns3 = res.data.list.map( item => { this.columns3 = res.data.list.map( item => {
this.columns3Enum[item.value] = item.label; this.columns3Enum[item.value] = item.label;
...@@ -466,7 +466,7 @@ ...@@ -466,7 +466,7 @@
}, },
onSubOrderSave(){ onSubOrderSave(){
subOrderSave({ subOrderSave({
tHpjg004Id: this.dataInfo.id hgcg005Id: this.dataInfo.id
},this.detailList).then(res=>{ },this.detailList).then(res=>{
console.log(res) console.log(res)
if (res.data.__sys__.status === 0){ if (res.data.__sys__.status === 0){
...@@ -503,7 +503,7 @@ ...@@ -503,7 +503,7 @@
} else { } else {
let fileData = { let fileData = {
matId: this.dataInfo.id, matId: this.dataInfo.id,
bizType: 'HPCG004', bizType: 'HGCG005',
docId: this.fileList[i].id, docId: this.fileList[i].id,
docName:this.fileList[i].name, docName:this.fileList[i].name,
docSize:this.fileList[i].size docSize:this.fileList[i].size
......
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
methods: { methods: {
onLoading() { onLoading() {
getDict({ getDict({
codeset: 'hpjx.hpcg.inquiryType' codeset: 'hggp.hgcg.inquiryType'
}).then(res => { }).then(res => {
this.columns3 = res.data.list.map( item => { this.columns3 = res.data.list.map( item => {
this.columns3Enum[item.value] = item.label; this.columns3Enum[item.value] = item.label;
......
...@@ -288,7 +288,7 @@ ...@@ -288,7 +288,7 @@
title:'加载中...' title:'加载中...'
}) })
getDict({ getDict({
codeset: 'hpjx.hpcg.inquiryType' codeset: 'hggp.hgcg.inquiryType'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -296,7 +296,7 @@ ...@@ -296,7 +296,7 @@
}) })
}) })
getDict({ getDict({
codeset: 'hpjx.hpcw.billTybe' codeset: 'hggp.hgcw.billTybe'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns3Enum[item.value] = item.label; this.columns3Enum[item.value] = item.label;
...@@ -334,7 +334,7 @@ ...@@ -334,7 +334,7 @@
this.onGetSubList(); this.onGetSubList();
fileQueryByRecord({ fileQueryByRecord({
matId: this.dataInfo.id, matId: this.dataInfo.id,
bizType:"HPCG004" bizType:'HGCG005'
}).then(res => { }).then(res => {
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns) let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns)
if(list && list.length){ if(list && list.length){
...@@ -342,7 +342,7 @@ ...@@ -342,7 +342,7 @@
let docTypeArr = item.docName.split('.'); let docTypeArr = item.docName.split('.');
if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){ if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
...@@ -353,7 +353,7 @@ ...@@ -353,7 +353,7 @@
}, },
onGetSubList(){ onGetSubList(){
getSubList({ getSubList({
tHpjg004Id: this.dataInfo.id hgcg005Id: this.dataInfo.id
}).then(res => { }).then(res => {
this.detailList = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns).map(item => { this.detailList = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns).map(item => {
return { return {
......
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
getDict getDict
} from "@/api/index.js"; } from "@/api/index.js";
import { import {
orderSave,getSubParams orderSave,getParamsList
} from "@/api/sales-performance.js"; } from "@/api/sales-performance.js";
export default { export default {
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
}, },
methods: { methods: {
onLoading() { onLoading() {
getSubParams().then(res => { getParamsList().then(res => {
let list = toJsonData(res.data.__blocks__.user_block_id.rows, res.data.__blocks__.user_block_id.meta.columns).map(item =>{ let list = toJsonData(res.data.__blocks__.user_block_id.rows, res.data.__blocks__.user_block_id.meta.columns).map(item =>{
return { return {
label:item.textField, label:item.textField,
......
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
<script> <script>
import config from "@/config/index.config"; import config from "@/config/index.config";
import { getDict,getImgInfoList } from "@/api/index.js"; import { getDict,getImgInfoListSB } from "@/api/index.js";
import moment from "@/common/moment.js"; import moment from "@/common/moment.js";
import {getList,getParamsList,getSubList} from "@/api/sales-performance.js"; import {getList,getParamsList,getSubList} from "@/api/sales-performance.js";
import {toJsonData} from "@/utils/tools.js"; import {toJsonData} from "@/utils/tools.js";
...@@ -239,7 +239,7 @@ ...@@ -239,7 +239,7 @@
if(list&&list.length && list.length ===1){ if(list&&list.length && list.length ===1){
this.dataInfo = list[0]; this.dataInfo = list[0];
this.onGetSubList(); this.onGetSubList();
getImgInfoList({ getImgInfoListSB({
matId: this.dataInfo.id, matId: this.dataInfo.id,
bizType:"YX005" bizType:"YX005"
}).then(res => { }).then(res => {
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
let docTypeArr = item.docName.split('.'); let docTypeArr = item.docName.split('.');
if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){ if(['image','png','jpg','jpeg','webp'].includes(docTypeArr[docTypeArr.length-1])){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
......
...@@ -99,8 +99,8 @@ ...@@ -99,8 +99,8 @@
base64ToPath base64ToPath
} from '@/utils/index.js' } from '@/utils/index.js'
import {uploadFile2} from "@/api/index.js"; import {uploadFile2} from "@/api/index.js";
import {getDict,queryCustCode,fileBindByRecord} from "@/api/index.js" import {getDict,fileBindByRecord} from "@/api/index.js"
import {orderSave} from "@/api/suggest.js"; import {orderSave,getParamsList} from "@/api/suggest.js";
export default{ export default{
data(){ data(){
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
methods:{ methods:{
onLoading(){ onLoading(){
queryCustCode().then(res => { getParamsList().then(res => {
if(res.data.__sys__.status === 0){ if(res.data.__sys__.status === 0){
let list = toJsonData(res.data.__blocks__.customer_record_block_id.rows, res.data.__blocks__.customer_record_block_id.meta.columns).map(item =>{ let list = toJsonData(res.data.__blocks__.customer_record_block_id.rows, res.data.__blocks__.customer_record_block_id.meta.columns).map(item =>{
return { return {
...@@ -155,13 +155,13 @@ ...@@ -155,13 +155,13 @@
} }
}) })
getDict({ getDict({
codeset: 'app.hpfw.suggestWay' codeset: 'app.fw.suggestWay'
}).then(res => { }).then(res => {
this.columns1 = res.data.list this.columns1 = res.data.list
}) })
getDict({ getDict({
codeset: 'app.hpfw.suggestType' codeset: 'app.fw.suggestType'
}).then(res => { }).then(res => {
this.columns2 = res.data.list this.columns2 = res.data.list
}) })
......
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
methods:{ methods:{
onLoading(){ onLoading(){
getDict({ getDict({
codeset: 'app.hpfw.suggestWay' codeset: 'app.fw.suggestWay'
}).then(res => { }).then(res => {
this.columns1 = res.data.list.map( item => { this.columns1 = res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
}) })
getDict({ getDict({
codeset: 'app.hpfw.suggestType' codeset: 'app.fw.suggestType'
}).then(res => { }).then(res => {
this.columns2 = res.data.list.map( item => { this.columns2 = res.data.list.map( item => {
this.columns2Enum[item.value] = item.label; this.columns2Enum[item.value] = item.label;
......
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
title:'加载中...' title:'加载中...'
}) })
getDict({ getDict({
codeset: 'app.hpfw.suggestWay' codeset: 'app.fw.suggestWay'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
}) })
getDict({ getDict({
codeset: 'app.hpfw.suggestType' codeset: 'app.fw.suggestType'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns2Enum[item.value] = item.label; this.columns2Enum[item.value] = item.label;
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
list.forEach(item => { list.forEach(item => {
if(['image','png','jpg','jpeg','webp'].includes(item.docType)){ if(['image','png','jpg','jpeg','webp'].includes(item.docType)){
this.fileList.push({ this.fileList.push({
img:this.assetsPath+"/hpjx/file/download/"+item.docId img:this.assetsPath+"/hggp/file/download/"+item.docId
}) })
} }
}) })
......
...@@ -145,8 +145,15 @@ ...@@ -145,8 +145,15 @@
}, },
methods:{ methods:{
onLoading(){ onLoading(){
queryCustCode().then(res => { getDict({
codeset: 'app.fw.folWay'
}).then(res => {
this.columns1 = res.data.list
})
getOrderList().then(res => {
if(res.data.__sys__.status === 0){ if(res.data.__sys__.status === 0){
let list = toJsonData(res.data.__blocks__.customer_record_block_id.rows, res.data.__blocks__.customer_record_block_id.meta.columns).map(item =>{ let list = toJsonData(res.data.__blocks__.customer_record_block_id.rows, res.data.__blocks__.customer_record_block_id.meta.columns).map(item =>{
return { return {
value: item.valueField, value: item.valueField,
...@@ -154,23 +161,14 @@ ...@@ -154,23 +161,14 @@
} }
}) })
this.pickerList1.push(...list); this.pickerList1.push(...list);
}
}) let list2 = toJsonData(res.data.__blocks__.sale_no_block_id.rows, res.data.__blocks__.sale_no_block_id.meta.columns).map(item =>{
getDict({
codeset: 'app.hpfw.folWay'
}).then(res => {
this.columns1 = res.data.list
})
getOrderList().then(res => {
if(res.data.__sys__.status === 0){
let list = toJsonData(res.data.__blocks__.sale_no_block_id.rows, res.data.__blocks__.sale_no_block_id.meta.columns).map(item =>{
return { return {
value: item.valueField, value: item.valueField,
label: item.textField label: item.textField
} }
}) })
this.pickerList2.push(...list); this.pickerList2.push(...list2);
} }
}) })
}, },
......
...@@ -250,7 +250,7 @@ ...@@ -250,7 +250,7 @@
methods:{ methods:{
onLoading(){ onLoading(){
getDict({ getDict({
codeset: 'app.hpfw.folWay' codeset: 'app.fw.folWay'
}).then(res => { }).then(res => {
this.columns1 = res.data.list.map( item => { this.columns1 = res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
......
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
title:'加载中...' title:'加载中...'
}) })
getDict({ getDict({
codeset: 'app.hpfw.folWay' codeset: 'app.fw.folWay'
}).then(res => { }).then(res => {
res.data.list.map( item => { res.data.list.map( item => {
this.columns1Enum[item.value] = item.label; this.columns1Enum[item.value] = item.label;
......
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