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
89574dfc
Commit
89574dfc
authored
Sep 25, 2021
by
季圣华
Browse files
给采购和销售单据支持分批操作
parent
1604a3fd
Changes
8
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/PurchaseInList.vue
View file @
89574dfc
...
...
@@ -170,7 +170,7 @@
{
title
:
'
单据编号
'
,
dataIndex
:
'
number
'
,
width
:
160
,
customRender
:
function
(
text
,
record
,
index
)
{
if
(
record
.
linkNumber
)
{
return
text
+
"
[
转
]
"
;
return
text
+
"
[
订
]
"
;
}
else
{
return
text
;
}
...
...
jshERP-web/src/views/bill/PurchaseOrderList.vue
View file @
89574dfc
...
...
@@ -107,7 +107,8 @@
<
template
slot=
"customRenderStatus"
slot-scope=
"status"
>
<a-tag
v-if=
"status == '0'"
color=
"red"
>
未审核
</a-tag>
<a-tag
v-if=
"status == '1'"
color=
"green"
>
已审核
</a-tag>
<a-tag
v-if=
"status == '2'"
color=
"blue"
>
已转采购
</a-tag>
<a-tag
v-if=
"status == '2'"
color=
"cyan"
>
完成采购
</a-tag>
<a-tag
v-if=
"status == '3'"
color=
"blue"
>
部分采购
</a-tag>
</
template
>
</a-table>
</div>
...
...
jshERP-web/src/views/bill/SaleOrderList.vue
View file @
89574dfc
...
...
@@ -108,7 +108,8 @@
<
template
slot=
"customRenderStatus"
slot-scope=
"status"
>
<a-tag
v-if=
"status == '0'"
color=
"red"
>
未审核
</a-tag>
<a-tag
v-if=
"status == '1'"
color=
"green"
>
已审核
</a-tag>
<a-tag
v-if=
"status == '2'"
color=
"blue"
>
已转销售
</a-tag>
<a-tag
v-if=
"status == '2'"
color=
"cyan"
>
完成销售
</a-tag>
<a-tag
v-if=
"status == '3'"
color=
"blue"
>
部分销售
</a-tag>
</
template
>
</a-table>
</div>
...
...
jshERP-web/src/views/bill/SaleOutList.vue
View file @
89574dfc
...
...
@@ -170,7 +170,7 @@
{
title
:
'
单据编号
'
,
dataIndex
:
'
number
'
,
width
:
160
,
customRender
:
function
(
text
,
record
,
index
)
{
if
(
record
.
linkNumber
)
{
return
text
+
"
[
转
]
"
;
return
text
+
"
[
订
]
"
;
}
else
{
return
text
;
}
...
...
jshERP-web/src/views/bill/dialog/BillDetail.vue
View file @
89574dfc
...
...
@@ -1005,6 +1005,7 @@
{
title
:
'
单位
'
,
dataIndex
:
'
unit
'
,
width
:
'
4%
'
},
{
title
:
'
多属性
'
,
dataIndex
:
'
sku
'
,
width
:
'
4%
'
},
{
title
:
'
数量
'
,
dataIndex
:
'
operNumber
'
,
width
:
'
5%
'
},
{
title
:
'
已入库
'
,
dataIndex
:
'
finishNumber
'
,
width
:
'
5%
'
},
{
title
:
'
单价
'
,
dataIndex
:
'
unitPrice
'
,
width
:
'
5%
'
},
{
title
:
'
金额
'
,
dataIndex
:
'
allPrice
'
,
width
:
'
5%
'
},
{
title
:
'
备注
'
,
dataIndex
:
'
remark
'
,
width
:
'
5%
'
}
...
...
@@ -1068,6 +1069,7 @@
{
title
:
'
单位
'
,
dataIndex
:
'
unit
'
,
width
:
'
4%
'
},
{
title
:
'
多属性
'
,
dataIndex
:
'
sku
'
,
width
:
'
4%
'
},
{
title
:
'
数量
'
,
dataIndex
:
'
operNumber
'
,
width
:
'
5%
'
},
{
title
:
'
已入库
'
,
dataIndex
:
'
finishNumber
'
,
width
:
'
5%
'
},
{
title
:
'
单价
'
,
dataIndex
:
'
unitPrice
'
,
width
:
'
5%
'
},
{
title
:
'
金额
'
,
dataIndex
:
'
allPrice
'
,
width
:
'
5%
'
},
{
title
:
'
备注
'
,
dataIndex
:
'
remark
'
,
width
:
'
5%
'
}
...
...
jshERP-web/src/views/bill/dialog/LinkBillList.vue
View file @
89574dfc
...
...
@@ -21,6 +21,14 @@
:rowSelection=
"
{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type: getType}"
:customRow="rowAction"
@change="handleTableChange">
<template
slot=
"customRenderStatus"
slot-scope=
"status"
>
<a-tag
v-if=
"status === '0'"
color=
"red"
>
未审核
</a-tag>
<a-tag
v-if=
"status === '1'"
color=
"green"
>
已审核
</a-tag>
<a-tag
v-if=
"status === '2' && queryParam.subType === '采购订单'"
color=
"cyan"
>
完成采购
</a-tag>
<a-tag
v-if=
"status === '2' && queryParam.subType === '销售订单'"
color=
"cyan"
>
完成销售
</a-tag>
<a-tag
v-if=
"status === '3' && queryParam.subType === '采购订单'"
color=
"blue"
>
部分采购
</a-tag>
<a-tag
v-if=
"status === '3' && queryParam.subType === '销售订单'"
color=
"blue"
>
部分销售
</a-tag>
</
template
>
</a-table>
<!-- table区域-end -->
</a-modal>
...
...
@@ -61,7 +69,7 @@
},
{
title
:
''
,
dataIndex
:
'
organName
'
,
width
:
120
},
{
title
:
'
单据编号
'
,
dataIndex
:
'
number
'
,
width
:
150
},
{
title
:
'
商品信息
'
,
dataIndex
:
'
materialsList
'
,
width
:
2
2
0
,
ellipsis
:
true
,
{
title
:
'
商品信息
'
,
dataIndex
:
'
materialsList
'
,
width
:
2
8
0
,
ellipsis
:
true
,
customRender
:
function
(
text
,
record
,
index
)
{
if
(
text
)
{
return
text
.
replace
(
"
,
"
,
"
,
"
);
...
...
@@ -69,8 +77,11 @@
}
},
{
title
:
'
单据日期
'
,
dataIndex
:
'
operTimeStr
'
,
width
:
145
},
{
title
:
'
操作员
'
,
dataIndex
:
'
userName
'
,
width
:
60
},
{
title
:
'
金额合计
'
,
dataIndex
:
'
totalPrice
'
,
width
:
70
}
{
title
:
'
操作员
'
,
dataIndex
:
'
userName
'
,
width
:
70
},
{
title
:
'
金额合计
'
,
dataIndex
:
'
totalPrice
'
,
width
:
70
},
{
title
:
'
状态
'
,
dataIndex
:
'
status
'
,
width
:
70
,
align
:
"
center
"
,
scopedSlots
:
{
customRender
:
'
customRenderStatus
'
}
}
],
url
:
{
list
:
"
/depotHead/list
"
...
...
jshERP-web/src/views/bill/modules/PurchaseInModal.vue
View file @
89574dfc
...
...
@@ -183,14 +183,16 @@
{
title
:
'
库存
'
,
key
:
'
stock
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
{
title
:
'
单位
'
,
key
:
'
unit
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
{
title
:
'
数量
'
,
key
:
'
operNumber
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
{
title
:
'
原数量
'
,
key
:
'
preNumber
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
{
title
:
'
已入库
'
,
key
:
'
finishNumber
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
{
title
:
'
数量
'
,
key
:
'
operNumber
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
单价
'
,
key
:
'
unitPrice
'
,
width
:
'
5
%
'
,
type
:
FormTypes
.
inputNumber
},
{
title
:
'
单价
'
,
key
:
'
unitPrice
'
,
width
:
'
4
%
'
,
type
:
FormTypes
.
inputNumber
},
{
title
:
'
含税单价
'
,
key
:
'
taxUnitPrice
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
readonly
:
true
},
{
title
:
'
金额
'
,
key
:
'
allPrice
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
},
{
title
:
'
税率
'
,
key
:
'
taxRate
'
,
width
:
'
4
%
'
,
type
:
FormTypes
.
inputNumber
,
placeholder
:
'
%
'
},
{
title
:
'
税额
'
,
key
:
'
taxMoney
'
,
width
:
'
4
%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
readonly
:
true
},
{
title
:
'
税率
'
,
key
:
'
taxRate
'
,
width
:
'
3
%
'
,
type
:
FormTypes
.
inputNumber
,
placeholder
:
'
%
'
},
{
title
:
'
税额
'
,
key
:
'
taxMoney
'
,
width
:
'
3
%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
readonly
:
true
},
{
title
:
'
价税合计
'
,
key
:
'
taxLastMoney
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
},
{
title
:
'
备注
'
,
key
:
'
remark
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
input
}
]
...
...
@@ -293,7 +295,7 @@
}
},
onSearchLinkNumber
()
{
this
.
$refs
.
linkBillList
.
show
(
'
其它
'
,
'
采购订单
'
,
'
供应商
'
,
"
1
"
)
this
.
$refs
.
linkBillList
.
show
(
'
其它
'
,
'
采购订单
'
,
'
供应商
'
,
"
1
,3
"
)
this
.
$refs
.
linkBillList
.
title
=
"
选择采购订单
"
},
linkBillListOk
(
selectBillRows
)
{
...
...
@@ -323,13 +325,28 @@
if
(
res
&&
res
.
code
===
200
){
let
list
=
res
.
data
.
rows
let
listEx
=
[]
let
discountLastMoney
=
0
for
(
let
j
=
0
;
j
<
list
.
length
;
j
++
){
let
info
=
list
[
j
];
if
(
info
.
preNumber
)
{
info
.
operNumber
=
info
.
preNumber
-
info
.
finishNumber
info
.
allPrice
=
info
.
operNumber
*
info
.
unitPrice
-
0
;
discountLastMoney
+=
info
.
allPrice
}
info
.
taxMoney
=
0
info
.
taxLastMoney
=
info
.
allPrice
listEx
.
push
(
info
)
}
tab
.
dataSource
=
listEx
//给优惠后金额重新赋值
if
(
discountLastMoney
)
{
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
discountLastMoney
'
:
discountLastMoney
,
'
changeAmount
'
:
discountLastMoney
})
});
}
typeof
success
===
'
function
'
?
success
(
res
)
:
''
}
}).
finally
(()
=>
{
...
...
jshERP-web/src/views/bill/modules/SaleOutModal.vue
View file @
89574dfc
...
...
@@ -187,14 +187,16 @@
{
title
:
'
库存
'
,
key
:
'
stock
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
{
title
:
'
单位
'
,
key
:
'
unit
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
{
title
:
'
多属性
'
,
key
:
'
sku
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
{
title
:
'
数量
'
,
key
:
'
operNumber
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
{
title
:
'
原数量
'
,
key
:
'
preNumber
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
{
title
:
'
已入库
'
,
key
:
'
finishNumber
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
{
title
:
'
数量
'
,
key
:
'
operNumber
'
,
width
:
'
4%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
单价
'
,
key
:
'
unitPrice
'
,
width
:
'
5
%
'
,
type
:
FormTypes
.
inputNumber
},
{
title
:
'
单价
'
,
key
:
'
unitPrice
'
,
width
:
'
4
%
'
,
type
:
FormTypes
.
inputNumber
},
{
title
:
'
含税单价
'
,
key
:
'
taxUnitPrice
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
readonly
:
true
},
{
title
:
'
金额
'
,
key
:
'
allPrice
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
},
{
title
:
'
税率
'
,
key
:
'
taxRate
'
,
width
:
'
4
%
'
,
type
:
FormTypes
.
inputNumber
,
placeholder
:
'
%
'
},
{
title
:
'
税额
'
,
key
:
'
taxMoney
'
,
width
:
'
4
%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
readonly
:
true
},
{
title
:
'
税率
'
,
key
:
'
taxRate
'
,
width
:
'
3
%
'
,
type
:
FormTypes
.
inputNumber
,
placeholder
:
'
%
'
},
{
title
:
'
税额
'
,
key
:
'
taxMoney
'
,
width
:
'
3
%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
,
readonly
:
true
},
{
title
:
'
价税合计
'
,
key
:
'
taxLastMoney
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
inputNumber
,
statistics
:
true
},
{
title
:
'
备注
'
,
key
:
'
remark
'
,
width
:
'
5%
'
,
type
:
FormTypes
.
input
}
]
...
...
@@ -299,7 +301,7 @@
}
},
onSearchLinkNumber
()
{
this
.
$refs
.
linkBillList
.
show
(
'
其它
'
,
'
销售订单
'
,
'
客户
'
,
"
1
"
)
this
.
$refs
.
linkBillList
.
show
(
'
其它
'
,
'
销售订单
'
,
'
客户
'
,
"
1
,3
"
)
this
.
$refs
.
linkBillList
.
title
=
"
选择销售订单
"
},
linkBillListOk
(
selectBillRows
)
{
...
...
@@ -329,13 +331,28 @@
if
(
res
&&
res
.
code
===
200
){
let
list
=
res
.
data
.
rows
let
listEx
=
[]
let
discountLastMoney
=
0
for
(
let
j
=
0
;
j
<
list
.
length
;
j
++
){
let
info
=
list
[
j
];
if
(
info
.
preNumber
)
{
info
.
operNumber
=
info
.
preNumber
-
info
.
finishNumber
info
.
allPrice
=
info
.
operNumber
*
info
.
unitPrice
-
0
;
discountLastMoney
+=
info
.
allPrice
}
info
.
taxMoney
=
0
info
.
taxLastMoney
=
info
.
allPrice
listEx
.
push
(
info
)
}
tab
.
dataSource
=
listEx
//给优惠后金额重新赋值
if
(
discountLastMoney
)
{
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
discountLastMoney
'
:
discountLastMoney
,
'
changeAmount
'
:
discountLastMoney
})
});
}
typeof
success
===
'
function
'
?
success
(
res
)
:
''
}
}).
finally
(()
=>
{
...
...
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