Browse Source

完善金融方案

master
yunuo970428 2 years ago
parent
commit
29feedd940
  1. 16
      anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue
  2. 2
      anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeEdit.vue
  3. 2
      anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue
  4. 15
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue
  5. 6
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialschemeEdit.vue
  6. 2
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xiaoshoudingdanFlow/xiaoshoudingdanByJinRong.vue

16
anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialscheme.vue

@ -22,7 +22,7 @@
<el-col :span="18">
<div class="span-sty">产品政策</div>
<el-form-item>
<el-select v-model="finance.policyName" placeholder="请选择" @change="changePolicy" filterable clearable class="addinputInfo">
<el-select v-model="finance.policyName" placeholder="请选择" @change="changePolicy" style="width: 60%" filterable clearable class="addinputInfo">
<el-option v-for="item in policy_list" :key="item.sid" :label="item.name" :value="item.name"></el-option>
</el-select>
</el-form-item>
@ -311,6 +311,12 @@ import { calculate } from '@/api/salesManagement/orderManagement'
export default {
name: 'JinRongFangAn',
props: {
modelSid: {
type: String,
default: ''
}
},
data() {
return {
viewTitle: '',
@ -422,7 +428,7 @@ export default {
this.finance = JSON.parse(JSON.stringify(value))
this.isShowMore = this.finance.isShowMore
if (this.finance.isPack !== '' && this.finance.isPack !== null) {
selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => {
selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => {
if (resp.success) {
this.policy_list = resp.data
}
@ -508,7 +514,7 @@ export default {
vehOtherPrice: '',
vehTotalPrice: ''
}
selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => {
selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => {
if (resp.success) {
this.policy_list = resp.data
}
@ -625,10 +631,10 @@ export default {
// --
if (this.finance.serviceChargeTypeKey === '01') {
// * ()
this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue)))
this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) * (parseFloat(this.arguments(this.finance.serviceChargeTypeValue)) / 100))
} else if (this.finance.serviceChargeTypeKey === '02') {
// * ()
this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanAmount)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue)))
this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanAmount)) * (parseFloat(this.arguments(this.finance.serviceChargeTypeValue)) / 100))
} else if (this.finance.serviceChargeTypeKey === '03') {
//
this.finance.serviceAmount = this.finance.serviceChargeTypeValue

2
anrui-buscenter/anrui-buscenter-ui/src/components/publicPage/financialschemeEdit.vue

@ -308,7 +308,7 @@
</div>
</el-form>
</div>
<financialscheme v-show="viewState == 2" ref="divCount" @backData="backData" @doback="resetState"/>
<financialscheme v-bind="$attrs" v-show="viewState == 2" ref="divCount" @backData="backData" @doback="resetState"/>
</div>
</template>
<script>

2
anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue

@ -106,7 +106,7 @@
</el-col>
</el-row>
<div v-show="formobj.financePlan !== '1' && formobj.typeKey === '1'">
<financialschemeEdit ref="divJR" @backParameters="backJR"/>
<financialschemeEdit :modelSid="formobj.modelSid" ref="divJR" @backParameters="backJR"/>
</div>
</div>
</el-form>

15
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue

@ -22,7 +22,7 @@
<el-col :span="18">
<div class="span-sty">产品政策</div>
<el-form-item>
<el-select v-model="finance.policyName" placeholder="请选择" @change="changePolicy" filterable clearable class="addinputInfo">
<el-select v-model="finance.policyName" placeholder="请选择" @change="changePolicy" style="width: 60%" filterable clearable class="addinputInfo">
<el-option v-for="item in policy_list" :key="item.sid" :label="item.name" :value="item.name"></el-option>
</el-select>
</el-form-item>
@ -389,6 +389,7 @@ export default {
vehTotalPrice: ''
},
orgPath: '',
modelSid: '',
rules: {}
}
},
@ -416,12 +417,13 @@ export default {
}
return val
},
showAdd(value, orgSidPath) {
showAdd(value, orgSidPath, modelSid) {
this.init()
this.modelSid = modelSid
this.finance = JSON.parse(JSON.stringify(value))
this.orgPath = orgSidPath
if (this.finance.isPack !== '' && this.finance.isPack !== null) {
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => {
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => {
if (resp.success) {
this.policy_list = resp.data
}
@ -508,7 +510,7 @@ export default {
vehTotalPrice: ''
}
console.log(this.orgPath, window.sessionStorage.getItem('userSid'), this.finance.isPack, 88888)
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack }).then((resp) => {
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => {
if (resp.success) {
this.policy_list = resp.data
}
@ -622,10 +624,10 @@ export default {
// --
if (this.finance.serviceChargeTypeKey === '01') {
// * ()
this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue)))
this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanTotal)) * (parseFloat(this.arguments(this.finance.serviceChargeTypeValue)) / 100))
} else if (this.finance.serviceChargeTypeKey === '02') {
// * ()
this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanAmount)) * parseFloat(this.arguments(this.finance.serviceChargeTypeValue)))
this.finance.serviceAmount = Math.round(parseInt(this.arguments(this.finance.loanAmount)) * (parseFloat(this.arguments(this.finance.serviceChargeTypeValue)) / 100))
} else if (this.finance.serviceChargeTypeKey === '03') {
//
this.finance.serviceAmount = this.finance.serviceChargeTypeValue
@ -845,6 +847,7 @@ export default {
vehTotalPrice: ''
}
this.orgPath = ''
this.modelSid = ''
this.$emit('doback')
}
}

6
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialschemeEdit.vue

@ -395,22 +395,24 @@ export default {
vehTotalPrice: ''
},
orgSidPath: '',
modelSid: '',
rules: {}
}
},
methods: {
showInfo(value, orgSidPath) {
showInfo(value, orgSidPath, modelSid) {
selectDetailss({ businessSid: value }).then((res) => {
if (res.success) {
this.formobj = res.data
this.formobj.saleOrderSid = res.data.salesOrderSid
this.modelSid = modelSid
}
})
this.orgSidPath = orgSidPath
},
financialComputing() {
this.viewState = 2
this.$refs['divCount'].showAdd(this.formobj, this.orgSidPath)
this.$refs['divCount'].showAdd(this.formobj, this.orgSidPath, this.modelSid)
},
backData(value) {
this.viewState = 1

2
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xiaoshoudingdanFlow/xiaoshoudingdanByJinRong.vue

@ -465,7 +465,7 @@ export default {
},
handleLook() {
this.viewState = 2
this.$refs['divAdd'].showInfo(this.linkByParameter.businessSid, this.formobj.orgSidPath)
this.$refs['divAdd'].showInfo(this.linkByParameter.businessSid, this.formobj.orgSidPath, this.formobj.busSalesOrderModel.modelSid)
},
//
getSummaries(param) {

Loading…
Cancel
Save