You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
184 lines
6.3 KiB
184 lines
6.3 KiB
<template>
|
|
<div class="app-container">
|
|
<div v-show="viewState == 1">
|
|
<div class="tab-header webtop">
|
|
<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>
|
|
</div>
|
|
</div>
|
|
<div class="">
|
|
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
|
|
<el-row style="border-top: 1px solid #e0e3eb">
|
|
<el-col :span="8">
|
|
<div class="span-sty">发起部门</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createDept }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">发起人</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createByName }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">发起日期</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createDate }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">截止时间</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.stopDate }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="16">
|
|
<div class="span-sty">备注</div>
|
|
<el-form-item><el-input v-model="formobj.remarks" clearable placeholder="" class="addinputInfo addinputw" /></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="formobj.filesList" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<div class="title">
|
|
<div>逾期客户列表</div>
|
|
</div>
|
|
<el-table :key="tableKey" :data="formobj.detailsVoList" :index="index" border style="width: 100%">
|
|
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
|
|
<el-table-column prop="customerName" label="客户名称" align="center" min-width="100" />
|
|
<el-table-column prop="loanName" label="贷款人" align="center" min-width="100"/>
|
|
<el-table-column prop="vinNo" label="车架号" align="center" min-width="120"/>
|
|
<el-table-column prop="overdueMoney" label="平台逾期金额(元)" align="center" min-width="130"/>
|
|
<el-table-column prop="tiredDeficiency" label="财务累欠金额(元)" align="center" min-width="130" />
|
|
<el-table-column prop="diffMoney" label="差异金额(元)" align="center" min-width="110" />
|
|
</el-table>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import req from '@/api/overduereconciliationfinancing/overduereconciliationfinancing'
|
|
import uploadImg from '@/components/uploadFile/uploadImg'
|
|
|
|
export default {
|
|
name: 'CaiWuDuiZhangEdit',
|
|
components: {
|
|
uploadImg
|
|
},
|
|
data() {
|
|
return {
|
|
viewTitle: '',
|
|
viewState: 1,
|
|
submitdisabled: false,
|
|
tableKey: 0,
|
|
index: 0,
|
|
formobj: {
|
|
createByName: '',
|
|
createBySid: '',
|
|
createDept: '',
|
|
createDeptSid: '',
|
|
createDate: '',
|
|
detailsVoList: [],
|
|
filesList: [],
|
|
orgPath: '',
|
|
remarks: '',
|
|
sid: '',
|
|
stopDate: '',
|
|
userSid: '',
|
|
procInstId: '',
|
|
taskId: ''
|
|
},
|
|
rules: {}
|
|
}
|
|
},
|
|
created() {
|
|
console.log('url:' + window.location.href)
|
|
var one = window.location.href.indexOf('&data') + 6
|
|
const data = window.location.href.substr(one) // url解码unescape()已从web中移除,尽量不使用
|
|
const obj = JSON.parse(decodeURIComponent(data))
|
|
this.showInfo(obj.businessSid)
|
|
},
|
|
mounted() {
|
|
window.parent.postMessage({
|
|
cmd: 'returnHeight',
|
|
params: {
|
|
// 告诉父级页面,子页面的弹框高度。
|
|
code: 2,
|
|
data: 500 + 'px'
|
|
}
|
|
}, '*')
|
|
},
|
|
methods: {
|
|
showInfo(sid) {
|
|
this.viewTitle = '【编辑】逾期对账申请'
|
|
this.$nextTick(() => {
|
|
this.$refs['form_obj'].clearValidate()
|
|
})
|
|
req.fetchBySid({ orgPath: '', sid: sid, userSid: window.sessionStorage.getItem('userSid') }).then((res) => {
|
|
if (res.success) {
|
|
this.formobj = res.data
|
|
this.formobj.instanceId = res.data.procInstId
|
|
}
|
|
})
|
|
},
|
|
saveOrUpdate() {
|
|
this.$refs['form_obj'].validate((valid) => {
|
|
if (valid) {
|
|
this.submitdisabled = true
|
|
req.saveOrUpdate(this.formobj).then((res) => {
|
|
if (res.success) {
|
|
this.$message({ showClose: true, type: 'success', message: '保存成功' })
|
|
// 子页面向父级页面传递值(关闭弹框)
|
|
window.parent.postMessage({
|
|
cmd: 'returnHeight',
|
|
params: {
|
|
// 操作成功,告诉父级页面关闭弹框
|
|
code: 1
|
|
}
|
|
}, '*')
|
|
} else {
|
|
this.submitdisabled = false
|
|
}
|
|
}).catch(() => {
|
|
this.submitdisabled = false
|
|
})
|
|
}
|
|
})
|
|
},
|
|
submit() {
|
|
this.$refs['form_obj'].validate((valid) => {
|
|
if (valid) {
|
|
this.submitdisabled = true
|
|
req.submit(this.formobj).then((res) => {
|
|
if (res.success) {
|
|
this.$message({ showClose: true, type: 'success', message: '操作成功' })
|
|
// 子页面向父级页面传递值(关闭弹框)
|
|
window.parent.postMessage({
|
|
cmd: 'returnHeight',
|
|
params: {
|
|
// 操作成功,告诉父级页面关闭弹框
|
|
code: 1
|
|
}
|
|
}, '*')
|
|
} else {
|
|
this.submitdisabled = false
|
|
}
|
|
}).catch(() => {
|
|
this.submitdisabled = false
|
|
})
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.addinputInfo {
|
|
margin-left: 60px !important;
|
|
}
|
|
</style>
|
|
|