Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
71bf1848
Commit
71bf1848
authored
Dec 09, 2022
by
houjn@hikoon.cn
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator
parents
0615d1f4
f8ae4119
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
13 deletions
+46
-13
openInvoice.vue
src/views/ecw/financial/openInvoice.vue
+29
-7
receiptDetail.vue
src/views/ecw/financial/receiptDetail.vue
+3
-1
voucher.vue
src/views/ecw/financial/voucher.vue
+11
-2
editDialog.vue
src/views/ecw/order/warehousing/components/editDialog.vue
+3
-3
No files found.
src/views/ecw/financial/openInvoice.vue
View file @
71bf1848
...
...
@@ -30,12 +30,12 @@
<el-descriptions-item
:label=
"$t('开户行')"
>
{{
invoiceData
.
accountBank
}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('税率%')"
>
<el-form-item
label=
""
>
<el-input
v-model=
"invoiceData.taxRate"
></el-input>
<el-input
v-model=
"invoiceData.taxRate"
></el-input>
</el-form-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('项目')"
>
<el-form-item
label=
""
>
<el-input
v-model=
"invoiceData.projectName"
></el-input>
<el-input
v-model=
"invoiceData.projectName"
></el-input>
</el-form-item>
</el-descriptions-item>
</el-descriptions>
...
...
@@ -56,7 +56,11 @@
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('箱数')"
align=
"center"
prop=
"num"
/>
<el-table-column
:label=
"$t('体积/重量')"
align=
"center"
prop=
"weight"
></el-table-column>
<el-table-column
:label=
"$t('体积/重量')"
align=
"center"
prop=
"weight"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
volume
?(
scope
.
row
.
volume
+
'
/
'
+
scope
.
row
.
weight
):
''
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('收入类型')"
align=
"center"
prop=
"feeType"
>
<
template
slot-scope=
"scope"
>
<dict-tag
...
...
@@ -76,6 +80,16 @@
<span>
{{
scope
.
row
.
totalAmount
}}{{
getCurrencyLabel
(
scope
.
row
.
currencyId
)
}}
</span>
<!--
<dict-tag
:type=
"DICT_TYPE.BOX_SHIPPING_PRICE_UNIT"
:value=
"scope.row.currencyId"
/>
-->
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('优惠金额')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
discountTotal
?
scope
.
row
.
discountTotal
:
''
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('优惠后金额')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
disCountAmount
?
scope
.
row
.
disCountAmount
:
0
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('税额')"
align=
"center"
prop=
"tax"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -157,14 +171,22 @@ export default {
res
.
data
.
map
(
v
=>
{
v
.
tax
=
NP
.
times
(
v
.
totalAmount
,
this
.
invoiceData
.
taxRate
/
100
)
v
.
taxAndTotalAmount
=
NP
.
plus
(
v
.
totalAmount
,
NP
.
times
(
v
.
totalAmount
,
this
.
invoiceData
.
taxRate
/
100
))
if
(
v
.
discountTotal
){
v
.
disCountAmount
=
NP
.
minus
(
v
.
totalAmount
,
v
.
discountTotal
)
}
else
{
v
.
disCountAmount
=
v
.
totalAmount
}
})
const
t
=
{
orderNo
:
this
.
$t
(
'
合计
'
),
totalAmount
:
res
.
data
.
reduce
((
total
,
curr
)
=>
NP
.
plus
(
total
,
curr
.
totalAmount
),
0
),
disCountAmount
:
res
.
data
.
reduce
((
total
,
curr
)
=>
NP
.
plus
(
total
,
curr
.
disCountAmount
),
0
),
tax
:
res
.
data
.
reduce
((
total
,
curr
)
=>
NP
.
plus
(
total
,
curr
.
tax
),
0
),
taxAndTotalAmount
:
res
.
data
.
reduce
((
total
,
curr
)
=>
NP
.
plus
(
total
,
curr
.
taxAndTotalAmount
),
0
)
}
this
.
list
=
[...
res
.
data
,
t
]
console
.
log
(
this
.
list
)
})
},
submitForm
()
{
...
...
@@ -180,7 +202,7 @@ export default {
},
getSummaries
(
param
)
{
const
t
=
this
.
list
[
this
.
list
.
length
-
1
].
taxAndTotalAmount
return
[
this
.
$t
(
'
收款人
'
),
this
.
invoiceData
.
payee
Name
,
this
.
$t
(
'
核销人
'
),
this
.
invoiceData
.
writeOffName
,
this
.
$t
(
'
开票人
'
),
this
.
invoiceData
.
issuerName
,
''
,
this
.
$t
(
'
价税合计大写
'
),
this
.
convertCurrency
(
t
)];
return
[
this
.
$t
(
'
收款人
'
),
this
.
invoiceData
.
salesman
Name
,
this
.
$t
(
'
核销人
'
),
this
.
invoiceData
.
writeOffName
,
this
.
$t
(
'
开票人
'
),
this
.
invoiceData
.
issuerName
,
''
,
this
.
$t
(
'
价税合计大写
'
),
this
.
convertCurrency
(
t
)];
},
convertCurrency
(
money
)
{
//汉字的数字
...
...
@@ -205,7 +227,7 @@ export default {
var
chineseStr
=
''
;
//分离金额后用的数组,预定义
var
parts
;
// 传入的参数为空情况
// 传入的参数为空情况
if
(
money
===
''
)
{
return
''
;
}
...
...
@@ -213,7 +235,7 @@ export default {
if
(
money
>=
maxNum
){
return
''
}
// 传入的参数为0情况
// 传入的参数为0情况
if
(
money
===
0
)
{
chineseStr
=
cnNums
[
0
]
+
cnIntLast
+
cnInteger
;
return
chineseStr
...
...
@@ -248,7 +270,7 @@ export default {
chineseStr
+=
cnNums
[
parseInt
(
n
)]
+
cnIntRadice
[
m
];
}
if
(
m
==
0
&&
zeroCount
<
4
){
chineseStr
+=
cnIntUnits
[
q
];
chineseStr
+=
cnIntUnits
[
q
];
}
}
// 最后+ 元
...
...
src/views/ecw/financial/receiptDetail.vue
View file @
71bf1848
...
...
@@ -508,7 +508,9 @@ export default {
writeOffAmount
(){
let
total
=
0
this
.
detailed
.
forEach
(
item
=>
{
total
=
NP
.
plus
(
total
,
item
.
writeOffAmount
)
if
(
item
.
status
){
total
=
NP
.
plus
(
total
,
item
.
writeOffAmount
)
}
}
)
return
total
.
toFixed
(
2
)
}
,
...
...
src/views/ecw/financial/voucher.vue
View file @
71bf1848
...
...
@@ -52,9 +52,10 @@
<el-col
style=
"width: 592px"
>
<el-form-item
:label=
"$t('创建时间')"
>
<el-date-picker
v-model=
"
queryParams.beginCreateTime
"
v-model=
"
dateFilter
"
type=
"datetimerange"
range-separator=
"-"
value-format=
"yyyy-MM-dd HH:mm:ss"
:start-placeholder=
"$t('请选择日期')"
:end-placeholder=
"$t('请选择日期')"
>
...
...
@@ -301,6 +302,7 @@ export default {
productRecord
:
null
,
followUpSalesmanId
:
null
,
}
,
dateFilter
:[],
downloading
:
false
,
// 导出状态
}
;
}
,
...
...
@@ -368,7 +370,14 @@ export default {
}
,
/** 搜索按钮操作 */
handleQuery
()
{
console
.
log
(
11
)
if
(
this
.
dateFilter
&&
this
.
dateFilter
.
length
>
0
){
this
.
queryParams
.
beginCreateTime
=
this
.
dateFilter
[
0
]
this
.
queryParams
.
endCreateTime
=
this
.
dateFilter
[
1
]
}
else
{
this
.
queryParams
.
beginCreateTime
=
''
this
.
queryParams
.
endCreateTime
=
''
}
this
.
queryParams
.
pageNo
=
1
;
this
.
getList
();
}
,
...
...
src/views/ecw/order/warehousing/components/editDialog.vue
View file @
71bf1848
...
...
@@ -108,7 +108,7 @@
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.boxGauge1"
:prop=
"!tableData[$index].id && $index + '.boxGauge1'"
>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
tableData
[
$index
].
boxGauge
?
tableData
[
$index
].
boxGauge
.
split
(
'
*
'
)[
0
]
:
''
}}
</span>
<el-input
v-else
v-model.number
=
"tableData[$index].boxGauge1"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
<el-input
v-else
type=
"number"
v-model
=
"tableData[$index].boxGauge1"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -116,7 +116,7 @@
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.boxGauge2"
:prop=
"!tableData[$index].id && $index + '.boxGauge2'"
>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
tableData
[
$index
].
boxGauge
?
tableData
[
$index
].
boxGauge
.
split
(
'
*
'
)[
1
]
:
''
}}
</span>
<el-input
v-else
v-model.number
=
"tableData[$index].boxGauge2"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
<el-input
v-else
type=
"number"
v-model
=
"tableData[$index].boxGauge2"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
</el-form-item>
</
template
>
</el-table-column>
...
...
@@ -124,7 +124,7 @@
<
template
v-slot=
"{r,c,$index}"
>
<el-form-item
:rules=
"tableFormRules.boxGauge3"
:prop=
"!tableData[$index].id && $index + '.boxGauge3'"
>
<span
v-if=
"tableData[$index].id && !edit"
>
{{
tableData
[
$index
].
boxGauge
?
tableData
[
$index
].
boxGauge
.
split
(
'
*
'
)[
2
]
:
''
}}
</span>
<el-input
v-else
v-model.number
=
"tableData[$index].boxGauge3"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
<el-input
v-else
type=
"number"
v-model
=
"tableData[$index].boxGauge3"
placeholder=
""
@
blur=
"handleVolume($index)"
></el-input>
</el-form-item>
</
template
>
</el-table-column>
...
...
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