
36 changed files with 1580 additions and 47 deletions
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finmanufacturerbank; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBank.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBank <br/> |
|||
* Description: 公司开户账号表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "公司开户账号表", description = "公司开户账号表") |
|||
@TableName("fin_manufacturer_bank") |
|||
public class FinManufacturerBank extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("银行账号") |
|||
private String bankAccount; |
|||
@ApiModelProperty("开户银行") |
|||
private String depositBank; |
|||
@ApiModelProperty("账户名称") |
|||
private String accountName; |
|||
@ApiModelProperty("账户类型key") |
|||
private String dueBankKey; |
|||
@ApiModelProperty("账户类型value") |
|||
private String dueBankValue; |
|||
@ApiModelProperty("银行网点") |
|||
private String bankingOutlets; |
|||
@ApiModelProperty("开户行地址") |
|||
private String bankAddress; |
|||
@ApiModelProperty("联行号") |
|||
private String paymentLines; |
|||
@ApiModelProperty("银行代码") |
|||
private String swiftCode; |
|||
@ApiModelProperty("币种") |
|||
private String currency; |
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; |
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
|
|||
} |
@ -0,0 +1,79 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finmanufacturerbank; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankVo.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankVo <br/> |
|||
* Description: 公司开户账号表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "公司开户账号表 视图数据详情", description = "公司开户账号表 视图数据详情") |
|||
public class FinManufacturerBankDetailsVo implements Vo { |
|||
|
|||
private String sid; |
|||
|
|||
@ApiModelProperty("银行账号") |
|||
private String bankAccount; |
|||
@ApiModelProperty("开户银行") |
|||
private String depositBank; |
|||
@ApiModelProperty("账户名称") |
|||
private String accountName; |
|||
@ApiModelProperty("账户类型key") |
|||
private String dueBankKey; |
|||
@ApiModelProperty("账户类型value") |
|||
private String dueBankValue; |
|||
@ApiModelProperty("银行网点") |
|||
private String bankingOutlets; |
|||
@ApiModelProperty("开户行地址") |
|||
private String bankAddress; |
|||
@ApiModelProperty("联行号") |
|||
private String paymentLines; |
|||
@ApiModelProperty("银行代码") |
|||
private String swiftCode; |
|||
@ApiModelProperty("币种") |
|||
private String currency; |
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; |
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
|
|||
} |
@ -0,0 +1,79 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finmanufacturerbank; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankDto.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankDto <br/> |
|||
* Description: 公司开户账号表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "公司开户账号表 数据传输对象", description = "公司开户账号表 数据传输对象") |
|||
public class FinManufacturerBankDto implements Dto { |
|||
|
|||
private String sid; |
|||
|
|||
@ApiModelProperty("银行账号") |
|||
private String bankAccount; |
|||
@ApiModelProperty("开户银行") |
|||
private String depositBank; |
|||
@ApiModelProperty("账户名称") |
|||
private String accountName; |
|||
@ApiModelProperty("账户类型key") |
|||
private String dueBankKey; |
|||
@ApiModelProperty("账户类型value") |
|||
private String dueBankValue; |
|||
@ApiModelProperty("银行网点") |
|||
private String bankingOutlets; |
|||
@ApiModelProperty("开户行地址") |
|||
private String bankAddress; |
|||
@ApiModelProperty("联行号") |
|||
private String paymentLines; |
|||
@ApiModelProperty("银行代码") |
|||
private String swiftCode; |
|||
@ApiModelProperty("币种") |
|||
private String currency; |
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; |
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
|
|||
} |
@ -0,0 +1,76 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finmanufacturerbank; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankFeign.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankFeign <br/> |
|||
* Description: 公司开户账号表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "公司开户账号表") |
|||
@FeignClient( |
|||
contextId = "anrui-fin-FinManufacturerBank", |
|||
name = "anrui-fin", |
|||
path = "v1/finmanufacturerbank", |
|||
fallback = FinManufacturerBankFeignFallback.class) |
|||
public interface FinManufacturerBankFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<FinManufacturerBankVo>> listPage(@RequestBody PagerQuery<FinManufacturerBankQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody FinManufacturerBankDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<FinManufacturerBankDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,70 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finmanufacturerbank; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankFeignFallback <br/> |
|||
* Description: 公司开户账号表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class FinManufacturerBankFeignFallback implements FinManufacturerBankFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<FinManufacturerBankVo>> listPage(PagerQuery<FinManufacturerBankQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-fin/finmanufacturerbank/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(FinManufacturerBankDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-fin/finmanufacturerbank/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-fin/finmanufacturerbank/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<FinManufacturerBankDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-fin/finmanufacturerbank/fetchDetailsBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,77 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finmanufacturerbank; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankQuery.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankQuery <br/> |
|||
* Description: 公司开户账号表 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "公司开户账号表 查询条件", description = "公司开户账号表 查询条件") |
|||
public class FinManufacturerBankQuery implements Query { |
|||
|
|||
@ApiModelProperty("银行账号") |
|||
private String bankAccount; |
|||
@ApiModelProperty("开户银行") |
|||
private String depositBank; |
|||
@ApiModelProperty("账户名称") |
|||
private String accountName; |
|||
@ApiModelProperty("账户类型key") |
|||
private String dueBankKey; |
|||
@ApiModelProperty("账户类型value") |
|||
private String dueBankValue; |
|||
@ApiModelProperty("银行网点") |
|||
private String bankingOutlets; |
|||
@ApiModelProperty("开户行地址") |
|||
private String bankAddress; |
|||
@ApiModelProperty("联行号") |
|||
private String paymentLines; |
|||
@ApiModelProperty("银行代码") |
|||
private String swiftCode; |
|||
@ApiModelProperty("币种") |
|||
private String currency; |
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; |
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
|
|||
} |
@ -0,0 +1,79 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.api.finmanufacturerbank; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankVo.java <br/> |
|||
* Class: com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankVo <br/> |
|||
* Description: 公司开户账号表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "公司开户账号表 视图数据对象", description = "公司开户账号表 视图数据对象") |
|||
public class FinManufacturerBankVo implements Vo { |
|||
|
|||
private String sid; |
|||
|
|||
@ApiModelProperty("银行账号") |
|||
private String bankAccount; |
|||
@ApiModelProperty("开户银行") |
|||
private String depositBank; |
|||
@ApiModelProperty("账户名称") |
|||
private String accountName; |
|||
@ApiModelProperty("账户类型key") |
|||
private String dueBankKey; |
|||
@ApiModelProperty("账户类型value") |
|||
private String dueBankValue; |
|||
@ApiModelProperty("银行网点") |
|||
private String bankingOutlets; |
|||
@ApiModelProperty("开户行地址") |
|||
private String bankAddress; |
|||
@ApiModelProperty("联行号") |
|||
private String paymentLines; |
|||
@ApiModelProperty("银行代码") |
|||
private String swiftCode; |
|||
@ApiModelProperty("币种") |
|||
private String currency; |
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; |
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; |
|||
|
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finmanufacturerbank; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.apache.ibatis.annotations.Select; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBank; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankMapper.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finmanufacturerbank.FinManufacturerBankMapper <br/> |
|||
* Description: 公司开户账号表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface FinManufacturerBankMapper extends BaseMapper<FinManufacturerBank> { |
|||
|
|||
//@Update("update fin_manufacturer_bank set name=#{msg} where id=#{id}")
|
|||
//IPage<FinManufacturerBankVo> voPage(IPage<FinManufacturerBank> page, @Param(Constants.WRAPPER) QueryWrapper<FinManufacturerBank> qw);
|
|||
|
|||
IPage<FinManufacturerBankVo> selectPageVo(IPage<FinManufacturerBank> page, @Param(Constants.WRAPPER) Wrapper<FinManufacturerBank> qw); |
|||
|
|||
List<FinManufacturerBankVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<FinManufacturerBank> qw); |
|||
|
|||
@Select("select * from fin_manufacturer_bank") |
|||
List<FinManufacturerBankVo> selectListVo(); |
|||
} |
@ -0,0 +1,13 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.yxt.anrui.fin.biz.finmanufacturerbank.FinManufacturerBankMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankVo"> |
|||
SELECT * FROM fin_manufacturer_bank <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankVo"> |
|||
SELECT * FROM fin_manufacturer_bank <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,87 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finmanufacturerbank; |
|||
|
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.*; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finmanufacturerbank.FinManufacturerBankRest <br/> |
|||
* Description: 公司开户账号表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "公司开户账号表") |
|||
@RestController("com.yxt.anrui.fin.biz.finmanufacturerbank.FinManufacturerBankRest") |
|||
@RequestMapping("v1/finmanufacturerbank") |
|||
public class FinManufacturerBankRest implements FinManufacturerBankFeign { |
|||
|
|||
@Autowired |
|||
private FinManufacturerBankService finManufacturerBankService; |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<FinManufacturerBankVo>> listPage(@RequestBody PagerQuery<FinManufacturerBankQuery> pq) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<FinManufacturerBankVo> pv = finManufacturerBankService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(@RequestBody FinManufacturerBankDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
finManufacturerBankService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids(@RequestBody String[] sids) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
finManufacturerBankService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<FinManufacturerBankDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
FinManufacturerBankDetailsVo vo = finManufacturerBankService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,110 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.fin.biz.finmanufacturerbank; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBank; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankQuery; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankVo; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankDetailsVo; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankDto; |
|||
import com.yxt.anrui.fin.api.finmanufacturerbank.FinManufacturerBankFeign; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-fin(安瑞财务) <br/> |
|||
* File: FinManufacturerBankService.java <br/> |
|||
* Class: com.yxt.anrui.fin.biz.finmanufacturerbank.FinManufacturerBankService <br/> |
|||
* Description: 公司开户账号表 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-03 15:00:11 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class FinManufacturerBankService extends MybatisBaseService<FinManufacturerBankMapper, FinManufacturerBank> { |
|||
private QueryWrapper<FinManufacturerBank> createQueryWrapper(FinManufacturerBankQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<FinManufacturerBank> qw = new QueryWrapper<>(); |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<FinManufacturerBankVo> listPageVo(PagerQuery<FinManufacturerBankQuery> pq) { |
|||
FinManufacturerBankQuery query = pq.getParams(); |
|||
QueryWrapper<FinManufacturerBank> qw = createQueryWrapper(query); |
|||
IPage<FinManufacturerBank> page = PagerUtil.queryToPage(pq); |
|||
IPage<FinManufacturerBankVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<FinManufacturerBankVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(FinManufacturerBankDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(FinManufacturerBankDto dto){ |
|||
FinManufacturerBank entity = new FinManufacturerBank(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(FinManufacturerBankDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
FinManufacturerBank entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public FinManufacturerBankDetailsVo fetchDetailsVoBySid(String sid){ |
|||
FinManufacturerBank entity = fetchBySid(sid); |
|||
FinManufacturerBankDetailsVo vo = new FinManufacturerBankDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
} |
@ -0,0 +1,189 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div> |
|||
<div class="tab-header webtop"> |
|||
<div>车型常用列表</div> |
|||
<div> |
|||
<el-button type="primary" size="small" @click="AddUpdateReturn">确定</el-button> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<div class="main-content"> |
|||
<div class="searchcon"> |
|||
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> |
|||
<div v-show="isSearchShow" class="search"> |
|||
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header" label-width="100px"> |
|||
<el-form-item label="车型:"> |
|||
<el-input v-model="listQuery.params.vehicleAlias" placeholder="" clearable class="filter-item"/> |
|||
</el-form-item> |
|||
<el-form-item label="常用配置:"> |
|||
<el-input v-model="listQuery.params.configName" placeholder="" clearable class="filter-item"/> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center"> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handresetting">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class=""> |
|||
<el-table :key="tableKey" ref="multipleTable" v-loading="listLoading" :data="list" border style="width: 100%" @selection-change="handleSelectionChange"> |
|||
<el-table-column width="50px" type="selection" align="center"/> |
|||
<el-table-column width="80px" label="编号" type="index" :index="indexMethod" align="center"/> |
|||
<el-table-column label="车型" align="center" width="250"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vehicleAlias }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="常用配置" header-align="center" align="left"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.configName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="销售指导价(元)" width="200" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.guidedPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
<div class="pages"> |
|||
<div class="tit"/> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Pagination from '@/components/pagination' |
|||
import req from '@/api/kucunguanli/price' |
|||
|
|||
export default { |
|||
name: "chexingxuanze", |
|||
components: { |
|||
Pagination |
|||
}, |
|||
data() { |
|||
return { |
|||
isSearchShow: false, |
|||
searchxianshitit: '隐藏查询条件', |
|||
tableKey: 0, |
|||
showbackState: 30, |
|||
sids: [], |
|||
list: [], |
|||
number: '', |
|||
listLoading: false, |
|||
userOrgSid: '', |
|||
listQuery: { |
|||
current: 1, |
|||
size: 10, |
|||
params: { |
|||
vehicleAlias: '', |
|||
configName: '', |
|||
useOrgSid: '', |
|||
vehicleStateValue: '', |
|||
sidList: [] |
|||
}, |
|||
total: 1 |
|||
} |
|||
} |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
clicksearchShow() { |
|||
this.isSearchShow = !this.isSearchShow |
|||
if (this.isSearchShow) { |
|||
this.searchxianshitit = '隐藏查询条件' |
|||
} else { |
|||
this.searchxianshitit = '显示查询条件' |
|||
} |
|||
}, |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 返回 |
|||
handleReturn() { |
|||
this.$emit('doback') |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listQuery.params.useOrgSid = this.userOrgSid |
|||
req.configurationlistPage(this.listQuery).then((response) => { |
|||
this.listLoading = false |
|||
if (response.success) { |
|||
this.listQuery.total = response.data.total |
|||
this.list = response.data.records |
|||
} |
|||
}) |
|||
}, |
|||
// 查询按钮 |
|||
handleFilter() { |
|||
this.listQuery.current = 1 |
|||
this.getList() |
|||
}, |
|||
// 重置按钮 |
|||
handresetting() { |
|||
this.listQuery.current = 1 |
|||
this.listQuery.total = 0 |
|||
this.listQuery.size = 10 |
|||
this.listQuery.params.vehicleAlias = '' |
|||
this.listQuery.params.configName = '' |
|||
this.listQuery.params.useOrgSid = '' |
|||
this.listQuery.params.vehicleStateValue = '' |
|||
this.getList() |
|||
}, |
|||
handleSelectionChange(row) { |
|||
this.sids = [] |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push({ |
|||
vehicleAlias: element.vehicleAlias, |
|||
modelSid: element.modelSid, |
|||
configName: element.configName, |
|||
configSid: element.configSid, |
|||
guidedPrice: element.guidedPrice |
|||
}) |
|||
}) |
|||
this.sids = aa |
|||
}, |
|||
showData(value, orgSid) { |
|||
const aa = [] |
|||
if (value.length > 0) { |
|||
for (var i = 0; i < value.length; i++) { |
|||
aa.push({ |
|||
modelSid: value[i].vehicleSid, |
|||
configSid: value[i].configSid |
|||
}) |
|||
} |
|||
this.listQuery.params.sidList = aa |
|||
} else { |
|||
this.listQuery.params.sidList = [] |
|||
} |
|||
this.userOrgSid = orgSid |
|||
this.getList() |
|||
}, |
|||
// 添加修改返回 |
|||
AddUpdateReturn() { |
|||
if (this.sids.length > 0) { |
|||
console.log('勾选的车辆信息',this.sids) |
|||
this.$emit('backData', this.sids) |
|||
} else { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '请选择至少一条车型记录!', |
|||
type: 'error', |
|||
duration: 2000 |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,189 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div> |
|||
<div class="tab-header webtop"> |
|||
<div>车型常用列表</div> |
|||
<div> |
|||
<el-button type="primary" size="small" @click="AddUpdateReturn">确定</el-button> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<div class=""> |
|||
<div class="searchcon"> |
|||
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> |
|||
<div v-show="isSearchShow" class="search"> |
|||
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header" label-width="100px"> |
|||
<el-form-item label="车型:"> |
|||
<el-input v-model="listQuery.params.vehicleAlias" placeholder="" clearable class="filter-item"/> |
|||
</el-form-item> |
|||
<el-form-item label="常用配置:"> |
|||
<el-input v-model="listQuery.params.configName" placeholder="" clearable class="filter-item"/> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center"> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handresetting">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class=""> |
|||
<el-table :key="tableKey" ref="multipleTable" v-loading="listLoading" :data="list" border style="width: 100%" @selection-change="handleSelectionChange"> |
|||
<el-table-column width="50px" type="selection" align="center"/> |
|||
<el-table-column width="80px" label="编号" type="index" :index="indexMethod" align="center"/> |
|||
<el-table-column label="车型" align="center" width="250"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vehicleAlias }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="常用配置" header-align="center" align="left"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.configName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="销售指导价(元)" width="200" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.guidedPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
<div class="pages"> |
|||
<div class="tit"/> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Pagination from '@/components/pagination' |
|||
import req from '@/api/kucunguanli/price' |
|||
|
|||
export default { |
|||
name: "chexingxuanze", |
|||
components: { |
|||
Pagination |
|||
}, |
|||
data() { |
|||
return { |
|||
isSearchShow: false, |
|||
searchxianshitit: '隐藏查询条件', |
|||
tableKey: 0, |
|||
showbackState: 30, |
|||
sids: [], |
|||
list: [], |
|||
number: '', |
|||
listLoading: false, |
|||
userOrgSid: '', |
|||
listQuery: { |
|||
current: 1, |
|||
size: 10, |
|||
params: { |
|||
vehicleAlias: '', |
|||
configName: '', |
|||
useOrgSid: '', |
|||
vehicleStateValue: '', |
|||
sidList: [] |
|||
}, |
|||
total: 1 |
|||
} |
|||
} |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
clicksearchShow() { |
|||
this.isSearchShow = !this.isSearchShow |
|||
if (this.isSearchShow) { |
|||
this.searchxianshitit = '隐藏查询条件' |
|||
} else { |
|||
this.searchxianshitit = '显示查询条件' |
|||
} |
|||
}, |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 返回 |
|||
handleReturn() { |
|||
this.$emit('doback') |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listQuery.params.useOrgSid = this.userOrgSid |
|||
req.configurationlistPage(this.listQuery).then((response) => { |
|||
this.listLoading = false |
|||
if (response.success) { |
|||
this.listQuery.total = response.data.total |
|||
this.list = response.data.records |
|||
} |
|||
}) |
|||
}, |
|||
// 查询按钮 |
|||
handleFilter() { |
|||
this.listQuery.current = 1 |
|||
this.getList() |
|||
}, |
|||
// 重置按钮 |
|||
handresetting() { |
|||
this.listQuery.current = 1 |
|||
this.listQuery.total = 0 |
|||
this.listQuery.size = 10 |
|||
this.listQuery.params.vehicleAlias = '' |
|||
this.listQuery.params.configName = '' |
|||
this.listQuery.params.useOrgSid = '' |
|||
this.listQuery.params.vehicleStateValue = '' |
|||
this.getList() |
|||
}, |
|||
handleSelectionChange(row) { |
|||
this.sids = [] |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push({ |
|||
vehicleAlias: element.vehicleAlias, |
|||
modelSid: element.modelSid, |
|||
configName: element.configName, |
|||
configSid: element.configSid, |
|||
guidedPrice: element.guidedPrice |
|||
}) |
|||
}) |
|||
this.sids = aa |
|||
}, |
|||
showData(value, orgSid) { |
|||
const aa = [] |
|||
if (value.length > 0) { |
|||
for (var i = 0; i < value.length; i++) { |
|||
aa.push({ |
|||
modelSid: value[i].vehicleSid, |
|||
configSid: value[i].configSid |
|||
}) |
|||
} |
|||
this.listQuery.params.sidList = aa |
|||
} else { |
|||
this.listQuery.params.sidList = [] |
|||
} |
|||
this.userOrgSid = orgSid |
|||
this.getList() |
|||
}, |
|||
// 添加修改返回 |
|||
AddUpdateReturn() { |
|||
if (this.sids.length > 0) { |
|||
console.log('勾选的车辆信息',this.sids) |
|||
this.$emit('backData', this.sids) |
|||
} else { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '请选择至少一条车型记录!', |
|||
type: 'error', |
|||
duration: 2000 |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,64 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.supplychain.baseInfo; |
|||
|
|||
import com.yxt.anrui.terminal.api.supplychain.carInspected.AppScmVehinspectItemFeignFallback; |
|||
import com.yxt.anrui.terminal.api.supplychain.carInspected.ItemDto; |
|||
import com.yxt.anrui.terminal.api.supplychain.carInspected.ItemInfoVo; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* Project: anrui-scm(供应链) <br/> |
|||
* File: ScmVehinspectItemFeign.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmvehinspectitem.ScmVehinspectItemFeign <br/> |
|||
* Description: 验车单中的检查表项目. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-07-14 00:17:21 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "供应链待阅数量") |
|||
@FeignClient( |
|||
contextId = "anrui-terminal-AppScmVehinspectItem", |
|||
name = "anrui-terminal", |
|||
path = "supplychain/v1/baseInfo", |
|||
fallback = AppScmVehinspectItemFeignFallback.class) |
|||
public interface AppScmBaseInfoFeign { |
|||
|
|||
|
|||
@ApiOperation("获取供应链各业务模块待办数量") |
|||
@GetMapping("/getToDoNum/{userSid}") |
|||
@ResponseBody |
|||
public ResultBean<AppScmBaseInfoVo> getToDoNum(@PathVariable("userSid") String userSid); |
|||
|
|||
} |
@ -0,0 +1,55 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.supplychain.baseInfo; |
|||
|
|||
import com.yxt.anrui.terminal.api.supplychain.carInspected.AppScmVehinspectItemFeign; |
|||
import com.yxt.anrui.terminal.api.supplychain.carInspected.ItemDto; |
|||
import com.yxt.anrui.terminal.api.supplychain.carInspected.ItemInfoVo; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* Project: anrui-scm(供应链) <br/> |
|||
* File: ScmVehinspectItemFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmvehinspectitem.ScmVehinspectItemFeignFallback <br/> |
|||
* Description: 验车单中的检查表项目. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-07-14 00:17:21 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class AppScmBaseInfoFeignFallback implements AppScmBaseInfoFeign { |
|||
|
|||
|
|||
@Override |
|||
public ResultBean<AppScmBaseInfoVo> getToDoNum(String userSid) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.yxt.anrui.terminal.api.supplychain.baseInfo; |
|||
|
|||
import com.itextpdf.text.pdf.PRAcroForm; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class AppScmBaseInfoVo implements Vo { |
|||
private static final long serialVersionUID = 7209750242078279372L; |
|||
|
|||
@ApiModelProperty("验车代办数量") |
|||
private String inspectedCarNum; |
|||
|
|||
@ApiModelProperty("入库代办数量") |
|||
private String storageCarNum; |
|||
|
|||
@ApiModelProperty("移位代办数量") |
|||
private String moveCarNum; |
|||
|
|||
@ApiModelProperty("盘库代办数量") |
|||
private String inventoryCarNum; |
|||
|
|||
@ApiModelProperty("巡检代办数量") |
|||
private String inspectinoCarNum; |
|||
} |
@ -0,0 +1,64 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.supplychain.baseInfo; |
|||
|
|||
import com.yxt.anrui.terminal.api.supplychain.baseInfo.AppScmBaseInfoFeign; |
|||
import com.yxt.anrui.terminal.api.supplychain.baseInfo.AppScmBaseInfoVo; |
|||
import com.yxt.anrui.terminal.api.supplychain.carInspected.AppScmVehinspectItemFeign; |
|||
import com.yxt.anrui.terminal.api.supplychain.carInspected.ItemDto; |
|||
import com.yxt.anrui.terminal.api.supplychain.carInspected.ItemInfoVo; |
|||
import com.yxt.anrui.terminal.biz.supplychain.carInspected.AppScmVehinspectItemService; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import io.swagger.annotations.Api; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Controller; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
|
|||
/** |
|||
* Project: anrui-scm(供应链) <br/> |
|||
* File: ScmVehinspectItemFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.scm.biz.scmvehinspectitem.ScmVehinspectItemRest <br/> |
|||
* Description: 验车单中的检查表项目. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-07-14 00:17:21 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Controller |
|||
@RequestMapping("supplychain/v1/baseInfo") |
|||
public class AppScmBaseInfoRest implements AppScmBaseInfoFeign { |
|||
|
|||
@Autowired |
|||
AppScmBaseInfoService appScmBaseInfoService; |
|||
|
|||
@Override |
|||
public ResultBean<AppScmBaseInfoVo> getToDoNum(String userSid) { |
|||
return appScmBaseInfoService.getToDoNum(userSid); |
|||
} |
|||
} |
@ -0,0 +1,44 @@ |
|||
package com.yxt.anrui.terminal.biz.supplychain.baseInfo; |
|||
|
|||
import com.yxt.anrui.scm.api.scmvehicleenterlibrary.ScmVehicleEnterlibraryFeign; |
|||
import com.yxt.anrui.scm.api.scmvehicleexamine.ScmVehicleExamineFeign; |
|||
import com.yxt.anrui.scm.api.scmvehiclegression.ScmVehicleGressionFeign; |
|||
import com.yxt.anrui.scm.api.scmvehiclestayinventory.ScmVehicleStayInventoryFeign; |
|||
import com.yxt.anrui.scm.api.scmvehiclestaypatrolinspection.ScmVehicleStayPatrolinspectionFeign; |
|||
import com.yxt.anrui.terminal.api.supplychain.baseInfo.AppScmBaseInfoVo; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
@Service |
|||
public class AppScmBaseInfoService { |
|||
|
|||
@Autowired |
|||
ScmVehicleExamineFeign scmVehicleExamineFeign; |
|||
@Autowired |
|||
ScmVehicleEnterlibraryFeign scmVehicleEnterlibraryFeign; |
|||
@Autowired |
|||
ScmVehicleGressionFeign scmVehicleGressionFeign; |
|||
@Autowired |
|||
ScmVehicleStayInventoryFeign scmVehicleStayInventoryFeign; |
|||
@Autowired |
|||
ScmVehicleStayPatrolinspectionFeign scmVehicleStayPatrolinspectionFeign; |
|||
|
|||
|
|||
public ResultBean<AppScmBaseInfoVo> getToDoNum(String userSid) { |
|||
ResultBean<AppScmBaseInfoVo> rb = ResultBean.fireFail(); |
|||
AppScmBaseInfoVo appScmBaseInfoVo = new AppScmBaseInfoVo(); |
|||
String inspectedCarNum = scmVehicleExamineFeign.getToDoNum(userSid).getData(); |
|||
String storageCarNum = scmVehicleEnterlibraryFeign.getToDoNum(userSid).getData(); |
|||
String moveCarNum = scmVehicleGressionFeign.getToDoNum(userSid).getData(); |
|||
String inventoryCarNum = scmVehicleStayInventoryFeign.getToDoNum(userSid).getData(); |
|||
String inspectinoCarNum = scmVehicleStayPatrolinspectionFeign.getToDoNum(userSid).getData(); |
|||
appScmBaseInfoVo.setInspectedCarNum(inspectedCarNum); |
|||
appScmBaseInfoVo.setStorageCarNum(storageCarNum); |
|||
appScmBaseInfoVo.setMoveCarNum(moveCarNum); |
|||
appScmBaseInfoVo.setInventoryCarNum(inventoryCarNum); |
|||
appScmBaseInfoVo.setInspectinoCarNum(inspectinoCarNum); |
|||
return rb.success().setData(appScmBaseInfoVo); |
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue