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
b95f3a40
Commit
b95f3a40
authored
Jul 25, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了出检委托单导入
parent
c6363264
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
7 deletions
+40
-7
MeterGoOutTestEdit.vue
pages/meter-entrust/go-out-test/MeterGoOutTestEdit.vue
+40
-7
No files found.
pages/meter-entrust/go-out-test/MeterGoOutTestEdit.vue
View file @
b95f3a40
<
template
>
<
template
>
<div>
<div>
<Modal
v-model=
"showModal"
:mask-closable=
"false"
width=
"12
3
0"
>
<Modal
v-model=
"showModal"
:mask-closable=
"false"
width=
"12
5
0"
>
<p
slot=
"header"
>
{{
modalTitle
}}
</p>
<p
slot=
"header"
>
{{
modalTitle
}}
</p>
<div>
<div>
<Form
id=
"edit-form"
ref=
"formObj"
:model=
"formObj"
:rules=
"ruleValidate"
:label-width=
"90"
inline
>
<Form
id=
"edit-form"
ref=
"formObj"
:model=
"formObj"
:rules=
"ruleValidate"
:label-width=
"90"
inline
>
...
@@ -158,11 +158,11 @@
...
@@ -158,11 +158,11 @@
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<modal-footer
ref=
"footerModal"
:footer=
"footerList"
@
on-result-change=
"_footerResult"
></modal-footer>
<modal-footer
ref=
"footerModal"
:footer=
"footerList"
@
on-result-change=
"_footerResult"
></modal-footer>
</div>
</div>
<VerificationModal
ref=
"VerificationModal"
@
on-result-change=
"_backVerification"
></VerificationModal>
<ContractModal
ref=
"ContractModal"
@
on-result-change=
"_backContract"
is-change
></ContractModal>
<EditModal
ref=
"EditModal"
@
on-result-change=
"_backData"
is-change
/>
<importModal
ref=
"importModal"
@
on-result-change=
"_inputBack"
aptitude-item
></importModal>
</Modal>
</Modal>
<VerificationModal
ref=
"VerificationModal"
@
on-result-change=
"_backVerification"
></VerificationModal>
<ContractModal
ref=
"ContractModal"
@
on-result-change=
"_backContract"
is-change
></ContractModal>
<EditModal
ref=
"EditModal"
@
on-result-change=
"_backData"
is-change
/>
<importModal
ref=
"importModal"
@
on-result-change=
"_inputBack"
aptitude-item
></importModal>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -393,11 +393,37 @@ export default {
...
@@ -393,11 +393,37 @@ export default {
title
:
'导入'
title
:
'导入'
}
}
this
.
$refs
.
importModal
.
_open
(
data
,
'样品导入'
)
this
.
$refs
.
importModal
.
_open
(
data
,
'样品导入'
)
console
.
log
(
'导入'
)
},
},
_inputBack
(
data
)
{
_inputBack
(
data
)
{
console
.
log
(
data
)
if
(
undefined
!==
data
)
{
if
(
undefined
!==
data
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
if
(
this
.
getPage
.
records
.
length
>
0
)
{
this
.
getPage
.
records
.
push
(
data
[
i
])
const
j
=
this
.
getPage
.
records
.
length
for
(
let
i
=
j
;
i
<
data
.
length
+
j
;
i
++
)
{
console
.
log
(
i
)
this
.
getPage
.
records
.
push
(
data
[
i
-
j
])
if
(
data
[
i
-
j
].
lastTime
!==
undefined
)
{
this
.
getPage
.
records
[
i
].
lastTime
=
new
Date
(
data
[
i
-
j
].
lastTime
)
}
console
.
log
(
this
.
getPage
.
records
)
// this.getPage.records[i].lastTime = new Date(data[0].lastTime)
}
}
else
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
// if (this.getPage.records[i].lastTime !== undefined) {
// const t = this.getPage.records[i].lastTime
// const d = t.valueOf(t)
// console.log('时间戳', d)
// this.getPage.records[i].lastTime = d
// this.getPage.records = []
// }
this
.
getPage
.
records
.
push
(
data
[
i
])
if
(
data
[
i
].
lastTime
!==
undefined
)
{
this
.
getPage
.
records
[
i
].
lastTime
=
new
Date
(
data
[
i
].
lastTime
)
}
console
.
log
(
data
[
i
].
lastTime
)
}
}
}
}
}
},
},
...
@@ -734,6 +760,13 @@ export default {
...
@@ -734,6 +760,13 @@ export default {
this
.
_showTime
(
formObj
)
this
.
_showTime
(
formObj
)
this
.
getPage
.
records
=
formObj
.
sampleList
this
.
getPage
.
records
=
formObj
.
sampleList
console
.
log
(
this
.
formObj
)
console
.
log
(
this
.
formObj
)
for
(
let
i
=
0
;
i
<
formObj
.
sampleList
.
length
;
i
++
)
{
if
(
formObj
.
sampleList
[
i
].
lastTime
!==
undefined
)
{
this
.
getPage
.
records
[
i
].
lastTime
=
new
Date
(
formObj
.
sampleList
[
i
].
lastTime
)
}
}
},
},
_getList
:
async
function
()
{
_getList
:
async
function
()
{
const
result
=
await
meterEntrust
.
pageList
()
const
result
=
await
meterEntrust
.
pageList
()
...
...
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