|
|
@@ -37,12 +37,12 @@
|
|
|
</div>
|
|
|
<div v-if="tenantFlag === 'pg' && inputForm.sourceType === '1'">
|
|
|
<el-divider content-position="left"><i class="el-icon-document"></i>
|
|
|
- 项目报销详情
|
|
|
- <el-button style="margin-left: 20px" type="primary"
|
|
|
+ 项目报销详情<span style="color: red;">(报销信息仅可登记一条报销单。可在报销单后操作栏新增xml格式数电发票信息)</span>
|
|
|
+ <!-- <el-button style="margin-left: 20px" type="primary"
|
|
|
:disabled="method === 'view' || status === 'audit' || status === 'taskFormDetail'" size="default"
|
|
|
@click="insertEvent('detail')" plain>
|
|
|
新增报销单
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
<el-form inline :disabled="false" style="display: inline-block;">
|
|
|
<el-button v-if="this.isConfirm == 1" type="primary" size="default" style="margin-left: 10px;"
|
|
|
@click="allSelect('0')">全部取消</el-button>
|
|
|
@@ -181,12 +181,12 @@
|
|
|
</div>
|
|
|
<div v-else-if="tenantFlag === 'cw' && inputForm.sourceType === '1'">
|
|
|
<el-divider content-position="left"><i class="el-icon-document"></i>
|
|
|
- 项目报销详情
|
|
|
- <el-button style="margin-left: 20px" type="primary"
|
|
|
+ 项目报销详情<span style="color: red;">(报销信息仅可登记一条报销单。可在报销单后操作栏新增xml格式数电发票信息)</span>
|
|
|
+ <!-- <el-button style="margin-left: 20px" type="primary"
|
|
|
:disabled="method === 'view' || status === 'audit' || status === 'taskFormDetail'" size="default"
|
|
|
@click="insertEvent('detail')" plain>
|
|
|
新增报销单
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
<el-form inline :disabled="false" style="display: inline-block;">
|
|
|
<el-button v-if="this.isConfirm == 1" type="primary" size="default" style="margin-left: 10px;"
|
|
|
@click="allSelect('0')">全部取消</el-button>
|
|
|
@@ -325,12 +325,12 @@
|
|
|
</div>
|
|
|
<div v-else-if="tenantFlag !== 'pg' && inputForm.sourceType === '1'">
|
|
|
<el-divider content-position="left"><i class="el-icon-document"></i>
|
|
|
- 项目报销详情
|
|
|
- <el-button size="default" style="margin-left: 20px" type="primary"
|
|
|
+ 项目报销详情<span style="color: red;">(报销信息仅可登记一条报销单。可在报销单后操作栏新增xml格式数电发票信息)</span>
|
|
|
+ <!-- <el-button size="default" style="margin-left: 20px" type="primary"
|
|
|
:disabled="method === 'view' || status === 'audit' || status === 'taskFormDetail'"
|
|
|
@click="insertEvent('detail')" plain>
|
|
|
新增报销单
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
<el-form inline :disabled="false" style="display: inline-block;">
|
|
|
<el-button v-if="this.isConfirm == 1" type="primary" size="default" style="margin-left: 10px;"
|
|
|
@click="allSelect('0')">全部取消</el-button>
|
|
|
@@ -464,12 +464,12 @@
|
|
|
|
|
|
<div v-if="inputForm.sourceType === '2'">
|
|
|
<el-divider content-position="left"><i class="el-icon-document"></i>
|
|
|
- 合同报销详情
|
|
|
- <el-button size="default" style="margin-left: 20px" type="primary"
|
|
|
+ 合同报销详情<span style="color: red;">(报销信息仅可登记一条报销单。可在报销单后操作栏新增xml格式数电发票信息)</span>
|
|
|
+ <!-- <el-button size="default" style="margin-left: 20px" type="primary"
|
|
|
:disabled="method === 'view' || status === 'audit' || status === 'taskFormDetail'"
|
|
|
@click="insertEvent('contract_detail')" plain>
|
|
|
新增报销单
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
<el-form inline :disabled="false" style="display: inline-block;">
|
|
|
<el-button v-if="this.isConfirm == 1" type="primary" size="default" style="margin-left: 10px;"
|
|
|
@click="allSelect('0')">全部取消</el-button>
|
|
|
@@ -586,12 +586,12 @@
|
|
|
</div>
|
|
|
<div v-if="inputForm.sourceType === '3' && tenantFlag === 'cw'">
|
|
|
<el-divider content-position="left"><i class="el-icon-document"></i>
|
|
|
- 报告报销详情
|
|
|
- <el-button size="default" style="margin-left: 20px" type="primary"
|
|
|
+ 报告报销详情<span style="color: red;">(报销信息仅可登记一条报销单。可在报销单后操作栏新增xml格式数电发票信息)</span>
|
|
|
+ <!-- <el-button size="default" style="margin-left: 20px" type="primary"
|
|
|
:disabled="method === 'view' || status === 'audit' || status === 'taskFormDetail'"
|
|
|
@click="insertEvent('report_detail')" plain>
|
|
|
新增报销单
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
<el-form inline :disabled="false" style="display: inline-block;">
|
|
|
<el-button v-if="this.isConfirm == 1" type="primary" size="default" style="margin-left: 10px;"
|
|
|
@click="allSelect('0')">全部取消</el-button>
|
|
|
@@ -731,12 +731,12 @@
|
|
|
</div>
|
|
|
<div v-else-if="inputForm.sourceType === '3' && tenantFlag !== 'cw'">
|
|
|
<el-divider content-position="left"><i class="el-icon-document"></i>
|
|
|
- 报告报销详情
|
|
|
- <el-button size="default" style="margin-left: 20px" type="primary"
|
|
|
+ 报告报销详情<span style="color: red;">(报销信息仅可登记一条报销单。可在报销单后操作栏新增xml格式数电发票信息)</span>
|
|
|
+ <!-- <el-button size="default" style="margin-left: 20px" type="primary"
|
|
|
:disabled="method === 'view' || status === 'audit' || status === 'taskFormDetail'"
|
|
|
@click="insertEvent('report_detail')" plain>
|
|
|
新增报销单
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
<el-form inline :disabled="false" style="display: inline-block;">
|
|
|
<el-button v-if="this.isConfirm == 1" type="primary" size="default" style="margin-left: 10px;"
|
|
|
@click="allSelect('0')">全部取消</el-button>
|
|
|
@@ -870,12 +870,12 @@
|
|
|
|
|
|
<div v-if="inputForm.sourceType === '4'">
|
|
|
<el-divider content-position="left"><i class="el-icon-document"></i>
|
|
|
- 其他报销详情
|
|
|
- <el-button size="default" style="margin-left: 20px" type="primary"
|
|
|
+ 其他报销详情<span style="color: red;">(报销信息仅可登记一条报销单。可在报销单后操作栏新增xml格式数电发票信息)</span>
|
|
|
+ <!-- <el-button size="default" style="margin-left: 20px" type="primary"
|
|
|
:disabled="method === 'view' || status === 'audit' || status === 'taskFormDetail'"
|
|
|
@click="insertEvent('others')" plain>
|
|
|
新增报销单
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
<el-form inline :disabled="false" style="display: inline-block;">
|
|
|
<el-button v-if="this.isConfirm == 1" type="primary" size="default" style="margin-left: 10px;"
|
|
|
@click="allSelect('0')">全部取消</el-button>
|
|
|
@@ -1010,11 +1010,11 @@
|
|
|
</div>
|
|
|
<div v-if="inputForm.sourceType === '5'">
|
|
|
<el-divider content-position="left"><i class="el-icon-document"></i>
|
|
|
- 采购报销详情
|
|
|
- <el-button size="default" style="margin-left: 20px" type="primary"
|
|
|
+ 采购报销详情<span style="color: red;">(报销信息仅可登记一条报销单。可在报销单后操作栏新增xml格式数电发票信息)</span>
|
|
|
+ <!-- <el-button size="default" style="margin-left: 20px" type="primary"
|
|
|
:disabled="method === 'view' || this.formReadOnly" @click="insertEvent('procured')" plain>
|
|
|
新增报销单
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
<el-form inline :disabled="false" style="display: inline-block;">
|
|
|
<el-button v-if="this.isConfirm == 1" type="primary" size="default" style="margin-left: 10px;"
|
|
|
@click="allSelect('0')">全部取消</el-button>
|
|
|
@@ -1128,12 +1128,12 @@
|
|
|
</div>
|
|
|
<div v-if="inputForm.sourceType === '8'">
|
|
|
<el-divider content-position="left"><i class="el-icon-document"></i>
|
|
|
- 中审项目报销详情
|
|
|
- <el-button size="default" style="margin-left: 20px" type="primary"
|
|
|
+ 中审项目报销详情<span style="color: red;">(报销信息仅可登记一条报销单。可在报销单后操作栏新增xml格式数电发票信息)</span>
|
|
|
+ <!-- <el-button size="default" style="margin-left: 20px" type="primary"
|
|
|
:disabled="method === 'view' || status === 'audit' || status === 'taskFormDetail'"
|
|
|
@click="insertEvent('zs_project_detail')" plain>
|
|
|
新增报销单
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
<el-form inline :disabled="false" style="display: inline-block;">
|
|
|
<el-button v-if="this.isConfirm == 1" type="primary" size="default" style="margin-left: 10px;"
|
|
|
@click="allSelect('0')">全部取消</el-button>
|
|
|
@@ -1289,12 +1289,12 @@
|
|
|
</div>
|
|
|
<div v-if="inputForm.reimbursementType === '0'">
|
|
|
<el-divider content-position="left"><i class="el-icon-document"></i>
|
|
|
- 专用发票信息
|
|
|
- <el-button size="default" style="margin-left: 10px" type="primary"
|
|
|
+ 专用发票信息<span style="color: red;">(报销信息仅可登记一条报销单。可在报销单后操作栏新增xml格式数电发票信息)</span>
|
|
|
+ <!-- <el-button size="default" style="margin-left: 10px" type="primary"
|
|
|
:disabled="method === 'view' || status === 'audit' || status === 'taskFormDetail'"
|
|
|
@click="insertEvent('amount')" plain>
|
|
|
新增报销单
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
</el-divider>
|
|
|
<el-row :gutter="15">
|
|
|
<el-col :span="24">
|
|
|
@@ -1657,6 +1657,27 @@ export default {
|
|
|
}
|
|
|
return id;
|
|
|
},
|
|
|
+ // 默认添加一条数据
|
|
|
+ addDefaultRow() {
|
|
|
+ if (this.inputForm.sourceType === '1') {
|
|
|
+ this.insertEvent('detail')
|
|
|
+ }
|
|
|
+ if (this.inputForm.sourceType === '2') {
|
|
|
+ this.insertEvent('contract_detail')
|
|
|
+ }
|
|
|
+ if (this.inputForm.sourceType === '3') {
|
|
|
+ this.insertEvent('report_detail')
|
|
|
+ }
|
|
|
+ if (this.inputForm.sourceType === '4') {
|
|
|
+ this.insertEvent('others')
|
|
|
+ }
|
|
|
+ if (this.inputForm.sourceType === '8') {
|
|
|
+ this.insertEvent('zs_project_detail')
|
|
|
+ }
|
|
|
+ if (this.inputForm.sourceType === '5') {
|
|
|
+ this.insertEvent('procured')
|
|
|
+ }
|
|
|
+ },
|
|
|
// 新增
|
|
|
async insertEvent(type) {
|
|
|
if (type === 'detail') {
|