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
f217b9bb
Commit
f217b9bb
authored
Aug 22, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
3cdcd05f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
13 deletions
+41
-13
index.js
api/index.js
+6
-0
list.vue
pages/product-order/list.vue
+33
-11
vue.config.js
vue.config.js
+2
-2
No files found.
api/index.js
View file @
f217b9bb
...
...
@@ -172,6 +172,12 @@ export const getUserByCompanyCode = (data) => {
return
http
.
post
(
url
,
d
)
}
export
const
getProcessByCompanyCode
=
(
data
)
=>
{
let
url
=
`/service/S_SC_GX_01`
;
let
d
=
setParamsData
(
data
)
return
http
.
post
(
url
,
d
)
}
export
const
getImgInfoList
=
(
data
)
=>
{
let
url
=
`/service/S_XC_IMG`
;
let
d
=
setParamsData
(
data
)
...
...
pages/product-order/list.vue
View file @
f217b9bb
...
...
@@ -105,15 +105,33 @@
<text
class=
"text-title"
>
{{
item
.
quantity
}}
</text>
</view>
<view
class=
"flex-row"
>
<text
class=
"text-gray part-1"
>
完工数量
</text>
<text
class=
"text-gray part-1"
>
任务单重
</text>
<text
class=
"text-gray part-2"
>
:
</text>
<text
class=
"text-title"
>
{{
item
.
finishQuantity
}}
</text>
<text
class=
"text-title"
>
{{
Number
(
item
.
singleWeight
)
}}
</text>
</view>
<!--
<view
class=
"flex-row"
>
<view
class=
"flex-row"
>
<text
class=
"text-gray part-1"
>
任务总重
</text>
<text
class=
"text-gray part-2"
>
:
</text>
<text
class=
"text-title"
>
{{
Number
(
item
.
totalWeight
)
}}
</text>
</view>
<view
class=
"flex-row"
>
<text
class=
"text-gray part-1"
>
完工重量
</text>
<text
class=
"text-gray part-2"
>
:
</text>
<text
class=
"text-title"
>
{{
Number
(
item
.
finishWeight
)
}}
</text>
</view>
<view
class=
"flex-row"
>
<text
class=
"text-gray part-1"
>
待完工重量
</text>
<text
class=
"text-gray part-2"
>
:
</text>
<text
class=
"text-title"
>
{{
Number
(
item
.
unfinishWeight
)
}}
</text>
</view>
<view
class=
"flex-row"
>
<text
class=
"text-gray part-1"
>
完成状态
</text>
<text
class=
"text-gray part-2"
>
:
</text>
<text
class=
"text-title"
>
{{
Number
(
item
.
finishQuantity
)
>=
Number
(
item
.
quantity
)
?
'已完工'
:
'未完工'
}}
</text>
</view>
-->
<text
class=
"text-title"
>
{{
Number
(
item
.
unfinishWeight
)
<=
0
?
'已完工'
:
'未完工'
}}
</text>
</view>
</view>
...
...
@@ -141,6 +159,7 @@
}
from
"@/utils/tools.js"
;
import
moment
from
"@/common/moment.js"
;
import
{
getParamsList
,
getList
,
getCount
}
from
"@/api/product-order.js"
;
import
{
getProcessByCompanyCode
}
from
"@/api/index.js"
;
export
default
{
data
()
{
...
...
@@ -267,12 +286,15 @@
})
},
onLoading
()
{
getParamsList
().
then
(
res
=>
{
if
(
res
.
data
&&
res
.
data
.
length
){
let
list
=
res
.
data
.
map
(
item
=>
{
getProcessByCompanyCode
({
companyCode
:
uni
.
getStorageSync
(
""
)
}).
then
(
res
=>
{
console
.
log
(
res
,
9999
)
if
(
res
.
data
.
__sys__
.
status
===
0
){
let
list
=
toJsonData
(
res
.
data
.
__blocks__
.
processCode_block_id
.
rows
,
res
.
data
.
__blocks__
.
processCode_block_id
.
meta
.
columns
).
map
(
item
=>
{
return
{
label
:
item
.
companyName
,
value
:
item
.
companyCode
label
:
item
.
textField
,
value
:
item
.
valueField
}
})
this
.
factoryList
=
[...
this
.
factoryList
,...
list
];
...
...
@@ -289,7 +311,7 @@
getList
({
...
this
.
queryData
,
completeStatus
:
this
.
tabList
[
this
.
current
].
value
,
company
Code
:
this
.
factoryList
[
this
.
index
].
value
process
Code
:
this
.
factoryList
[
this
.
index
].
value
},
this
.
pageData
).
then
(
res
=>
{
uni
.
hideLoading
();
let
list
=
toJsonData
(
res
.
data
.
__blocks__
.
result
.
rows
,
res
.
data
.
__blocks__
.
result
.
meta
.
columns
);
...
...
vue.config.js
View file @
f217b9bb
...
...
@@ -6,8 +6,8 @@ module.exports = {
proxy
:
{
'/prod-api'
:
{
// target: `http://10.24.4.81:8099/hggp`,
//
target: `http://129.211.46.84:8085/hggp`,
target
:
`https://www.eis-paas.com/hggp`
,
target
:
`http://129.211.46.84:8085/hggp`
,
//
target: `https://www.eis-paas.com/hggp`,
changeOrigin
:
true
,
pathRewrite
:
{
'/prod-api'
:
''
...
...
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