Browse Source

完善客户查询--增加付款方式

zhanglei
yunuo970428 2 years ago
parent
commit
034de84f3f
  1. 49
      anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehuchaxun/kehuchaxun.vue

49
anrui-buscenter/anrui-buscenter-ui/src/views/kehuguanli/kehuchaxun/kehuchaxun.vue

@ -114,6 +114,19 @@
<el-dialog :visible.sync="dialogVisible" width="40%" :close-on-click-modal="false" :show-close="false">
<el-form class="formadd">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="8" class="tleftb">
<span>付款方式</span>
</el-col>
<el-col :span="16">
<el-form-item>
<el-radio-group @input="handleIsPayment" v-model="isPayment">
<el-radio label="1">全款</el-radio>
<el-radio label="0">贷款</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-row v-show="isPayment === '0'">
<el-col :span="8" class="tleftb">
<span>是否确定车架号</span>
</el-col>
@ -126,7 +139,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row v-show="isTerminal === '0'">
<el-row v-show="(isPayment === '1') || (isPayment === '0' && isTerminal === '0')">
<el-col :span="8" class="tleftb">
<span>采购系统</span>
</el-col>
@ -179,6 +192,7 @@ export default {
data() {
return {
btndisabled: false,
isPayment: '',
isTerminal: '',
orgName: '',
orgCode: '',
@ -337,18 +351,13 @@ export default {
this.sids = aa
this.multipleSelection = bb
},
handleIsPayment() {
this.isTerminal = ''
this.orgCode = ''
this.orgName = ''
},
handleIsTerminal(value) {
if (value === '0') {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success && resp.data !== null) {
fetchDetailsByUseOrgSid(resp.data).then((res) => {
if (res.success) {
this.org_list = res.data
}
})
}
})
} else {
if (value === '1') {
this.orgCode = ''
this.orgName = ''
}
@ -358,6 +367,10 @@ export default {
this.orgCode = choose[0].orgCode
},
handleConfirm() {
if (this.isPayment === '') {
this.$message({ showClose: true, type: 'error', message: '付款方式请选择是或否' })
return
}
if (this.isTerminal === '') {
this.$message({ showClose: true, type: 'error', message: '是否确定车架号请选择是或否' })
return
@ -367,7 +380,7 @@ export default {
this.handleColse()
this.$refs['divVehicle'].showData(this.multipleSelection[0].name, this.multipleSelection[0].sid)
}
if (this.isTerminal === '0') {
if ((this.isPayment === '1') || (this.isPayment === '0' && this.isTerminal === '0')) {
if (this.orgCode === '') {
this.$message({ showClose: true, type: 'error', message: '采购系统不能为空' })
return
@ -390,6 +403,7 @@ export default {
handleColse() {
this.dialogVisible = false
this.isTerminal = ''
this.isPayment = ''
this.orgName = ''
this.orgCode = ''
},
@ -425,6 +439,15 @@ export default {
return
}
this.dialogVisible = true
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success && resp.data !== null) {
fetchDetailsByUseOrgSid(resp.data).then((res) => {
if (res.success) {
this.org_list = res.data
}
})
}
})
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)

Loading…
Cancel
Save