Browse Source

完善金融方案

master
yunuo970428 2 years ago
parent
commit
e0c782fe95
  1. 15
      anrui-riskcenter-ui/src/components/publicPage/financialscheme.vue
  2. 9
      anrui-riskcenter-ui/src/components/publicPage/financialschemeEdit.vue
  3. 6
      anrui-riskcenter-ui/src/views/customizedfinancialsolutions/customizedfinancialsolutionsAdd.vue
  4. 4
      anrui-riskcenter-ui/src/views/workFlow/dingzhijinrongFlow/customizedfinancialsolutionsEdit.vue
  5. 14
      anrui-riskcenter-ui/src/views/workFlow/publicPage/financialscheme.vue
  6. 9
      anrui-riskcenter-ui/src/views/workFlow/publicPage/financialschemeEdit.vue

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

@ -273,6 +273,12 @@ import req from '@/api/customizedfinancialsolutions/customizedfinancialsolutions
export default { export default {
name: 'JinRongFangAn', name: 'JinRongFangAn',
props: {
modelSid: {
type: String,
default: ''
}
},
data() { data() {
return { return {
viewTitle: '', viewTitle: '',
@ -350,7 +356,6 @@ export default {
vehOtherPrice: '', vehOtherPrice: '',
vehTotalPrice: '' vehTotalPrice: ''
}, },
vehModelSid: '',
rules: { rules: {
} }
} }
@ -379,12 +384,11 @@ export default {
} }
return val return val
}, },
showAdd(value, vehModelSid) { showAdd(value) {
this.init() this.init()
this.vehModelSid = vehModelSid
this.finance = JSON.parse(JSON.stringify(value)) this.finance = JSON.parse(JSON.stringify(value))
if (this.finance.isPack !== '' && this.finance.isPack !== null) { if (this.finance.isPack !== '' && this.finance.isPack !== null) {
selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: vehModelSid }).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) { if (resp.success) {
this.policy_list = resp.data this.policy_list = resp.data
} }
@ -470,7 +474,7 @@ export default {
vehOtherPrice: '', vehOtherPrice: '',
vehTotalPrice: '' vehTotalPrice: ''
} }
selectList({ orgPath: window.sessionStorage.getItem('defaultOrgPath'), userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.vehModelSid }).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) { if (resp.success) {
this.policy_list = resp.data this.policy_list = resp.data
} }
@ -809,7 +813,6 @@ export default {
vehOtherPrice: '', vehOtherPrice: '',
vehTotalPrice: '' vehTotalPrice: ''
} }
this.vehModelSid = ''
this.$emit('doback') this.$emit('doback')
} }
} }

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

@ -271,7 +271,7 @@
</div> </div>
</el-form> </el-form>
</div> </div>
<financialscheme v-show="viewState == 2" ref="divCount" @backData="backData" @doback="resetState"/> <financialscheme v-show="viewState == 2" v-bind="$attrs" ref="divCount" @backData="backData" @doback="resetState"/>
</div> </div>
</template> </template>
<script> <script>
@ -356,18 +356,16 @@ export default {
vehOtherPrice: '', vehOtherPrice: '',
vehTotalPrice: '' vehTotalPrice: ''
}, },
vehModelSid: '',
rules: {} rules: {}
} }
}, },
methods: { methods: {
showInfo(value, vehModelSid) { showInfo(value) {
this.formobj = JSON.parse(JSON.stringify(value)) this.formobj = JSON.parse(JSON.stringify(value))
this.vehModelSid = vehModelSid
}, },
financialComputing() { financialComputing() {
this.viewState = 2 this.viewState = 2
this.$refs['divCount'].showAdd(this.formobj, this.vehModelSid) this.$refs['divCount'].showAdd(this.formobj)
}, },
backData(value) { backData(value) {
this.viewState = 1 this.viewState = 1
@ -375,7 +373,6 @@ export default {
}, },
backParameters() { backParameters() {
this.$emit('backParameters', this.formobj) this.$emit('backParameters', this.formobj)
this.vehModelSid = ''
this.formobj = { this.formobj = {
accessoriesAmount: '', accessoriesAmount: '',
accessoriesAmountCb: false, accessoriesAmountCb: false,

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

@ -172,7 +172,7 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<financialschemeEdit ref="divJRFA" @backParameters="backData"/> <financialschemeEdit :modelSid="formobj.vehModelSid" ref="divJRFA" @backParameters="backData"/>
</el-form> </el-form>
</div> </div>
</div> </div>
@ -367,7 +367,7 @@ export default {
}) })
this.formobj.userSid = window.sessionStorage.getItem('userSid') this.formobj.userSid = window.sessionStorage.getItem('userSid')
this.formobj.orgPath = window.sessionStorage.getItem('defaultOrgPath') this.formobj.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.$refs['divJRFA'].showInfo(this.formobj.loanTemplateSolutions, this.formobj.vehModelSid) this.$refs['divJRFA'].showInfo(this.formobj.loanTemplateSolutions)
}, },
showEdit(row) { showEdit(row) {
this.init() this.init()
@ -379,7 +379,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.formobj.vehModelSid) this.$refs['divJRFA'].showInfo(this.formobj.loanTemplateSolutions)
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({

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

@ -171,7 +171,7 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<financialschemeEdit ref="divJRFA" @backParameters="backData"/> <financialschemeEdit :modelSid="formobj.vehModelSid" ref="divJRFA" @backParameters="backData"/>
</el-form> </el-form>
</div> </div>
</div> </div>
@ -380,7 +380,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.formobj.orgPath, this.formobj.vehModelSid) 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({

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

@ -273,6 +273,12 @@ import req from '@/api/customizedfinancialsolutions/customizedfinancialsolutions
export default { export default {
name: 'JinRongFangAn', name: 'JinRongFangAn',
props: {
modelSid: {
type: String,
default: ''
}
},
data() { data() {
return { return {
viewTitle: '', viewTitle: '',
@ -351,7 +357,6 @@ export default {
vehTotalPrice: '' vehTotalPrice: ''
}, },
orgPath: '', orgPath: '',
vehModelSid: '',
rules: { rules: {
} }
} }
@ -380,13 +385,12 @@ export default {
} }
return val return val
}, },
showAdd(value, orgPath, vehModelSid) { showAdd(value, orgPath) {
this.init() this.init()
this.finance = JSON.parse(JSON.stringify(value)) this.finance = JSON.parse(JSON.stringify(value))
this.orgPath = orgPath this.orgPath = orgPath
this.vehModelSid = vehModelSid
if (this.finance.isPack !== '' && this.finance.isPack !== null) { if (this.finance.isPack !== '' && this.finance.isPack !== null) {
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.vehModelSid }).then((resp) => { selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => {
if (resp.success) { if (resp.success) {
this.policy_list = resp.data this.policy_list = resp.data
} }
@ -472,7 +476,7 @@ export default {
vehOtherPrice: '', vehOtherPrice: '',
vehTotalPrice: '' vehTotalPrice: ''
} }
selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.vehModelSid }).then((resp) => { selectList({ orgPath: this.orgPath, userSid: window.sessionStorage.getItem('userSid'), isPack: this.finance.isPack, modelSid: this.modelSid }).then((resp) => {
if (resp.success) { if (resp.success) {
this.policy_list = resp.data this.policy_list = resp.data
} }

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

@ -271,7 +271,7 @@
</div> </div>
</el-form> </el-form>
</div> </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> </div>
</template> </template>
<script> <script>
@ -357,19 +357,17 @@ export default {
vehTotalPrice: '' vehTotalPrice: ''
}, },
orgPath: '', orgPath: '',
vehModelSid: '',
rules: {} rules: {}
} }
}, },
methods: { methods: {
showInfo(value, orgPath, vehModelSid) { showInfo(value, orgPath) {
this.formobj = JSON.parse(JSON.stringify(value)) this.formobj = JSON.parse(JSON.stringify(value))
this.orgPath = orgPath this.orgPath = orgPath
this.vehModelSid = vehModelSid
}, },
financialComputing() { financialComputing() {
this.viewState = 2 this.viewState = 2
this.$refs['divCount'].showAdd(this.formobj, this.orgPath, this.vehModelSid) this.$refs['divCount'].showAdd(this.formobj, this.orgPath)
}, },
backData(value) { backData(value) {
this.viewState = 1 this.viewState = 1
@ -377,7 +375,6 @@ export default {
}, },
backParameters() { backParameters() {
this.$emit('backParameters', this.formobj) this.$emit('backParameters', this.formobj)
this.vehModelSid = ''
this.formobj = { this.formobj = {
accessoriesAmount: '', accessoriesAmount: '',
accessoriesAmountCb: false, accessoriesAmountCb: false,

Loading…
Cancel
Save