|
@@ -77,6 +77,13 @@
|
|
/>
|
|
/>
|
|
</HcListItem>
|
|
</HcListItem>
|
|
<HcListItem title="归属人:" :content="otherInfo?.userNameVesting" />
|
|
<HcListItem title="归属人:" :content="otherInfo?.userNameVesting" />
|
|
|
|
+ <HcListItem v-if="otherInfo?.isDeductLoan === 1" title="是否抵消借款金额" :content="otherInfo?.isDeductLoan === 0 ? '否' : '是'" />
|
|
|
|
+ <HcListItem v-if="otherInfo?.isDeductLoan === 1" title="选择借款项" :content="otherInfo?.userNameVesting">
|
|
|
|
+ <el-select v-model="otherInfo.deductLoanId" disabled>
|
|
|
|
+ <el-option v-for="item in loanListData" :label="item.loanName" :value="item.id" />
|
|
|
|
+ </el-select>
|
|
|
|
+ </HcListItem>
|
|
|
|
+ <HcListItem v-if="otherInfo?.isDeductLoan === 1" title="归属冲抵后的实际报销金额:" :content="otherInfo?.frMoneyActual" />
|
|
<!-- <HcListItem title="备注信息:" content="备注数据"/> -->
|
|
<!-- <HcListItem title="备注信息:" content="备注数据"/> -->
|
|
</div>
|
|
</div>
|
|
<!-- 出差审批 -->
|
|
<!-- 出差审批 -->
|
|
@@ -184,6 +191,7 @@ import outsourcing from './components/outsourcing.vue'
|
|
import costBudget from './components/cost-budget.vue'
|
|
import costBudget from './components/cost-budget.vue'
|
|
import { useAppStore } from '~src/store'
|
|
import { useAppStore } from '~src/store'
|
|
import { getdepartmentList, getuserList } from '~api/other'
|
|
import { getdepartmentList, getuserList } from '~api/other'
|
|
|
|
+import mainApi from '~api/expense/finReimburse'
|
|
const useAppState = useAppStore()
|
|
const useAppState = useAppStore()
|
|
|
|
|
|
|
|
|
|
@@ -201,9 +209,11 @@ onActivated(() => {
|
|
console.log( tabsKey.value, ' tabsKey.value')
|
|
console.log( tabsKey.value, ' tabsKey.value')
|
|
dataType.value = useRoutes?.query?.type ?? ''
|
|
dataType.value = useRoutes?.query?.type ?? ''
|
|
dataId.value = useRoutes?.query?.id ?? ''
|
|
dataId.value = useRoutes?.query?.id ?? ''
|
|
|
|
+ getLoanListData()
|
|
getUserDict()
|
|
getUserDict()
|
|
getTaskDatail()
|
|
getTaskDatail()
|
|
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
//获取所有员工
|
|
//获取所有员工
|
|
const userList = ref([])
|
|
const userList = ref([])
|
|
@@ -217,6 +227,18 @@ const getUserDict = async ()=>{
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+//获取我的借款列表
|
|
|
|
+const loanListData = ref([])
|
|
|
|
+const getLoanListData = async () => {
|
|
|
|
+ const { error, code, data } = await mainApi.loanList()
|
|
|
|
+ //判断状态
|
|
|
|
+ if (!error && code === 200) {
|
|
|
|
+ loanListData.value = getArrValue(data)
|
|
|
|
+ } else {
|
|
|
|
+ loanListData.value = []
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
const authTypeClick = () => {
|
|
const authTypeClick = () => {
|
|
authType.value = !authType.value
|
|
authType.value = !authType.value
|
|
}
|
|
}
|