|
@@ -8,14 +8,15 @@
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="委托单位">
|
|
<el-form-item label="委托单位">
|
|
|
- <el-select disabled ref="selectEntrustCorp" v-model="EntrustCorp" filterable placeholder="请选择" style="width: 100%">
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="item in EntrustCorpOptions"
|
|
|
|
|
- :key="item.Id"
|
|
|
|
|
- :label="item.CustomerName"
|
|
|
|
|
- :value="item.Id">
|
|
|
|
|
- </el-option>
|
|
|
|
|
- </el-select>
|
|
|
|
|
|
|
+ <!--<el-select disabled ref="selectEntrustCorp" v-model="EntrustCorp" filterable placeholder="请选择" style="width: 100%">-->
|
|
|
|
|
+ <!--<el-option-->
|
|
|
|
|
+ <!--v-for="item in EntrustCorpOptions"-->
|
|
|
|
|
+ <!--:key="item.Id"-->
|
|
|
|
|
+ <!--:label="item.CustomerName"-->
|
|
|
|
|
+ <!--:value="item.Id">-->
|
|
|
|
|
+ <!--</el-option>-->
|
|
|
|
|
+ <!--</el-select>-->
|
|
|
|
|
+ <el-input v-model="EntrustCorpName" placeholder="请输入" style="width: 100%" readonly></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
@@ -36,7 +37,7 @@
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item prop="PositionCheckId" label="检测地点" :rules="{ required: true, message: '检测地点不能为空!'}">
|
|
<el-form-item prop="PositionCheckId" label="检测地点" :rules="{ required: true, message: '检测地点不能为空!'}">
|
|
|
<el-select ref="selectPositionCheck" v-model="formData.PositionCheckId" filterable placeholder="请选择" style="width: 70%"
|
|
<el-select ref="selectPositionCheck" v-model="formData.PositionCheckId" filterable placeholder="请选择" style="width: 70%"
|
|
|
- :filter-method="positionCheckFilter" :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3">
|
|
|
|
|
|
|
+ :filter-method="positionCheckFilter" :disabled="DataStatus != 0 && DataStatus != 5 && DataStatus != 3" @change="changPositionCheck">
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in PositionCheckOptions"
|
|
v-for="item in PositionCheckOptions"
|
|
|
:key="item.Id"
|
|
:key="item.Id"
|
|
@@ -124,6 +125,7 @@
|
|
|
MainProductsList: [],
|
|
MainProductsList: [],
|
|
|
MainProductsNoOptions: [],
|
|
MainProductsNoOptions: [],
|
|
|
EntrustCorp: 0,
|
|
EntrustCorp: 0,
|
|
|
|
|
+ EntrustCorpName: '',
|
|
|
PositionCheckId: '0',
|
|
PositionCheckId: '0',
|
|
|
ResistanceStr: '',
|
|
ResistanceStr: '',
|
|
|
formData: {
|
|
formData: {
|
|
@@ -152,6 +154,9 @@
|
|
|
// this.getDataEntry(this.DataEntryId)
|
|
// this.getDataEntry(this.DataEntryId)
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ changPositionCheck (val) {
|
|
|
|
|
+ this.$emit('getEntrustEquipment', val)
|
|
|
|
|
+ },
|
|
|
positionCheckFilter (val) {
|
|
positionCheckFilter (val) {
|
|
|
if (val) {
|
|
if (val) {
|
|
|
let len = val.length
|
|
let len = val.length
|
|
@@ -234,7 +239,7 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
getDictOptions () {
|
|
getDictOptions () {
|
|
|
- api.getDictList(this.$axios).then(res => {f
|
|
|
|
|
|
|
+ api.getDictList(this.$axios).then(res => {
|
|
|
this.EntrustCorpOptions = res.data.items['EntrustCorp']
|
|
this.EntrustCorpOptions = res.data.items['EntrustCorp']
|
|
|
this.MainProductsList = res.data.items['MainProducts']
|
|
this.MainProductsList = res.data.items['MainProducts']
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
@@ -255,6 +260,7 @@
|
|
|
getEntrustInfo (EId) {
|
|
getEntrustInfo (EId) {
|
|
|
entrustApi.getEntrustInfo(EId, this.$axios).then(res => {
|
|
entrustApi.getEntrustInfo(EId, this.$axios).then(res => {
|
|
|
this.EntrustCorp = res.data.CustomerId
|
|
this.EntrustCorp = res.data.CustomerId
|
|
|
|
|
+ this.EntrustCorpName = res.data.CustomerName
|
|
|
this.getAllGrade(this.EntrustCorp)
|
|
this.getAllGrade(this.EntrustCorp)
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
// handle error
|
|
// handle error
|