顾客支付

zhc4dev
wangjiadong 2 years ago
parent 58ed54164f
commit 86108c4812
  1. 11
      ant-design-vue-jeecg/src/views/customerpayment/admin/CustomerPaymentList.vue
  2. 21
      ant-design-vue-jeecg/src/views/customerpayment/admin/modules/CustomerPaymentForm.vue
  3. 16
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/controller/CustomerPaymentController.java
  4. 52
      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:'创建人',
@ -201,7 +206,7 @@
deleteBatch: "/customerpayment/customerPayment/deleteBatch",
exportXlsUrl: "/customerpayment/customerPayment/exportXls",
importExcelUrl: "customerpayment/customerPayment/importExcel",
},
dictOptions:{},
superFieldList:[],

@ -26,11 +26,26 @@
<a-input v-model="model.accountNo" placeholder="请输入账号/卡号" ></a-input>
</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-col :span="24" v-if="this.model.paymentType==2">
<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>

@ -50,7 +50,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
public class CustomerPaymentController extends JeecgController<CustomerPayment, ICustomerPaymentService> {
@Autowired
private ICustomerPaymentService customerPaymentService;
/**
* 分页列表查询
*
@ -72,7 +72,7 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment,
IPage<CustomerPayment> pageList = customerPaymentService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
@ -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 {
@ -97,7 +97,7 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment,
return Result.OK("添加成功!");
}
}
/**
* 编辑
*
@ -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 {
@ -123,7 +123,7 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment,
return Result.OK("编辑成功!");
}
}
/**
* 通过id删除
*
@ -137,7 +137,7 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment,
customerPaymentService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
@ -151,7 +151,7 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment,
this.customerPaymentService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*

@ -31,49 +31,59 @@ import lombok.experimental.Accessors;
public class CustomerPayment implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private java.lang.String id;
/**创建人*/
/**创建人*/
@ApiModelProperty(value = "创建人")
private java.lang.String createBy;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private java.util.Date createTime;
/**更新人*/
/**更新人*/
@ApiModelProperty(value = "更新人")
private java.lang.String updateBy;
/**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
/**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新日期")
private java.util.Date updateTime;
/**所属部门*/
/**所属部门*/
@ApiModelProperty(value = "所属部门")
private java.lang.String sysOrgCode;
/**用户*/
@Excel(name = "用户", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "id")
@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id")
/**用户*/
@Excel(name = "用户", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "id")
@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id")
@ApiModelProperty(value = "用户")
private java.lang.String userId;
/**用户*/
@Excel(name = "用户", width = 15)
/**用户*/
@Excel(name = "用户", width = 15)
@ApiModelProperty(value = "用户")
private java.lang.String username;
/**支付类型*/
@Excel(name = "支付类型", width = 15, dicCode = "zflx")
@Dict(dicCode = "zflx")
/**支付类型*/
@Excel(name = "支付类型", width = 15, dicCode = "zflx")
@Dict(dicCode = "zflx")
@ApiModelProperty(value = "支付类型")
private java.lang.String paymentType;
/**账号/卡号*/
@Excel(name = "账号/卡号", width = 15)
/**账号/卡号*/
@Excel(name = "账号/卡号", width = 15)
@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