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
307aa39e
Commit
307aa39e
authored
Jul 25, 2020
by
lichengming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了报价登记的导入
parent
36cdecaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
9 deletions
+39
-9
MeterQuoteRegisterEdit.vue
.../meter-business/quote-register/MeterQuoteRegisterEdit.vue
+39
-9
No files found.
pages/meter-business/quote-register/MeterQuoteRegisterEdit.vue
View file @
307aa39e
...
...
@@ -405,9 +405,34 @@ export default {
},
_inputBack
(
data
)
{
console
.
log
(
data
)
if
(
undefined
!==
data
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
this
.
getPage
.
records
.
push
(
data
[
i
])
if
(
this
.
getPage
.
records
.
length
>
0
)
{
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
)
}
}
}
},
...
...
@@ -664,21 +689,26 @@ export default {
this
.
_showAddress
(
formObj
)
this
.
_showTime
(
formObj
)
this
.
getPage
.
records
=
formObj
.
sampleList
console
.
log
(
formObj
)
for
(
let
i
=
0
;
i
<
formObj
.
sampleList
.
length
;
i
++
)
{
this
.
getPage
.
records
[
i
].
lastTime
=
new
Date
(
formObj
.
sampleList
[
i
].
lastTime
)
if
(
formObj
.
sampleList
[
i
].
lastTime
!==
undefined
)
{
this
.
getPage
.
records
[
i
].
lastTime
=
new
Date
(
formObj
.
sampleList
[
i
].
lastTime
)
}
}
},
_getList
:
async
function
()
{
const
result
=
await
meterEntrust
.
pageList
()
const
list
=
[]
//
const list = []
if
(
result
)
{
for
(
let
i
=
0
;
i
<
result
.
length
;
i
++
)
{
list
.
push
(
result
[
i
].
cname
)
// list.push(result[i].cname)
this
.
customerData
.
push
(
result
[
i
].
cname
)
console
.
log
(
this
.
customerData
)
}
console
.
log
(
'委托单位名单'
,
list
)
this
.
customerData
=
list
//
console.log('委托单位名单', list)
//
this.customerData = list
}
},
_getQueryList
:
async
function
(
data
)
{
...
...
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