Browse Source

修改问题销售订单、金融方案标准页面

master
yunuo970428 2 years ago
parent
commit
c29f3297c8
  1. 257
      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/workflow/publicPage/dingdanInfo.vue
  4. 51
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialscheme.vue
  5. 20
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialschemeEdit.vue
  6. 6
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/financialschemeInfo.vue
  7. 2
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xiaoshoudingdanFlow/xiaoshoudingdan.vue
  8. 2
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xiaoshoudingdanFlow/xiaoshoudingdanByCaiGou.vue
  9. 4
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xiaoshoudingdanFlow/xiaoshoudingdanByJinRong.vue
  10. 2
      anrui-buscenter/anrui-buscenter-ui/src/views/workflow/xiaoshouguanliFlow/xiaoshoudingdanFlow/xiaoshoudingdanInfo.vue
  11. 6
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdan.vue

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

@ -332,6 +332,8 @@ export default {
viewTitle: '',
submitdisabled: false,
isShowMore: false,
orgSidPath: '',
source: '', // (01-- 02-- 03 04)
dealWay_list: [],
policy_list: [],
other_list: [],
@ -434,19 +436,30 @@ export default {
}
return val
},
showAdd(value) {
showAdd(value, orgSidPath, source) {
this.init()
this.source = source
this.orgSidPath = orgSidPath
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, modelSid: this.modelSid }).then((resp) => {
if (resp.success) {
this.policy_list = resp.data
}
})
// source04sid()
if (this.source == '04') {
selectList({ orgPath: this.orgSidPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid, policySid: this.finance.policySid }).then((resp) => {
if (resp.success) {
this.policy_list = resp.data
}
})
} else {
selectList({ orgPath: this.orgSidPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => {
if (resp.success) {
this.policy_list = resp.data
}
})
}
}
if (this.finance.policySid !== '' && this.finance.isPack !== null) {
selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid, modelSid: this.modelSid, period: this.finance.loanPeriod }).then((res) => {
selectListByOther({ orgPath: this.orgSidPath, userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid, modelSid: this.modelSid, period: this.finance.loanPeriod }).then((res) => {
if (res.success) {
this.other_list = res.data
}
@ -455,82 +468,159 @@ export default {
},
//
isPackChange(val) {
this.finance = {
accessoriesAmount: '',
accessoriesAmountCb: false,
bondAmount: '',
bondAmounts: '',
bondRatio: '',
dealWay: '',
dealWayKey: '',
depositPremium: '',
depositSettle: '',
discountCar: '',
downPayAmount: '',
downPayAmounts: '',
downPayAmountsRatio: '',
downPayRatio: '',
factoryDiscount: '',
factoryDiscountUse: '',
factoryDiscountUseKey: '',
interest: '',
isPack: val,
isShowMore: false,
loanAmount: '',
loanAmountTotal: '',
loanDownPay: '',
loanInterest: '',
loanPayMoney: '',
loanPeriod: '',
loanTotal: '',
mainVehicleAmount: '',
monthlyRepay: '',
nominalPrice: '',
offsetPremium: '',
offsetPurchasetax: '',
offsetTotal: '',
operationAmount: '',
otherAmount: '',
otherAmountRemark: '',
otherDiscount: '',
otherPolicyAmount: '',
otherPolicyInterest: '',
otherPolicyMonthlyRepay: '',
otherPolicyName: '',
otherPolicyPeriod: '',
otherPolicySid: '',
otherPolicyState: false,
otherPolicyYearRatio: '',
period: '',
policyName: '',
policySid: '',
policyYearRatio: '',
premium: '',
premiumCb: false,
proxyAccidentPremium: '',
proxyPremium: '',
proxyPurchasetax: '',
proxyTotal: '',
purchaseTax: '',
purchaseTaxCb: false,
realTotal: '',
receivableTotal: '',
registerAmount: '',
returnTime: '',
salesOrderSid: '',
serviceAmount: '',
serviceChargeTypeKey: '',
serviceChargeTypeValue: '',
trailerAmount: '',
trailerAmountCb: false,
vehOtherPrice: '',
vehTotalPrice: ''
// source04sid()
if (this.source == '04') {
selectList({ orgPath: this.orgSidPath, userSid: window.sessionStorage.getItem('userSid'), isPack: val, modelSid: this.modelSid, policySid: this.finance.policySid }).then((resp) => {
if (resp.success) {
this.policy_list = resp.data
}
})
} else {
selectList({ orgPath: this.orgSidPath, userSid: window.sessionStorage.getItem('userSid'), isPack: val, modelSid: this.modelSid }).then((resp) => {
if (resp.success) {
this.policy_list = resp.data
}
})
}
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
}
})
this.finance.accessoriesAmount = ''
this.finance.accessoriesAmountCb = false
this.finance.bondAmount = ''
this.finance.bondAmounts = ''
this.finance.bondRatio = ''
this.finance.dealWay = ''
this.finance.dealWayKey = ''
this.finance.depositPremium = ''
this.finance.depositSettle = ''
this.finance.discountCar = ''
this.finance.downPayAmount = ''
this.finance.downPayAmounts = ''
this.finance.downPayAmountsRatio = ''
this.finance.downPayRatio = ''
this.finance.factoryDiscount = ''
this.finance.factoryDiscountUse = ''
this.finance.factoryDiscountUseKey = ''
this.finance.interest = ''
this.finance.isPack = val
this.finance.isShowMore = false
this.finance.loanAmount = ''
this.finance.loanAmountTotal = ''
this.finance.loanDownPay = ''
this.finance.loanInterest = ''
this.finance.loanPayMoney = ''
this.finance.loanPeriod = ''
this.finance.loanTotal = ''
this.finance.mainVehicleAmount = ''
this.finance.monthlyRepay = ''
this.finance.nominalPrice = ''
this.finance.offsetPremium = ''
this.finance.offsetPurchasetax = ''
this.finance.offsetTotal = ''
this.finance.operationAmount = ''
this.finance.otherAmount = ''
this.finance.otherAmountRemark = ''
this.finance.otherDiscount = ''
this.finance.otherPolicyAmount = ''
this.finance.otherPolicyInterest = ''
this.finance.otherPolicyMonthlyRepay = ''
this.finance.otherPolicyName = ''
this.finance.otherPolicyPeriod = ''
this.finance.otherPolicySid = ''
this.finance.otherPolicyState = false
this.finance.otherPolicyYearRatio = ''
this.finance.period = ''
this.finance.policyName = ''
this.finance.policyYearRatio = ''
this.finance.premium = ''
this.finance.premiumCb = false
this.finance.proxyAccidentPremium = ''
this.finance.proxyPremium = ''
this.finance.proxyPurchasetax = ''
this.finance.proxyTotal = ''
this.finance.purchaseTax = ''
this.finance.purchaseTaxCb = false
this.finance.realTotal = ''
this.finance.receivableTotal = ''
this.finance.registerAmount = ''
this.finance.returnTime = ''
this.finance.salesOrderSid = ''
this.finance.serviceAmount = ''
this.finance.serviceChargeTypeKey = ''
this.finance.serviceChargeTypeValue = ''
this.finance.trailerAmount = ''
this.finance.trailerAmountCb = false
this.finance.vehOtherPrice = ''
this.finance.vehTotalPrice = ''
// this.finance = {
// accessoriesAmount: '',
// accessoriesAmountCb: false,
// bondAmount: '',
// bondAmounts: '',
// bondRatio: '',
// dealWay: '',
// dealWayKey: '',
// depositPremium: '',
// depositSettle: '',
// discountCar: '',
// downPayAmount: '',
// downPayAmounts: '',
// downPayAmountsRatio: '',
// downPayRatio: '',
// factoryDiscount: '',
// factoryDiscountUse: '',
// factoryDiscountUseKey: '',
// interest: '',
// isPack: val,
// isShowMore: false,
// loanAmount: '',
// loanAmountTotal: '',
// loanDownPay: '',
// loanInterest: '',
// loanPayMoney: '',
// loanPeriod: '',
// loanTotal: '',
// mainVehicleAmount: '',
// monthlyRepay: '',
// nominalPrice: '',
// offsetPremium: '',
// offsetPurchasetax: '',
// offsetTotal: '',
// operationAmount: '',
// otherAmount: '',
// otherAmountRemark: '',
// otherDiscount: '',
// otherPolicyAmount: '',
// otherPolicyInterest: '',
// otherPolicyMonthlyRepay: '',
// otherPolicyName: '',
// otherPolicyPeriod: '',
// otherPolicySid: '',
// otherPolicyState: false,
// otherPolicyYearRatio: '',
// period: '',
// policyName: '',
// policySid: '',
// policyYearRatio: '',
// premium: '',
// premiumCb: false,
// proxyAccidentPremium: '',
// proxyPremium: '',
// proxyPurchasetax: '',
// proxyTotal: '',
// purchaseTax: '',
// purchaseTaxCb: false,
// realTotal: '',
// receivableTotal: '',
// registerAmount: '',
// returnTime: '',
// salesOrderSid: '',
// serviceAmount: '',
// serviceChargeTypeKey: '',
// serviceChargeTypeValue: '',
// trailerAmount: '',
// trailerAmountCb: false,
// vehOtherPrice: '',
// vehTotalPrice: ''
// }
},
//
changePolicy(value) {
@ -572,7 +662,7 @@ export default {
this.finance.otherPolicyPeriod = ''
this.finance.otherPolicyYearRatio = ''
}
selectListByOther({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid, modelSid: this.modelSid, period: this.finance.loanPeriod }).then((res) => {
selectListByOther({ orgPath: this.orgSidPath, userSid: window.sessionStorage.getItem('userSid'), sid: choose[0].sid, modelSid: this.modelSid, period: this.finance.loanPeriod }).then((res) => {
if (res.success) {
this.other_list = res.data
}
@ -889,6 +979,7 @@ export default {
vehOtherPrice: '',
vehTotalPrice: ''
}
this.source = ''
this.isShowMore = false
this.$emit('doback')
}

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

@ -425,7 +425,7 @@ export default {
},
financialComputing() {
this.viewState = 2
this.$refs['divCount'].showAdd(this.formobj, this.orgSidPath)
this.$refs['divCount'].showAdd(this.formobj, this.orgSidPath, this.source)
},
backData(value) {
this.viewState = 1

2
anrui-buscenter/anrui-buscenter-ui/src/views/workflow/publicPage/dingdanInfo.vue

@ -390,7 +390,7 @@ export default {
},
handleLook() {
this.viewState = 2
this.$refs['divInfo'].showInfo(this.formobj.solutionsDetailsssVo)
this.$refs['divInfo'].showInfo(this.formobj.solutionsDetailsssVo, '03')
},
//
getSummaries(param) {

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

@ -321,6 +321,12 @@ import { calculate } from '@/api/salesManagement/orderManagement'
export default {
name: 'JinRongFangAn',
props: {
modelSid: {
type: String,
default: ''
}
},
data() {
return {
viewTitle: '',
@ -329,6 +335,7 @@ export default {
policy_list: [],
other_list: [],
isShowMore: false,
source: '', // (01-- 02-- 03 04)
finance: {
accessoriesAmount: '',
accessoriesAmountCb: false,
@ -401,7 +408,6 @@ export default {
vehTotalPrice: ''
},
orgPath: '',
modelSid: '',
rules: {}
}
},
@ -429,18 +435,27 @@ export default {
}
return val
},
showAdd(value, orgSidPath, modelSid) {
showAdd(value, orgSidPath, source) {
this.init()
this.modelSid = modelSid
this.source = source
this.finance = JSON.parse(JSON.stringify(value))
this.isShowMore = this.finance.isShowMore
this.orgPath = orgSidPath
if (this.finance.isPack !== '' && this.finance.isPack !== null) {
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
}
})
// source04sid()
if (this.source == '04') {
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid, policySid: this.finance.policySid }).then((resp) => {
if (resp.success) {
this.policy_list = resp.data
}
})
} else {
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
}
})
}
}
if (this.finance.policySid !== '' && this.finance.isPack !== null) {
selectListByOther({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), sid: this.finance.policySid, modelSid: this.modelSid, period: this.finance.loanPeriod }).then((res) => {
@ -523,12 +538,19 @@ export default {
vehOtherPrice: '',
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, modelSid: this.modelSid }).then((resp) => {
if (resp.success) {
this.policy_list = resp.data
}
})
if (this.source == '04') {
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid, policySid: this.finance.policySid }).then((resp) => {
if (resp.success) {
this.policy_list = resp.data
}
})
} else {
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
}
})
}
},
//
changePolicy(value) {
@ -885,7 +907,6 @@ export default {
vehTotalPrice: ''
}
this.orgPath = ''
this.modelSid = ''
this.isShowMore = false
this.$emit('doback')
}

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

@ -5,7 +5,7 @@
<div>金融方案</div>
<div>
<el-button type="primary" size="mini" @click="financialComputing">金融计算</el-button>
<el-button type="primary" size="small" @click="handleSave()">保存</el-button>
<el-button type="primary" size="small" v-show="source == '03'" @click="handleSave()">保存</el-button>
</div>
</div>
<el-form ref="dataForm" :model="formobj" class="formaddcopy02">
@ -312,7 +312,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>
@ -328,6 +328,7 @@ export default {
return {
viewTitle: '',
viewState: 1,
source: '',
formobj: {
accessoriesAmount: '',
accessoriesAmountCb: false,
@ -400,24 +401,31 @@ export default {
vehTotalPrice: ''
},
orgSidPath: '',
modelSid: '',
rules: {}
}
},
methods: {
showInfo(value, orgSidPath, modelSid) {
//
showInfo(value, orgSidPath, source) {
selectDetailss({ businessSid: value }).then((res) => {
if (res.success) {
this.formobj = res.data
this.formobj.saleOrderSid = res.data.salesOrderSid
this.modelSid = modelSid
}
})
this.source = source
this.orgSidPath = orgSidPath
},
// --
showClient(value, orgSidPath, source) {
this.formobj = value
this.orgSidPath = orgSidPath
this.source = source
this.viewState = 1
},
financialComputing() {
this.viewState = 2
this.$refs['divCount'].showAdd(this.formobj, this.orgSidPath, this.modelSid)
this.$refs['divCount'].showAdd(this.formobj, this.orgSidPath, this.source)
},
backData(value) {
this.viewState = 1

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

@ -2,7 +2,7 @@
<div class="app-container">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<div v-show="source == '03'">
<el-button type="info" size="small" icon="el-icon-close" @click="handleReturn()">关闭</el-button>
</div>
</div>
@ -322,6 +322,7 @@ export default {
viewTitle: '',
tableKey: 0,
index: 0,
source: '',
formobj: {
accessoriesAmount: '',
accessoriesAmountCb: false,
@ -396,9 +397,10 @@ export default {
}
},
methods: {
showInfo(value) {
showInfo(value, source) {
this.viewTitle = '金融方案'
this.formobj = JSON.parse(JSON.stringify(value))
this.source = source
},
handleReturn() {
this.formobj = {

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

@ -465,7 +465,7 @@ export default {
},
handleLook() {
this.viewState = 2
this.$refs['divInfo'].showInfo(this.formobj.solutionsDetailsssVo)
this.$refs['divInfo'].showInfo(this.formobj.solutionsDetailsssVo, '03')
},
//
getSummaries(param) {

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

@ -504,7 +504,7 @@ export default {
},
handleLook() {
this.viewState = 2
this.$refs['divInfo'].showInfo(this.formobj.solutionsDetailsssVo)
this.$refs['divInfo'].showInfo(this.formobj.solutionsDetailsssVo, '03')
},
//
getSummaries(param) {

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

@ -331,7 +331,7 @@
</div>
</el-form>
</el-dialog>
<financialschemeEdit ref="divAdd" v-show="viewState == 2" @doback="resetState"/>
<financialschemeEdit :modelSid="formobj.busSalesOrderModel.modelSid" ref="divAdd" v-show="viewState == 2" @doback="resetState"/>
</div>
</template>
<script>
@ -465,7 +465,7 @@ export default {
},
handleLook() {
this.viewState = 2
this.$refs['divAdd'].showInfo(this.linkByParameter.businessSid, this.formobj.orgSidPath, this.formobj.busSalesOrderModel.modelSid)
this.$refs['divAdd'].showInfo(this.linkByParameter.businessSid, this.formobj.orgSidPath, '03')
},
//
getSummaries(param) {

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

@ -424,7 +424,7 @@ export default {
},
handleLook() {
this.viewState = 2
this.$refs['divInfo'].showInfo(this.formobj.solutionsDetailsssVo)
this.$refs['divInfo'].showInfo(this.formobj.solutionsDetailsssVo, '03')
},
//
getSummaries(param) {

6
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdan.vue

@ -45,11 +45,11 @@
<el-table :key="tableKey" v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50"/>
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center"/>
<el-table-column width="220" label="操作" align="center">
<el-table-column width="300" label="操作" align="center">
<template slot-scope="scope">
<el-button size="small" type="primary" :disabled="scope.row.nodeState == '待提交' ? false : scope.row.nodeState == '' ? false : true" @click="toEdit(scope.row)">办理
</el-button>
<el-button size="small" type="primary" :disabled="scope.row.nodeState == '' ? false : true" @click="handChange(scope.row)">金融变更</el-button>
<el-button size="small" type="primary" :disabled="scope.row.nodeState == '已办结' ? false : true" @click="handChange(scope.row)">金融变更</el-button>
<el-button size="small" type="primary" :disabled="scope.row.nodeState == '已办结' ? false : true" @click="handReturn(scope.row)">退车</el-button>
<el-button size="small" type="primary" @click="toInfo(scope.row)">查看</el-button>
<!-- <el-button size="small" type="primary" @click="printContract(scope.row)">打印合同</el-button>-->
@ -145,7 +145,7 @@ import divInfo from './xiaoshoudingdanInfo.vue'
import printContract from '@/views/xiaoshouguanli/xiaoshoudingdan/printContract'
import confirmLender from '@/views/xiaoshouguanli/xiaoshoudingdan/confirmLender'
import salesorderbycarAdd from '../xiaoshoudingdantuiche/salesorderbycarAdd'
import financialschememodificationAdd from '../financialschememodification/financialschememodificationAdd'
import financialschememodificationAdd from '../../financialschememodification/financialschememodificationAdd'
export default {
name: 'xiaoshoudingdan',

Loading…
Cancel
Save