|
@@ -557,7 +557,7 @@
|
|
|
</vxe-table-column>
|
|
|
<vxe-table-column title="操作" width="100">
|
|
|
<template v-slot="scope">
|
|
|
- <el-button size="default" type="danger" @click="removeEvent(scope.row,scope.$rowIndex,'procured')">删除</el-button>
|
|
|
+ <el-button size="default" type="danger" @click="removeEvent(scope.row,scope.$rowIndex,'human')">删除</el-button>
|
|
|
</template>
|
|
|
</vxe-table-column>
|
|
|
</vxe-table>
|
|
@@ -957,6 +957,10 @@
|
|
|
this.$refs.detailTableProcured.remove(row)
|
|
|
this.inputForm.detailInfoProcured.splice(rowIndex, 1)
|
|
|
}
|
|
|
+ if (type === 'human') {
|
|
|
+ this.$refs.humanTableProcured.remove(row)
|
|
|
+ this.inputForm.humanInfoProcured.splice(rowIndex, 1)
|
|
|
+ }
|
|
|
},
|
|
|
// 新增
|
|
|
async insertEvent (type) {
|
|
@@ -1721,7 +1725,38 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ } else if (this.inputForm.sourceType === '6') {
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.humanInfoProcured)) {
|
|
|
+ this.$message.error('至少填写一条报销详情信息')
|
|
|
+ this.loading = false
|
|
|
+ throw new Error('至少填写一条报销详情信息')
|
|
|
+ } else {
|
|
|
+ let i = this.inputForm.humanInfoProcured.length
|
|
|
+ for (let j = 0; j < i; j++) {
|
|
|
+ let k = j + 1
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.humanInfoProcured[j].userName)) {
|
|
|
+ this.$message.error('报销详情第' + k + '行请选择报销人')
|
|
|
+ this.loading = false
|
|
|
+ throw new Error('报销详情第' + k + '行请选择报销人')
|
|
|
+ }
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.humanInfoProcured[j].typeName)) {
|
|
|
+ this.$message.error('报销详情第' + k + '行请选择报销类型')
|
|
|
+ this.loading = false
|
|
|
+ throw new Error('报销详情第' + k + '行请选择报销类型')
|
|
|
+ }
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.humanInfoProcured[j].reimbuserName)) {
|
|
|
+ this.$message.error('报销详情第' + k + '行请选择报销登记名称')
|
|
|
+ this.loading = false
|
|
|
+ throw new Error('报销详情第' + k + '行请选择报销登记名称')
|
|
|
+ }
|
|
|
+ if (this.commonJS.isEmpty(this.inputForm.humanInfoProcured[j].number)) {
|
|
|
+ this.$message.error('报销详情第' + k + '行请填写费用')
|
|
|
+ this.loading = false
|
|
|
+ throw new Error('报销详情第' + k + '行请填写费用')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
openPurForm () {
|