Fixed error on getting op details
This commit is contained in:
parent
3dc0eabba0
commit
0fba045794
1 changed files with 10 additions and 10 deletions
|
|
@ -127,28 +127,28 @@ export default () => {
|
||||||
|
|
||||||
const getopdetails = async (applicationNo: string) => {
|
const getopdetails = async (applicationNo: string) => {
|
||||||
const op = await ofetch(API + 'get-opdetails-electrical/' + applicationNo, { parseResponse: JSON.parse })
|
const op = await ofetch(API + 'get-opdetails-electrical/' + applicationNo, { parseResponse: JSON.parse })
|
||||||
setAssessor(op.result7[0])
|
setLocation(op.result[0])
|
||||||
setLocation(op.result5[0])
|
setType(op.result2[0])
|
||||||
setType(op.result6[0])
|
setAssessor(op.result3[0])
|
||||||
setDateOp(dayjs(op.result10[0]).format('MMMM DD, YYYY'))
|
setTotalOp(calculateTotal(op.result4))
|
||||||
setApplicationId(op.result11[0])
|
setDateOp(dayjs(op.result5[0]).format('MMMM DD, YYYY'))
|
||||||
// setAssessorId(op.result12[0])
|
setApplicationId(op.result6[0])
|
||||||
setTotalOp(calculateTotal(op.result9))
|
|
||||||
|
|
||||||
|
// setAssessorId(op.result12[0])
|
||||||
// setDescriptionList(op.result8)
|
// setDescriptionList(op.result8)
|
||||||
// setAmountList(op.result9)
|
// setAmountList(op.result9)
|
||||||
// setDateOpList(op.result10)
|
// setDateOpList(op.result10)
|
||||||
// calculateAmounts()
|
// calculateAmounts()
|
||||||
|
|
||||||
getPrintDetails(op.result11[0])
|
getPrintDetails(op.result6[0])
|
||||||
getPrintDetailsFees(op.result11[0])
|
getPrintDetailsFees(op.result6[0])
|
||||||
getSignatureImage(employeeId())
|
getSignatureImage(employeeId())
|
||||||
|
|
||||||
const approversignId = await geteSignId(276)
|
const approversignId = await geteSignId(276)
|
||||||
getApprovedDate(approversignId, applicationNo)
|
getApprovedDate(approversignId, applicationNo)
|
||||||
// const assessorId = await getEmployeeId(op.result7[0])
|
// const assessorId = await getEmployeeId(op.result7[0])
|
||||||
// const assessorsignId = await geteSignId(assessorId)
|
// const assessorsignId = await geteSignId(assessorId)
|
||||||
getAssessedDate(op.result11[0])
|
getAssessedDate(op.result6[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
const calculateTotal = (list: number[]) => {
|
const calculateTotal = (list: number[]) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue