|
|
@@ -255,7 +255,7 @@
|
|
|
title="合同导入"
|
|
|
:visible.sync="dialogVisibleContract"
|
|
|
:close-on-click-modal="false"
|
|
|
- width="70%">
|
|
|
+ width="80%">
|
|
|
|
|
|
<el-form :model="tableDataList" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
|
|
<el-table
|
|
|
@@ -270,7 +270,7 @@
|
|
|
<el-table-column prop="SupplierName" width="250" label="确认企业名称" align="center" show-overflow-tooltip >
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item style="margin-bottom: 0px;" :prop="'tableData.' + scope.$index + '.SupplierId'" :rules="rules.name">
|
|
|
- <el-select size="small" v-model="scope.row.SupplierId" ref="supplierIdSelect" placeholder="请选择" @change="onSelectContractClass(scope.$index)">
|
|
|
+ <el-select size="small" v-model="scope.row.SupplierId" filterable :ref="'supplierIdSelect'+scope.$index" placeholder="请选择" @change="onSelectContractClass(scope.$index)">
|
|
|
<el-option v-for="(item,index) of (SupplierNameDataFun(scope.row.SourceSupplierName,scope.$index))" :key="index" :label="item.SupplierName" :value="item.Id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
@@ -779,7 +779,8 @@
|
|
|
onSelectContractClass (e) {
|
|
|
var that = this
|
|
|
setTimeout(function () {
|
|
|
- that.$set(that.tableDataList.tableData[e], 'SupplierName', that.$refs.supplierIdSelect.selectedLabel)
|
|
|
+ // console.log(that.$refs['supplierIdSelect' + `${e}`] )
|
|
|
+ that.$set(that.tableDataList.tableData[e], 'SupplierName', that.$refs['supplierIdSelect' + `${e}`].selectedLabel)
|
|
|
// that.tableDataList.tableData[e].SupplierName = that.$refs.supplierIdSelect.selectedLabel
|
|
|
}, 200)
|
|
|
console.log(that.tableDataList.tableData)
|
|
|
@@ -844,6 +845,7 @@
|
|
|
this.dialogVisibleContract = true
|
|
|
for(var key in res.data.item){
|
|
|
console.log(key,res.data.item[key])
|
|
|
+ res.data.item[key].ContractClass = res.data.item[key].SourceContractClass=='承揽合同'?'02':res.data.item[key].ContractClass
|
|
|
res.data.item[key].SupplierId = res.data.item[key].SupplierId==''?'':res.data.item[key].SupplierId
|
|
|
|
|
|
this.tableDataList.tableData.push(res.data.item[key])
|