|
@@ -9,10 +9,24 @@
|
|
|
append-to-body
|
|
|
@keyup.enter.native="doSubmit"
|
|
|
v-model="visible">
|
|
|
+ <div v-show="infoHistory" style="text-align: right;margin-bottom: 3em">
|
|
|
+ <el-button @click="historyList()" style="float: right" type="primary">历史详情</el-button>
|
|
|
+ </div>
|
|
|
<el-form :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="method === 'view'"
|
|
|
label-width="100px" @submit.native.prevent>
|
|
|
|
|
|
<el-divider content-position="left"><i class="el-icon-document"></i> 基础信息</el-divider>
|
|
|
+ <el-row >
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="报销项" prop="reimbursementType" :disabled="status === 'audit' || status === 'taskFormDetail'"
|
|
|
+ :rules="[
|
|
|
+ {required: true, message:'报销项不能为空', trigger:'blur'}
|
|
|
+ ]">
|
|
|
+ <el-radio v-model="inputForm.reimbursementType" v-for="item in $dictUtils.getDictList('reimbursement_type')" :label="item.value" style="margin-right: 20px">
|
|
|
+ {{item.label}}</el-radio>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<el-row :gutter="26">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="经办人" prop="userName">
|
|
@@ -641,6 +655,7 @@
|
|
|
</el-form>
|
|
|
<WorkContractChooseCom ref="workContractChooseCom" @getContract="getContract"></WorkContractChooseCom>
|
|
|
<ReportNoChooseRadio ref="reportNoChooseRadio" @getWorkClientRadioChoose="getWorkClientChoose2"></ReportNoChooseRadio>
|
|
|
+ <InfoHistory ref="infoHistory"></InfoHistory>
|
|
|
<!-- <PurchaseChooseForm ref="purchaseChooseForm" @getProject="getPurChoose"></PurchaseChooseForm>-->
|
|
|
<!-- <MaterialManagementDialog ref="materialManagementDialog" @getUpload="getUpload"></MaterialManagementDialog>-->
|
|
|
|
|
@@ -669,6 +684,7 @@
|
|
|
// import PurchaseChooseForm from '../../../materialManagement/wareHouse/PurchaseChooseForm'
|
|
|
// import MaterialManagementService from '@/api/materialManagement/MaterialManagementService'
|
|
|
// import MaterialManagementDialog from '../../../materialManagement/file/MaterialManagementDialog'
|
|
|
+ import InfoHistory from "./InfoHistory";
|
|
|
export default {
|
|
|
props: {
|
|
|
businessId: {
|
|
@@ -744,7 +760,8 @@
|
|
|
departmentName: ''
|
|
|
},
|
|
|
keyWatch: '',
|
|
|
- amountKey: ''
|
|
|
+ amountKey: '',
|
|
|
+ infoHistory:false
|
|
|
}
|
|
|
},
|
|
|
ReimbursementApprovalService: null,
|
|
@@ -765,6 +782,7 @@
|
|
|
UserPullForm,
|
|
|
ReportNoChooseRadio,
|
|
|
WorkContractChooseCom,
|
|
|
+ InfoHistory
|
|
|
// PurchaseChooseForm,
|
|
|
// MaterialManagementDialog
|
|
|
},
|
|
@@ -877,6 +895,9 @@
|
|
|
}
|
|
|
this.loading = false
|
|
|
})
|
|
|
+ if (method === 'edit'){
|
|
|
+ this.isHistory()
|
|
|
+ }
|
|
|
if (method !== 'edit' && method !== 'view') {
|
|
|
this.$refs.uploadComponent.newUpload(method, [], 'reimbursement')
|
|
|
}
|
|
@@ -1818,7 +1839,21 @@
|
|
|
this.inputForm.preList[index].fileInfoLost = []
|
|
|
}
|
|
|
// this.$refs.materialManagementDialog.newUpload('view', this.inputForm.preList[index].fileInfoLost, null, null, null, null, null, false, index)
|
|
|
- }
|
|
|
+ },
|
|
|
+ //根据id查询有无历史记录
|
|
|
+ isHistory(){
|
|
|
+ this.reimbursementApprovalService.findHistory(this.inputForm.id).then((data)=>{
|
|
|
+ if (this.commonJS.isNotEmpty(data) || data.length > 0){
|
|
|
+ this.infoHistory = true
|
|
|
+ }else {
|
|
|
+ this.infoHistory = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //历史列表页面
|
|
|
+ historyList(){
|
|
|
+ this.$refs.infoHistory.init(this.inputForm.id)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|