Browse Source

完善公司定制金融

master
yunuo970428 2 years ago
parent
commit
83d48ee13c
  1. 12
      anrui-riskcenter-ui/src/components/publicPage/financialscheme.vue
  2. 4
      anrui-riskcenter-ui/src/components/publicPage/financialschemeEdit.vue
  3. 4
      anrui-riskcenter-ui/src/components/publicPage/financialschemeInfo.vue
  4. 2
      anrui-riskcenter-ui/src/views/customizedfinancialsolutions/customizedfinancialsolutionsAdd.vue
  5. 2
      anrui-riskcenter-ui/src/views/workFlow/dingzhijinrongFlow/customizedfinancialsolutionsDaiBan.vue
  6. 6
      anrui-riskcenter-ui/src/views/workFlow/dingzhijinrongFlow/customizedfinancialsolutionsEdit.vue
  7. 2
      anrui-riskcenter-ui/src/views/workFlow/dingzhijinrongFlow/customizedfinancialsolutionsYiban.vue
  8. 24
      anrui-riskcenter-ui/src/views/workFlow/publicPage/financialscheme.vue
  9. 10
      anrui-riskcenter-ui/src/views/workFlow/publicPage/financialschemeEdit.vue

12
anrui-riskcenter-ui/src/components/publicPage/financialscheme.vue

@ -232,7 +232,7 @@
<div v-if="finance.dealWayKey == '02' && finance.isPack == '1'"> <div v-if="finance.dealWayKey == '02' && finance.isPack == '1'">
<div class="span-sty">抵顶首年保险费</div> <div class="span-sty">抵顶首年保险费</div>
<el-form-item> <el-form-item>
<el-input class="addinputw" v-model="finance.offsetPremium" :disabled="!finance.premiumCb" placeholder="" clearable @keyup.native="finance.offsetPremium = oninput(finance.offsetPremium, 0)"/> <el-input class="addinputw" v-model="finance.offsetPremium" :disabled="!finance.premiumCb || this.finance.premium == ''" placeholder="" clearable @keyup.native="finance.offsetPremium = oninput(finance.offsetPremium, 0)"/>
</el-form-item> </el-form-item>
</div> </div>
</el-col> </el-col>
@ -246,7 +246,7 @@
<div v-if="finance.dealWayKey == '02' && finance.isPack == '1'"> <div v-if="finance.dealWayKey == '02' && finance.isPack == '1'">
<div class="span-sty">抵顶购置税</div> <div class="span-sty">抵顶购置税</div>
<el-form-item> <el-form-item>
<el-input class="addinputw" v-model="finance.offsetPurchasetax" :disabled="!finance.purchaseTaxCb" placeholder="" clearable @keyup.native="finance.offsetPurchasetax = oninput(finance.offsetPurchasetax, 0)"/> <el-input class="addinputw" v-model="finance.offsetPurchasetax" :disabled="!finance.purchaseTaxCb || this.finance.purchaseTax == ''" placeholder="" clearable @keyup.native="finance.offsetPurchasetax = oninput(finance.offsetPurchasetax, 0)"/>
</el-form-item> </el-form-item>
</div> </div>
</el-col> </el-col>
@ -383,11 +383,11 @@ export default {
return val return val
}, },
showAdd(value) { showAdd(value) {
this.finance = value this.finance = JSON.parse(JSON.stringify(value))
this.init() this.init()
}, },
showEdit(value) { showEdit(value) {
this.finance = value this.finance = JSON.parse(JSON.stringify(value))
this.init() this.init()
selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('defaultOrgPath'), isPack: this.finance.isPack }).then((resp) => { selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('defaultOrgPath'), isPack: this.finance.isPack }).then((resp) => {
if (resp.success) { if (resp.success) {
@ -665,11 +665,11 @@ export default {
} }
} }
if (this.finance.dealWayKey === '02' && this.finance.isPack === '1') { if (this.finance.dealWayKey === '02' && this.finance.isPack === '1') {
if (parseInt(this.arguments(this.finance.premium)) < parseInt(this.arguments(this.finance.offsetPremium)) && this.finance.premiumCb) { if (parseInt(this.arguments(this.finance.premium)) < parseInt(this.arguments(this.finance.offsetPremium))) {
this.$message({ showClose: true, type: 'error', message: '抵顶首年保险费数额不能大于融资项目中的保险数额' }) this.$message({ showClose: true, type: 'error', message: '抵顶首年保险费数额不能大于融资项目中的保险数额' })
return return
} }
if (parseInt(this.arguments(this.finance.purchaseTax)) < parseInt(this.arguments(this.finance.offsetPurchasetax)) && this.finance.purchaseTaxCb) { if (parseInt(this.arguments(this.finance.purchaseTax)) < parseInt(this.arguments(this.finance.offsetPurchasetax))) {
this.$message({ showClose: true, type: 'error', message: '抵顶购置税数额不能大于融资项目中的购置税数额' }) this.$message({ showClose: true, type: 'error', message: '抵顶购置税数额不能大于融资项目中的购置税数额' })
return return
} }

4
anrui-riskcenter-ui/src/components/publicPage/financialschemeEdit.vue

@ -365,7 +365,7 @@ export default {
}, },
methods: { methods: {
showInfo(value) { showInfo(value) {
this.formobj = value this.formobj = JSON.parse(JSON.stringify(value))
}, },
financialComputing() { financialComputing() {
this.viewState = 2 this.viewState = 2
@ -373,7 +373,7 @@ export default {
}, },
backData(value) { backData(value) {
this.viewState = 1 this.viewState = 1
this.formobj = value this.formobj = JSON.parse(JSON.stringify(value))
}, },
backParameters() { backParameters() {
this.$emit('backParameters', this.formobj) this.$emit('backParameters', this.formobj)

4
anrui-riskcenter-ui/src/components/publicPage/financialschemeInfo.vue

@ -286,9 +286,7 @@ export default {
methods: { methods: {
showInfo(value) { showInfo(value) {
this.viewTitle = '金融方案' this.viewTitle = '金融方案'
this.formobj = value this.formobj = JSON.parse(JSON.stringify(value))
console.log(value, 8888)
console.log(this.formobj, 9999)
}, },
handleReturn() { handleReturn() {
this.$emit('doback') this.$emit('doback')

2
anrui-riskcenter-ui/src/views/customizedfinancialsolutions/customizedfinancialsolutionsAdd.vue

@ -482,7 +482,7 @@ export default {
}, },
// //
backData(value) { backData(value) {
this.formobj.loanTemplateSolutions = value this.formobj.loanTemplateSolutions = JSON.parse(JSON.stringify(value))
}, },
saveOrUpdate() { saveOrUpdate() {
this.$refs['form_obj'].validate((valid) => { this.$refs['form_obj'].validate((valid) => {

2
anrui-riskcenter-ui/src/views/workFlow/dingzhijinrongFlow/customizedfinancialsolutionsDaiBan.vue

@ -198,7 +198,7 @@
<script> <script>
import req from '@/api/customizedfinancialsolutions/customizedfinancialsolutions' import req from '@/api/customizedfinancialsolutions/customizedfinancialsolutions'
import financialschemeInfo from '@/components/publicPage/financialschemeInfo' import financialschemeInfo from '../publicPage/financialschemeInfo'
export default { export default {
name: 'CustomizedFinancialSolutionsDaiBan', name: 'CustomizedFinancialSolutionsDaiBan',

6
anrui-riskcenter-ui/src/views/workFlow/dingzhijinrongFlow/customizedfinancialsolutionsEdit.vue

@ -190,7 +190,7 @@ import { typeValues, getAnnounceList } from '@/api/Common/dictcommons'
import shangzhuangselect from './relation/shangzhuangselect' import shangzhuangselect from './relation/shangzhuangselect'
import modelSelect from './relation/modelSelect' import modelSelect from './relation/modelSelect'
import guacheselect from './relation/guacheselect' import guacheselect from './relation/guacheselect'
import financialschemeEdit from '@/components/publicPage/financialschemeEdit' import financialschemeEdit from '../publicPage/financialschemeEdit'
import uploadImg from '@/components/uploadFile/uploadImg' import uploadImg from '@/components/uploadFile/uploadImg'
export default { export default {
@ -368,7 +368,7 @@ export default {
}) })
}, },
getAnnounceList() { getAnnounceList() {
getAnnounceList({ modelSid: this.formobj.vehModelSid, orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { getAnnounceList({ modelSid: this.formobj.vehModelSid, orgPath: this.formobj.orgPath }).then((res) => {
if (res.success) { if (res.success) {
this.NoticeModel_list = [] this.NoticeModel_list = []
} }
@ -384,7 +384,7 @@ export default {
if (res.success) { if (res.success) {
this.formobj = res.data this.formobj = res.data
this.formobj.instanceId = res.data.procInstId this.formobj.instanceId = res.data.procInstId
this.$refs['divJRFA'].showInfo(this.formobj.loanTemplateSolutions) this.$refs['divJRFA'].showInfo(this.formobj.loanTemplateSolutions, this.formobj.orgPath)
if (this.formobj.loanTemplateTrailer.vehTrailerCertificateFile.length > 0) { if (this.formobj.loanTemplateTrailer.vehTrailerCertificateFile.length > 0) {
this.formobj.loanTemplateTrailer.vehTrailerCertificateFile.forEach((e) => { this.formobj.loanTemplateTrailer.vehTrailerCertificateFile.forEach((e) => {
this.image_list.push({ this.image_list.push({

2
anrui-riskcenter-ui/src/views/workFlow/dingzhijinrongFlow/customizedfinancialsolutionsYiban.vue

@ -171,7 +171,7 @@
<script> <script>
import req from '@/api/customizedfinancialsolutions/customizedfinancialsolutions' import req from '@/api/customizedfinancialsolutions/customizedfinancialsolutions'
import financialschemeInfo from '@/components/publicPage/financialschemeInfo' import financialschemeInfo from '../publicPage/financialschemeInfo'
export default { export default {
name: 'CustomizedFinancialSolutionsYiBan', name: 'CustomizedFinancialSolutionsYiBan',

24
anrui-riskcenter-ui/src/views/workFlow/publicPage/financialscheme.vue

@ -232,7 +232,7 @@
<div v-if="finance.dealWayKey == '02' && finance.isPack == '1'"> <div v-if="finance.dealWayKey == '02' && finance.isPack == '1'">
<div class="span-sty">抵顶首年保险费</div> <div class="span-sty">抵顶首年保险费</div>
<el-form-item> <el-form-item>
<el-input class="addinputw" v-model="finance.offsetPremium" :disabled="finance.premiumCb" placeholder="" clearable @keyup.native="finance.offsetPremium = oninput(finance.offsetPremium, 0)"/> <el-input class="addinputw" v-model="finance.offsetPremium" :disabled="!finance.premiumCb || this.finance.premium == ''" placeholder="" clearable @keyup.native="finance.offsetPremium = oninput(finance.offsetPremium, 0)"/>
</el-form-item> </el-form-item>
</div> </div>
</el-col> </el-col>
@ -246,7 +246,7 @@
<div v-if="finance.dealWayKey == '02' && finance.isPack == '1'"> <div v-if="finance.dealWayKey == '02' && finance.isPack == '1'">
<div class="span-sty">抵顶购置税</div> <div class="span-sty">抵顶购置税</div>
<el-form-item> <el-form-item>
<el-input class="addinputw" v-model="finance.offsetPurchasetax" :disabled="finance.purchaseTaxCb" placeholder="" clearable @keyup.native="finance.offsetPurchasetax = oninput(finance.offsetPurchasetax, 0)"/> <el-input class="addinputw" v-model="finance.offsetPurchasetax" :disabled="!finance.purchaseTaxCb || this.finance.purchaseTax == ''" placeholder="" clearable @keyup.native="finance.offsetPurchasetax = oninput(finance.offsetPurchasetax, 0)"/>
</el-form-item> </el-form-item>
</div> </div>
</el-col> </el-col>
@ -354,6 +354,7 @@ export default {
vehTotalPrice: '', vehTotalPrice: '',
nominalPrice: '' nominalPrice: ''
}, },
orgPath: '',
rules: { rules: {
} }
} }
@ -382,19 +383,20 @@ export default {
} }
return val return val
}, },
showAdd(value) { showAdd(value, orgPath) {
this.finance = value this.finance = JSON.parse(JSON.stringify(value))
this.orgPath = orgPath
this.init() this.init()
}, },
showEdit(value) { showEdit(value) {
this.finance = value this.finance = JSON.parse(JSON.stringify(value))
this.init() this.init()
selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('defaultOrgPath'), isPack: this.finance.isPack }).then((resp) => { selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => {
if (resp.success) { if (resp.success) {
this.policy_list = resp.data this.policy_list = resp.data
} }
}) })
selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('defaultOrgPath'), sid: this.finance.policySid }).then((res) => { selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid }).then((res) => {
if (res.success) { if (res.success) {
this.other_list = res.data this.other_list = res.data
} }
@ -476,7 +478,7 @@ export default {
vehTotalPrice: '', vehTotalPrice: '',
nominalPrice: '' nominalPrice: ''
} }
selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('defaultOrgPath'), isPack: this.finance.isPack }).then((resp) => { selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => {
if (resp.success) { if (resp.success) {
this.policy_list = resp.data this.policy_list = resp.data
} }
@ -498,7 +500,7 @@ export default {
// //
this.finance.factoryDiscountUse = '抵利息' this.finance.factoryDiscountUse = '抵利息'
this.finance.factoryDiscountUseKey = '02' this.finance.factoryDiscountUseKey = '02'
selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('defaultOrgPath'), sid: choose[0].sid }).then((res) => { selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid }).then((res) => {
if (res.success) { if (res.success) {
this.other_list = res.data this.other_list = res.data
} }
@ -665,11 +667,11 @@ export default {
} }
} }
if (this.finance.dealWayKey === '02' && this.finance.isPack === '1') { if (this.finance.dealWayKey === '02' && this.finance.isPack === '1') {
if (parseInt(this.arguments(this.finance.premium)) < parseInt(this.arguments(this.finance.offsetPremium)) && this.finance.premiumCb) { if (parseInt(this.arguments(this.finance.premium)) < parseInt(this.arguments(this.finance.offsetPremium))) {
this.$message({ showClose: true, type: 'error', message: '抵顶首年保险费数额不能大于融资项目中的保险数额' }) this.$message({ showClose: true, type: 'error', message: '抵顶首年保险费数额不能大于融资项目中的保险数额' })
return return
} }
if (parseInt(this.arguments(this.finance.purchaseTax)) < parseInt(this.arguments(this.finance.offsetPurchasetax)) && this.finance.purchaseTaxCb) { if (parseInt(this.arguments(this.finance.purchaseTax)) < parseInt(this.arguments(this.finance.offsetPurchasetax))) {
this.$message({ showClose: true, type: 'error', message: '抵顶购置税数额不能大于融资项目中的购置税数额' }) this.$message({ showClose: true, type: 'error', message: '抵顶购置税数额不能大于融资项目中的购置税数额' })
return return
} }

10
anrui-riskcenter-ui/src/views/workFlow/publicPage/financialschemeEdit.vue

@ -360,20 +360,22 @@ export default {
vehTotalPrice: '', vehTotalPrice: '',
nominalPrice: '' nominalPrice: ''
}, },
orgPath: '',
rules: {} rules: {}
} }
}, },
methods: { methods: {
showInfo(value) { showInfo(value, orgPath) {
this.formobj = value this.formobj = JSON.parse(JSON.stringify(value))
this.orgPath = orgPath
}, },
financialComputing() { financialComputing() {
this.viewState = 2 this.viewState = 2
this.$refs['divCount'].showAdd(this.formobj) this.$refs['divCount'].showAdd(this.formobj, this.orgPath)
}, },
backData(value) { backData(value) {
this.viewState = 1 this.viewState = 1
this.formobj = value this.formobj = JSON.parse(JSON.stringify(value))
}, },
backParameters() { backParameters() {
this.$emit('backParameters', this.formobj) this.$emit('backParameters', this.formobj)

Loading…
Cancel
Save