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
cf0e9287
Commit
cf0e9287
authored
Sep 05, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
d1966f02
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
2 deletions
+61
-2
add.vue
pages/picking/add.vue
+26
-1
edit.vue
pages/picking/edit.vue
+1
-1
edit.vue
pages/product-order/edit.vue
+24
-0
index.vue
pages/product-order/index.vue
+10
-0
No files found.
pages/picking/add.vue
View file @
cf0e9287
...
@@ -203,7 +203,7 @@
...
@@ -203,7 +203,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>
...
@@ -345,6 +345,23 @@
...
@@ -345,6 +345,23 @@
})
})
return
return
}
}
if
(
!
this
.
formList
.
length
)
{
uni
.
showToast
({
icon
:
"none"
,
title
:
"请添加至少一项明细"
})
return
}
let
len
=
this
.
formList
.
filter
(
item
=>
item
.
inventRecordIndex
>=
0
)
if
(
!
len
.
length
){
uni
.
showToast
({
icon
:
"none"
,
title
:
"请将明细数据补充完整"
})
return
}
this
.
show
=
true
this
.
show
=
true
},
},
onOpenCalendar
()
{
onOpenCalendar
()
{
...
@@ -420,6 +437,14 @@
...
@@ -420,6 +437,14 @@
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
data
.
__sys__
.
status
===
0
)
{
if
(
res
.
data
.
__sys__
.
status
===
0
)
{
this
.
onSubSave
(
++
i
);
this
.
onSubSave
(
++
i
);
}
else
{
uni
.
showToast
({
icon
:
"none"
,
title
:
`领料单创建成功,明细第
${
i
+
1
}
条添加失败,即将返回上一页`
})
setTimeout
(()
=>
{
this
.
onBack
();
},
5000
)
}
}
})
})
},
},
...
...
pages/picking/edit.vue
View file @
cf0e9287
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
<view
v-if=
"orderInfo.status=='0'"
class=
"footer-box"
>
<view
v-if=
"orderInfo.status=='0'"
class=
"footer-box"
>
<button
class=
"cu-btn block bg-blue"
@
tap=
"onSubmit(1)"
>
提交
</button>
<button
class=
"cu-btn block bg-blue"
@
tap=
"onSubmit(1)"
>
保存
</button>
<button
v-if=
"subId"
class=
"cu-btn block bg-green"
@
tap=
"onSubmit(2)"
>
删除
</button>
<button
v-if=
"subId"
class=
"cu-btn block bg-green"
@
tap=
"onSubmit(2)"
>
删除
</button>
</view>
</view>
<u-modal
:show=
"show"
title=
"提示"
:content=
'content'
:showCancelButton=
"true"
@
confirm=
"onSave"
<u-modal
:show=
"show"
title=
"提示"
:content=
'content'
:showCancelButton=
"true"
@
confirm=
"onSave"
...
...
pages/product-order/edit.vue
View file @
cf0e9287
...
@@ -39,6 +39,30 @@
...
@@ -39,6 +39,30 @@
:disabled=
"true"
:disabled=
"true"
></u--input>
></u--input>
</view>
</view>
<view
class=
"flex-col"
>
<view
class=
"margin-sm"
>
<text
class=
"text-black text-title text-lg"
>
产品规格:
</text>
</view>
<u--input
placeholder=
"请输入内容"
border=
"surround"
v-model=
"orderInfo.spec"
:disabled=
"true"
></u--input>
</view>
<view
class=
"flex-col"
>
<view
class=
"margin-sm"
>
<text
class=
"text-black text-title text-lg"
>
产品长度:
</text>
</view>
<u--input
placeholder=
"请输入内容"
border=
"surround"
v-model=
"orderInfo.length"
:disabled=
"true"
></u--input>
</view>
<view
class=
"flex-col"
>
<view
class=
"flex-col"
>
<view
class=
"margin-sm"
>
<view
class=
"margin-sm"
>
<text
class=
"text-black text-title text-lg"
>
公司名称:
</text>
<text
class=
"text-black text-title text-lg"
>
公司名称:
</text>
...
...
pages/product-order/index.vue
View file @
cf0e9287
...
@@ -133,6 +133,16 @@
...
@@ -133,6 +133,16 @@
<text
class=
"text-title"
>
{{
item
.
productName
}}
(
{{
item
.
processName
}}
)
</text>
<text
class=
"text-title"
>
{{
item
.
productName
}}
(
{{
item
.
processName
}}
)
</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"
>
{{
item
.
spec
}}
</text>
</view>
<view
class=
"flex-row"
>
<text
class=
"text-gray part-1"
>
产品长度
</text>
<text
class=
"text-gray part-2"
>
:
</text>
<text
class=
"text-title"
>
{{
item
.
length
}}
</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"
>
{{
item
.
planEndDate
}}
</text>
<text
class=
"text-title"
>
{{
item
.
planEndDate
}}
</text>
...
...
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