Commit 67237c2f by lichengming

修改了试验委托评审

parent 652d4bcd
......@@ -88,7 +88,7 @@
</div>
</Modal>
<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>
</template>
<script>
......@@ -263,38 +263,38 @@ export default {
methods: {
_itemImportBack(data) {
console.log('传过来的数据', data)
for (let i = 0; i < data.length; i++) {
data[i].id = undefined
}
const info = data
console.log('去掉id后的data', info)
for (let i = 0; i < this.indexList.length; i++) {
const index = this.indexList[i]
if (this.getPage.records[index].drugItemList !== undefined) {
const name = []
this.itemList = this.getPage.records[index].drugItemList
name.push(this.getPage.records[index].itemNames)
for (let i = 0; i < info.length; i++) {
console.log(this.getPage.records[index].itemNames[i])
this.itemList.push(info[i])
name.push(info[i].name)
}
this.getPage.records[index].itemNames = name.join('、')
this.getPage.records[index].drugItemList = this.itemList
this.$set(this.getPage.records, index, this.getPage.records[index])
} else {
const name = []
this.itemList = []
for (let i = 0; i < info.length; i++) {
this.itemList.push(info[i])
name.push(info[i].name)
}
this.getPage.records[index].itemNames = name.join('、')
this.getPage.records[index].drugItemList = this.itemList
this.$set(this.getPage.records, index, this.getPage.records[index])
}
}
console.log(this.getPage.records)
// for (let i = 0; i < data.length; i++) {
// data[i].id = undefined
// }
// const info = data
// console.log('去掉id后的data', info)
// for (let i = 0; i < this.indexList.length; i++) {
// const index = this.indexList[i]
// if (this.getPage.records[index].drugItemList !== undefined) {
// const name = []
// this.itemList = this.getPage.records[index].drugItemList
// name.push(this.getPage.records[index].itemNames)
// for (let i = 0; i < info.length; i++) {
// console.log(this.getPage.records[index].itemNames[i])
// this.itemList.push(info[i])
// name.push(info[i].name)
// }
// this.getPage.records[index].itemNames = name.join('、')
// this.getPage.records[index].drugItemList = this.itemList
// this.$set(this.getPage.records, index, this.getPage.records[index])
// } else {
// const name = []
// this.itemList = []
// for (let i = 0; i < info.length; i++) {
// this.itemList.push(info[i])
// name.push(info[i].name)
// }
// this.getPage.records[index].itemNames = name.join('、')
// this.getPage.records[index].drugItemList = this.itemList
// this.$set(this.getPage.records, index, this.getPage.records[index])
// }
// }
// console.log(this.getPage.records)
},
_cusNameChange(msg, data) {
// 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