Commit f37cbcdb by 郑艺斌

fix: 修复图片查看问题以及过滤报修类型

parent 9522f9a3
......@@ -352,8 +352,8 @@
<img class="verificationImg" v-for="item in formItem.repairImgs" :src="item" alt=""
@click="getImg(item)">
</div>
<Modal title="View Image" v-model="visible">
<img :src="imgUrl" v-if="visible" style="width: 100%">
<Modal title="View Image" v-model="imgvisible">
<img :src="imgUrl" v-if="imgvisible" style="width: 100%">
</Modal>
</div>
</Col>
......@@ -960,7 +960,7 @@ export default {
},
parentList: [],
sublevelList: [],
visible: false,
imgvisible: false,
imgUrl: ''
};
},
......@@ -986,7 +986,7 @@ export default {
},
methods: {
getImg (item) {
this.visible = true;
this.imgvisible = true;
this.imgUrl = item
},
getTreeList () {
......@@ -997,6 +997,7 @@ export default {
async res => {
this.parentList = await res.responseResult.map(item => {
item.parentId = `${item.parentId}`
item.parentProblem = item.parentProblem.slice((item.parentProblem.indexOf('-') + 1))
return item
})
let arr = await res.responseResult.filter(item => item.parentProblem == that.formItem.problemClass)
......@@ -1651,7 +1652,8 @@ export default {
jobTitle: data.jobTitle,
priority: data.priority,
sex: data.sex,
problemClass: data.dataSource === '0' ? `特房-${data.problemClass}` : data.dataSource === '1' ? `塔楼-${data.problemClass}` : `轨道-${data.problemClass}`,
// problemClass: data.dataSource === '0' ? `特房-${data.problemClass}` : data.dataSource === '1' ? `塔楼-${data.problemClass}` : `轨道-${data.problemClass}`,
problemClass: data.problemClass,
problemType: data.problemType,
remark: data.remark,
participatorids: !data.participatorids ? [] : data.participatorids.split(","),
......
......@@ -70,11 +70,12 @@
</Row>
<Row>
<Col span="20">
<FormItem label="工单来源" prop="dataSource">
<RadioGroup v-model="formItem.dataSource" @on-change="changDataSource">
<FormItem label="工单来源">
<Input type="text" v-model="formItem.orderSource" disabled></Input>
<!-- <RadioGroup v-model="formItem.dataSource" @on-change="changDataSource">
<Radio :label="item.dataSource" v-for="item in organization" :key="item.dataSource">{{ item.label }}
</Radio>
</RadioGroup>
</RadioGroup> -->
</FormItem>
</Col>
</Row>
......@@ -540,6 +541,7 @@ export default {
deptCode: "",
jobTitle: "",
name: "",
orderSource: "",
companyName: "",
priority: "",
sex: "",
......@@ -773,11 +775,11 @@ export default {
repairHistoryForm: {
clientId: ""
},
organization: [
{ label: '特房集团', dataSource: '0' },
{ label: '轨道集团', dataSource: '2' },
{ label: '塔楼客户', dataSource: '1' }
],
// organization: [
// { label: '特房集团', dataSource: '0' },
// { label: '轨道集团', dataSource: '2' },
// { label: '塔楼客户', dataSource: '1' }
// ],
parentList: [],
sublevelList: []
};
......@@ -873,7 +875,6 @@ export default {
this.formItem.sex = "";
this.formItem.clientId = "";
this.repairHistoryForm.clientId = "";
// console.log(this.formItem);
}
},
......@@ -888,6 +889,7 @@ export default {
// contactList 处理展示数组
this.contactOptions = [];
let contactList = res.responseResult.data;
console.log(res.responseResult.data, '999');
initCustSearchOption(contactList, query, this.contactOptions)
},
res => {
......@@ -995,14 +997,15 @@ export default {
// });
},
// 点击工单来源
changDataSource (value) {
changDataSource () {
this.formItem.problemClass = ''
this.$request.post(
"/api/emaint/problem-base/getTreeList",
qs.stringify({ dataSource: value }),
qs.stringify({ dataSource: this.formItem.dataSource }),
res => {
this.parentList = res.responseResult.map(item => {
item.parentId = `${item.parentId}`
item.parentProblem = item.parentProblem.slice((item.parentProblem.indexOf('-') + 1))
return item
})
// that.parentList = res.responseResult.map(item => {
......@@ -1044,10 +1047,20 @@ export default {
) {
flag = true;
let v = obj.data;
console.log(v, '888');
this.formItem.phone = v.phone;
this.formItem.undef = v.undef;
this.formItem.tel = v.tel;
this.formItem.dataSource = `${v.dataSource}`;
this.formItem.name = v.name;
if (v.dataSource == 0) {
this.formItem.orderSource = '特房集团'
} else if (v.dataSource == 1) {
this.formItem.orderSource = '塔楼客户'
} else if (v.dataSource == 2) {
this.formItem.orderSource = '轨道集团'
}
this.formItem.companyName = v.companyName;
if (this.formItem.replacementRepair !== "1") {
......@@ -1132,11 +1145,11 @@ export default {
// console.log(this.formItem);
}
var transfer = document.getElementsByClassName(
"ivu-select-dropdown"
)[1];
transfer.style.display = "none";
this.changDataSource()
},
......
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