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
Hide 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) => {
...
@@ -172,6 +172,12 @@ export const getUserByCompanyCode = (data) => {
return
http
.
post
(
url
,
d
)
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
)
=>
{
export
const
getImgInfoList
=
(
data
)
=>
{
let
url
=
`/service/S_XC_IMG`
;
let
url
=
`/service/S_XC_IMG`
;
let
d
=
setParamsData
(
data
)
let
d
=
setParamsData
(
data
)
...
...
pages/product-order/list.vue
View file @
f217b9bb
...
@@ -105,15 +105,33 @@
...
@@ -105,15 +105,33 @@
<text
class=
"text-title"
>
{{
item
.
quantity
}}
</text>
<text
class=
"text-title"
>
{{
item
.
quantity
}}
</text>
</view>
</view>
<view
class=
"flex-row"
>
<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-gray part-2"
>
:
</text>
<text
class=
"text-title"
>
{{
item
.
finishQuantity
}}
</text>
<text
class=
"text-title"
>
{{
Number
(
item
.
singleWeight
)
}}
</text>
</view>
</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-1"
>
完成状态
</text>
<text
class=
"text-gray part-2"
>
:
</text>
<text
class=
"text-gray part-2"
>
:
</text>
<text
class=
"text-title"
>
{{
Number
(
item
.
finishQuantity
)
>=
Number
(
item
.
quantity
)
?
'已完工'
:
'未完工'
}}
</text>
<text
class=
"text-title"
>
{{
Number
(
item
.
unfinishWeight
)
<=
0
?
'已完工'
:
'未完工'
}}
</text>
</view>
-->
</view>
</view>
</view>
...
@@ -141,6 +159,7 @@
...
@@ -141,6 +159,7 @@
}
from
"@/utils/tools.js"
;
}
from
"@/utils/tools.js"
;
import
moment
from
"@/common/moment.js"
;
import
moment
from
"@/common/moment.js"
;
import
{
getParamsList
,
getList
,
getCount
}
from
"@/api/product-order.js"
;
import
{
getParamsList
,
getList
,
getCount
}
from
"@/api/product-order.js"
;
import
{
getProcessByCompanyCode
}
from
"@/api/index.js"
;
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -267,12 +286,15 @@
...
@@ -267,12 +286,15 @@
})
})
},
},
onLoading
()
{
onLoading
()
{
getParamsList
().
then
(
res
=>
{
getProcessByCompanyCode
({
if
(
res
.
data
&&
res
.
data
.
length
){
companyCode
:
uni
.
getStorageSync
(
""
)
let
list
=
res
.
data
.
map
(
item
=>
{
}).
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
{
return
{
label
:
item
.
companyName
,
label
:
item
.
textField
,
value
:
item
.
companyCode
value
:
item
.
valueField
}
}
})
})
this
.
factoryList
=
[...
this
.
factoryList
,...
list
];
this
.
factoryList
=
[...
this
.
factoryList
,...
list
];
...
@@ -289,7 +311,7 @@
...
@@ -289,7 +311,7 @@
getList
({
getList
({
...
this
.
queryData
,
...
this
.
queryData
,
completeStatus
:
this
.
tabList
[
this
.
current
].
value
,
completeStatus
:
this
.
tabList
[
this
.
current
].
value
,
company
Code
:
this
.
factoryList
[
this
.
index
].
value
process
Code
:
this
.
factoryList
[
this
.
index
].
value
},
this
.
pageData
).
then
(
res
=>
{
},
this
.
pageData
).
then
(
res
=>
{
uni
.
hideLoading
();
uni
.
hideLoading
();
let
list
=
toJsonData
(
res
.
data
.
__blocks__
.
result
.
rows
,
res
.
data
.
__blocks__
.
result
.
meta
.
columns
);
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 = {
...
@@ -6,8 +6,8 @@ module.exports = {
proxy
:
{
proxy
:
{
'/prod-api'
:
{
'/prod-api'
:
{
// target: `http://10.24.4.81:8099/hggp`,
// target: `http://10.24.4.81:8099/hggp`,
//
target: `http://129.211.46.84:8085/hggp`,
target
:
`http://129.211.46.84:8085/hggp`
,
target
:
`https://www.eis-paas.com/hggp`
,
//
target: `https://www.eis-paas.com/hggp`,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
'/prod-api'
:
''
'/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