| | |
| | | <div class="form_item"> |
| | | <div class="form_item_label">上传批单:</div> |
| | | <div class="form_item_val"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList1" @uploadSuccess="baoxianFileUploaded" /> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :limit="99" :fileList="form.fileList1" @remove="removePIDAN" @uploadSuccess="baoxianFileUploaded" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="form_item"> |
| | | <div class="form_item_label"><span>*</span>上传批单:</div> |
| | | <div class="form_item_val"> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :fileList="form.fileList2" @uploadSuccess="editBaoxianFileUploaded" /> |
| | | <UploadFile :uploadData="{ folder: 'apply',fileType:'.pdf' }" :limit="99" @remove="removeEditPiDan" :fileList="form.fileList2" @uploadSuccess="editBaoxianFileUploaded" /> |
| | | </div> |
| | | </div> |
| | | <div class="form_item"> |
| | |
| | | editValidCode: '', |
| | | applyStartTime:null, |
| | | validCode:null, |
| | | pidanFile:null, |
| | | editPidanFile:null, |
| | | pidanFile:[], |
| | | editPidanFile:[], |
| | | fileList1: [], |
| | | fileList2: [], |
| | | selectRadio:0 |
| | |
| | | editValidCode: '', |
| | | applyStartTime:null, |
| | | validCode:null, |
| | | pidanFile:null, |
| | | editPidanFile:null, |
| | | pidanFile:[], |
| | | editPidanFile:[], |
| | | fileList1: [], |
| | | fileList2: [], |
| | | selectRadio:0 |
| | |
| | | } |
| | | }, |
| | | baoxianFileUploaded(data){ |
| | | this.form.pidanFile=data |
| | | this.form.pidanFile.push(data) |
| | | }, |
| | | removePIDAN(e) { |
| | | this.form.pidanFile.forEach((item, index) => { |
| | | if (item.imgaddr === e) { |
| | | this.form.pidanFile.splice(index, 1) |
| | | } |
| | | }) |
| | | }, |
| | | editBaoxianFileUploaded(data){ |
| | | this.form.editPidanFile=data |
| | | this.form.editPidanFile.push(data) |
| | | }, |
| | | removeEditPiDan(imgaddr) { |
| | | this.form.editPidanFile.forEach((item, index) => { |
| | | if (imgaddr === item.imgaddr) { |
| | | this.form.editPidanFile.splice(index, 1) |
| | | } |
| | | }) |
| | | }, |
| | | backDo(){ |
| | | this.$dialog.messageConfirm('确认进行该操作吗?') |
| | | .then(() => { |
| | |
| | | this.$dialog.messageConfirm('确认进行该操作吗?') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | uploadChangePidan({id:this.model.id,applyStartTime:this.form.applyStartTime, validCode:this.form.validCode,pidanFile:this.form.pidanFile}) |
| | | uploadChangePidan({id:this.model.id,applyStartTime:this.form.applyStartTime, validCode:this.form.validCode,pidanFileList:this.form.pidanFile}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |
| | |
| | | this.$dialog.messageConfirm('确认进行该操作吗?') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | editChangePidan({id:this.model.id, checkInfo:this.form.editCheckInfo,validCode:this.form.editValidCode,pidanFile:this.form.editPidanFile}) |
| | | editChangePidan({id:this.model.id, checkInfo:this.form.editCheckInfo,validCode:this.form.editValidCode,pidanFileList:this.form.editPidanFile}) |
| | | .then(response => { |
| | | this.visible = false |
| | | this.$emit('success') |