|
@@ -23,6 +23,7 @@
|
|
|
v-model="visable"
|
|
|
placement="left"
|
|
|
width="400"
|
|
|
+ height="800"
|
|
|
trigger="click"
|
|
|
:popper-options="{ boundariesElement: 'viewport', removeOnDestroy: true }"
|
|
|
ref="pops">
|
|
@@ -37,7 +38,7 @@
|
|
|
@cell-click="rowClick"
|
|
|
:show-header="false"
|
|
|
>
|
|
|
- <vxe-column title="" field="name" ></vxe-column>
|
|
|
+ <vxe-column title="" field="entname" ></vxe-column>
|
|
|
</vxe-table>
|
|
|
|
|
|
<el-button type="info" slot="reference" @click="getPopTable" style="width: 100%" plain>查询</el-button>
|
|
@@ -957,21 +958,20 @@
|
|
|
return 'cursor:pointer;'
|
|
|
},
|
|
|
async rowClick (event) {
|
|
|
- let id = this.gridData[event.rowIndex].id
|
|
|
- await this.workClientService.findById(id).then((data) => {
|
|
|
- this.inputForm.workClientInfo.hasUscc = JSON.stringify(data.data.workClientInfo.hasUscc)
|
|
|
- this.inputForm.workClientInfo.uscCode = data.data.workClientInfo.uscCode
|
|
|
- this.inputForm.workClientInfo.areaId = data.data.workClientInfo.areaId
|
|
|
- this.inputForm.workClientInfo.areaId = data.data.workClientInfo.areaId
|
|
|
- this.inputForm.workClientInfo.registerAddress = data.data.workClientInfo.registerAddress
|
|
|
+ let id = this.gridData[event.rowIndex].companyid
|
|
|
+ await this.workClientService.enterpriseTicketInfo(id).then((data) => {
|
|
|
+ console.log(data)
|
|
|
+ this.inputForm.workClientInfo.name = data.data.ENTNAME
|
|
|
+ this.inputForm.workClientInfo.uscCode = data.data.UNCID
|
|
|
+ this.inputForm.workClientInfo.registerAddress = data.data.OPLOC
|
|
|
})
|
|
|
this.visable = false
|
|
|
},
|
|
|
async getPopTable () {
|
|
|
let name = this.inputForm.workClientInfo.name
|
|
|
if (name !== null && name !== undefined && name !== '') {
|
|
|
- await this.workClientService.findListByName(name).then(({data}) => {
|
|
|
- this.gridData = data
|
|
|
+ await this.workClientService.enterpriseSearchByName(name).then(({data}) => {
|
|
|
+ this.gridData = data.data.items
|
|
|
})
|
|
|
}
|
|
|
this.$refs.pops.updatePopper()
|
|
@@ -998,6 +998,9 @@
|
|
|
.tid_45 .vxe-header--row .col--last{
|
|
|
text-align: center;
|
|
|
}
|
|
|
+</style>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
.avatar{
|
|
|
height: 100px;
|
|
|
}
|