|
@@ -249,6 +249,15 @@
|
|
|
:data="matchedDetailList"
|
|
|
@on-selection-change='selectItem'
|
|
|
>
|
|
|
+ <template slot="area" slot-scope="{row}">
|
|
|
+ <Input clearable v-model="row.area" @on-blur='selectHouse(null,row)'></Input>
|
|
|
+ </template>
|
|
|
+ <template slot="part_title" slot-scope="{row}">
|
|
|
+ <Input clearable v-model="row.part_title" @on-blur='selectHouse(null,row)'></Input>
|
|
|
+ </template>
|
|
|
+ <template slot="measure" slot-scope="{row}">
|
|
|
+ <Input clearable v-model="row.measure" @on-blur='selectHouse(null,row)'></Input>
|
|
|
+ </template>
|
|
|
<template slot="number" slot-scope="{row}">
|
|
|
<Select v-model="row.house_id" filterable clearable @on-select='selectHouse($event,row)' transfer>
|
|
|
<Option v-for="(item,index) in house_list" :key="index" :label="item.number" :value="item.id"></Option>
|
|
@@ -354,13 +363,13 @@ export default {
|
|
|
{ title: "序号", align: "center", type: "index", resizable: true,
|
|
|
minWidth: 80 },
|
|
|
{ title: "区域名称", align: "center", key: "area", resizable: true,
|
|
|
- minWidth: 160 },
|
|
|
+ minWidth: 160 ,slot:'area'},
|
|
|
{ title: "房号", align: "center", key: "house_id", resizable: true,
|
|
|
minWidth: 160,slot:'number' },
|
|
|
{ title: "组合名称", align: "center", key:'compose_name', resizable: true,
|
|
|
minWidth: 160,slot:'compose_name' },
|
|
|
{ title: "部件名称", align: "center", key: "part_title", resizable: true,
|
|
|
- minWidth: 180 },
|
|
|
+ minWidth: 180 ,slot:'part_title'},
|
|
|
{ title: "行号", align: "center", key: "sort", resizable: true,
|
|
|
minWidth: 170 },
|
|
|
{
|
|
@@ -368,9 +377,7 @@ export default {
|
|
|
align: "center",
|
|
|
resizable: true,
|
|
|
width: 150,
|
|
|
- render: (h, params) => {
|
|
|
- return h("span", {}, params.row.measure);
|
|
|
- },
|
|
|
+ slot:'measure'
|
|
|
},
|
|
|
], //匹配表头
|
|
|
process_man: "",
|
|
@@ -477,6 +484,9 @@ export default {
|
|
|
let json = [];
|
|
|
this.editData.forEach(v=>{
|
|
|
let obj ={};
|
|
|
+ obj.area = v.area;
|
|
|
+ obj.measure = v.measure;
|
|
|
+ obj.part_title = v.part_title;
|
|
|
obj.pr_id = v.id;
|
|
|
obj.house_id = v.house_id;
|
|
|
obj.url_number = v.url_number;
|