|
@@ -100,7 +100,7 @@
|
|
<vehicleRequest :other-info="otherInfo"/>
|
|
<vehicleRequest :other-info="otherInfo"/>
|
|
</div>
|
|
</div>
|
|
<!-- 开票申请 -->
|
|
<!-- 开票申请 -->
|
|
- <div class="hc-info-list" v-if="dataType==='开票审批'">
|
|
|
|
|
|
+ <div class="hc-info-list" v-if="dataType==='发票审批'">
|
|
<invoiceRequest :other-info="otherInfo"/>
|
|
<invoiceRequest :other-info="otherInfo"/>
|
|
</div>
|
|
</div>
|
|
<!-- 开票申请 -->
|
|
<!-- 开票申请 -->
|
|
@@ -134,7 +134,7 @@
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
|
<!--模拟效果-->
|
|
<!--模拟效果-->
|
|
- <div class="w-36 mx-6 inline-block">
|
|
|
|
|
|
+ <!-- <div class="w-36 mx-6 inline-block">
|
|
<el-select v-model="dataType" block placeholder="选择模拟类型" size="large">
|
|
<el-select v-model="dataType" block placeholder="选择模拟类型" size="large">
|
|
<el-option label="任务详情" value="任务审批"/>
|
|
<el-option label="任务详情" value="任务审批"/>
|
|
<el-option label="财务报销" value="报销审批"/>
|
|
<el-option label="财务报销" value="报销审批"/>
|
|
@@ -144,10 +144,10 @@
|
|
<el-option label="出差审批" value="出差审批"/>
|
|
<el-option label="出差审批" value="出差审批"/>
|
|
<el-option label="支付申请" value="支付审批"/>
|
|
<el-option label="支付申请" value="支付审批"/>
|
|
<el-option label="用车审批" value="用车审批"/>
|
|
<el-option label="用车审批" value="用车审批"/>
|
|
- <el-option label="开票审批" value="开票审批"/>
|
|
|
|
|
|
+ <el-option label="发票审批" value="发票审批"/>
|
|
</el-select>
|
|
</el-select>
|
|
- </div>
|
|
|
|
- <el-button hc-btn @click="authTypeClick">模拟财务审核</el-button>
|
|
|
|
|
|
+ </div> -->
|
|
|
|
+ <!-- <el-button hc-btn @click="authTypeClick">模拟财务审核</el-button> -->
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<HcDialog bgColor="#ffffff" isToBody :loading="groundsLoading" :show="groundsModal" title="请填写驳回理由" widths="600px" @close="closeGroundsClick" @save="saveGroundsClick">
|
|
<HcDialog bgColor="#ffffff" isToBody :loading="groundsLoading" :show="groundsModal" title="请填写驳回理由" widths="600px" @close="closeGroundsClick" @save="saveGroundsClick">
|
|
@@ -184,16 +184,16 @@ const useRoutes = useRoute()
|
|
const tabsKey = ref(useRoutes?.query?.tabKey ?? '')
|
|
const tabsKey = ref(useRoutes?.query?.tabKey ?? '')
|
|
const dataType = ref(useRoutes?.query?.type ?? '')
|
|
const dataType = ref(useRoutes?.query?.type ?? '')
|
|
const dataId = ref(useRoutes?.query?.id ?? '')
|
|
const dataId = ref(useRoutes?.query?.id ?? '')
|
|
-const authType = ref(false)
|
|
|
|
|
|
+const authType = ref(false)//是否是财务人员
|
|
|
|
|
|
//缓存页面被激活时
|
|
//缓存页面被激活时
|
|
onActivated(() => {
|
|
onActivated(() => {
|
|
tabsKey.value = useRoutes?.query?.tabKey ?? ''
|
|
tabsKey.value = useRoutes?.query?.tabKey ?? ''
|
|
dataType.value = useRoutes?.query?.type ?? ''
|
|
dataType.value = useRoutes?.query?.type ?? ''
|
|
dataId.value = useRoutes?.query?.id ?? ''
|
|
dataId.value = useRoutes?.query?.id ?? ''
|
|
- console.log(useRoutes.query)
|
|
|
|
|
|
+
|
|
getTaskDatail()
|
|
getTaskDatail()
|
|
- getdepartmentListData()
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
|
|
|
|
const authTypeClick = () => {
|
|
const authTypeClick = () => {
|
|
@@ -209,29 +209,19 @@ const getTaskDatail=async()=>{
|
|
tableData.value=data['planTaskInfoList']
|
|
tableData.value=data['planTaskInfoList']
|
|
taskBasicsInfo.value=data['basicsInfo']
|
|
taskBasicsInfo.value=data['basicsInfo']
|
|
otherInfo.value=data['otherInfo']
|
|
otherInfo.value=data['otherInfo']
|
|
|
|
+ let isFinancialPersonnel=data['basicsInfo'].isFinancialPersonnel
|
|
|
|
+ if(isFinancialPersonnel==1){//1 是财务审核
|
|
|
|
+ authType.value=true
|
|
|
|
+ }else{
|
|
|
|
+ authType.value=false
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
taskDetail.value={}
|
|
taskDetail.value={}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//部门
|
|
//部门
|
|
const departMent = ref([])
|
|
const departMent = ref([])
|
|
-const getdepartmentListData = async () => {
|
|
|
|
- const {error, code, data} = await getdepartmentList({deptType:2})
|
|
|
|
- //判断状态
|
|
|
|
- if (!error && code === 200) {
|
|
|
|
- departMent.value = getArrValue(data)
|
|
|
|
- //判断是否是财务人员
|
|
|
|
- departMent.value.forEach((ele)=>{
|
|
|
|
- if(ele.id===useAppState.dept_id){
|
|
|
|
- authType.value=true
|
|
|
|
- }else{
|
|
|
|
- authType.value=false
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- } else {
|
|
|
|
- departMent.value = []
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+
|
|
//任务表格
|
|
//任务表格
|
|
const tableColumn = [
|
|
const tableColumn = [
|
|
{key: 'projectName', name: '所属项目'},
|
|
{key: 'projectName', name: '所属项目'},
|