Browse Source

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

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

Loading…
Cancel
Save