|
@@ -6,7 +6,7 @@
|
|
<el-divider content-position="left"><i class="el-icon-document"></i> 基础信息</el-divider>
|
|
<el-divider content-position="left"><i class="el-icon-document"></i> 基础信息</el-divider>
|
|
<el-row >
|
|
<el-row >
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="报销项" prop="reimbursementType" :disabled="status === 'audit' || status === 'taskFormDetail'"
|
|
|
|
|
|
+ <el-form-item hidden label="报销项" prop="reimbursementType" :disabled="status === 'audit' || status === 'taskFormDetail'"
|
|
:rules="[
|
|
:rules="[
|
|
{required: true, message:'报销项不能为空', trigger:'blur'}
|
|
{required: true, message:'报销项不能为空', trigger:'blur'}
|
|
]">
|
|
]">
|
|
@@ -669,7 +669,6 @@
|
|
</div>
|
|
</div>
|
|
<div v-if="inputForm.reimbursementType === '1'">
|
|
<div v-if="inputForm.reimbursementType === '1'">
|
|
<el-divider content-position="left"><i class="el-icon-document"></i>
|
|
<el-divider content-position="left"><i class="el-icon-document"></i>
|
|
- <span style="color: red;border-top: 20px">* </span>
|
|
|
|
数电发票信息
|
|
数电发票信息
|
|
<!--<el-button style="margin-left: 20px" type="primary" :disabled="method==='view' || status === 'audit' || status === 'taskFormDetail' " size="default" @click="insertEvent('invoiceReimbursement')" plain>
|
|
<!--<el-button style="margin-left: 20px" type="primary" :disabled="method==='view' || status === 'audit' || status === 'taskFormDetail' " size="default" @click="insertEvent('invoiceReimbursement')" plain>
|
|
新增
|
|
新增
|
|
@@ -907,7 +906,7 @@
|
|
detailKeyProcured: '',
|
|
detailKeyProcured: '',
|
|
humanKeyProcured: '',
|
|
humanKeyProcured: '',
|
|
inputForm: {
|
|
inputForm: {
|
|
- reimbursementType: '0',
|
|
|
|
|
|
+ reimbursementType: '1',
|
|
userId: '',
|
|
userId: '',
|
|
userName: '',
|
|
userName: '',
|
|
no: '',
|
|
no: '',
|
|
@@ -1037,7 +1036,7 @@
|
|
init (method, id) {
|
|
init (method, id) {
|
|
this.method = method
|
|
this.method = method
|
|
this.inputForm = {
|
|
this.inputForm = {
|
|
- reimbursementType: '0',
|
|
|
|
|
|
+ reimbursementType: '1',
|
|
userName: '',
|
|
userName: '',
|
|
no: '',
|
|
no: '',
|
|
department: '',
|
|
department: '',
|
|
@@ -1102,7 +1101,7 @@
|
|
this.inputForm.files = []
|
|
this.inputForm.files = []
|
|
}
|
|
}
|
|
if (this.commonJS.isEmpty(this.inputForm.reimbursementType)) {
|
|
if (this.commonJS.isEmpty(this.inputForm.reimbursementType)) {
|
|
- this.inputForm.reimbursementType = '0'
|
|
|
|
|
|
+ this.inputForm.reimbursementType = '1'
|
|
}
|
|
}
|
|
if (this.commonJS.isNotEmpty(this.inputForm.paymentStatus) && this.inputForm.paymentStatus === '1'){
|
|
if (this.commonJS.isNotEmpty(this.inputForm.paymentStatus) && this.inputForm.paymentStatus === '1'){
|
|
this.payment = '已付款'
|
|
this.payment = '已付款'
|
|
@@ -1604,11 +1603,11 @@
|
|
this.inputForm.invoiceReimbursementFiles = this.$refs.invoiceReimbursementUpLoadComponent.getDataList()
|
|
this.inputForm.invoiceReimbursementFiles = this.$refs.invoiceReimbursementUpLoadComponent.getDataList()
|
|
this.inputForm.files = this.$refs.uploadComponent.getDataList()
|
|
this.inputForm.files = this.$refs.uploadComponent.getDataList()
|
|
this.dataFiltering()
|
|
this.dataFiltering()
|
|
- if(this.inputForm.invoiceReimbursementFiles<=0 && "1" === this.inputForm.reimbursementType){
|
|
|
|
- this.$message.error("请上传数电发票发票xml文件!")
|
|
|
|
- this.loading = false
|
|
|
|
- throw new Error("已填写数电发票信息,请上传对应发票的xml文件!")
|
|
|
|
- }
|
|
|
|
|
|
+ // if(this.inputForm.invoiceReimbursementFiles<=0 && "1" === this.inputForm.reimbursementType){
|
|
|
|
+ // this.$message.error("请上传数电发票发票xml文件!")
|
|
|
|
+ // this.loading = false
|
|
|
|
+ // throw new Error("已填写数电发票信息,请上传对应发票的xml文件!")
|
|
|
|
+ // }
|
|
//判定附件中xml文件数量是否小于电子发票报销行数量
|
|
//判定附件中xml文件数量是否小于电子发票报销行数量
|
|
if (this.commonJS.isNotEmpty(this.inputForm.invoiceReimbursements) && "1" === this.inputForm.reimbursementType) {
|
|
if (this.commonJS.isNotEmpty(this.inputForm.invoiceReimbursements) && "1" === this.inputForm.reimbursementType) {
|
|
//获取电子报销行数
|
|
//获取电子报销行数
|