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
bf7af57b
Commit
bf7af57b
authored
Sep 04, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
20e0b23a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
21 deletions
+66
-21
product-order.js
api/product-order.js
+1
-1
add-sub.vue
pages/picking/add-sub.vue
+1
-1
index.vue
pages/product-order/index.vue
+13
-2
list.vue
pages/product-order/list.vue
+51
-17
No files found.
api/product-order.js
View file @
bf7af57b
...
@@ -114,7 +114,7 @@ export const getParamsList = () => {
...
@@ -114,7 +114,7 @@ export const getParamsList = () => {
}
}
export
const
getList
=
(
params
,
pageData
)
=>
{
export
const
getList
=
(
params
,
pageData
)
=>
{
let
url
=
`/service/S_SC_RW_0
1
`
let
url
=
`/service/S_SC_RW_0
7
`
let
d
=
setParamsData
(
params
,
pageData
)
let
d
=
setParamsData
(
params
,
pageData
)
return
http
.
post
(
url
,
d
)
return
http
.
post
(
url
,
d
)
}
}
...
...
pages/picking/add-sub.vue
View file @
bf7af57b
...
@@ -178,7 +178,7 @@
...
@@ -178,7 +178,7 @@
</view>
</view>
<view
class=
"footer-box"
>
<view
class=
"footer-box"
>
<button
class=
"cu-btn block bg-blue"
@
tap=
"onSubmit"
>
提交
</button>
<button
class=
"cu-btn block bg-blue"
@
tap=
"onSubmit"
>
保存
</button>
</view>
</view>
<u-calendar
:show=
"show2"
mode=
"single"
:defaultDate=
"receiptDate"
:minDate=
"minDate"
:monthNum=
'4'
<u-calendar
:show=
"show2"
mode=
"single"
:defaultDate=
"receiptDate"
:minDate=
"minDate"
:monthNum=
'4'
@
confirm=
"onConfirm"
@
close=
"onCancel"
></u-calendar>
@
confirm=
"onConfirm"
@
close=
"onCancel"
></u-calendar>
...
...
pages/product-order/index.vue
View file @
bf7af57b
...
@@ -94,16 +94,27 @@
...
@@ -94,16 +94,27 @@
<text
class=
"text-gray part-2"
>
:
</text>
<text
class=
"text-gray part-2"
>
:
</text>
<text
class=
"text-title"
>
{{
orderInfo
.
registeredQuantity
}}
</text>
<text
class=
"text-title"
>
{{
orderInfo
.
registeredQuantity
}}
</text>
</view>
</view>
<view
v-if=
"Number(orderInfo.unregisterQuantity)"
class=
"flex-row"
>
<view
v-if=
"Number(orderInfo.unregisterQuantity)
&& Number(orderInfo.unregisterQuantity)>0
"
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"
>
{{
orderInfo
.
unregisterQuantity
}}
</text>
<text
class=
"text-title"
>
{{
orderInfo
.
unregisterQuantity
}}
</text>
</view>
</view>
<view
v-if=
"Number(orderInfo.unregisterWeight)"
class=
"flex-row"
>
<view
v-if=
"Number(orderInfo.unregisterQuantity) && Number(orderInfo.unregisterQuantity)
<0
"
class=
"flex-row"
>
<text
class=
"text-red part-1"
>
超报数量
</text>
<text
class=
"text-red part-2"
>
:
</text>
<text
class=
"text-title text-red"
>
{{
Math
.
abs
(
orderInfo
.
unregisterQuantity
)
}}
</text>
</view>
<view
v-if=
"Number(orderInfo.unregisterWeight)&&Number(orderInfo.unregisterWeight)>0"
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
(
orderInfo
.
unregisterWeight
)
}}
</text>
<text
class=
"text-title"
>
{{
Number
(
orderInfo
.
unregisterWeight
)
}}
</text>
</view>
</view>
<view
v-if=
"Number(orderInfo.unregisterWeight)&&Number(orderInfo.unregisterWeight)
<0
"
class=
"flex-row"
>
<text
class=
"text-red part-1"
>
超报重量
</text>
<text
class=
"text-red part-2"
>
:
</text>
<text
class=
"text-title text-red"
>
{{
Math
.
abs
(
orderInfo
.
unregisterWeight
)
}}
</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
pages/product-order/list.vue
View file @
bf7af57b
...
@@ -130,23 +130,52 @@
...
@@ -130,23 +130,52 @@
<text
class=
"text-title"
>
{{
Number
(
item
.
totalWeight
)
}}
</text>
<text
class=
"text-title"
>
{{
Number
(
item
.
totalWeight
)
}}
</text>
</view>
</view>
<view
class=
"flex-row"
>
<view
v-if=
"Number(item.taskQuantity)"
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
.
finishWeight
)
}}
</text>
<text
class=
"text-title"
>
{{
Number
(
item
.
taskQuantity
)
}}
</text>
</view>
</view>
<view
class=
"flex-row"
>
<view
v-if=
"Number(item.unTaskQuantity) && Number(item.unTaskQuantity)>0"
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
.
un
finishWeight
)
}}
</text>
<text
class=
"text-title"
>
{{
Number
(
item
.
un
TaskQuantity
)
}}
</text>
</view>
</view>
<view
v-if=
"Number(item.unTaskQuantity) && Number(item.unTaskQuantity)
<0
"
class=
"flex-row"
>
<text
class=
"text-red part-1"
>
超报数量
</text>
<text
class=
"text-red part-2"
>
:
</text>
<text
class=
"text-title text-red"
>
{{
Math
.
abs
(
item
.
unTaskQuantity
)
}}
</text>
</view>
<view
v-if=
"Number(item.finishQuantity)"
class=
"flex-row"
>
<text
class=
"text-gray part-1"
>
完工数量
</text>
<text
class=
"text-gray part-2"
>
:
</text>
<text
class=
"text-title"
>
{{
Number
(
item
.
finishQuantity
)
}}
</text>
</view>
<view
v-if=
"Number(item.unfinishQuantity)"
class=
"flex-row"
>
<text
class=
"text-gray part-1"
>
待完工数量
</text>
<text
class=
"text-gray part-2"
>
:
</text>
<text
class=
"text-title"
>
{{
Number
(
item
.
unfinishQuantity
)
}}
</text>
</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-title"
>
{{
completeStatusEnum
[
item
.
isComplete
]
}}
</text>
</view>
<view
class=
"flex-row"
>
<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
.
unfinishWeight
)
<=
0
?
'已完工'
:
'未完工'
}}
</text>
<text
class=
"text-title"
>
{{
Number
(
item
.
unfinishWeight
)
<=
0
?
'已完工'
:
'未完工'
}}
</text>
</view>
</view>
<view
v-if=
"item.completeDate.length>2"
class=
"flex-row"
>
<text
class=
"text-gray part-1"
>
完工日期
</text>
<text
class=
"text-gray part-2"
>
:
</text>
<text
class=
"text-title"
>
{{
item
.
completeDate
}}
</text>
</view>
</view>
</view>
...
@@ -239,23 +268,28 @@
...
@@ -239,23 +268,28 @@
target
:
60
,
target
:
60
,
modelVale
:
100
,
modelVale
:
100
,
tabList
:
[
tabList
:
[
{
//
{
name
:
'全部'
,
//
name: '全部',
value
:
''
//
value: ''
},
//
},
{
{
name
:
'未报工'
,
name
:
'未报工'
,
value
:
'0'
value
:
'0'
},
},
// {
// name: '部分报工',
// value: '1'
// },
{
{
name
:
'
已
报工'
,
name
:
'
部分
报工'
,
value
:
'1'
value
:
'1'
},
{
name
:
'全部报工'
,
value
:
'2'
}
}
],
],
completeStatusEnum
:{
0
:
'未报工'
,
1
:
'部分报工'
,
2
:
'全部报工'
,
},
value
:
0
,
value
:
0
,
title
:
'生产任务'
,
title
:
'生产任务'
,
eChartData
:
[],
eChartData
:
[],
...
@@ -370,7 +404,7 @@
...
@@ -370,7 +404,7 @@
})
})
getList
({
getList
({
...
this
.
queryData
,
...
this
.
queryData
,
completeStatus
:
this
.
tabList
[
this
.
current
].
value
,
isComplete
:
this
.
tabList
[
this
.
current
].
value
,
companyCode
:
this
.
factoryList
[
this
.
index
].
value
companyCode
:
this
.
factoryList
[
this
.
index
].
value
},
this
.
pageData
).
then
(
res
=>
{
},
this
.
pageData
).
then
(
res
=>
{
uni
.
hideLoading
();
uni
.
hideLoading
();
...
...
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