Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsMin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
92e630e5
authored
Aug 12, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
c3dc43c4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
15 deletions
pages/tally/abnormalManageList.vue
pages/tally/addAbnormal.vue
pages/tally/index.vue
pages/tally/record.vue
pages/tally/abnormalManageList.vue
View file @
92e630e5
...
...
@@ -50,7 +50,7 @@
<text
class=
"text"
style=
"margin-left: 20px;font-weight: bold;"
>
{{
item
.
abnormal_status_val
}}
</text>
</view>
</view>
<view
class=
"input-box row verCenter"
style=
"flex: 0 0 100%;"
>
<view
class=
"input-box row verCenter"
style=
"flex: 0 0 100%;"
@
click=
"open()"
>
<text
class=
"label"
>
异常编码:
</text>
<text
class=
"text"
>
{{
item
.
abnormal_number
}}
</text>
</view>
...
...
@@ -165,6 +165,7 @@
<view
class=
"uni-th"
style=
"text-align: center;"
>
明细数
</view>
<view
class=
"uni-th"
style=
"text-align: center;"
>
入库状态
</view>
</view>
<scroll-view
scroll-y=
"true"
style=
"max-height: 500rpx;"
>
<view
class=
"uni-tr"
v-for=
"(item,index) in allOrderDataByEntrustNoList"
:key=
"index"
@
click=
"selectedChange(1,index)"
:class=
"{curr:allOrderDataByEntrustNoIndex==index}"
>
<view
class=
"uni-td"
style=
"text-align: center;"
>
<
template
v-if=
"allOrderDataByEntrustNoIndex==index"
>
...
...
@@ -178,6 +179,7 @@
<view
class=
"uni-td"
style=
"text-align: center;"
>
{{item.detail_count}}
</view>
<view
class=
"uni-td"
style=
"text-align: center;"
>
{{item.stock_in_status_val}}
</view>
</view>
</scroll-view>
</view>
</view>
<view
class=
"btn row bothSide"
>
...
...
@@ -212,6 +214,8 @@
allOrderDataByEntrustNoList
:
[],
allOrderDataByEntrustNoIndex
:
-
1
,
order_id
:
''
,
erp_order_sn
:
''
,
salesman
:
''
,
searchParams
:
{
keyword
:
''
,
abnormal_status
:
''
...
...
@@ -379,6 +383,8 @@
if
(
res
.
err_code
===
0
)
{
if
(
res
.
data
.
length
>
0
)
{
if
(
res
.
data
.
length
==
1
)
{
this
.
erp_order_sn
=
res
.
data
[
0
].
erp_order_sn
;
this
.
salesman
=
res
.
data
[
0
].
salesman
;
this
.
getOrderDetailById
(
res
.
data
[
0
].
order_id
);
}
else
{
this
.
allOrderDataByEntrustNoList
=
res
.
data
;
...
...
@@ -420,8 +426,13 @@
*/
open
(
type
)
{
if
(
type
==
1
)
{
this
.
allOrderDataByEntrustNoIndex
=
-
1
;
this
.
allOrderDataByEntrustNoLis
=
[];
this
.
$refs
.
popupErpSn
.
open
();
}
else
{
this
.
entrust_no
=
''
;
this
.
orderDetailByIdIndex
=
-
1
;
this
.
orderDetailByIdList
=
[];
this
.
$refs
.
popup
.
open
();
}
},
...
...
@@ -439,6 +450,8 @@
});
return
false
;
}
this
.
erp_order_sn
=
this
.
allOrderDataByEntrustNoList
[
this
.
allOrderDataByEntrustNoIndex
].
erp_order_sn
this
.
salesman
=
this
.
allOrderDataByEntrustNoList
[
this
.
allOrderDataByEntrustNoIndex
].
salesman
this
.
getOrderDetailById
(
this
.
allOrderDataByEntrustNoList
[
this
.
allOrderDataByEntrustNoIndex
].
order_id
);
this
.
$refs
.
popupErpSn
.
close
();
}
else
{
...
...
@@ -478,10 +491,8 @@
}
this
.
$refs
.
popup
.
close
();
this
.
$refs
.
popupErpSn
.
close
();
let
erp_order_sn
=
this
.
allOrderDataByEntrustNoList
[
this
.
allOrderDataByEntrustNoIndex
].
erp_order_sn
;
let
salesman
=
this
.
allOrderDataByEntrustNoList
[
this
.
allOrderDataByEntrustNoIndex
].
salesman
;
uni
.
navigateTo
({
url
:
'/pages/tally/addAbnormal?order_id='
+
this
.
order_id
+
'&erp_order_sn='
+
erp_order_sn
+
'&salesman='
+
salesman
+
'&orderDetailByIdIndex='
+
this
.
orderDetailByIdIndex
url
:
'/pages/tally/addAbnormal?order_id='
+
this
.
order_id
+
'&erp_order_sn='
+
this
.
erp_order_sn
+
'&salesman='
+
this
.
salesman
+
'&orderDetailByIdIndex='
+
this
.
orderDetailByIdIndex
})
},
/**
...
...
pages/tally/addAbnormal.vue
View file @
92e630e5
...
...
@@ -52,27 +52,28 @@
</view>
<view
class=
"box row verCenter"
>
<template
v-if=
"index == 0"
>
<text
class=
"label"
>
实物
型号
</text>
<text
class=
"label"
>
实物
品牌
</text>
<view
class=
"uni-input-box row verCenter bothSide"
>
<input
type=
"text"
class=
"uni-input"
placeholder=
"实物
型号"
placeholder-style=
"color:#404547;font-weight:bold;"
v-model=
"form.actual_model
"
style=
"width: 100%;"
/>
<input
type=
"text"
class=
"uni-input"
placeholder=
"实物
品牌"
placeholder-style=
"color:#404547;font-weight:bold;"
v-model=
"form.actual_brand
"
style=
"width: 100%;"
/>
</view>
</
template
>
<
template
v-else-if=
"index == 1"
>
<text
class=
"label"
>
实物
品牌
</text>
<text
class=
"label"
>
实物
型号
</text>
<view
class=
"uni-input-box row verCenter bothSide"
>
<input
type=
"text"
class=
"uni-input"
placeholder=
"实物
品牌"
placeholder-style=
"color:#404547;font-weight:bold;"
v-model=
"form.actual_brand
"
style=
"width: 100%;"
/>
<input
type=
"text"
class=
"uni-input"
placeholder=
"实物
型号"
placeholder-style=
"color:#404547;font-weight:bold;"
v-model=
"form.actual_model
"
style=
"width: 100%;"
/>
</view>
</
template
>
<
template
v-else-if=
"index == 2"
>
<text
class=
"label"
>
实物
数量
</text>
<text
class=
"label"
>
实物
产地
</text>
<view
class=
"uni-input-box row verCenter bothSide"
>
<input
type=
"text"
class=
"uni-input"
placeholder=
"实物
型号"
placeholder-style=
"color:#404547;font-weight:bold;"
v-model=
"form.actual_qty
"
style=
"width: 100%;"
/>
<input
type=
"text"
class=
"uni-input"
placeholder=
"实物
产地"
placeholder-style=
"color:#404547;font-weight:bold;"
v-model=
"form.actual_origin
"
style=
"width: 100%;"
/>
</view>
</
template
>
<
template
v-else-if=
"index == 3"
>
<text
class=
"label"
>
实物
产地
</text>
<text
class=
"label"
>
实物
数量
</text>
<view
class=
"uni-input-box row verCenter bothSide"
>
<input
type=
"text"
class=
"uni-input"
placeholder=
"实物
型号"
placeholder-style=
"color:#404547;font-weight:bold;"
v-model=
"form.actual_origin
"
style=
"width: 100%;"
/>
<input
type=
"text"
class=
"uni-input"
placeholder=
"实物
数量"
placeholder-style=
"color:#404547;font-weight:bold;"
v-model=
"form.actual_qty
"
style=
"width: 100%;"
/>
</view>
</
template
>
</view>
...
...
@@ -122,7 +123,7 @@
data
()
{
return
{
noexebshowFalg
:
true
,
//控制是否会触发生命周期
array
:
[
'
型号异常'
,
'品牌异常'
,
'数量异常'
,
'产地
异常'
],
array
:
[
'
品牌异常'
,
'型号异常'
,
'产地异常'
,
'数量
异常'
],
index
:
0
,
salesman
:
''
,
orderDetailByIdIndex
:
''
,
...
...
@@ -342,7 +343,7 @@
});
return
false
;
}
if
(
this
.
form
.
is_business_processing
==
''
)
{
if
(
this
.
form
.
is_business_processing
==
=
''
)
{
uni
.
showToast
({
title
:
'请选择是否需要业务处理'
,
icon
:
'none'
...
...
pages/tally/index.vue
View file @
92e630e5
...
...
@@ -387,7 +387,13 @@
}
},
onShow
()
{
//获取异常数量
this
.
getStayHandleCount
();
if
(
this
.
box_sn
&&
this
.
erp_order_sn
)
{
this
.
getTallyList
();
}
},
methods
:
{
/**
...
...
pages/tally/record.vue
View file @
92e630e5
...
...
@@ -155,11 +155,40 @@
this
.
page
++
;
this
.
getData
();
},
mounted
()
{
},
onShow
()
{
this
.
getData
();
this
.
setDefaultTimeInterval
();
},
methods
:
{
/**
* 设置默认的时间区间为近一个月
*/
setDefaultTimeInterval
()
{
const
currentDate
=
new
Date
();
// 格式化日期为 YYYY-MM-DD
const
formatDate
=
(
date
)
=>
{
const
year
=
date
.
getFullYear
();
const
month
=
(
date
.
getMonth
()
+
1
).
toString
().
padStart
(
2
,
'0'
);
const
day
=
date
.
getDate
().
toString
().
padStart
(
2
,
'0'
);
return
`
${
year
}
-
${
month
}
-
${
day
}
`
;
};
// 结束日期为当前日期
const
create_time_end
=
formatDate
(
currentDate
);
// 起始日期为一个月前的日期
const
create_time_begin
=
formatDate
(
new
Date
(
currentDate
.
setMonth
(
currentDate
.
getMonth
()
-
1
)));
// 设置到 searchParams
this
.
searchParams
.
create_time_begin
=
create_time_begin
;
this
.
searchParams
.
create_time_end
=
create_time_end
;
this
.
getData
();
},
/**
* 时间选择
*/
bindTimeChange
(
type
,
e
)
{
...
...
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