Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
02fcd2d3
"...admin-console/src/main/resources/sql/console/dict.md" did not exist on "30e9025923389cd7a3d61bf9e7d0b857740989a6"
Commit
02fcd2d3
authored
Sep 15, 2022
by
季圣华
Browse files
优化单据退货的逻辑
parent
87dafe79
Changes
4
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/dialog/LinkBillList.vue
View file @
02fcd2d3
...
@@ -282,9 +282,14 @@
...
@@ -282,9 +282,14 @@
let
listEx
=
[]
let
listEx
=
[]
for
(
let
j
=
0
;
j
<
list
.
length
;
j
++
){
for
(
let
j
=
0
;
j
<
list
.
length
;
j
++
){
let
info
=
list
[
j
];
let
info
=
list
[
j
];
//去掉已经全部转换的明细
if
(
info
.
preNumber
!==
info
.
finishNumber
)
{
if
(
info
.
preNumber
!==
info
.
finishNumber
)
{
//去掉已经全部转换的明细
listEx
.
push
(
info
)
listEx
.
push
(
info
)
}
else
{
if
(
this
.
queryParam
.
subType
===
'
采购
'
||
this
.
queryParam
.
subType
===
'
销售
'
||
this
.
queryParam
.
subType
===
'
零售
'
)
{
//针对退货单,不过滤明细
listEx
.
push
(
info
)
}
}
}
}
}
this
.
dataSourceDetail
=
listEx
this
.
dataSourceDetail
=
listEx
...
...
jshERP-web/src/views/bill/modules/PurchaseBackModal.vue
View file @
02fcd2d3
...
@@ -246,6 +246,8 @@
...
@@ -246,6 +246,8 @@
{
title
:
'
批号
'
,
key
:
'
batchNumber
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
popupJsh
,
kind
:
'
batch
'
,
multi
:
false
},
{
title
:
'
批号
'
,
key
:
'
batchNumber
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
popupJsh
,
kind
:
'
batch
'
,
multi
:
false
},
{
title
:
'
有效期
'
,
key
:
'
expirationDate
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
有效期
'
,
key
:
'
expirationDate
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
9%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
9%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
原数量
'
,
key
:
'
preNumber
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
已退货
'
,
key
:
'
finishNumber
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
数量
'
,
key
:
'
operNumber
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
{
title
:
'
数量
'
,
key
:
'
operNumber
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
},
...
@@ -254,7 +256,8 @@
...
@@ -254,7 +256,8 @@
{
title
:
'
税率
'
,
key
:
'
taxRate
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
inputNumber
,
placeholder
:
'
%
'
},
{
title
:
'
税率
'
,
key
:
'
taxRate
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
inputNumber
,
placeholder
:
'
%
'
},
{
title
:
'
税额
'
,
key
:
'
taxMoney
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
readonly
:
true
,
statistics
:
true
},
{
title
:
'
税额
'
,
key
:
'
taxMoney
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
readonly
:
true
,
statistics
:
true
},
{
title
:
'
价税合计
'
,
key
:
'
taxLastMoney
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
},
{
title
:
'
价税合计
'
,
key
:
'
taxLastMoney
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
},
{
title
:
'
备注
'
,
key
:
'
remark
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
input
}
{
title
:
'
备注
'
,
key
:
'
remark
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
input
},
{
title
:
'
关联id
'
,
key
:
'
linkId
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
hidden
},
]
]
},
},
confirmLoading
:
false
,
confirmLoading
:
false
,
...
@@ -294,6 +297,8 @@
...
@@ -294,6 +297,8 @@
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
expirationDate
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
expirationDate
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
preNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
finishNumber
'
,
0
)
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
this
.
prefixNo
)
this
.
addInit
(
this
.
prefixNo
)
this
.
fileList
=
[]
this
.
fileList
=
[]
...
@@ -373,11 +378,14 @@
...
@@ -373,11 +378,14 @@
linkBillListOk
(
selectBillDetailRows
,
linkNumber
,
organId
,
discount
,
deposit
,
remark
)
{
linkBillListOk
(
selectBillDetailRows
,
linkNumber
,
organId
,
discount
,
deposit
,
remark
)
{
this
.
rowCanEdit
=
false
this
.
rowCanEdit
=
false
this
.
materialTable
.
columns
[
1
].
type
=
FormTypes
.
normal
this
.
materialTable
.
columns
[
1
].
type
=
FormTypes
.
normal
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
preNumber
'
,
1
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
finishNumber
'
,
1
)
if
(
selectBillDetailRows
&&
selectBillDetailRows
.
length
>
0
)
{
if
(
selectBillDetailRows
&&
selectBillDetailRows
.
length
>
0
)
{
let
listEx
=
[]
let
listEx
=
[]
let
allTaxLastMoney
=
0
let
allTaxLastMoney
=
0
for
(
let
j
=
0
;
j
<
selectBillDetailRows
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
selectBillDetailRows
.
length
;
j
++
)
{
let
info
=
selectBillDetailRows
[
j
];
let
info
=
selectBillDetailRows
[
j
];
info
.
linkId
=
info
.
id
allTaxLastMoney
+=
info
.
taxLastMoney
allTaxLastMoney
+=
info
.
taxLastMoney
listEx
.
push
(
info
)
listEx
.
push
(
info
)
this
.
changeColumnShow
(
info
)
this
.
changeColumnShow
(
info
)
...
...
jshERP-web/src/views/bill/modules/RetailBackModal.vue
View file @
02fcd2d3
...
@@ -237,12 +237,15 @@
...
@@ -237,12 +237,15 @@
{
title
:
'
批号
'
,
key
:
'
batchNumber
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
input
},
{
title
:
'
批号
'
,
key
:
'
batchNumber
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
input
},
{
title
:
'
有效期
'
,
key
:
'
expirationDate
'
,
width
:
'
9%
'
,
type
:
FormTypes
.
date
},
{
title
:
'
有效期
'
,
key
:
'
expirationDate
'
,
width
:
'
9%
'
,
type
:
FormTypes
.
date
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
9%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
9%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
原数量
'
,
key
:
'
preNumber
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
已退货
'
,
key
:
'
finishNumber
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
数量
'
,
key
:
'
operNumber
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
{
title
:
'
数量
'
,
key
:
'
operNumber
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
},
{
title
:
'
单价
'
,
key
:
'
unitPrice
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
inputNumber
},
{
title
:
'
单价
'
,
key
:
'
unitPrice
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
inputNumber
},
{
title
:
'
金额
'
,
key
:
'
allPrice
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
},
{
title
:
'
金额
'
,
key
:
'
allPrice
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
},
{
title
:
'
备注
'
,
key
:
'
remark
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
input
}
{
title
:
'
备注
'
,
key
:
'
remark
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
input
},
{
title
:
'
关联id
'
,
key
:
'
linkId
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
hidden
},
]
]
},
},
confirmLoading
:
false
,
confirmLoading
:
false
,
...
@@ -279,6 +282,8 @@
...
@@ -279,6 +282,8 @@
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
expirationDate
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
expirationDate
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
preNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
finishNumber
'
,
0
)
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
this
.
prefixNo
)
this
.
addInit
(
this
.
prefixNo
)
this
.
fileList
=
[]
this
.
fileList
=
[]
...
@@ -376,11 +381,14 @@
...
@@ -376,11 +381,14 @@
linkBillListOk
(
selectBillDetailRows
,
linkNumber
,
organId
,
discount
,
deposit
,
remark
)
{
linkBillListOk
(
selectBillDetailRows
,
linkNumber
,
organId
,
discount
,
deposit
,
remark
)
{
this
.
rowCanEdit
=
false
this
.
rowCanEdit
=
false
this
.
materialTable
.
columns
[
1
].
type
=
FormTypes
.
normal
this
.
materialTable
.
columns
[
1
].
type
=
FormTypes
.
normal
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
preNumber
'
,
1
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
finishNumber
'
,
1
)
if
(
selectBillDetailRows
&&
selectBillDetailRows
.
length
>
0
)
{
if
(
selectBillDetailRows
&&
selectBillDetailRows
.
length
>
0
)
{
let
listEx
=
[]
let
listEx
=
[]
let
allTaxLastMoney
=
0
let
allTaxLastMoney
=
0
for
(
let
j
=
0
;
j
<
selectBillDetailRows
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
selectBillDetailRows
.
length
;
j
++
)
{
let
info
=
selectBillDetailRows
[
j
];
let
info
=
selectBillDetailRows
[
j
];
info
.
linkId
=
info
.
id
allTaxLastMoney
+=
info
.
allPrice
allTaxLastMoney
+=
info
.
allPrice
listEx
.
push
(
info
)
listEx
.
push
(
info
)
this
.
changeColumnShow
(
info
)
this
.
changeColumnShow
(
info
)
...
...
jshERP-web/src/views/bill/modules/SaleBackModal.vue
View file @
02fcd2d3
...
@@ -253,6 +253,8 @@
...
@@ -253,6 +253,8 @@
{
title
:
'
批号
'
,
key
:
'
batchNumber
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
input
},
{
title
:
'
批号
'
,
key
:
'
batchNumber
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
input
},
{
title
:
'
有效期
'
,
key
:
'
expirationDate
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
date
},
{
title
:
'
有效期
'
,
key
:
'
expirationDate
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
date
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
9%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
9%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
原数量
'
,
key
:
'
preNumber
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
已退货
'
,
key
:
'
finishNumber
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
数量
'
,
key
:
'
operNumber
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
{
title
:
'
数量
'
,
key
:
'
operNumber
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
},
...
@@ -261,7 +263,8 @@
...
@@ -261,7 +263,8 @@
{
title
:
'
税率
'
,
key
:
'
taxRate
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
inputNumber
,
placeholder
:
'
%
'
},
{
title
:
'
税率
'
,
key
:
'
taxRate
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
inputNumber
,
placeholder
:
'
%
'
},
{
title
:
'
税额
'
,
key
:
'
taxMoney
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
readonly
:
true
,
statistics
:
true
},
{
title
:
'
税额
'
,
key
:
'
taxMoney
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
readonly
:
true
,
statistics
:
true
},
{
title
:
'
价税合计
'
,
key
:
'
taxLastMoney
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
},
{
title
:
'
价税合计
'
,
key
:
'
taxLastMoney
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
},
{
title
:
'
备注
'
,
key
:
'
remark
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
input
}
{
title
:
'
备注
'
,
key
:
'
remark
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
input
},
{
title
:
'
关联id
'
,
key
:
'
linkId
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
hidden
},
]
]
},
},
confirmLoading
:
false
,
confirmLoading
:
false
,
...
@@ -301,6 +304,8 @@
...
@@ -301,6 +304,8 @@
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
expirationDate
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
expirationDate
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
preNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
finishNumber
'
,
0
)
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
this
.
prefixNo
)
this
.
addInit
(
this
.
prefixNo
)
this
.
personList
.
value
=
''
this
.
personList
.
value
=
''
...
@@ -386,11 +391,14 @@
...
@@ -386,11 +391,14 @@
linkBillListOk
(
selectBillDetailRows
,
linkNumber
,
organId
,
discount
,
deposit
,
remark
)
{
linkBillListOk
(
selectBillDetailRows
,
linkNumber
,
organId
,
discount
,
deposit
,
remark
)
{
this
.
rowCanEdit
=
false
this
.
rowCanEdit
=
false
this
.
materialTable
.
columns
[
1
].
type
=
FormTypes
.
normal
this
.
materialTable
.
columns
[
1
].
type
=
FormTypes
.
normal
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
preNumber
'
,
1
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
finishNumber
'
,
1
)
if
(
selectBillDetailRows
&&
selectBillDetailRows
.
length
>
0
)
{
if
(
selectBillDetailRows
&&
selectBillDetailRows
.
length
>
0
)
{
let
listEx
=
[]
let
listEx
=
[]
let
allTaxLastMoney
=
0
let
allTaxLastMoney
=
0
for
(
let
j
=
0
;
j
<
selectBillDetailRows
.
length
;
j
++
)
{
for
(
let
j
=
0
;
j
<
selectBillDetailRows
.
length
;
j
++
)
{
let
info
=
selectBillDetailRows
[
j
];
let
info
=
selectBillDetailRows
[
j
];
info
.
linkId
=
info
.
id
allTaxLastMoney
+=
info
.
taxLastMoney
allTaxLastMoney
+=
info
.
taxLastMoney
listEx
.
push
(
info
)
listEx
.
push
(
info
)
this
.
changeColumnShow
(
info
)
this
.
changeColumnShow
(
info
)
...
...
Write
Preview
Supports
Markdown
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