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
234f58bf
Commit
234f58bf
authored
Dec 18, 2022
by
季圣华
Browse files
将单据的查看和编辑改为从后台单独查询
parent
2113691a
Changes
4
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/dialog/BillDetail.vue
View file @
234f58bf
...
...
@@ -1454,39 +1454,45 @@
})
},
show
(
record
,
type
)
{
this
.
billType
=
type
//附件下载
this
.
fileList
=
record
.
fileName
this
.
visible
=
true
this
.
modalStyle
=
'
top:20px;height: 95%;
'
this
.
model
=
Object
.
assign
({},
record
)
if
(
this
.
model
.
backAmount
)
{
this
.
model
.
getAmount
=
(
this
.
model
.
changeAmount
+
this
.
model
.
backAmount
).
toFixed
(
2
)
}
else
{
this
.
model
.
getAmount
=
this
.
model
.
changeAmount
}
this
.
model
.
debt
=
(
this
.
model
.
discountLastMoney
+
this
.
model
.
otherMoney
-
(
this
.
model
.
deposit
+
this
.
model
.
changeAmount
)).
toFixed
(
2
)
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
id
'
))
});
let
showType
=
'
basic
'
if
(
record
.
status
===
'
3
'
)
{
showType
=
'
basic
'
}
else
if
(
record
.
purchaseStatus
===
'
3
'
)
{
showType
=
'
purchase
'
}
let
params
=
{
headerId
:
this
.
model
.
id
,
mpList
:
getMpListShort
(
Vue
.
ls
.
get
(
'
materialPropertyList
'
)),
//扩展属性
linkType
:
showType
,
isReadOnly
:
'
1
'
}
let
url
=
this
.
readOnly
?
this
.
url
.
detailList
:
this
.
url
.
detailList
;
this
.
requestSubTableData
(
record
,
type
,
url
,
params
);
this
.
initPlatform
()
this
.
getSystemConfig
()
this
.
getBillListByLinkNumber
(
this
.
model
.
number
)
this
.
getFinancialBillNoByBillId
(
this
.
model
.
id
)
//查询单条单据信息
findBillDetailByNumber
({
number
:
record
.
number
}).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
let
item
=
res
.
data
this
.
billType
=
type
//附件下载
this
.
fileList
=
item
.
fileName
this
.
visible
=
true
this
.
modalStyle
=
'
top:20px;height: 95%;
'
this
.
model
=
Object
.
assign
({},
item
)
if
(
this
.
model
.
backAmount
)
{
this
.
model
.
getAmount
=
(
this
.
model
.
changeAmount
+
this
.
model
.
backAmount
).
toFixed
(
2
)
}
else
{
this
.
model
.
getAmount
=
this
.
model
.
changeAmount
}
this
.
model
.
debt
=
(
this
.
model
.
discountLastMoney
+
this
.
model
.
otherMoney
-
(
this
.
model
.
deposit
+
this
.
model
.
changeAmount
)).
toFixed
(
2
)
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
id
'
))
});
let
showType
=
'
basic
'
if
(
item
.
status
===
'
3
'
)
{
showType
=
'
basic
'
}
else
if
(
item
.
purchaseStatus
===
'
3
'
)
{
showType
=
'
purchase
'
}
let
params
=
{
headerId
:
this
.
model
.
id
,
mpList
:
getMpListShort
(
Vue
.
ls
.
get
(
'
materialPropertyList
'
)),
//扩展属性
linkType
:
showType
,
isReadOnly
:
'
1
'
}
let
url
=
this
.
readOnly
?
this
.
url
.
detailList
:
this
.
url
.
detailList
;
this
.
requestSubTableData
(
item
,
type
,
url
,
params
);
this
.
initPlatform
()
this
.
getSystemConfig
()
this
.
getBillListByLinkNumber
(
this
.
model
.
number
)
this
.
getFinancialBillNoByBillId
(
this
.
model
.
id
)
}
})
},
requestSubTableData
(
record
,
type
,
url
,
params
,
success
)
{
this
.
loading
=
true
...
...
jshERP-web/src/views/bill/mixins/BillListMixin.js
View file @
234f58bf
import
Vue
from
'
vue
'
import
{
getAction
}
from
'
@/api/manage
'
import
{
FormTypes
}
from
'
@/utils/JEditableTableUtil
'
import
{
findBySelectSup
,
findBySelectCus
,
findBySelectRetail
,
getUserList
,
getAccount
}
from
'
@/api/api
'
import
{
findBillDetailByNumber
,
findBySelectSup
,
findBySelectCus
,
findBySelectRetail
,
getUserList
,
getAccount
}
from
'
@/api/api
'
export
const
BillListMixin
=
{
data
()
{
...
...
@@ -59,7 +59,13 @@ export const BillListMixin = {
if
(
this
.
btnEnableList
.
indexOf
(
2
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isCanCheck
=
false
}
this
.
handleEdit
(
record
);
//查询单条单据信息
findBillDetailByNumber
({
number
:
record
.
number
}).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
let
item
=
res
.
data
this
.
handleEdit
(
item
)
}
})
}
else
{
this
.
$message
.
warning
(
"
抱歉,只有未审核的单据才能编辑!
"
)
}
...
...
jshERP-web/src/views/financial/dialog/FinancialDetail.vue
View file @
234f58bf
...
...
@@ -399,6 +399,7 @@
<
script
>
import
pick
from
'
lodash.pick
'
import
{
getAction
,
postAction
}
from
'
@/api/manage
'
import
{
findFinancialDetailByNumber
}
from
'
@/api/api
'
import
JUpload
from
'
@/components/jeecg/JUpload
'
export
default
{
name
:
'
FinancialDetail
'
,
...
...
@@ -476,20 +477,26 @@
},
methods
:
{
show
(
record
,
type
)
{
this
.
financialType
=
type
//附件下载
this
.
fileList
=
record
.
fileName
this
.
visible
=
true
this
.
modalStyle
=
'
top:20px;height: 95%;
'
this
.
model
=
Object
.
assign
({},
record
)
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
id
'
))
});
let
params
=
{
headerId
:
this
.
model
.
id
,
}
let
url
=
this
.
readOnly
?
this
.
url
.
detailList
:
this
.
url
.
detailList
;
this
.
requestSubTableData
(
url
,
params
);
//查询单条财务信息
findFinancialDetailByNumber
({
billNo
:
record
.
billNo
}).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
let
item
=
res
.
data
this
.
financialType
=
type
//附件下载
this
.
fileList
=
item
.
fileName
this
.
visible
=
true
this
.
modalStyle
=
'
top:20px;height: 95%;
'
this
.
model
=
Object
.
assign
({},
item
)
this
.
$nextTick
(()
=>
{
this
.
form
.
setFieldsValue
(
pick
(
this
.
model
,
'
id
'
))
});
let
params
=
{
headerId
:
this
.
model
.
id
,
}
let
url
=
this
.
readOnly
?
this
.
url
.
detailList
:
this
.
url
.
detailList
;
this
.
requestSubTableData
(
url
,
params
);
}
})
},
requestSubTableData
(
url
,
params
,
success
)
{
this
.
loading
=
true
...
...
jshERP-web/src/views/financial/mixins/FinancialListMixin.js
View file @
234f58bf
import
{
findBySelectSup
,
findBySelectCus
,
findBySelectOrgan
,
findBySelectRetail
,
getUserList
,
getPersonByType
,
getAccount
}
from
'
@/api/api
'
import
{
findFinancialDetailByNumber
,
findBySelectSup
,
findBySelectCus
,
findBySelectOrgan
,
findBySelectRetail
,
getUserList
,
getPersonByType
,
getAccount
}
from
'
@/api/api
'
import
Vue
from
'
vue
'
export
const
FinancialListMixin
=
{
...
...
@@ -43,7 +44,13 @@ export const FinancialListMixin = {
if
(
this
.
btnEnableList
.
indexOf
(
2
)
===-
1
)
{
this
.
$refs
.
modalForm
.
isCanCheck
=
false
}
this
.
handleEdit
(
record
);
//查询单条财务信息
findFinancialDetailByNumber
({
billNo
:
record
.
billNo
}).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
let
item
=
res
.
data
this
.
handleEdit
(
item
)
}
})
}
else
{
this
.
$message
.
warning
(
"
抱歉,只有未审核的单据才能编辑!
"
)
}
...
...
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