Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-back-soil
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangweidong
patzn-cloud-web-back-soil
Commits
67237c2f
Commit
67237c2f
authored
Sep 15, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了试验委托评审
parent
652d4bcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
33 deletions
+33
-33
EntrustRegisterEdit.vue
pages/meter-entrust/entrust-register/EntrustRegisterEdit.vue
+33
-33
No files found.
pages/meter-entrust/entrust-register/EntrustRegisterEdit.vue
View file @
67237c2f
...
...
@@ -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 = {} // 清空维护发票信息的数据
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment