Commit 4eea2003 by zhangzhen

功能优化完善

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