Commit 9522f9a3 by 郑艺斌

2022/11/29

parent 6affc1a9
......@@ -3,7 +3,7 @@ import qs from "qs";
import { Message } from "iview";
axios.defaults.baseURL = "https://emaint.meiqicloud.com";
// axios.defaults.baseURL = "http://172.16.4.29:8063";
// axios.defaults.baseURL = "http://172.20.10.4:8063";
// axios.defaults.baseURL='http://localhost:8063'
export function qsdata(data) {
return qs.parse(qs.stringify(data));
......
......@@ -237,11 +237,15 @@ export default {
}
],
},
organization: []
organization: [
{ label: '特房集团', dataSource: '0' },
{ label: '轨道集团', dataSource: '2' },
{ label: '塔楼客户', dataSource: '1' }
]
}
},
created () {
this.getOrganization()
// this.getOrganization()
var dd = new Date()
var ff = new Date()
var week = dd.getDay(); //获取时间的星期数
......
......@@ -228,11 +228,15 @@ export default {
},
],
},
organization: []
organization: [
{ label: '特房集团', dataSource: '0' },
{ label: '轨道集团', dataSource: '2' },
{ label: '塔楼客户', dataSource: '1' }
]
}
},
created () {
this.getOrganization()
// this.getOrganization()
var dd = new Date()
var ff = new Date()
var week = dd.getDay(); //获取时间的星期数
......
......@@ -60,7 +60,8 @@
<Form-item label="父级类目">
<i-select placeholder="请选择父级" v-model="addformdata.parentId" style="text-align:left">
<i-option value=""></i-option>
<i-option :value="item.parentId" v-for="(item, index) in questionlis1" :key="index">{{ item.parentProblem
<i-option :value="item.parentId" v-for="(item, index) in questionlis1" :key="item.parentId">{{
item.parentProblem
}}
</i-option>
......@@ -517,6 +518,7 @@ export default {
);
},
getParent (value) {
this.addformdata.parentId = ''
let arr = this.questionlis.filter(item => item.dataSource == value)
this.questionlis1 = arr[0].childList
},
......
......@@ -763,6 +763,9 @@ export default {
priorityList: [],
//表单
formItem: {
repairEstimate: {
star: 0
},
clientId: "",
contactClient: "",
phone: "",
......@@ -1631,7 +1634,7 @@ export default {
dataSourceName = '轨道集团'
}
self.workOrder = data
data.repairImgs = this.getArrImgs(data.repairImgs, '|~|')
data.repairImgs = data.repairImgs == null ? null : this.getArrImgs(data.repairImgs, '|~|')
this.formItem = {
id: data.id,
callID: data.callID,
......@@ -1648,7 +1651,7 @@ export default {
jobTitle: data.jobTitle,
priority: data.priority,
sex: data.sex,
problemClass: data.problemClass,
problemClass: data.dataSource === '0' ? `特房-${data.problemClass}` : data.dataSource === '1' ? `塔楼-${data.problemClass}` : `轨道-${data.problemClass}`,
problemType: data.problemType,
remark: data.remark,
participatorids: !data.participatorids ? [] : data.participatorids.split(","),
......@@ -1676,19 +1679,18 @@ export default {
contactUndef: data.contactUndef,
repairLabel: data.repairLabel,
finishRemark: data.finishRemark,
repairEstimate: data.repairEstimate,
repairEstimate: data.repairEstimate ? data.repairEstimate : {},
estimateLabel: data.estimateLabel,
repairImgs: data.repairImgs
};
this.getTreeList()
// 历史报修
this.repairHistoryForm.clientId = this.formItem.contactClientId;
self.isReservation = data.reservations === 1;
// 设置问题类型
self.getProblemBase(function () {
self.formItem.problemClass = data.problemClass
// self.formItem.problemClass = data.problemClass
self.formItem.problemType = data.problemType
self.getProblemList()
self.getQuestionList()
......
......@@ -773,7 +773,11 @@ export default {
repairHistoryForm: {
clientId: ""
},
organization: [],
organization: [
{ label: '特房集团', dataSource: '0' },
{ label: '轨道集团', dataSource: '2' },
{ label: '塔楼客户', dataSource: '1' }
],
parentList: [],
sublevelList: []
};
......@@ -793,7 +797,7 @@ export default {
}
},
created () {
this.getOrganization()
// this.getOrganization()
// 优先级下拉列表
this.$request.post(
......
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 sign in to comment