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
07d40953
Commit
07d40953
authored
Nov 18, 2021
by
季圣华
Browse files
给零售和其它出入库增加批号和序号的支持
parent
31fd1b65
Changes
7
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/dialog/BillDetail.vue
View file @
07d40953
...
@@ -893,6 +893,9 @@
...
@@ -893,6 +893,9 @@
{
title
:
'
扩展信息
'
,
dataIndex
:
'
materialOther
'
},
{
title
:
'
扩展信息
'
,
dataIndex
:
'
materialOther
'
},
{
title
:
'
库存
'
,
dataIndex
:
'
stock
'
},
{
title
:
'
库存
'
,
dataIndex
:
'
stock
'
},
{
title
:
'
单位
'
,
dataIndex
:
'
unit
'
},
{
title
:
'
单位
'
,
dataIndex
:
'
unit
'
},
{
title
:
'
序列号
'
,
dataIndex
:
'
snList
'
},
{
title
:
'
批号
'
,
dataIndex
:
'
batchNumber
'
},
{
title
:
'
有效期
'
,
dataIndex
:
'
expirationDate
'
},
{
title
:
'
多属性
'
,
dataIndex
:
'
sku
'
},
{
title
:
'
多属性
'
,
dataIndex
:
'
sku
'
},
{
title
:
'
数量
'
,
dataIndex
:
'
operNumber
'
},
{
title
:
'
数量
'
,
dataIndex
:
'
operNumber
'
},
{
title
:
'
单价
'
,
dataIndex
:
'
unitPrice
'
},
{
title
:
'
单价
'
,
dataIndex
:
'
unitPrice
'
},
...
@@ -909,6 +912,9 @@
...
@@ -909,6 +912,9 @@
{
title
:
'
扩展信息
'
,
dataIndex
:
'
materialOther
'
},
{
title
:
'
扩展信息
'
,
dataIndex
:
'
materialOther
'
},
{
title
:
'
库存
'
,
dataIndex
:
'
stock
'
},
{
title
:
'
库存
'
,
dataIndex
:
'
stock
'
},
{
title
:
'
单位
'
,
dataIndex
:
'
unit
'
},
{
title
:
'
单位
'
,
dataIndex
:
'
unit
'
},
{
title
:
'
序列号
'
,
dataIndex
:
'
snList
'
},
{
title
:
'
批号
'
,
dataIndex
:
'
batchNumber
'
},
{
title
:
'
有效期
'
,
dataIndex
:
'
expirationDate
'
},
{
title
:
'
多属性
'
,
dataIndex
:
'
sku
'
},
{
title
:
'
多属性
'
,
dataIndex
:
'
sku
'
},
{
title
:
'
数量
'
,
dataIndex
:
'
operNumber
'
},
{
title
:
'
数量
'
,
dataIndex
:
'
operNumber
'
},
{
title
:
'
单价
'
,
dataIndex
:
'
unitPrice
'
},
{
title
:
'
单价
'
,
dataIndex
:
'
unitPrice
'
},
...
@@ -1049,6 +1055,9 @@
...
@@ -1049,6 +1055,9 @@
{
title
:
'
扩展信息
'
,
dataIndex
:
'
materialOther
'
},
{
title
:
'
扩展信息
'
,
dataIndex
:
'
materialOther
'
},
{
title
:
'
库存
'
,
dataIndex
:
'
stock
'
},
{
title
:
'
库存
'
,
dataIndex
:
'
stock
'
},
{
title
:
'
单位
'
,
dataIndex
:
'
unit
'
},
{
title
:
'
单位
'
,
dataIndex
:
'
unit
'
},
{
title
:
'
序列号
'
,
dataIndex
:
'
snList
'
},
{
title
:
'
批号
'
,
dataIndex
:
'
batchNumber
'
},
{
title
:
'
有效期
'
,
dataIndex
:
'
expirationDate
'
},
{
title
:
'
多属性
'
,
dataIndex
:
'
sku
'
},
{
title
:
'
多属性
'
,
dataIndex
:
'
sku
'
},
{
title
:
'
数量
'
,
dataIndex
:
'
operNumber
'
},
{
title
:
'
数量
'
,
dataIndex
:
'
operNumber
'
},
{
title
:
'
单价
'
,
dataIndex
:
'
unitPrice
'
},
{
title
:
'
单价
'
,
dataIndex
:
'
unitPrice
'
},
...
@@ -1065,6 +1074,9 @@
...
@@ -1065,6 +1074,9 @@
{
title
:
'
扩展信息
'
,
dataIndex
:
'
materialOther
'
},
{
title
:
'
扩展信息
'
,
dataIndex
:
'
materialOther
'
},
{
title
:
'
库存
'
,
dataIndex
:
'
stock
'
},
{
title
:
'
库存
'
,
dataIndex
:
'
stock
'
},
{
title
:
'
单位
'
,
dataIndex
:
'
unit
'
},
{
title
:
'
单位
'
,
dataIndex
:
'
unit
'
},
{
title
:
'
序列号
'
,
dataIndex
:
'
snList
'
},
{
title
:
'
批号
'
,
dataIndex
:
'
batchNumber
'
},
{
title
:
'
有效期
'
,
dataIndex
:
'
expirationDate
'
},
{
title
:
'
多属性
'
,
dataIndex
:
'
sku
'
},
{
title
:
'
多属性
'
,
dataIndex
:
'
sku
'
},
{
title
:
'
数量
'
,
dataIndex
:
'
operNumber
'
},
{
title
:
'
数量
'
,
dataIndex
:
'
operNumber
'
},
{
title
:
'
单价
'
,
dataIndex
:
'
unitPrice
'
},
{
title
:
'
单价
'
,
dataIndex
:
'
unitPrice
'
},
...
...
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
07d40953
...
@@ -108,13 +108,13 @@ export const BillModalMixin = {
...
@@ -108,13 +108,13 @@ export const BillModalMixin = {
if
(
columns
[
i
].
key
===
key
)
{
if
(
columns
[
i
].
key
===
key
)
{
if
(
type
){
if
(
type
){
if
(
key
===
'
snList
'
||
key
===
'
batchNumber
'
)
{
if
(
key
===
'
snList
'
||
key
===
'
batchNumber
'
)
{
if
(
this
.
prefixNo
===
'
XS
CK
'
)
{
if
(
this
.
prefixNo
===
'
LSCK
'
||
this
.
prefixNo
===
'
CGTH
'
||
this
.
prefixNo
===
'
XSCK
'
||
this
.
prefixNo
===
'
QT
CK
'
)
{
columns
[
i
].
type
=
FormTypes
.
popupJsh
//显示
columns
[
i
].
type
=
FormTypes
.
popupJsh
//显示
}
else
{
}
else
{
columns
[
i
].
type
=
FormTypes
.
input
//显示
columns
[
i
].
type
=
FormTypes
.
input
//显示
}
}
}
else
if
(
key
===
'
expirationDate
'
)
{
}
else
if
(
key
===
'
expirationDate
'
)
{
if
(
this
.
prefixNo
===
'
CGRK
'
||
this
.
prefixNo
===
'
XSTH
'
||
this
.
prefixNo
===
'
CGTH
'
)
{
if
(
this
.
prefixNo
===
'
LSTH
'
||
this
.
prefixNo
===
'
CGRK
'
||
this
.
prefixNo
===
'
XSTH
'
||
this
.
prefixNo
===
'
QTRK
'
)
{
columns
[
i
].
type
=
FormTypes
.
date
//显示
columns
[
i
].
type
=
FormTypes
.
date
//显示
}
else
{
}
else
{
columns
[
i
].
type
=
FormTypes
.
normal
//显示
columns
[
i
].
type
=
FormTypes
.
normal
//显示
...
...
jshERP-web/src/views/bill/modules/OtherInModal.vue
View file @
07d40953
...
@@ -167,6 +167,11 @@
...
@@ -167,6 +167,11 @@
{
title
:
'
扩展信息
'
,
key
:
'
materialOther
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
扩展信息
'
,
key
:
'
materialOther
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
库存
'
,
key
:
'
stock
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
库存
'
,
key
:
'
stock
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
单位
'
,
key
:
'
unit
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
单位
'
,
key
:
'
unit
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
序列号
'
,
key
:
'
snList
'
,
width
:
'
12%
'
,
type
:
FormTypes
.
input
,
placeholder
:
'
多个序列号请用逗号隔开
'
,
validateRules
:
[{
pattern
:
/^
\S{1,100}
$/
,
message
:
'
请小于100位字符
'
}]
},
{
title
:
'
批号
'
,
key
:
'
batchNumber
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
input
},
{
title
:
'
有效期
'
,
key
:
'
expirationDate
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
date
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
4%
'
,
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}不能为空
'
}]
...
@@ -202,6 +207,9 @@
...
@@ -202,6 +207,9 @@
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
changeColumnHide
()
this
.
changeColumnHide
()
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
expirationDate
'
,
0
)
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
this
.
prefixNo
)
this
.
addInit
(
this
.
prefixNo
)
this
.
fileList
=
[]
this
.
fileList
=
[]
...
...
jshERP-web/src/views/bill/modules/OtherOutModal.vue
View file @
07d40953
...
@@ -167,6 +167,9 @@
...
@@ -167,6 +167,9 @@
{
title
:
'
扩展信息
'
,
key
:
'
materialOther
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
扩展信息
'
,
key
:
'
materialOther
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
库存
'
,
key
:
'
stock
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
库存
'
,
key
:
'
stock
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
单位
'
,
key
:
'
unit
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
单位
'
,
key
:
'
unit
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
序列号
'
,
key
:
'
snList
'
,
width
:
'
12%
'
,
type
:
FormTypes
.
popupJsh
,
kind
:
'
sn
'
,
multi
:
true
},
{
title
:
'
批号
'
,
key
:
'
batchNumber
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
popupJsh
,
kind
:
'
batch
'
,
multi
:
false
},
{
title
:
'
有效期
'
,
key
:
'
expirationDate
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
4%
'
,
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}不能为空
'
}]
...
@@ -202,6 +205,9 @@
...
@@ -202,6 +205,9 @@
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
changeColumnHide
()
this
.
changeColumnHide
()
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
expirationDate
'
,
0
)
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
this
.
prefixNo
)
this
.
addInit
(
this
.
prefixNo
)
this
.
fileList
=
[]
this
.
fileList
=
[]
...
...
jshERP-web/src/views/bill/modules/PurchaseBackModal.vue
View file @
07d40953
...
@@ -236,11 +236,9 @@
...
@@ -236,11 +236,9 @@
{
title
:
'
扩展信息
'
,
key
:
'
materialOther
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
扩展信息
'
,
key
:
'
materialOther
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
库存
'
,
key
:
'
stock
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
库存
'
,
key
:
'
stock
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
单位
'
,
key
:
'
unit
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
单位
'
,
key
:
'
unit
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
序列号
'
,
key
:
'
snList
'
,
width
:
'
12%
'
,
type
:
FormTypes
.
input
,
placeholder
:
'
多个序列号请用逗号隔开
'
,
{
title
:
'
序列号
'
,
key
:
'
snList
'
,
width
:
'
12%
'
,
type
:
FormTypes
.
popupJsh
,
kind
:
'
sn
'
,
multi
:
true
},
validateRules
:
[{
pattern
:
/^
\S{1,100}
$/
,
message
:
'
请小于100位字符
'
}]
{
title
:
'
批号
'
,
key
:
'
batchNumber
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
popupJsh
,
kind
:
'
batch
'
,
multi
:
false
},
},
{
title
:
'
有效期
'
,
key
:
'
expirationDate
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
批号
'
,
key
:
'
batchNumber
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
input
},
{
title
:
'
有效期
'
,
key
:
'
expirationDate
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
date
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
4%
'
,
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}不能为空
'
}]
...
...
jshERP-web/src/views/bill/modules/RetailBackModal.vue
View file @
07d40953
...
@@ -219,6 +219,11 @@
...
@@ -219,6 +219,11 @@
{
title
:
'
扩展信息
'
,
key
:
'
materialOther
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
扩展信息
'
,
key
:
'
materialOther
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
库存
'
,
key
:
'
stock
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
库存
'
,
key
:
'
stock
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
单位
'
,
key
:
'
unit
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
单位
'
,
key
:
'
unit
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
序列号
'
,
key
:
'
snList
'
,
width
:
'
12%
'
,
type
:
FormTypes
.
input
,
placeholder
:
'
多个序列号请用逗号隔开
'
,
validateRules
:
[{
pattern
:
/^
\S{1,100}
$/
,
message
:
'
请小于100位字符
'
}]
},
{
title
:
'
批号
'
,
key
:
'
batchNumber
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
input
},
{
title
:
'
有效期
'
,
key
:
'
expirationDate
'
,
width
:
'
9%
'
,
type
:
FormTypes
.
date
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
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,6 +259,9 @@
...
@@ -254,6 +259,9 @@
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
changeColumnHide
()
this
.
changeColumnHide
()
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
expirationDate
'
,
0
)
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
this
.
prefixNo
)
this
.
addInit
(
this
.
prefixNo
)
this
.
fileList
=
[]
this
.
fileList
=
[]
...
...
jshERP-web/src/views/bill/modules/RetailOutModal.vue
View file @
07d40953
...
@@ -232,6 +232,9 @@
...
@@ -232,6 +232,9 @@
{
title
:
'
扩展信息
'
,
key
:
'
materialOther
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
扩展信息
'
,
key
:
'
materialOther
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
库存
'
,
key
:
'
stock
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
库存
'
,
key
:
'
stock
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
单位
'
,
key
:
'
unit
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
单位
'
,
key
:
'
unit
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
序列号
'
,
key
:
'
snList
'
,
width
:
'
12%
'
,
type
:
FormTypes
.
popupJsh
,
kind
:
'
sn
'
,
multi
:
true
},
{
title
:
'
批号
'
,
key
:
'
batchNumber
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
popupJsh
,
kind
:
'
batch
'
,
multi
:
false
},
{
title
:
'
有效期
'
,
key
:
'
expirationDate
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
normal
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
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}不能为空
'
}]
...
@@ -268,6 +271,9 @@
...
@@ -268,6 +271,9 @@
//调用完edit()方法之后会自动调用此方法
//调用完edit()方法之后会自动调用此方法
editAfter
()
{
editAfter
()
{
this
.
changeColumnHide
()
this
.
changeColumnHide
()
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
snList
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
batchNumber
'
,
0
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
expirationDate
'
,
0
)
if
(
this
.
action
===
'
add
'
)
{
if
(
this
.
action
===
'
add
'
)
{
this
.
addInit
(
this
.
prefixNo
)
this
.
addInit
(
this
.
prefixNo
)
this
.
fileList
=
[]
this
.
fileList
=
[]
...
...
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