Commit 67237c2f by lichengming

修改了试验委托评审

parent 652d4bcd
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
</div> </div>
</Modal> </Modal>
<importModal ref="importModal" @on-result-change="_inputBack" aptitude-item></importModal> <importModal ref="importModal" @on-result-change="_inputBack" aptitude-item></importModal>
<SampleItemSelect ref="sampleItemSelectModal" is-change @on-result-change="_itemImportBack" /> <SampleItemSelect ref="sampleItemSelectModal" @on-result-change="_itemImportBack" is-change />
</div> </div>
</template> </template>
<script> <script>
...@@ -263,38 +263,38 @@ export default { ...@@ -263,38 +263,38 @@ export default {
methods: { methods: {
_itemImportBack(data) { _itemImportBack(data) {
console.log('传过来的数据', data) console.log('传过来的数据', data)
for (let i = 0; i < data.length; i++) { // for (let i = 0; i < data.length; i++) {
data[i].id = undefined // data[i].id = undefined
} // }
const info = data // const info = data
console.log('去掉id后的data', info) // console.log('去掉id后的data', info)
for (let i = 0; i < this.indexList.length; i++) { // for (let i = 0; i < this.indexList.length; i++) {
const index = this.indexList[i] // const index = this.indexList[i]
if (this.getPage.records[index].drugItemList !== undefined) { // if (this.getPage.records[index].drugItemList !== undefined) {
const name = [] // const name = []
this.itemList = this.getPage.records[index].drugItemList // this.itemList = this.getPage.records[index].drugItemList
name.push(this.getPage.records[index].itemNames) // name.push(this.getPage.records[index].itemNames)
for (let i = 0; i < info.length; i++) { // for (let i = 0; i < info.length; i++) {
console.log(this.getPage.records[index].itemNames[i]) // console.log(this.getPage.records[index].itemNames[i])
this.itemList.push(info[i]) // this.itemList.push(info[i])
name.push(info[i].name) // name.push(info[i].name)
} // }
this.getPage.records[index].itemNames = name.join('、') // this.getPage.records[index].itemNames = name.join('、')
this.getPage.records[index].drugItemList = this.itemList // this.getPage.records[index].drugItemList = this.itemList
this.$set(this.getPage.records, index, this.getPage.records[index]) // this.$set(this.getPage.records, index, this.getPage.records[index])
} else { // } else {
const name = [] // const name = []
this.itemList = [] // this.itemList = []
for (let i = 0; i < info.length; i++) { // for (let i = 0; i < info.length; i++) {
this.itemList.push(info[i]) // this.itemList.push(info[i])
name.push(info[i].name) // name.push(info[i].name)
} // }
this.getPage.records[index].itemNames = name.join('、') // this.getPage.records[index].itemNames = name.join('、')
this.getPage.records[index].drugItemList = this.itemList // this.getPage.records[index].drugItemList = this.itemList
this.$set(this.getPage.records, index, this.getPage.records[index]) // this.$set(this.getPage.records, index, this.getPage.records[index])
} // }
} // }
console.log(this.getPage.records) // console.log(this.getPage.records)
}, },
_cusNameChange(msg, data) { _cusNameChange(msg, data) {
// this.financeObj = {} // 清空维护发票信息的数据 // this.financeObj = {} // 清空维护发票信息的数据
......
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