Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-front
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
platform
hg-front
Commits
21834119
Commit
21834119
authored
Jul 25, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
b2850a19
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
189 additions
and
61 deletions
+189
-61
index.js
api/index.js
+39
-0
edit.vue
pages/product-order/edit.vue
+2
-4
index.vue
pages/product-order/index.vue
+148
-57
No files found.
api/index.js
View file @
21834119
...
...
@@ -50,6 +50,39 @@ const setParamsData = (data = {}) => {
return
paramsData
}
const
setResultData
=
(
data
=
{})
=>
{
let
obj
=
{}
for
(
let
i
in
data
)
{
if
(
data
[
i
]
!==
''
)
{
obj
[
i
]
=
data
[
i
]
}
}
let
paramsData
=
{
"__version__"
:
"2.0"
,
"__sys__"
:
{},
"__blocks__"
:
{
"result"
:
{
"attr"
:
{},
"meta"
:
{
"columns"
:
[]
},
"rows"
:
[]
}
}
}
let
keyList
=
Object
.
keys
(
obj
);
keyList
.
forEach
((
item
,
index
)
=>
{
paramsData
.
__blocks__
.
result
.
meta
.
columns
.
push
({
pos
:
index
,
name
:
item
})
})
paramsData
.
__blocks__
.
result
.
rows
.
push
(
Object
.
values
(
obj
));
return
paramsData
}
// 登录
export
const
login
=
(
data
)
=>
{
let
url
=
`/service/S_XS_105`
...
...
@@ -139,6 +172,12 @@ export const getUserByCompanyCode = (data) => {
return
http
.
post
(
url
,
d
)
}
export
const
getImgInfoList
=
(
data
)
=>
{
let
url
=
`/service/S_XC_IMG`
;
let
d
=
setParamsData
(
data
)
return
http
.
post
(
url
,
d
)
}
//上传文件
...
...
pages/product-order/edit.vue
View file @
21834119
...
...
@@ -208,9 +208,7 @@
}
},
onBack
()
{
uni
.
redirectTo
({
url
:
"/pages/product-order/list"
})
uni
.
navigateBack
();
},
onOpenCalendar
(){
this
.
show2
=
true
;
...
...
@@ -236,7 +234,7 @@
taskId
:
this
.
orderInfo
.
id
,
registerDate
:
this
.
orderInfo
.
registerDate
||
moment
().
format
(
"YYYY-MM-DD"
),
quantity
:
this
.
orderInfo
.
finishQuantity
,
mat
Id
:
this
.
fileList
&&
this
.
fileList
.
length
?
this
.
fileList
.
map
(
item
=>
item
.
id
).
join
():
''
doc
Id
:
this
.
fileList
&&
this
.
fileList
.
length
?
this
.
fileList
.
map
(
item
=>
item
.
id
).
join
():
''
}).
then
(
res
=>
{
if
(
res
.
data
.
__sys__
.
status
===
0
){
uni
.
showToast
({
...
...
pages/product-order/index.vue
View file @
21834119
This diff is collapsed.
Click to expand it.
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