|
|
@ -7,7 +7,7 @@ |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()">提交 |
|
|
|
</el-button> |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">返回</el-button> |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="listconadd"> |
|
|
@ -45,7 +45,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="6" class="trightb"> |
|
|
|
<el-form-item> |
|
|
|
<el-input v-model="formobj.sealNum" placeholder="" style="width: 50%"clearable/> |
|
|
|
<el-input v-model="formobj.sealNum" placeholder="" style="width: 50%" clearable/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -75,7 +75,7 @@ |
|
|
|
</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 { |
|
|
@ -99,6 +99,8 @@ export default { |
|
|
|
fileNameOrSealReason: '', // 文章名称或盖章事由 |
|
|
|
sealFileUrl: '', |
|
|
|
useOrgSid: '', |
|
|
|
userSid: window.sessionStorage.getItem('userSid'), |
|
|
|
staffSid: window.sessionStorage.getItem('staffSid'), |
|
|
|
busSealApplyAppendices: [] // 盖章文件 |
|
|
|
}, |
|
|
|
rules: {}, |
|
|
@ -124,6 +126,20 @@ export default { |
|
|
|
fetchDetailsBySid(row.sid).then(resp => { |
|
|
|
if (resp.code === '200') { |
|
|
|
this.formobj = resp.data |
|
|
|
this.formobj = { |
|
|
|
sid: row.sid, |
|
|
|
applyName: window.sessionStorage.getItem('name'), |
|
|
|
sealDate: resp.data.sealDate, |
|
|
|
sealTypeValue: resp.data.sealTypeValue, // 盖章类型 |
|
|
|
sealTypekey: resp.data.sealTypekey, |
|
|
|
sealNum: resp.data.sealNum, // 盖章个数 |
|
|
|
fileNameOrSealReason: resp.data.fileNameOrSealReason, // 文章名称或盖章事由 |
|
|
|
sealFileUrl: resp.data.sealFileUrl, |
|
|
|
useOrgSid: '', |
|
|
|
userSid: window.sessionStorage.getItem('userSid'), |
|
|
|
staffSid: window.sessionStorage.getItem('staffSid'), |
|
|
|
busSealApplyAppendices: resp.data.busSealApplyAppendices // 盖章文件 |
|
|
|
} |
|
|
|
if (this.formobj.busSealApplyAppendices.length > 0) { |
|
|
|
for (var i = 0; i < this.formobj.busSealApplyAppendices.length; i++) { |
|
|
|
this.list1.push({ |
|
|
@ -168,7 +184,7 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
handsave() { |
|
|
|
// this.submitdisabled = true |
|
|
|
this.submitdisabled = true |
|
|
|
if (this.formobj.busSealApplyAppendices.length > 0) { |
|
|
|
var sealFileUrl_list = [] |
|
|
|
for (var i = 0; i < this.formobj.busSealApplyAppendices.length; i++) { |
|
|
@ -179,13 +195,52 @@ 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 |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleReturn() { |
|
|
|
this.formobj = { |
|
|
|
sid: '', |
|
|
|
applyName: window.sessionStorage.getItem('name'), |
|
|
|
sealDate: '', |
|
|
|
sealTypeValue: '', // 盖章类型 |
|
|
|
sealTypekey: '', |
|
|
|
sealNum: '', // 盖章个数 |
|
|
|
fileNameOrSealReason: '', // 文章名称或盖章事由 |
|
|
|
sealFileUrl: '', |
|
|
|
useOrgSid: '', |
|
|
|
userSid: window.sessionStorage.getItem('userSid'), |
|
|
|
staffSid: window.sessionStorage.getItem('staffSid'), |
|
|
|
busSealApplyAppendices: [] // 盖章文件 |
|
|
|
} |
|
|
|
this.list1 = [] |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['divUpload'].show(this.list1) |
|
|
|
}) |
|
|
|
this.$emit('doback') |
|
|
|
} |
|
|
|
} |
|
|
|