Commit ed89881b by lichengming

修改了送出检委托单的样品选择

parent 45e5ce6a
......@@ -451,6 +451,7 @@ export default {
this.formObj.odate = data
},
_backData(data) {
this.$forceUpdate()
console.log(typeof this.index)
console.log(data)
this.getPage.records[this.index].name = data.name
......
......@@ -83,13 +83,13 @@
>
<template slot-scope="scope">
<div v-if="item.key==='name'" @click.stop="_handleRow(scope)">
<el-input v-model="scope.row.name" @on-result-change="_judgeBasisChange" blur placeholder="请输入或选择样品名称" style="width: 150px;"
<el-input v-model="scope.row.name" blur placeholder="请输入或选择样品名称" style="width: 150px;"
></el-input>
<a @on-result-change="_judgeBasisChange" @click="_selectjudgeBasis(scope.$rowIndex)" style="font-size: 18px;" class="">+</a>
</div>
<div v-if="item.key==='verification'" @click.stop="_handleRow(scope)">
<el-input v-model="scope.row.verification" blur placeholder="请输入检定依据"
<el-input v-model="scope.row.verification" placeholder="请输入检定依据" style="width: 170px;"
></el-input>
</div>
<div v-if="item.key==='spec'" @click.stop="_handleRow(scope)">
......@@ -140,7 +140,7 @@
<modal-footer ref="footerModal" :footer="footerList" @on-result-change="_footerResult"></modal-footer>
</div>
</Modal>
<EditModal ref="EditModal" @on-result-change="_backData" is-change />
<EditModal ref="EditModal" @on-result-change="_backData" />
<ContractModal ref="ContractModal" @on-result-change="_backContract" is-change></ContractModal>
<importModal ref="importModal" @on-result-change="_inputBack" aptitude-item></importModal>
</div>
......@@ -221,7 +221,7 @@ export default {
pageColumns: [
{ title: '样品名称', key: 'name', width: 200 },
{ title: '型号规格', key: 'spec' },
{ title: '检定依据', key: 'verification' },
{ title: '检定依据', key: 'verification', width: 200 },
{ title: '出厂编号', key: 'factoryNumber' },
{ title: '制造单位', key: 'manufacturer' },
{ title: '检测类型', key: 'type' },
......@@ -447,6 +447,7 @@ export default {
this.$refs.ContractModal._open()
},
_backData(data) {
this.$forceUpdate()
console.log(typeof this.index)
this.getPage.records[this.index].name = data.name
this.getPage.records[this.index].aptitudeId = data.id
......@@ -458,7 +459,6 @@ export default {
console.log(this.getPage.records)
},
_backContract(data) {
console.log(data)
this.formObj.client = data.client
this.formObj.operation.person = data.person
this.formObj.operation.tel = data.tel
......
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 to comment