|
|
@ -4,7 +4,6 @@ |
|
|
|
<div>{{ viewTitle }}</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()">提交</el-button> |
|
|
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -54,6 +53,12 @@ |
|
|
|
<el-form-item><el-input v-model="formobj.bankCardRemark" class="addinputInfo addinputw" clearable placeholder=""/></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty">附件</div> |
|
|
|
<el-form-item><upload-img ref="uploadImg" class="addinputInfo" v-model="image_list1" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -61,13 +66,18 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import req from '@/api/capital/capital' |
|
|
|
import uploadImg from '@/components/uploadFile/uploadImg' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'CapitalAdd', |
|
|
|
components: { |
|
|
|
uploadImg |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
viewTitle: '', |
|
|
|
submitdisabled: false, |
|
|
|
image_list1: [], |
|
|
|
formobj: { |
|
|
|
userSid: '', |
|
|
|
sid: '', |
|
|
@ -80,7 +90,8 @@ export default { |
|
|
|
contractSetValue: '', |
|
|
|
bankCardRemark: '', |
|
|
|
createOrgSid: '', |
|
|
|
orgSidPath: '' |
|
|
|
orgSidPath: '', |
|
|
|
finBankFiles: [] |
|
|
|
}, |
|
|
|
rules: { |
|
|
|
contractSetValue: [{ required: true, message: '生成合同设置不能为空', trigger: 'change' }] |
|
|
@ -105,6 +116,14 @@ export default { |
|
|
|
req.fetchBySid(sid).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.formobj = res.data |
|
|
|
if (this.formobj.finBankFiles.length > 0) { |
|
|
|
this.formobj.finBankFiles.forEach((e) => { |
|
|
|
this.image_list1.push({ |
|
|
|
name: '', |
|
|
|
url: e |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
@ -118,6 +137,15 @@ export default { |
|
|
|
} else if (this.formobj.contractSetValue === '自行选择') { |
|
|
|
this.formobj.contractSetKey = '003' |
|
|
|
} |
|
|
|
if (this.image_list1.length > 0) { |
|
|
|
const aa = [] |
|
|
|
this.image_list1.forEach((e) => { |
|
|
|
aa.push(e.url) |
|
|
|
}) |
|
|
|
this.formobj.finBankFiles = aa |
|
|
|
} else { |
|
|
|
this.formobj.finBankFiles = [] |
|
|
|
} |
|
|
|
this.submitdisabled = true |
|
|
|
req.saveOrUpdate(this.formobj).then((res) => { |
|
|
|
if (res.success) { |
|
|
@ -132,7 +160,6 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
submit() {}, |
|
|
|
handleReturn(isreload) { |
|
|
|
if (isreload === 'true') this.$emit('reloadlist') |
|
|
|
this.formobj = { |
|
|
@ -147,9 +174,12 @@ export default { |
|
|
|
contractSetValue: '', |
|
|
|
bankCardRemark: '', |
|
|
|
createOrgSid: '', |
|
|
|
orgSidPath: '' |
|
|
|
orgSidPath: '', |
|
|
|
finBankFiles: [] |
|
|
|
} |
|
|
|
this.image_list1 = [] |
|
|
|
this.submitdisabled = false |
|
|
|
this.$refs['form_obj'].resetFields() |
|
|
|
this.$emit('doback') |
|
|
|
} |
|
|
|
} |
|
|
|