|
|
@@ -267,8 +267,6 @@
|
|
|
|
|
|
</el-form>
|
|
|
<!-- 附件 -->
|
|
|
- <InvoiceReimbursementUpLoadComponent ref="invoiceReimbursementUpLoadComponent"
|
|
|
- v-show="'1' === this.inputForm.reimbursementType"></InvoiceReimbursementUpLoadComponent>
|
|
|
<UpLoadComponent ref="uploadComponent"></UpLoadComponent>
|
|
|
<WorkContractChooseCom ref="workContractChooseCom" @getContract="getContract"></WorkContractChooseCom>
|
|
|
<ReportNoChooseRadio ref="reportNoChooseRadio" @getWorkClientRadioChoose="getWorkClientChoose2">
|
|
|
@@ -519,7 +517,7 @@ export default {
|
|
|
'loading': {
|
|
|
handler(newVal) {
|
|
|
this.$emit('changeLoading', newVal)
|
|
|
- this.$refs.invoiceReimbursementUpLoadComponent.changeLoading(newVal)
|
|
|
+ // this.$refs.invoiceReimbursementUpLoadComponent.changeLoading(newVal)
|
|
|
this.$refs.uploadComponent.changeLoading(newVal)
|
|
|
}
|
|
|
}
|
|
|
@@ -575,7 +573,7 @@ export default {
|
|
|
this.loading = true
|
|
|
this.$refs.inputForm.resetFields()
|
|
|
this.reimbursementApprovalService.findById(this.inputForm.id).then((data) => {
|
|
|
- this.$refs.invoiceReimbursementUpLoadComponent.clearUpload()
|
|
|
+ // this.$refs.invoiceReimbursementUpLoadComponent.clearUpload()
|
|
|
this.$refs.uploadComponent.clearUpload()
|
|
|
if (this.status === 'audit' || this.status === 'taskFormDetail') {
|
|
|
method = 'view'
|
|
|
@@ -643,10 +641,10 @@ export default {
|
|
|
this.$refs['inputForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.loading = true
|
|
|
- if (this.$refs.invoiceReimbursementUpLoadComponent.checkProgress()) {
|
|
|
- this.loading = false
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (this.$refs.invoiceReimbursementUpLoadComponent.checkProgress()) {
|
|
|
+ // this.loading = false
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if (this.$refs.uploadComponent.checkProgress()) {
|
|
|
this.loading = false
|
|
|
return
|
|
|
@@ -658,7 +656,7 @@ export default {
|
|
|
this.inputForm.files = []
|
|
|
}
|
|
|
this.dataFiltering()
|
|
|
- this.inputForm.invoiceReimbursementFiles = this.$refs.invoiceReimbursementUpLoadComponent.getDataList()
|
|
|
+ // this.inputForm.invoiceReimbursementFiles = this.$refs.invoiceReimbursementUpLoadComponent.getDataList()
|
|
|
this.inputForm.files = this.$refs.uploadComponent.getDataList()
|
|
|
this.reimbursementApprovalService.save(this.inputForm).then((data) => {
|
|
|
this.close()
|
|
|
@@ -767,7 +765,7 @@ export default {
|
|
|
this.$refs.inputForm.resetFields()
|
|
|
this.inputForm.amountInfos = []
|
|
|
this.inputForm.invoiceReimbursements = []
|
|
|
- this.$refs.invoiceReimbursementUpLoadComponent.clearUpload()
|
|
|
+ // this.$refs.invoiceReimbursementUpLoadComponent.clearUpload()
|
|
|
this.$refs.uploadComponent.clearUpload()
|
|
|
this.visible = false
|
|
|
},
|
|
|
@@ -924,10 +922,10 @@ export default {
|
|
|
// 暂存
|
|
|
async saveForm(callback) {
|
|
|
this.loading = true
|
|
|
- if (this.$refs.invoiceReimbursementUpLoadComponent.checkProgress()) {
|
|
|
- this.loading = false
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (this.$refs.invoiceReimbursementUpLoadComponent.checkProgress()) {
|
|
|
+ // this.loading = false
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if (this.$refs.uploadComponent.checkProgress()) {
|
|
|
this.loading = false
|
|
|
return
|
|
|
@@ -938,7 +936,7 @@ export default {
|
|
|
if (this.commonJS.isEmpty(this.inputForm.files)) {
|
|
|
this.inputForm.files = []
|
|
|
}
|
|
|
- this.inputForm.invoiceReimbursementFiles = this.$refs.invoiceReimbursementUpLoadComponent.getDataList()
|
|
|
+ // this.inputForm.invoiceReimbursementFiles = this.$refs.invoiceReimbursementUpLoadComponent.getDataList()
|
|
|
this.inputForm.files = this.$refs.uploadComponent.getDataList()
|
|
|
this.inputForm.type = '1'
|
|
|
this.reimbursementApprovalService.save(this.inputForm).then((data) => {
|
|
|
@@ -1079,10 +1077,10 @@ export default {
|
|
|
if (valid) {
|
|
|
this.loading = true
|
|
|
this.submitCheck()
|
|
|
- if (this.$refs.invoiceReimbursementUpLoadComponent.checkProgress()) {
|
|
|
- this.loading = false
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (this.$refs.invoiceReimbursementUpLoadComponent.checkProgress()) {
|
|
|
+ // this.loading = false
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if (this.$refs.uploadComponent.checkProgress()) {
|
|
|
this.loading = false
|
|
|
return
|
|
|
@@ -1098,7 +1096,7 @@ export default {
|
|
|
// this.loading = false
|
|
|
// return
|
|
|
// }
|
|
|
- this.inputForm.invoiceReimbursementFiles = this.$refs.invoiceReimbursementUpLoadComponent.getDataList()
|
|
|
+ // this.inputForm.invoiceReimbursementFiles = this.$refs.invoiceReimbursementUpLoadComponent.getDataList()
|
|
|
this.inputForm.files = this.$refs.uploadComponent.getDataList()
|
|
|
this.dataFiltering()
|
|
|
if (this.inputForm.invoiceReimbursementFiles <= 0 && "1" === this.inputForm.reimbursementType) {
|
|
|
@@ -1169,10 +1167,10 @@ export default {
|
|
|
if (valid) {
|
|
|
this.loading = true
|
|
|
this.submitCheck()
|
|
|
- if (this.$refs.invoiceReimbursementUpLoadComponent.checkProgress()) {
|
|
|
- this.loading = false
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (this.$refs.invoiceReimbursementUpLoadComponent.checkProgress()) {
|
|
|
+ // this.loading = false
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if (this.$refs.uploadComponent.checkProgress()) {
|
|
|
this.loading = false
|
|
|
return
|
|
|
@@ -1184,7 +1182,7 @@ export default {
|
|
|
this.inputForm.files = []
|
|
|
}
|
|
|
this.dataFiltering()
|
|
|
- this.inputForm.invoiceReimbursementFiles = this.$refs.invoiceReimbursementUpLoadComponent.getDataList()
|
|
|
+ // this.inputForm.invoiceReimbursementFiles = this.$refs.invoiceReimbursementUpLoadComponent.getDataList()
|
|
|
this.inputForm.files = this.$refs.uploadComponent.getDataList()
|
|
|
this.commonApi.getTaskNameByProcInsId(this.inputForm.procInsId).then((data) => {
|
|
|
if (this.commonJS.isNotEmpty(data)) {
|
|
|
@@ -1227,10 +1225,10 @@ export default {
|
|
|
this.$message.error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
throw new Error('任务数据已发生改变或不存在,请在待办任务中确认此任务是否存在')
|
|
|
}
|
|
|
- if (this.$refs.invoiceReimbursementUpLoadComponent.checkProgress()) {
|
|
|
- this.loading = false
|
|
|
- throw new Error()
|
|
|
- }
|
|
|
+ // if (this.$refs.invoiceReimbursementUpLoadComponent.checkProgress()) {
|
|
|
+ // this.loading = false
|
|
|
+ // throw new Error()
|
|
|
+ // }
|
|
|
|
|
|
if (this.$refs.uploadComponent.checkProgress()) {
|
|
|
this.loading = false
|
|
|
@@ -1924,7 +1922,7 @@ export default {
|
|
|
this.reimbursementApprovalService.getEffectiveDataByInvoiceNumber(data.InvoiceNumber, this.inputForm.id).then((decide) => {
|
|
|
if (!decide.success) {
|
|
|
//删除上传的附件信息
|
|
|
- this.$refs.invoiceReimbursementUpLoadComponent.parentDeleteById(file)
|
|
|
+ // this.$refs.invoiceReimbursementUpLoadComponent.parentDeleteById(file)
|
|
|
//进行提醒
|
|
|
this.$message.warning(decide.message)
|
|
|
} else {
|