|
|
@ -75,11 +75,11 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { dataDictionary, fetchDetailsBySid, save } from '@/api/sealContract/sealContract.js' |
|
|
|
import {dataDictionary, fetchDetailsBySid, save, submitSealApply} from '@/api/sealContract/sealContract.js' |
|
|
|
import Upload from '@/components/uploadFile/filesUpload' // 上传文件 |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'gaizhangAdd', |
|
|
|
name: 'gaizhangshenqingEdit', |
|
|
|
components: { |
|
|
|
Upload |
|
|
|
}, |
|
|
@ -99,6 +99,8 @@ export default { |
|
|
|
fileNameOrSealReason: '', // 文章名称或盖章事由 |
|
|
|
sealFileUrl: '', |
|
|
|
useOrgSid: '', |
|
|
|
userSid: window.sessionStorage.getItem('userSid'), |
|
|
|
staffSid: window.sessionStorage.getItem('staffSid'), |
|
|
|
businessSid: '', // 业务sid |
|
|
|
instanceId: '', // 流程id |
|
|
|
taskId: '', // 环节id |
|
|
@ -144,13 +146,14 @@ export default { |
|
|
|
fetchDetailsBySid(sid).then(resp => { |
|
|
|
if (resp.code === '200') { |
|
|
|
this.formobj.sid = sid |
|
|
|
this.formobj.applyName = window.sessionStorage.getItem('name') |
|
|
|
this.formobj.sealDate = resp.data.sealDate |
|
|
|
this.formobj.sealTypeValue = resp.data.sealTypeValue |
|
|
|
this.formobj.sealTypeValue = resp.data.sealTypeValue // 盖章类型 |
|
|
|
this.formobj.sealTypekey = resp.data.sealTypekey |
|
|
|
this.formobj.sealNum = resp.data.sealNum |
|
|
|
this.formobj.fileNameOrSealReason = resp.data.fileNameOrSealReason |
|
|
|
this.formobj.sealNum = resp.data.sealNum // 盖章个数 |
|
|
|
this.formobj.fileNameOrSealReason = resp.data.fileNameOrSealReason // 文章名称或盖章事由 |
|
|
|
this.formobj.sealFileUrl = resp.data.sealFileUrl |
|
|
|
this.formobj.busSealApplyAppendices = resp.data.busSealApplyAppendices |
|
|
|
this.formobj.busSealApplyAppendices = resp.data.busSealApplyAppendices // 盖章文件 |
|
|
|
if (this.formobj.busSealApplyAppendices.length > 0) { |
|
|
|
for (var i = 0; i < this.formobj.busSealApplyAppendices.length; i++) { |
|
|
|
this.list1.push({ |
|
|
@ -206,8 +209,29 @@ export default { |
|
|
|
console.log(this.formobj) |
|
|
|
save(this.formobj).then(resp => { |
|
|
|
this.submitdisabled = false |
|
|
|
this.$message({ showClose: true, type: 'success', message: resp.msg }) |
|
|
|
this.handleReturn() |
|
|
|
if (resp.code === '200') { |
|
|
|
this.$message({ showClose: true, type: 'success', message: resp.msg }) |
|
|
|
this.handleReturn() |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
this.submitdisabled = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
submit() { |
|
|
|
this.submitdisabled = true |
|
|
|
if (this.formobj.busSealApplyAppendices.length > 0) { |
|
|
|
var sealFileUrl_list = [] |
|
|
|
for (var i = 0; i < this.formobj.busSealApplyAppendices.length; i++) { |
|
|
|
sealFileUrl_list.push(this.formobj.busSealApplyAppendices[i].filePath) |
|
|
|
} |
|
|
|
this.formobj.sealFileUrl = sealFileUrl_list.join(',') |
|
|
|
} |
|
|
|
submitSealApply(this.formobj).then(resp => { |
|
|
|
this.submitdisabled = false |
|
|
|
if (resp.code === '200') { |
|
|
|
this.$message({ showClose: true, type: 'success', message: resp.msg }) |
|
|
|
this.handleReturn() |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
this.submitdisabled = false |
|
|
|
}) |
|
|
|