Commit f37cbcdb by 郑艺斌

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

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