顾客支付

zhc4dev
wangjiadong 2 years ago
parent 58ed54164f
commit 86108c4812
  1. 9
      ant-design-vue-jeecg/src/views/customerpayment/admin/CustomerPaymentList.vue
  2. 19
      ant-design-vue-jeecg/src/views/customerpayment/admin/modules/CustomerPaymentForm.vue
  3. 4
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/controller/CustomerPaymentController.java
  4. 12
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/entity/CustomerPayment.java

@ -22,7 +22,7 @@
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="开户银行">
<a-input placeholder="请输入开户银行" v-model="queryParam.bankDeposit"></a-input>
<j-search-select-tag placeholder="请选择开户银行" v-model="queryParam.bankDeposit" dict="zybank,bankname,id"/>
</a-form-item>
</a-col>
</template>
@ -174,7 +174,12 @@
{
title:'开户银行',
align:"center",
dataIndex: 'bankDeposit'
dataIndex: 'bankDeposit_dictText'
},
{
title:'开户支行',
align:"center",
dataIndex: 'bankzh'
},
{
title:'创建人',

@ -27,10 +27,25 @@
</a-form-model-item>
</a-col>
<a-col :span="24" v-if="this.model.paymentType==2">
<a-form-model-item label="开户银行" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bankDeposit">
<a-input v-model="model.bankDeposit" placeholder="请输入开户银行" disabled ></a-input>
<a-form-model-item label="开户银行" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bankname">
<j-popup
v-model="model.bankname"
field="bankname"
org-fields="id,bankname,bankkh"
dest-fields="bankDeposit,bankname,bankzh"
code="findyh"
:multi="true"
@input="popupCallback"
/>
</a-form-model-item>
</a-col>
<a-col :span="24" v-if="this.model.paymentType==2">
<a-form-model-item label="开户支行" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="bankzh">
<a-textarea v-model="model.bankzh" rows="4" placeholder="请输入开户支行" disabled/>
</a-form-model-item>
</a-col>
</a-row>
</a-form-model>
</j-form-container>

@ -86,7 +86,7 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment,
if(customerPayment.getPaymentType().equals("2")){
BankUtil bankUtil = new BankUtil();
if (bankUtil.checkBankCard(customerPayment.getAccountNo())){
customerPayment.setBankDeposit(bankUtil.getNameOfBank(customerPayment.getAccountNo()));
/*customerPayment.setBankDeposit(bankUtil.getNameOfBank(customerPayment.getAccountNo()));*/
customerPaymentService.save(customerPayment);
return Result.OK("添加成功!你的银行开是"+bankUtil.getNameOfBank(customerPayment.getAccountNo()));
}else {
@ -112,7 +112,7 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment,
if(customerPayment.getPaymentType().equals("2")){
BankUtil bankUtil = new BankUtil();
if (bankUtil.checkBankCard(customerPayment.getAccountNo())){
customerPayment.setBankDeposit(bankUtil.getNameOfBank(customerPayment.getAccountNo()));
/*customerPayment.setBankDeposit(bankUtil.getNameOfBank(customerPayment.getAccountNo()));*/
customerPaymentService.updateById(customerPayment);
return Result.OK("添加成功!你的银行开是"+bankUtil.getNameOfBank(customerPayment.getAccountNo()));
}else {

@ -31,6 +31,7 @@ import lombok.experimental.Accessors;
public class CustomerPayment implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
@ -73,7 +74,16 @@ public class CustomerPayment implements Serializable {
@ApiModelProperty(value = "账号/卡号")
private java.lang.String accountNo;
/**开户银行*/
@Excel(name = "开户银行", width = 15)
@Excel(name = "开户银行", width = 15, dictTable = "zybank", dicText = "bankname", dicCode = "id")
@Dict(dictTable = "zybank", dicText = "bankname", dicCode = "id")
@ApiModelProperty(value = "开户银行")
private java.lang.String bankDeposit;
/**开户银行*/
@Excel(name = "开户银行", width = 15)
@ApiModelProperty(value = "开户银行")
private java.lang.String bankname;
/**开户支行*/
@Excel(name = "开户支行", width = 15)
@ApiModelProperty(value = "开户支行")
private java.lang.String bankzh;
}

Loading…
Cancel
Save