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
1764ee66
Commit
1764ee66
authored
Nov 16, 2022
by
季圣华
Browse files
解决单据跳转的时候的无法加载供应商和客户的bug
parent
60b332ca
Changes
8
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue
View file @
1764ee66
...
...
@@ -40,9 +40,11 @@
</a-col>
<span
style=
"float: left;overflow: hidden;"
class=
"table-page-search-submitButtons"
>
<a-col
:md=
"6"
:sm=
"24"
>
<a-button
type=
"primary"
icon=
"search"
@
click=
"loadMaterialData(1)"
title=
"查询"
></a-button>
<a-button
style=
"margin-left: 8px"
icon=
"reload"
@
click=
"searchReset(1)"
title=
"重置"
></a-button>
<a-button
style=
"margin-left: 8px"
icon=
"plus"
@
click=
"addMaterial"
title=
"添加"
></a-button>
<a-button
type=
"primary"
@
click=
"loadMaterialData(1)"
>
查询
</a-button>
<a-button
style=
"margin-left: 8px"
@
click=
"searchReset(1)"
>
重置
</a-button>
<a-tooltip
title=
"没查询到,决定新增商品!"
>
<a-button
style=
"margin-left: 8px"
@
click=
"addMaterial"
>
新增
</a-button>
</a-tooltip>
<a
@
click=
"handleToggleSearch"
style=
"margin-left: 8px"
>
{{
toggleSearchStatus
?
'
收起
'
:
'
展开
'
}}
<a-icon
:type=
"toggleSearchStatus ? 'up' : 'down'"
/>
...
...
jshERP-web/src/views/bill/dialog/LinkBillList.vue
View file @
1764ee66
...
...
@@ -259,9 +259,13 @@
this
.
loadDetailData
(
1
)
}
}
else
{
this
.
getSelectBillDetailRows
();
this
.
$emit
(
'
ok
'
,
this
.
selectBillDetailRows
,
this
.
linkNumber
,
this
.
organId
,
this
.
discount
,
this
.
deposit
,
this
.
remark
)
this
.
close
();
if
(
this
.
selectedDetailRowKeys
.
length
)
{
this
.
getSelectBillDetailRows
()
this
.
$emit
(
'
ok
'
,
this
.
selectBillDetailRows
,
this
.
linkNumber
,
this
.
organId
,
this
.
discount
,
this
.
deposit
,
this
.
remark
)
this
.
close
()
}
else
{
this
.
$message
.
warning
(
'
抱歉,请选择单据明细!
'
)
}
}
},
//查询明细列表
...
...
jshERP-web/src/views/bill/modules/PurchaseBackModal.vue
View file @
1764ee66
...
...
@@ -393,21 +393,20 @@
}
this
.
materialTable
.
dataSource
=
listEx
///给优惠后金额重新赋值
if
(
allTaxLastMoney
)
{
let
discountMoney
=
(
discount
*
allTaxLastMoney
/
100
).
toFixed
(
2
)
-
0
let
discountLastMoney
=
(
allTaxLastMoney
-
discountMoney
).
toFixed
(
2
)
-
0
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
organId
'
:
organId
,
'
linkNumber
'
:
linkNumber
,
'
discount
'
:
discount
,
'
discountMoney
'
:
discountMoney
,
'
discountLastMoney
'
:
discountLastMoney
,
'
changeAmount
'
:
discountLastMoney
,
'
remark
'
:
remark
})
allTaxLastMoney
=
allTaxLastMoney
?
allTaxLastMoney
:
0
let
discountMoney
=
(
discount
*
allTaxLastMoney
/
100
).
toFixed
(
2
)
-
0
let
discountLastMoney
=
(
allTaxLastMoney
-
discountMoney
).
toFixed
(
2
)
-
0
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
organId
'
:
organId
,
'
linkNumber
'
:
linkNumber
,
'
discount
'
:
discount
,
'
discountMoney
'
:
discountMoney
,
'
discountLastMoney
'
:
discountLastMoney
,
'
changeAmount
'
:
discountLastMoney
,
'
remark
'
:
remark
})
}
}
)
}
},
}
...
...
jshERP-web/src/views/bill/modules/PurchaseInModal.vue
View file @
1764ee66
...
...
@@ -450,27 +450,26 @@
}
this
.
materialTable
.
dataSource
=
listEx
///给优惠后金额重新赋值
if
(
allTaxLastMoney
)
{
let
discountMoney
=
(
discount
*
allTaxLastMoney
/
100
).
toFixed
(
2
)
-
0
let
discountLastMoney
=
(
allTaxLastMoney
-
discountMoney
).
toFixed
(
2
)
-
0
let
changeAmount
=
discountLastMoney
if
(
deposit
)
{
this
.
depositStatus
=
true
changeAmount
=
(
discountLastMoney
-
deposit
).
toFixed
(
2
)
-
0
}
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
organId
'
:
organId
,
'
linkNumber
'
:
linkNumber
,
'
discount
'
:
discount
,
'
discountMoney
'
:
discountMoney
,
'
discountLastMoney
'
:
discountLastMoney
,
'
deposit
'
:
deposit
,
'
changeAmount
'
:
changeAmount
,
'
remark
'
:
remark
})
})
allTaxLastMoney
=
allTaxLastMoney
?
allTaxLastMoney
:
0
let
discountMoney
=
(
discount
*
allTaxLastMoney
/
100
).
toFixed
(
2
)
-
0
let
discountLastMoney
=
(
allTaxLastMoney
-
discountMoney
).
toFixed
(
2
)
-
0
let
changeAmount
=
discountLastMoney
if
(
deposit
)
{
this
.
depositStatus
=
true
changeAmount
=
(
discountLastMoney
-
deposit
).
toFixed
(
2
)
-
0
}
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
organId
'
:
organId
,
'
linkNumber
'
:
linkNumber
,
'
discount
'
:
discount
,
'
discountMoney
'
:
discountMoney
,
'
discountLastMoney
'
:
discountLastMoney
,
'
deposit
'
:
deposit
,
'
changeAmount
'
:
changeAmount
,
'
remark
'
:
remark
})
})
}
},
}
...
...
jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue
View file @
1764ee66
...
...
@@ -398,14 +398,13 @@
})
})
//给优惠后金额重新赋值
if
(
discountLastMoney
)
{
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
discountLastMoney
'
:
discountLastMoney
.
toFixed
(
2
),
'
changeAmount
'
:
discountLastMoney
})
});
}
discountLastMoney
=
discountLastMoney
?
discountLastMoney
:
0
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
discountLastMoney
'
:
discountLastMoney
.
toFixed
(
2
),
'
changeAmount
'
:
discountLastMoney
})
})
this
.
materialTable
.
dataSource
=
selectBillDetailRows
}
},
...
...
jshERP-web/src/views/bill/modules/RetailBackModal.vue
View file @
1764ee66
...
...
@@ -394,19 +394,18 @@
}
this
.
materialTable
.
dataSource
=
listEx
///给优惠后金额重新赋值
if
(
allTaxLastMoney
)
{
let
discountLastMoney
=
(
allTaxLastMoney
).
toFixed
(
2
)
-
0
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
organId
'
:
organId
,
'
linkNumber
'
:
linkNumber
,
'
getAmount
'
:
discountLastMoney
,
'
changeAmount
'
:
discountLastMoney
,
'
backAmount
'
:
0
,
'
remark
'
:
remark
})
allTaxLastMoney
=
allTaxLastMoney
?
allTaxLastMoney
:
0
let
discountLastMoney
=
(
allTaxLastMoney
).
toFixed
(
2
)
-
0
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
organId
'
:
organId
,
'
linkNumber
'
:
linkNumber
,
'
getAmount
'
:
discountLastMoney
,
'
changeAmount
'
:
discountLastMoney
,
'
backAmount
'
:
0
,
'
remark
'
:
remark
})
}
}
)
}
},
}
...
...
jshERP-web/src/views/bill/modules/SaleBackModal.vue
View file @
1764ee66
...
...
@@ -404,21 +404,20 @@
}
this
.
materialTable
.
dataSource
=
listEx
///给优惠后金额重新赋值
if
(
allTaxLastMoney
)
{
let
discountMoney
=
(
discount
*
allTaxLastMoney
/
100
).
toFixed
(
2
)
-
0
let
discountLastMoney
=
(
allTaxLastMoney
-
discountMoney
).
toFixed
(
2
)
-
0
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
organId
'
:
organId
,
'
linkNumber
'
:
linkNumber
,
'
discount
'
:
discount
,
'
discountMoney
'
:
discountMoney
,
'
discountLastMoney
'
:
discountLastMoney
,
'
changeAmount
'
:
discountLastMoney
,
'
remark
'
:
remark
})
allTaxLastMoney
=
allTaxLastMoney
?
allTaxLastMoney
:
0
let
discountMoney
=
(
discount
*
allTaxLastMoney
/
100
).
toFixed
(
2
)
-
0
let
discountLastMoney
=
(
allTaxLastMoney
-
discountMoney
).
toFixed
(
2
)
-
0
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
organId
'
:
organId
,
'
linkNumber
'
:
linkNumber
,
'
discount
'
:
discount
,
'
discountMoney
'
:
discountMoney
,
'
discountLastMoney
'
:
discountLastMoney
,
'
changeAmount
'
:
discountLastMoney
,
'
remark
'
:
remark
})
}
}
)
}
},
}
...
...
jshERP-web/src/views/bill/modules/SaleOutModal.vue
View file @
1764ee66
...
...
@@ -468,27 +468,26 @@
}
this
.
materialTable
.
dataSource
=
listEx
///给优惠后金额重新赋值
if
(
allTaxLastMoney
)
{
let
discountMoney
=
(
discount
*
allTaxLastMoney
/
100
).
toFixed
(
2
)
-
0
let
discountLastMoney
=
(
allTaxLastMoney
-
discountMoney
).
toFixed
(
2
)
-
0
let
changeAmount
=
discountLastMoney
if
(
deposit
)
{
this
.
depositStatus
=
true
changeAmount
=
(
discountLastMoney
-
deposit
).
toFixed
(
2
)
-
0
}
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
organId
'
:
organId
,
'
linkNumber
'
:
linkNumber
,
'
discount
'
:
discount
,
'
discountMoney
'
:
discountMoney
,
'
discountLastMoney
'
:
discountLastMoney
,
'
deposit
'
:
deposit
,
'
changeAmount
'
:
changeAmount
,
'
remark
'
:
remark
})
})
allTaxLastMoney
=
allTaxLastMoney
?
allTaxLastMoney
:
0
let
discountMoney
=
(
discount
*
allTaxLastMoney
/
100
).
toFixed
(
2
)
-
0
let
discountLastMoney
=
(
allTaxLastMoney
-
discountMoney
).
toFixed
(
2
)
-
0
let
changeAmount
=
discountLastMoney
if
(
deposit
)
{
this
.
depositStatus
=
true
changeAmount
=
(
discountLastMoney
-
deposit
).
toFixed
(
2
)
-
0
}
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
({
'
organId
'
:
organId
,
'
linkNumber
'
:
linkNumber
,
'
discount
'
:
discount
,
'
discountMoney
'
:
discountMoney
,
'
discountLastMoney
'
:
discountLastMoney
,
'
deposit
'
:
deposit
,
'
changeAmount
'
:
changeAmount
,
'
remark
'
:
remark
})
})
}
},
}
...
...
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