
61 changed files with 5965 additions and 600 deletions
@ -0,0 +1,74 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.base.api.basevehreplacepart; |
|||
|
|||
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-base(车辆更换配件记录) <br/> |
|||
* File: BaseVehReplacePart.java <br/> |
|||
* Class: com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePart <br/> |
|||
* Description: 车辆更换配件记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-15 15:39:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "车辆更换配件记录", description = "车辆更换配件记录") |
|||
@TableName("base_veh_replace_part") |
|||
public class BaseVehReplacePart extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("来源车架号") |
|||
private String sourceVinNo; // 来源车架号
|
|||
@ApiModelProperty("来源车辆sid") |
|||
private String sourceVehSid; // 来源车辆sid
|
|||
@ApiModelProperty("配件名称") |
|||
private String partName; // 配件名称
|
|||
@ApiModelProperty("安装至车架号") |
|||
private String installVinNo; // 安装至车架号
|
|||
@ApiModelProperty("安装至车辆sid") |
|||
private String installSid; // 安装至车辆sid
|
|||
@ApiModelProperty("费用") |
|||
private String money; // 费用
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建组织名称") |
|||
private String createOrgName; // 创建组织名称
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("使用组织名称") |
|||
private String useOrgName; // 使用组织名称
|
|||
|
|||
} |
@ -0,0 +1,77 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.base.api.basevehreplacepart; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-base(车辆更换配件记录) <br/> |
|||
* File: BaseVehReplacePartVo.java <br/> |
|||
* Class: com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartVo <br/> |
|||
* Description: 车辆更换配件记录 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-15 15:39:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "车辆更换配件记录 视图数据详情", description = "车辆更换配件记录 视图数据详情") |
|||
public class BaseVehReplacePartDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; // 备注
|
|||
@ApiModelProperty("来源车架号") |
|||
private String sourceVinNo; // 来源车架号
|
|||
@ApiModelProperty("来源车辆sid") |
|||
private String sourceVehSid; // 来源车辆sid
|
|||
@ApiModelProperty("配件名称") |
|||
private String partName; // 配件名称
|
|||
@ApiModelProperty("安装至车架号") |
|||
private String installVinNo; // 安装至车架号
|
|||
@ApiModelProperty("安装至车辆sid") |
|||
private String installSid; // 安装至车辆sid
|
|||
@ApiModelProperty("费用") |
|||
private String money; // 费用
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建组织名称") |
|||
private String createOrgName; // 创建组织名称
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("使用组织名称") |
|||
private String useOrgName; // 使用组织名称
|
|||
|
|||
} |
@ -0,0 +1,77 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.base.api.basevehreplacepart; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-base(车辆更换配件记录) <br/> |
|||
* File: BaseVehReplacePartDto.java <br/> |
|||
* Class: com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartDto <br/> |
|||
* Description: 车辆更换配件记录 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-15 15:39:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "车辆更换配件记录 数据传输对象", description = "车辆更换配件记录 数据传输对象") |
|||
public class BaseVehReplacePartDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; // 备注
|
|||
@ApiModelProperty("来源车架号") |
|||
private String sourceVinNo; // 来源车架号
|
|||
@ApiModelProperty("来源车辆sid") |
|||
private String sourceVehSid; // 来源车辆sid
|
|||
@ApiModelProperty("配件名称") |
|||
private String partName; // 配件名称
|
|||
@ApiModelProperty("安装至车架号") |
|||
private String installVinNo; // 安装至车架号
|
|||
@ApiModelProperty("安装至车辆sid") |
|||
private String installSid; // 安装至车辆sid
|
|||
@ApiModelProperty("费用") |
|||
private String money; // 费用
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建组织名称") |
|||
private String createOrgName; // 创建组织名称
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("使用组织名称") |
|||
private String useOrgName; // 使用组织名称
|
|||
|
|||
} |
@ -0,0 +1,84 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.base.api.basevehreplacepart; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* Project: anrui-base(车辆更换配件记录) <br/> |
|||
* File: BaseVehReplacePartFeign.java <br/> |
|||
* Class: com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartFeign <br/> |
|||
* Description: 车辆更换配件记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-15 15:39:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "车辆更换配件记录rest") |
|||
@FeignClient( |
|||
contextId = "anrui-base-BaseVehReplacePart", |
|||
name = "anrui-base", |
|||
path = "v1/basevehreplacepart", |
|||
fallback = BaseVehReplacePartFeignFallback.class) |
|||
public interface BaseVehReplacePartFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<BaseVehReplacePartVo>> listPage(@RequestBody PagerQuery<BaseVehReplacePartQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody BaseVehReplacePartDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<BaseVehReplacePartDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation("获取安装至车架号和车辆sid") |
|||
@GetMapping("/fetchVinNoAndVehSid/{createOrgSid}") |
|||
@ResponseBody |
|||
public ResultBean<List<Map<String,String>>> fetchVinNoAndVehSid(@PathVariable("createOrgSid") String createOrgSid); |
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.base.api.basevehreplacepart; |
|||
|
|||
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; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* Project: anrui-base(车辆更换配件记录) <br/> |
|||
* File: BaseVehReplacePartFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartFeignFallback <br/> |
|||
* Description: 车辆更换配件记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-15 15:39:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class BaseVehReplacePartFeignFallback implements BaseVehReplacePartFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<BaseVehReplacePartVo>> listPage(PagerQuery<BaseVehReplacePartQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-base/basevehreplacepart/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(BaseVehReplacePartDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-base/basevehreplacepart/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-base/basevehreplacepart/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<BaseVehReplacePartDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-base/basevehreplacepart/fetchDetailsBySid无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<Map<String, String>>> fetchVinNoAndVehSid(String createOrgSid) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,56 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.base.api.basevehreplacepart; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-base(车辆更换配件记录) <br/> |
|||
* File: BaseVehReplacePartQuery.java <br/> |
|||
* Class: com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartQuery <br/> |
|||
* Description: 车辆更换配件记录 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-15 15:39:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "车辆更换配件记录 查询条件", description = "车辆更换配件记录 查询条件") |
|||
public class BaseVehReplacePartQuery implements Query { |
|||
|
|||
@ApiModelProperty("来源车辆sid") |
|||
private String sourceVehSid; // 来源车辆sid
|
|||
@ApiModelProperty("安装至车辆sid") |
|||
private String installSid; // 安装至车辆sid
|
|||
} |
@ -0,0 +1,64 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.base.api.basevehreplacepart; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-base(车辆更换配件记录) <br/> |
|||
* File: BaseVehReplacePartVo.java <br/> |
|||
* Class: com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartVo <br/> |
|||
* Description: 车辆更换配件记录 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-15 15:39:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "车辆更换配件记录 视图数据对象", description = "车辆更换配件记录 视图数据对象") |
|||
public class BaseVehReplacePartVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("来源车架号") |
|||
private String sourceVinNo; // 来源车架号
|
|||
@ApiModelProperty("配件名称") |
|||
private String partName; // 配件名称
|
|||
@ApiModelProperty("安装至车架号") |
|||
private String installVinNo; // 安装至车架号
|
|||
@ApiModelProperty("费用") |
|||
private String money; // 费用
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; // 备注
|
|||
} |
@ -0,0 +1,68 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.base.biz.basevehreplacepart; |
|||
|
|||
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.base.api.basevehreplacepart.BaseVehReplacePart; |
|||
import com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartVo; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* Project: anrui-base(车辆更换配件记录) <br/> |
|||
* File: BaseVehReplacePartMapper.java <br/> |
|||
* Class: com.yxt.anrui.base.biz.basevehreplacepart.BaseVehReplacePartMapper <br/> |
|||
* Description: 车辆更换配件记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-15 15:39:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface BaseVehReplacePartMapper extends BaseMapper<BaseVehReplacePart> { |
|||
|
|||
//@Update("update base_veh_replace_part set name=#{msg} where id=#{id}")
|
|||
//IPage<BaseVehReplacePartVo> voPage(IPage<BaseVehReplacePart> page, @Param(Constants.WRAPPER) QueryWrapper<BaseVehReplacePart> qw);
|
|||
|
|||
IPage<BaseVehReplacePartVo> selectPageVo(IPage<BaseVehReplacePart> page, @Param(Constants.WRAPPER) Wrapper<BaseVehReplacePart> qw); |
|||
|
|||
List<BaseVehReplacePartVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<BaseVehReplacePart> qw); |
|||
|
|||
@Select("select * from base_veh_replace_part") |
|||
List<BaseVehReplacePartVo> selectListVo(); |
|||
|
|||
List<Map<String, String>> fetchVinNoAndVehSid(String createOrgSid); |
|||
} |
@ -0,0 +1,33 @@ |
|||
<?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.base.biz.basevehreplacepart.BaseVehReplacePartMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartVo"> |
|||
SELECT * FROM base_veh_replace_part |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartVo"> |
|||
SELECT * FROM base_veh_replace_part |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="fetchVinNoAndVehSid" resultType="java.util.Map"> |
|||
SELECT vinNo AS installVinNo, |
|||
sid AS installSid |
|||
FROM base_vehicle |
|||
WHERE createOrgSid = #{createOrgSid} |
|||
AND isDelete = 0 |
|||
AND ( |
|||
vehicleState = 0001 |
|||
OR vehicleState = 0008 |
|||
OR vehicleState = 0009 |
|||
OR vehicleState = 0003 |
|||
) |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,107 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.base.biz.basevehreplacepart; |
|||
|
|||
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.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
import com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePart; |
|||
import com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartQuery; |
|||
import com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartVo; |
|||
import com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartDetailsVo; |
|||
import com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartDto; |
|||
import com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartFeign; |
|||
|
|||
/** |
|||
* Project: anrui-base(车辆更换配件记录) <br/> |
|||
* File: BaseVehReplacePartFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.base.biz.basevehreplacepart.BaseVehReplacePartRest <br/> |
|||
* Description: 车辆更换配件记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-15 15:39:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "车辆更换配件记录") |
|||
@RestController |
|||
@RequestMapping("v1/basevehreplacepart") |
|||
public class BaseVehReplacePartRest implements BaseVehReplacePartFeign { |
|||
|
|||
@Autowired |
|||
private BaseVehReplacePartService baseVehReplacePartService; |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<BaseVehReplacePartVo>> listPage(@RequestBody PagerQuery<BaseVehReplacePartQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<BaseVehReplacePartVo> pv = baseVehReplacePartService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody BaseVehReplacePartDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
baseVehReplacePartService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
baseVehReplacePartService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<BaseVehReplacePartDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
BaseVehReplacePartDetailsVo vo = baseVehReplacePartService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<Map<String, String>>> fetchVinNoAndVehSid(String createOrgSid) { |
|||
return baseVehReplacePartService.fetchVinNoAndVehSid(createOrgSid); |
|||
} |
|||
} |
@ -0,0 +1,120 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.base.biz.basevehreplacepart; |
|||
|
|||
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.base.api.basevehreplacepart.BaseVehReplacePart; |
|||
import com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartQuery; |
|||
import com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartVo; |
|||
import com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartDetailsVo; |
|||
import com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartDto; |
|||
import com.yxt.anrui.base.api.basevehreplacepart.BaseVehReplacePartFeign; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* Project: anrui-base(车辆更换配件记录) <br/> |
|||
* File: BaseVehReplacePartService.java <br/> |
|||
* Class: com.yxt.anrui.base.biz.basevehreplacepart.BaseVehReplacePartService <br/> |
|||
* Description: 车辆更换配件记录 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-15 15:39:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class BaseVehReplacePartService extends MybatisBaseService<BaseVehReplacePartMapper, BaseVehReplacePart> { |
|||
private QueryWrapper<BaseVehReplacePart> createQueryWrapper(BaseVehReplacePartQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<BaseVehReplacePart> qw = new QueryWrapper<>(); |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<BaseVehReplacePartVo> listPageVo(PagerQuery<BaseVehReplacePartQuery> pq) { |
|||
BaseVehReplacePartQuery query = pq.getParams(); |
|||
QueryWrapper<BaseVehReplacePart> qw = new QueryWrapper<>(); |
|||
if (StringUtils.isNotBlank(query.getSourceVehSid()) && StringUtils.isNotBlank(query.getInstallSid())){ |
|||
qw.eq("sourceVehSid",query.getSourceVehSid()).or().eq("installSid",query.getInstallSid()); |
|||
} |
|||
IPage<BaseVehReplacePart> page = PagerUtil.queryToPage(pq); |
|||
IPage<BaseVehReplacePartVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<BaseVehReplacePartVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(BaseVehReplacePartDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(BaseVehReplacePartDto dto){ |
|||
BaseVehReplacePart entity = new BaseVehReplacePart(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(BaseVehReplacePartDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
BaseVehReplacePart entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public BaseVehReplacePartDetailsVo fetchDetailsVoBySid(String sid){ |
|||
BaseVehReplacePart entity = fetchBySid(sid); |
|||
BaseVehReplacePartDetailsVo vo = new BaseVehReplacePartDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
|
|||
public ResultBean<List<Map<String, String>>> fetchVinNoAndVehSid(String createOrgSid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<Map<String, String>> maps = baseMapper.fetchVinNoAndVehSid(createOrgSid); |
|||
return rb.success().setData(maps); |
|||
} |
|||
} |
@ -1,32 +1,51 @@ |
|||
<?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.scm.biz.scmcertstayinventory.ScmCertStayInventoryMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryVo"> |
|||
SELECT |
|||
scsi.`certNo`, |
|||
scsi.`vinNo`, |
|||
scsi.`location`, |
|||
MAX(sci.inventoryDate) AS inventoryDate, |
|||
(SELECT |
|||
sci.inventoryName |
|||
FROM |
|||
scm_cert_inventory sci |
|||
LEFT JOIN scm_cert_stay_inventory scsi |
|||
ON scsi.`vehSid` = sci.`vehSid` |
|||
ORDER BY sci.createTime DESC |
|||
LIMIT 1) inventoryName, |
|||
scsi.`inventoryState`, |
|||
scsi.`remarks` |
|||
FROM |
|||
scm_cert_stay_inventory scsi |
|||
LEFT JOIN scm_cert_inventory sci |
|||
ON scsi.`vehSid` = sci.`vehSid` |
|||
<where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryVo"> |
|||
SELECT * FROM scm_cert_stay_inventory <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryVo"> |
|||
SELECT |
|||
scsi.sid, |
|||
scsi.`certNo`, |
|||
scsi.`vinNo`, |
|||
scsi.vehSid, |
|||
scsi.`location`, |
|||
scsi.locationSid, |
|||
scsi.inventoryDate, |
|||
scsi.`inventoryName`, |
|||
scsi.`inventoryState`, |
|||
scsi.`remarks` |
|||
FROM |
|||
scm_cert_stay_inventory scsi |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryVo"> |
|||
SELECT * FROM scm_cert_stay_inventory |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<update id="certInventoryConfirm"> |
|||
UPDATE |
|||
scm_cert_stay_inventory |
|||
SET inventoryDate = DATE_FORMAT(NOW(), '%Y-%m-%d'), |
|||
isDelete = 1, |
|||
inventorySid = #{inventorySid}, |
|||
inventoryName = #{inventoryName}, |
|||
inventoryState = #{inventoryState}, |
|||
remarks = #{remarks} |
|||
WHERE sid = #{sid} |
|||
</update> |
|||
|
|||
<select id="checkStayIsExi" resultType="com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventory"> |
|||
SELECT * |
|||
FROM scm_cert_stay_inventory |
|||
WHERE certNo = #{certificationNo} |
|||
AND vehSid = #{vehicleSid} |
|||
AND createOrgSid = #{createOrgSid} |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,285 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!-- Start 列表页面 --> |
|||
<div v-show="viewState == 1"> |
|||
<button-bar view-title="单车返利核对审核申请管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> |
|||
<div class="main-content"> |
|||
<div class="switch_btn"> |
|||
<el-button class="" @click="handleClick">待核对</el-button> |
|||
<el-button :class="{btn_style:viewState === 1}">核对审核申请</el-button> |
|||
</div> |
|||
<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" label-width="100px" class="tab-header"> |
|||
<el-form-item label="品牌"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="创建日期"> |
|||
<el-date-picker v-model="listQuery.params.createStartTime" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.createEndTime" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center;"> |
|||
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="listtop"> |
|||
<div class="tit">单车返利核对审核申请列表</div> |
|||
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<div class=""> |
|||
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|||
<el-table-column fixed type="selection" align="center" width="50px"/> |
|||
<el-table-column fixed label="序号" type="index" :index="indexMethod" align="center" width="80px"/> |
|||
<el-table-column fixed label="操作" align="center" width="180px" > |
|||
<template slot-scope="scope"> |
|||
<el-button type="primary" size="mini" @click="toEdit(scope.row)">办理</el-button> |
|||
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="状态" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.nodeState }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="分公司" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createTime }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="品牌" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createTime }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预提申请" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.applyPeoName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预提返利" align="center" width="250"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createOrgName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="创建日期" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.applyTitle }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="创建人" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
<div class="pages"> |
|||
<!-- 翻页 --> |
|||
<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 req from '@/api/othermenu/shangzhuangtiaojia' |
|||
import Pagination from '@/components/pagination' |
|||
import pageye from '@/components/pagination/pageye' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
|
|||
export default { |
|||
name: 'bicyclerebatecheck', |
|||
components: { |
|||
Pagination, |
|||
pageye, |
|||
ButtonBar |
|||
}, |
|||
data() { |
|||
return { |
|||
btndisabled: false, |
|||
btnList: [ |
|||
{ |
|||
type: 'danger', |
|||
size: 'small', |
|||
icon: 'del', |
|||
btnKey: 'doDel', |
|||
btnLabel: '删除' |
|||
}, |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
viewState: 1, |
|||
// 查询条件 ----------- |
|||
tableKey: 0, |
|||
list: [], |
|||
sids: [], |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
listQuery: { |
|||
params: { |
|||
createBySid: '', |
|||
createEndTime: '', |
|||
createStartTime: '' |
|||
}, |
|||
current: 1, |
|||
size: 5, |
|||
total: 0 |
|||
}, |
|||
rules: {} |
|||
} |
|||
}, |
|||
created() { |
|||
// 加载列表 |
|||
this.getList() |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
clicksearchShow() { |
|||
this.isSearchShow = !this.isSearchShow |
|||
if (this.isSearchShow) { |
|||
this.searchxianshitit = '隐藏查询条件' |
|||
} else { |
|||
this.searchxianshitit = '显示查询条件' |
|||
} |
|||
}, |
|||
btnHandle(btnKey) { |
|||
console.log('XXXXXXXXXXXXXXX ' + btnKey) |
|||
switch (btnKey) { |
|||
case 'doDel': |
|||
this.doDel() |
|||
break |
|||
case 'doClose': |
|||
this.doClose() |
|||
break |
|||
default: |
|||
break |
|||
} |
|||
}, |
|||
// 序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
console.log('sids', this.sids) |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listQuery.params.createBySid = window.sessionStorage.getItem('userSid') |
|||
req.listPage(this.listQuery).then((response) => { |
|||
console.log('列表查询结果:', response) |
|||
this.listLoading = false |
|||
if (response.success && response.data && response.data.total > 0) { |
|||
this.list = response.data.records |
|||
this.listQuery.total = response.data.total |
|||
} else { |
|||
this.list = [] |
|||
this.listQuery.total = 0 |
|||
} |
|||
}) |
|||
}, |
|||
// 查询按钮 |
|||
handleFilter() { |
|||
this.listQuery.current = 1 |
|||
this.getList() |
|||
}, |
|||
handleReset() { |
|||
this.listQuery = { |
|||
params: { |
|||
createBySid: '', |
|||
createEndTime: '', |
|||
createStartTime: '' |
|||
}, |
|||
current: 1, |
|||
size: 5, |
|||
total: 0 |
|||
} |
|||
this.getList() |
|||
}, |
|||
handleClick() { |
|||
this.$parent.resetState() |
|||
}, |
|||
toAdd() { |
|||
this.viewState = 2 |
|||
this.$refs['divAdd'].showAdd(this.listQuery.params.createOrgSid) |
|||
}, |
|||
toEdit(row) { |
|||
this.viewState = 3 |
|||
this.$refs['divAdd'].showEdit(row) |
|||
}, |
|||
toInfo(row) { |
|||
this.viewState = 4 |
|||
this.$refs['divInfo'].showInfo(row) |
|||
}, |
|||
doDel() { |
|||
if (this.sids.length === 0) { |
|||
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' }) |
|||
return |
|||
} |
|||
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?' |
|||
this.$confirm(tip, '提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
type: 'warning' |
|||
}).then(() => { |
|||
const loading = this.$loading({ |
|||
lock: true, |
|||
text: 'Loading', |
|||
spinner: 'el-icon-loading', |
|||
background: 'rgba(0, 0, 0, 0.7)' |
|||
}) |
|||
req.delete(this.sids).then(resp => { |
|||
if (resp.success) { |
|||
this.$message({ type: 'success', message: resp.msg, showClose: true }) |
|||
} |
|||
this.getList() |
|||
loading.close() |
|||
}).catch(e => { |
|||
loading.close() |
|||
}) |
|||
}).catch(() => { |
|||
}) |
|||
}, |
|||
resetState() { |
|||
this.viewState = 1 |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
.switch_btn { |
|||
padding: 15px 0 10px 0; |
|||
} |
|||
.btn_style { |
|||
background-color: #018ad2; |
|||
color: white; |
|||
font-weight: 600; |
|||
} |
|||
</style> |
@ -0,0 +1,327 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<!--标题按钮部分开始--> |
|||
<div class="tab-header webtop"> |
|||
<!--标题--> |
|||
<div>{{ viewTitle }}</div> |
|||
<!--start 添加修改按钮--> |
|||
<div> |
|||
<el-button type="primary" size="small" :disabled="submitdisabled" @click="save()">保存 |
|||
</el-button> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<!--标题按钮部分结束--> |
|||
<!--Start 新增修改部分--> |
|||
<div class="listconadd"> |
|||
<div class="titwu"><span>单车返利核对审核申请</span></div> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd"> |
|||
<el-row class="rowStyle"> |
|||
<el-col :span="24" class="tleftb colOneStyle"> |
|||
<el-button size="small" type="primary" @click="handleSelect()">添加</el-button> |
|||
</el-col> |
|||
</el-row> |
|||
<div class="title"> |
|||
<div>本月各项返利核对情况</div> |
|||
</div> |
|||
<el-table :key="tableKey" :data="formobj.baseVehinstallModpricedetails" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column fixed prop="name" label="操作" width="100px" align="center" header-align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-button size="mini" type="danger" @click="dataDelete(scope.$index)">删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利类型" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.jacketName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="数量" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预提金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modelName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="待确认金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="调整金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="费用" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="明细" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-button type="primary" size="mini" @click="handleLook(scope.row)">查看</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<div class="title"> |
|||
<div>预提返利本月核对情况</div> |
|||
</div> |
|||
<el-table :key="baseVehinstallModpriceKey" :data="formobj.baseVehinstallModprice" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column label="预提年月" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.jacketName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预提数量" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预提金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modelName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传数量" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="待确认金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="调整金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="费用" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="未上传数量" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="未上传金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<el-row> |
|||
<el-col :span="4"> |
|||
<span>备注</span> |
|||
</el-col> |
|||
<el-col :span="20"> |
|||
<el-form-item><el-input v-model="formobj.remarks" placeholder="" class="addinputw" clearable></el-input></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!--End 添加修改部分--> |
|||
<yiheduidanchefanli v-show="viewState == 2" ref="divSelect" @backData="backData" @doback="resetState"/> |
|||
<bicyclerebatetobecheckedAdd v-show="viewState == 3" ref="divAdd" @doback="resetState"/> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/othermenu/shangzhuangtiaojia' |
|||
import { getPathSidByUserSid, fetchBySid } from '@/api/cheliang/dictcommons' |
|||
import yiheduidanchefanli from './relation/yiheduidanchefanli' |
|||
import bicyclerebatetobecheckedAdd from './relation/bicyclerebatetobecheckedAdd' |
|||
|
|||
export default { |
|||
name: 'bicyclerebatecheckAdd', |
|||
components: { |
|||
yiheduidanchefanli, |
|||
bicyclerebatetobecheckedAdd |
|||
}, |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
index: 0, |
|||
tableKey: 0, |
|||
baseVehinstallModpriceKey: 1, |
|||
viewState: 1, |
|||
// 表单数据 |
|||
formobj: { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
}, |
|||
rules: {}, |
|||
submitdisabled: false |
|||
} |
|||
}, |
|||
methods: { |
|||
// 获取制单日期 |
|||
newDate() { |
|||
let date = new Date() |
|||
let year = date.getFullYear() // 年 |
|||
let month = date.getMonth() + 1 // 月 |
|||
let day = date.getDate() // 日 |
|||
if (month < 10) { |
|||
month = '0' + month |
|||
} |
|||
if (day < 10) { |
|||
day = '0' + day |
|||
} |
|||
this.formobj.createTime = year + '-' + month + '-' + day |
|||
}, |
|||
init() { |
|||
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((resp) => { |
|||
if (resp.success) { |
|||
this.formobj.createOrgSid = resp.data |
|||
this.formobj.useOrgSid = resp.data |
|||
fetchBySid(this.formobj.createOrgSid).then((res) => { |
|||
if (res.success) { |
|||
this.formobj.createOrgName = res.data.name |
|||
this.formobj.useOrgName = res.data.name |
|||
} |
|||
}) |
|||
} |
|||
}) |
|||
}, |
|||
showAdd() { |
|||
this.init() |
|||
this.newDate() |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.formobj.createBySid = window.sessionStorage.getItem('userSid') |
|||
this.formobj.applyPeoName = window.sessionStorage.getItem('name') |
|||
this.viewTitle = '【新增】单车返利预提申请' |
|||
}, |
|||
showEdit(row) { |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.viewTitle = '【编辑】单车返利预提申请' |
|||
console.log('编辑回显', row.sid) |
|||
req.fetchBySid(row.sid).then((resp) => { |
|||
this.formobj = resp.data |
|||
}).catch((e) => { |
|||
this.formobj = row |
|||
}) |
|||
}, |
|||
// 明细表添加一行数据 |
|||
handleSelect() { |
|||
this.viewState = 2 |
|||
this.$refs['divSelect'].showData(this.formobj.baseVehinstallModpricedetails) |
|||
}, |
|||
backData(value) { |
|||
this.viewState = 1 |
|||
if (value.length > 0) { |
|||
value.forEach((e) => { |
|||
this.formobj.baseVehinstallModpricedetails.push({ |
|||
adjustVehGuidedPrice: '', |
|||
costPrice: e.costPrice, |
|||
guidedPrice: e.guidedPrice, |
|||
incOrDecInPrice: '', |
|||
jacketName: e.jacketName, |
|||
jacketSid: e.jacketSid, |
|||
mainSid: '', |
|||
modelName: e.modelName, |
|||
modelSid: e.modelSid, |
|||
sid: '', |
|||
vehGuidedPrice: '', |
|||
vinNo: e.vinNo, |
|||
remarks: '' |
|||
}) |
|||
}) |
|||
} |
|||
}, |
|||
// 明细表删除一行数据 |
|||
dataDelete(index) { |
|||
this.formobj.baseVehinstallModpricedetails.splice(index, 1) |
|||
}, |
|||
handleLook(row) {}, |
|||
resetState() { |
|||
this.viewState = 1 |
|||
}, |
|||
save() { |
|||
this.$refs['form_obj'].validate((valid) => { |
|||
if (valid) { |
|||
this.submitdisabled = true |
|||
req.saveOrUpdate(this.formobj).then((resp) => { |
|||
this.submitdisabled = false |
|||
if (resp.success) { |
|||
this.$message({ |
|||
showClose: true, |
|||
type: 'success', |
|||
message: resp.msg |
|||
}) |
|||
this.handleReturn('true') |
|||
} |
|||
}).catch(() => { |
|||
this.submitdisabled = false |
|||
}) |
|||
} else { |
|||
return false |
|||
} |
|||
}) |
|||
}, |
|||
// 返回(===既判断) |
|||
handleReturn(isreload) { |
|||
if (isreload === 'true') this.$emit('reloadlist') |
|||
// 表单数据 |
|||
this.formobj = { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
} |
|||
this.$refs['form_obj'].resetFields() |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
.rowStyle { |
|||
border-left: 0px; |
|||
} |
|||
.colOneStyle { |
|||
border-right: 0px !important; |
|||
border-bottom: 0px !important; |
|||
} |
|||
</style> |
|||
|
@ -0,0 +1,231 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<!--标题按钮部分开始--> |
|||
<div class="tab-header webtop"> |
|||
<!--标题--> |
|||
<div>{{ viewTitle }}</div> |
|||
<!--start 添加修改按钮--> |
|||
<div> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<!--标题按钮部分结束--> |
|||
<!--Start 新增修改部分--> |
|||
<div class="listconadd"> |
|||
<div class="titwu"><span>单车返利核对审核申请</span></div> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd"> |
|||
<div class="title"> |
|||
<div>本月各项返利核对情况</div> |
|||
</div> |
|||
<el-table :key="tableKey" :data="formobj.baseVehinstallModpricedetails" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column label="返利类型" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.jacketName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="数量" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预提金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modelName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="待确认金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="调整金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="费用" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="明细" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-button type="primary" size="mini" @click="handleLook(scope.row)">查看</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<div class="title"> |
|||
<div>预提返利本月核对情况</div> |
|||
</div> |
|||
<el-table :key="baseVehinstallModpriceKey" :data="formobj.baseVehinstallModprice" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column label="预提年月" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.jacketName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预提数量" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预提金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modelName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传数量" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="待确认金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="调整金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="费用" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="未上传数量" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="未上传金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<el-row> |
|||
<el-col :span="4"> |
|||
<span>备注</span> |
|||
</el-col> |
|||
<el-col :span="20"> |
|||
<el-form-item><el-input v-model="formobj.remarks" placeholder="" class="addinputw" clearable></el-input></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!--End 添加修改部分--> |
|||
<bicyclerebatetobecheckedInfo v-show="viewState == 2" ref="divAdd" @doback="resetState"/> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/othermenu/shangzhuangtiaojia' |
|||
import { getPathSidByUserSid, fetchBySid } from '@/api/cheliang/dictcommons' |
|||
import bicyclerebatetobecheckedInfo from './relation/bicyclerebatetobecheckedInfo' |
|||
|
|||
export default { |
|||
name: 'bicyclerebatecheckInfo', |
|||
components: { |
|||
yiheduidanchefanli, |
|||
bicyclerebatetobecheckedInfo |
|||
}, |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
index: 0, |
|||
tableKey: 0, |
|||
baseVehinstallModpriceKey: 1, |
|||
viewState: 1, |
|||
// 表单数据 |
|||
formobj: { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
}, |
|||
rules: {}, |
|||
submitdisabled: false |
|||
} |
|||
}, |
|||
methods: { |
|||
init() { |
|||
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((resp) => { |
|||
if (resp.success) { |
|||
this.formobj.createOrgSid = resp.data |
|||
this.formobj.useOrgSid = resp.data |
|||
fetchBySid(this.formobj.createOrgSid).then((res) => { |
|||
if (res.success) { |
|||
this.formobj.createOrgName = res.data.name |
|||
this.formobj.useOrgName = res.data.name |
|||
} |
|||
}) |
|||
} |
|||
}) |
|||
}, |
|||
showEdit(row) { |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.viewTitle = '【编辑】单车返利预提申请' |
|||
console.log('编辑回显', row.sid) |
|||
req.fetchBySid(row.sid).then((resp) => { |
|||
this.formobj = resp.data |
|||
}).catch((e) => { |
|||
this.formobj = row |
|||
}) |
|||
}, |
|||
// 返回(===既判断) |
|||
handleReturn(isreload) { |
|||
if (isreload === 'true') this.$emit('reloadlist') |
|||
// 表单数据 |
|||
this.formobj = { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
} |
|||
this.$refs['form_obj'].resetFields() |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
.rowStyle { |
|||
border-left: 0px; |
|||
} |
|||
.colOneStyle { |
|||
border-right: 0px !important; |
|||
border-bottom: 0px !important; |
|||
} |
|||
</style> |
|||
|
@ -0,0 +1,392 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!-- Start 列表页面 --> |
|||
<div v-show="viewState == 1"> |
|||
<button-bar view-title="待核对单车返利列表" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> |
|||
<div class="main-content"> |
|||
<div class="switch_btn"> |
|||
<el-button :class="{btn_style:viewState === 1}">待核对</el-button> |
|||
<el-button class="" @click="handleClick">核对审核申请</el-button> |
|||
</div> |
|||
<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" label-width="100px" class="tab-header"> |
|||
<el-form-item label="品牌"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车架号"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="创建日期"> |
|||
<el-date-picker v-model="listQuery.params.createStartTime" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.createEndTime" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/> |
|||
</el-form-item> |
|||
<el-form-item label="返利类型"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="返利名称"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="上传状态"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center;"> |
|||
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="listtop"> |
|||
<div class="tit">单车返利待核对列表</div> |
|||
<div> |
|||
<el-button size="mini" type="success">导入</el-button> |
|||
<el-button size="mini" type="success">导出</el-button> |
|||
</div> |
|||
</div> |
|||
<div class=""> |
|||
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|||
<el-table-column fixed type="selection" align="center" width="50px"/> |
|||
<el-table-column fixed label="序号" type="index" :index="indexMethod" align="center" width="80px"/> |
|||
<el-table-column label="上传状态" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.nodeState }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="品牌" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createTime }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车型" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.applyPeoName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车架号" align="center" width="250"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createOrgName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="厂家结算价" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.applyTitle }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="其中运费" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="创建日期" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利类型" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利名称" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="计算标准" align="center" width="100"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预计返利" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="所属年月" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预提日期" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传日期" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传金额" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="二次上传日期" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="二次上传金额" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="待确定金额" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="费用" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="是否调整" align="center" width="100"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="调整金额" align="center" width="100"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="调整说明" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="操作" align="center" width="180px" > |
|||
<template slot-scope="scope"> |
|||
<el-button type="primary" size="mini" @click="toEdit(scope.row)">保存</el-button> |
|||
<el-button type="primary" size="mini" @click="toInfo(scope.row)">调整</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
<div class="pages"> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<bicyclerebatecheck v-show="viewState == 2" ref="divCheck" @doback="resetState"/> |
|||
<bicyclerebatecheckAdd v-show="viewState == 3" ref="divCheckAdd" @doback="resetState"/> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/othermenu/shangzhuangtiaojia' |
|||
import Pagination from '@/components/pagination' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
import bicyclerebatecheck from './bicyclerebatecheck' |
|||
import bicyclerebatecheckAdd from './bicyclerebatecheckAdd' |
|||
|
|||
export default { |
|||
name: 'bicyclerebatetobechecked', |
|||
components: { |
|||
Pagination, |
|||
ButtonBar, |
|||
bicyclerebatecheck, |
|||
bicyclerebatecheckAdd |
|||
}, |
|||
data() { |
|||
return { |
|||
btndisabled: false, |
|||
btnList: [ |
|||
{ |
|||
type: 'primary', |
|||
size: 'small', |
|||
icon: '', |
|||
btnKey: 'toAdd', |
|||
btnLabel: '核对审核申请' |
|||
}, |
|||
{ |
|||
type: 'primary', |
|||
size: 'small', |
|||
icon: '', |
|||
btnKey: 'toAdd', |
|||
btnLabel: '调整' |
|||
}, |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
viewState: 3, |
|||
// 查询条件 ----------- |
|||
tableKey: 0, |
|||
list: [], |
|||
sids: [], |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
listQuery: { |
|||
params: { |
|||
createBySid: '', |
|||
createEndTime: '', |
|||
createStartTime: '' |
|||
}, |
|||
current: 1, |
|||
size: 5, |
|||
total: 0 |
|||
}, |
|||
rules: {} |
|||
} |
|||
}, |
|||
created() { |
|||
// 加载列表 |
|||
this.getList() |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
clicksearchShow() { |
|||
this.isSearchShow = !this.isSearchShow |
|||
if (this.isSearchShow) { |
|||
this.searchxianshitit = '隐藏查询条件' |
|||
} else { |
|||
this.searchxianshitit = '显示查询条件' |
|||
} |
|||
}, |
|||
btnHandle(btnKey) { |
|||
console.log('XXXXXXXXXXXXXXX ' + btnKey) |
|||
switch (btnKey) { |
|||
case 'toAdd': |
|||
this.toAdd() |
|||
break |
|||
case 'doImport': |
|||
this.doImport() |
|||
break |
|||
case 'doDel': |
|||
this.doDel() |
|||
break |
|||
case 'doClose': |
|||
this.doClose() |
|||
break |
|||
default: |
|||
break |
|||
} |
|||
}, |
|||
// 序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
console.log('sids', this.sids) |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listQuery.params.createBySid = window.sessionStorage.getItem('userSid') |
|||
req.listPage(this.listQuery).then((response) => { |
|||
console.log('列表查询结果:', response) |
|||
this.listLoading = false |
|||
if (response.success && response.data && response.data.total > 0) { |
|||
this.list = response.data.records |
|||
this.listQuery.total = response.data.total |
|||
} else { |
|||
this.list = [] |
|||
this.listQuery.total = 0 |
|||
} |
|||
}) |
|||
}, |
|||
// 查询按钮 |
|||
handleFilter() { |
|||
this.listQuery.current = 1 |
|||
this.getList() |
|||
}, |
|||
handleReset() { |
|||
this.listQuery = { |
|||
params: { |
|||
createBySid: '', |
|||
createEndTime: '', |
|||
createStartTime: '' |
|||
}, |
|||
current: 1, |
|||
size: 5, |
|||
total: 0 |
|||
} |
|||
this.getList() |
|||
}, |
|||
handleClick() { |
|||
this.viewState = 2 |
|||
}, |
|||
toAdd() { |
|||
this.viewState = 2 |
|||
this.$refs['divAdd'].showAdd(this.listQuery.params.createOrgSid) |
|||
}, |
|||
toEdit(row) { |
|||
this.viewState = 3 |
|||
this.$refs['divAdd'].showEdit(row) |
|||
}, |
|||
toInfo(row) { |
|||
this.viewState = 4 |
|||
this.$refs['divInfo'].showInfo(row) |
|||
}, |
|||
doDel() { |
|||
if (this.sids.length === 0) { |
|||
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' }) |
|||
return |
|||
} |
|||
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?' |
|||
this.$confirm(tip, '提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
type: 'warning' |
|||
}).then(() => { |
|||
const loading = this.$loading({ |
|||
lock: true, |
|||
text: 'Loading', |
|||
spinner: 'el-icon-loading', |
|||
background: 'rgba(0, 0, 0, 0.7)' |
|||
}) |
|||
req.delete(this.sids).then(resp => { |
|||
if (resp.success) { |
|||
this.$message({ type: 'success', message: resp.msg, showClose: true }) |
|||
} |
|||
this.getList() |
|||
loading.close() |
|||
}).catch(e => { |
|||
loading.close() |
|||
}) |
|||
}).catch(() => { |
|||
}) |
|||
}, |
|||
resetState() { |
|||
this.viewState = 1 |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
.switch_btn { |
|||
padding: 15px 0 10px 0; |
|||
} |
|||
.btn_style { |
|||
background-color: #018ad2; |
|||
color: white; |
|||
font-weight: 600; |
|||
} |
|||
</style> |
@ -0,0 +1,206 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<!--标题按钮部分开始--> |
|||
<div class="tab-header webtop"> |
|||
<!--标题--> |
|||
<div>{{ viewTitle }}</div> |
|||
<!--start 添加修改按钮--> |
|||
<div> |
|||
<el-button type="danger" size="small">删除</el-button> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<!--标题按钮部分结束--> |
|||
<!--Start 新增修改部分--> |
|||
<div class="listconadd"> |
|||
<div class="titwu"><span>单车返利待核对申请明细</span></div> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd"> |
|||
<el-table :key="tableKey" :data="formobj.baseVehinstallModpricedetails" :index="index" border style="width: 100%" @selection-change="handleSelectionChange"> |
|||
<el-table-column fixed type="selection" align="center" width="50px"/> |
|||
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column label="品牌" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.jacketName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车型" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车架号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modelName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="厂家合同价" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-button type="primary" size="mini" @click="handleLook(scope.row)">查看</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="其中运费" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="创建日期" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利类型" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利名称" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预计返利" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="所属年月" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传日期" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="待确定金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="费用" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="是否调整" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="调整金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="调整说明" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!--End 添加修改部分--> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/othermenu/shangzhuangtiaojia' |
|||
import { getPathSidByUserSid, fetchBySid } from '@/api/cheliang/dictcommons' |
|||
|
|||
export default { |
|||
name: 'bicyclerebatetobecheckedAdd', |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
index: 0, |
|||
tableKey: 0, |
|||
viewState: 1, |
|||
sids: [], |
|||
// 表单数据 |
|||
formobj: { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
}, |
|||
rules: {}, |
|||
submitdisabled: false |
|||
} |
|||
}, |
|||
methods: { |
|||
init() { |
|||
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((resp) => { |
|||
if (resp.success) { |
|||
this.formobj.createOrgSid = resp.data |
|||
this.formobj.useOrgSid = resp.data |
|||
fetchBySid(this.formobj.createOrgSid).then((res) => { |
|||
if (res.success) { |
|||
this.formobj.createOrgName = res.data.name |
|||
this.formobj.useOrgName = res.data.name |
|||
} |
|||
}) |
|||
} |
|||
}) |
|||
}, |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
console.log('sids', this.sids) |
|||
}, |
|||
showInfo(row) { |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.viewTitle = '待预提单车返利明细' |
|||
console.log('编辑回显', row.sid) |
|||
req.fetchBySid(row.sid).then((resp) => { |
|||
this.formobj = resp.data |
|||
}).catch((e) => { |
|||
this.formobj = row |
|||
}) |
|||
}, |
|||
// 返回(===既判断) |
|||
handleReturn(isreload) { |
|||
if (isreload === 'true') this.$emit('reloadlist') |
|||
// 表单数据 |
|||
this.formobj = { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
} |
|||
this.$refs['form_obj'].resetFields() |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
|||
|
@ -0,0 +1,205 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<!--标题按钮部分开始--> |
|||
<div class="tab-header webtop"> |
|||
<!--标题--> |
|||
<div>{{ viewTitle }}</div> |
|||
<!--start 添加修改按钮--> |
|||
<div> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<!--标题按钮部分结束--> |
|||
<!--Start 新增修改部分--> |
|||
<div class="listconadd"> |
|||
<div class="titwu"><span>单车返利待核对申请明细</span></div> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd"> |
|||
<el-table :key="tableKey" :data="formobj.baseVehinstallModpricedetails" :index="index" border style="width: 100%" @selection-change="handleSelectionChange"> |
|||
<el-table-column fixed type="selection" align="center" width="50px"/> |
|||
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column label="品牌" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.jacketName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车型" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车架号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modelName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="厂家合同价" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="其中运费" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="创建日期" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利类型" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利名称" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预计返利" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="所属年月" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传日期" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="待确定金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="费用" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="是否调整" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="调整金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="调整说明" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!--End 添加修改部分--> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/othermenu/shangzhuangtiaojia' |
|||
import { getPathSidByUserSid, fetchBySid } from '@/api/cheliang/dictcommons' |
|||
|
|||
export default { |
|||
name: 'bicyclerebatetobecheckedInfo', |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
index: 0, |
|||
tableKey: 0, |
|||
viewState: 1, |
|||
sids: [], |
|||
// 表单数据 |
|||
formobj: { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
}, |
|||
rules: {}, |
|||
submitdisabled: false |
|||
} |
|||
}, |
|||
methods: { |
|||
init() { |
|||
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((resp) => { |
|||
if (resp.success) { |
|||
this.formobj.createOrgSid = resp.data |
|||
this.formobj.useOrgSid = resp.data |
|||
fetchBySid(this.formobj.createOrgSid).then((res) => { |
|||
if (res.success) { |
|||
this.formobj.createOrgName = res.data.name |
|||
this.formobj.useOrgName = res.data.name |
|||
} |
|||
}) |
|||
} |
|||
}) |
|||
}, |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
console.log('sids', this.sids) |
|||
}, |
|||
showInfo(row) { |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.viewTitle = '待预提单车返利明细' |
|||
console.log('编辑回显', row.sid) |
|||
req.fetchBySid(row.sid).then((resp) => { |
|||
this.formobj = resp.data |
|||
}).catch((e) => { |
|||
this.formobj = row |
|||
}) |
|||
}, |
|||
// 返回(===既判断) |
|||
handleReturn(isreload) { |
|||
if (isreload === 'true') this.$emit('reloadlist') |
|||
// 表单数据 |
|||
this.formobj = { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
} |
|||
this.$refs['form_obj'].resetFields() |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
|||
|
@ -0,0 +1,277 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!-- Start 列表页面 --> |
|||
<div> |
|||
<button-bar view-title="已核对单车返利列表" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> |
|||
<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" label-width="100px" class="tab-header"> |
|||
<el-form-item label="品牌"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车型"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车架号"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="创建日期"> |
|||
<el-date-picker v-model="listQuery.params.createStartTime" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.createEndTime" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/> |
|||
</el-form-item> |
|||
<el-form-item label="返利类型"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="返利名称"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="状态"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center;"> |
|||
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="listtop"> |
|||
<div class="tit">已核对单车返利列表</div> |
|||
</div> |
|||
<div class=""> |
|||
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|||
<el-table-column fixed type="selection" align="center" width="50px"/> |
|||
<el-table-column fixed label="序号" type="index" :index="indexMethod" align="center" width="80px"/> |
|||
<el-table-column label="品牌" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createTime }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车型" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.applyPeoName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车架号" align="center" width="250"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createOrgName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="厂家合同价" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.applyTitle }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="其中运费" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="创建日期" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利类型" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利名称" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预计返利" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="所属日期" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传日期" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传金额" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="待确定金额" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="费用" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="是否调整" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="调整金额" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="调整说明" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
<div class="pages"> |
|||
<!-- 翻页 --> |
|||
<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 req from '@/api/othermenu/shangzhuangtiaojia' |
|||
import Pagination from '@/components/pagination' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
|
|||
export default { |
|||
name: 'yiheduidanchefanli', |
|||
components: { |
|||
Pagination, |
|||
ButtonBar |
|||
}, |
|||
data() { |
|||
return { |
|||
btndisabled: false, |
|||
btnList: [ |
|||
{ |
|||
type: 'primary', |
|||
size: 'small', |
|||
icon: '', |
|||
btnKey: 'doClose', |
|||
btnLabel: '确定' |
|||
}, |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
// 查询条件 ----------- |
|||
tableKey: 0, |
|||
list: [], |
|||
sids: [], |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
listQuery: { |
|||
params: { |
|||
createBySid: '', |
|||
createEndTime: '', |
|||
createStartTime: '' |
|||
}, |
|||
current: 1, |
|||
size: 5, |
|||
total: 0 |
|||
}, |
|||
rules: {} |
|||
} |
|||
}, |
|||
created() { |
|||
// 加载列表 |
|||
this.getList() |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
clicksearchShow() { |
|||
this.isSearchShow = !this.isSearchShow |
|||
if (this.isSearchShow) { |
|||
this.searchxianshitit = '隐藏查询条件' |
|||
} else { |
|||
this.searchxianshitit = '显示查询条件' |
|||
} |
|||
}, |
|||
btnHandle(btnKey) { |
|||
console.log('XXXXXXXXXXXXXXX ' + btnKey) |
|||
switch (btnKey) { |
|||
case 'doClose': |
|||
this.doClose() |
|||
break |
|||
default: |
|||
break |
|||
} |
|||
}, |
|||
// 序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
console.log('sids', this.sids) |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listQuery.params.createBySid = window.sessionStorage.getItem('userSid') |
|||
req.listPage(this.listQuery).then((response) => { |
|||
console.log('列表查询结果:', response) |
|||
this.listLoading = false |
|||
if (response.success && response.data && response.data.total > 0) { |
|||
this.list = response.data.records |
|||
this.listQuery.total = response.data.total |
|||
} else { |
|||
this.list = [] |
|||
this.listQuery.total = 0 |
|||
} |
|||
}) |
|||
}, |
|||
// 查询按钮 |
|||
handleFilter() { |
|||
this.listQuery.current = 1 |
|||
this.getList() |
|||
}, |
|||
handleReset() { |
|||
this.listQuery = { |
|||
params: { |
|||
createBySid: '', |
|||
createEndTime: '', |
|||
createStartTime: '' |
|||
}, |
|||
current: 1, |
|||
size: 5, |
|||
total: 0 |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,286 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!-- Start 列表页面 --> |
|||
<div v-show="viewState == 1"> |
|||
<button-bar view-title="单车返利预提申请管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> |
|||
<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" label-width="100px" class="tab-header"> |
|||
<el-form-item label="品牌"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="创建日期"> |
|||
<el-date-picker v-model="listQuery.params.createStartTime" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.createEndTime" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center;"> |
|||
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="listtop"> |
|||
<div class="tit">单车返利预提申请列表</div> |
|||
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<div class=""> |
|||
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|||
<el-table-column fixed type="selection" align="center" width="50px"/> |
|||
<el-table-column fixed label="序号" type="index" :index="indexMethod" align="center" width="80px"/> |
|||
<el-table-column fixed label="操作" align="center" width="180px" > |
|||
<template slot-scope="scope"> |
|||
<el-button type="primary" size="mini" @click="toEdit(scope.row)">办理</el-button> |
|||
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="状态" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.nodeState }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="分公司" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createTime }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="品牌" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createTime }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预提申请" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.applyPeoName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预提返利" align="center" width="250"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createOrgName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="创建日期" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.applyTitle }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="创建人" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
<div class="pages"> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<bicyclerebatewithholdingAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/> |
|||
<bicyclerebatewithholdingInfo v-show="viewState == 4" ref="divInfo" @doback="resetState"/> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/othermenu/shangzhuangtiaojia' |
|||
import Pagination from '@/components/pagination' |
|||
import pageye from '@/components/pagination/pageye' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
import bicyclerebatewithholdingAdd from './bicyclerebatewithholdingAdd' |
|||
import bicyclerebatewithholdingInfo from './bicyclerebatewithholdingInfo' |
|||
|
|||
export default { |
|||
name: 'bicyclerebatewithholding', |
|||
components: { |
|||
Pagination, |
|||
pageye, |
|||
ButtonBar, |
|||
bicyclerebatewithholdingAdd, |
|||
bicyclerebatewithholdingInfo |
|||
}, |
|||
data() { |
|||
return { |
|||
btndisabled: false, |
|||
btnList: [ |
|||
{ |
|||
type: 'primary', |
|||
size: 'small', |
|||
icon: 'plus', |
|||
btnKey: 'toAdd', |
|||
btnLabel: '新增' |
|||
}, |
|||
{ |
|||
type: 'danger', |
|||
size: 'small', |
|||
icon: 'del', |
|||
btnKey: 'doDel', |
|||
btnLabel: '删除' |
|||
}, |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
viewState: 1, |
|||
// 查询条件 ----------- |
|||
tableKey: 0, |
|||
list: [], |
|||
sids: [], |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
listQuery: { |
|||
params: { |
|||
createBySid: '', |
|||
createEndTime: '', |
|||
createStartTime: '' |
|||
}, |
|||
current: 1, |
|||
size: 5, |
|||
total: 0 |
|||
}, |
|||
rules: {} |
|||
} |
|||
}, |
|||
created() { |
|||
// 加载列表 |
|||
this.getList() |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
clicksearchShow() { |
|||
this.isSearchShow = !this.isSearchShow |
|||
if (this.isSearchShow) { |
|||
this.searchxianshitit = '隐藏查询条件' |
|||
} else { |
|||
this.searchxianshitit = '显示查询条件' |
|||
} |
|||
}, |
|||
btnHandle(btnKey) { |
|||
console.log('XXXXXXXXXXXXXXX ' + btnKey) |
|||
switch (btnKey) { |
|||
case 'toAdd': |
|||
this.toAdd() |
|||
break |
|||
case 'doDel': |
|||
this.doDel() |
|||
break |
|||
case 'doClose': |
|||
this.doClose() |
|||
break |
|||
default: |
|||
break |
|||
} |
|||
}, |
|||
// 序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
console.log('sids', this.sids) |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listQuery.params.createBySid = window.sessionStorage.getItem('userSid') |
|||
req.listPage(this.listQuery).then((response) => { |
|||
console.log('列表查询结果:', response) |
|||
this.listLoading = false |
|||
if (response.success && response.data && response.data.total > 0) { |
|||
this.list = response.data.records |
|||
this.listQuery.total = response.data.total |
|||
} else { |
|||
this.list = [] |
|||
this.listQuery.total = 0 |
|||
} |
|||
}) |
|||
}, |
|||
// 查询按钮 |
|||
handleFilter() { |
|||
this.listQuery.current = 1 |
|||
this.getList() |
|||
}, |
|||
handleReset() { |
|||
this.listQuery = { |
|||
params: { |
|||
createBySid: '', |
|||
createEndTime: '', |
|||
createStartTime: '' |
|||
}, |
|||
current: 1, |
|||
size: 5, |
|||
total: 0 |
|||
} |
|||
this.getList() |
|||
}, |
|||
toAdd() { |
|||
this.viewState = 2 |
|||
this.$refs['divAdd'].showAdd(this.listQuery.params.createOrgSid) |
|||
}, |
|||
toEdit(row) { |
|||
this.viewState = 3 |
|||
this.$refs['divAdd'].showEdit(row) |
|||
}, |
|||
toInfo(row) { |
|||
this.viewState = 4 |
|||
this.$refs['divInfo'].showInfo(row) |
|||
}, |
|||
doDel() { |
|||
if (this.sids.length === 0) { |
|||
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' }) |
|||
return |
|||
} |
|||
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?' |
|||
this.$confirm(tip, '提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
type: 'warning' |
|||
}).then(() => { |
|||
const loading = this.$loading({ |
|||
lock: true, |
|||
text: 'Loading', |
|||
spinner: 'el-icon-loading', |
|||
background: 'rgba(0, 0, 0, 0.7)' |
|||
}) |
|||
req.delete(this.sids).then(resp => { |
|||
if (resp.success) { |
|||
this.$message({ type: 'success', message: resp.msg, showClose: true }) |
|||
} |
|||
this.getList() |
|||
loading.close() |
|||
}).catch(e => { |
|||
loading.close() |
|||
}) |
|||
}).catch(() => { |
|||
}) |
|||
}, |
|||
resetState() { |
|||
this.viewState = 1 |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,248 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<!--标题按钮部分开始--> |
|||
<div class="tab-header webtop"> |
|||
<!--标题--> |
|||
<div>{{ viewTitle }}</div> |
|||
<!--start 添加修改按钮--> |
|||
<div> |
|||
<el-button type="primary" size="small" :disabled="submitdisabled" @click="save()">保存 |
|||
</el-button> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<!--标题按钮部分结束--> |
|||
<!--Start 新增修改部分--> |
|||
<div class="listconadd"> |
|||
<div class="titwu"><span>单车返利预提申请</span></div> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd"> |
|||
<el-row class="rowStyle"> |
|||
<el-col :span="24" class="tleftb colOneStyle"> |
|||
<el-button size="small" type="primary" @click="handleSelect()">选择</el-button> |
|||
</el-col> |
|||
</el-row> |
|||
<el-table :key="tableKey" :data="formobj.baseVehinstallModpricedetails" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column fixed prop="name" label="操作" width="100px" align="center" header-align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-button size="mini" type="danger" @click="dataDelete(scope.$index)">删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利类型" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.jacketName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="台数" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预提返利" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modelName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="明细" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-button type="primary" size="mini" @click="handleLook(scope.row)">查看</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="备注" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!--End 添加修改部分--> |
|||
<danchefanliselect v-show="viewState == 2" ref="divSelect" @doback="resetState" @backData="backData"/> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/othermenu/shangzhuangtiaojia' |
|||
import { getPathSidByUserSid, fetchBySid } from '@/api/cheliang/dictcommons' |
|||
import danchefanliselect from './relation/danchefanliselect' |
|||
|
|||
export default { |
|||
name: 'bicyclerebatewithholdingAdd', |
|||
components: { |
|||
danchefanliselect |
|||
}, |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
index: 0, |
|||
tableKey: 0, |
|||
viewState: 1, |
|||
// 表单数据 |
|||
formobj: { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
}, |
|||
rules: {}, |
|||
submitdisabled: false |
|||
} |
|||
}, |
|||
methods: { |
|||
// 获取制单日期 |
|||
newDate() { |
|||
let date = new Date() |
|||
let year = date.getFullYear() // 年 |
|||
let month = date.getMonth() + 1 // 月 |
|||
let day = date.getDate() // 日 |
|||
if (month < 10) { |
|||
month = '0' + month |
|||
} |
|||
if (day < 10) { |
|||
day = '0' + day |
|||
} |
|||
this.formobj.createTime = year + '-' + month + '-' + day |
|||
}, |
|||
init() { |
|||
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((resp) => { |
|||
if (resp.success) { |
|||
this.formobj.createOrgSid = resp.data |
|||
this.formobj.useOrgSid = resp.data |
|||
fetchBySid(this.formobj.createOrgSid).then((res) => { |
|||
if (res.success) { |
|||
this.formobj.createOrgName = res.data.name |
|||
this.formobj.useOrgName = res.data.name |
|||
} |
|||
}) |
|||
} |
|||
}) |
|||
}, |
|||
showAdd() { |
|||
this.init() |
|||
this.newDate() |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.formobj.createBySid = window.sessionStorage.getItem('userSid') |
|||
this.formobj.applyPeoName = window.sessionStorage.getItem('name') |
|||
this.viewTitle = '【新增】单车返利预提申请' |
|||
}, |
|||
showEdit(row) { |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.viewTitle = '【编辑】单车返利预提申请' |
|||
console.log('编辑回显', row.sid) |
|||
req.fetchBySid(row.sid).then((resp) => { |
|||
this.formobj = resp.data |
|||
}).catch((e) => { |
|||
this.formobj = row |
|||
}) |
|||
}, |
|||
// 明细表添加一行数据 |
|||
handleSelect() { |
|||
this.viewState = 2 |
|||
this.$refs['divSelect'].showData(this.formobj.baseVehinstallModpricedetails) |
|||
}, |
|||
backData(value) { |
|||
this.viewState = 1 |
|||
if (value.length > 0) { |
|||
value.forEach((e) => { |
|||
this.formobj.baseVehinstallModpricedetails.push({ |
|||
adjustVehGuidedPrice: '', |
|||
costPrice: e.costPrice, |
|||
guidedPrice: e.guidedPrice, |
|||
incOrDecInPrice: '', |
|||
jacketName: e.jacketName, |
|||
jacketSid: e.jacketSid, |
|||
mainSid: '', |
|||
modelName: e.modelName, |
|||
modelSid: e.modelSid, |
|||
sid: '', |
|||
vehGuidedPrice: '', |
|||
vinNo: e.vinNo, |
|||
remarks: '' |
|||
}) |
|||
}) |
|||
} |
|||
}, |
|||
// 明细表删除一行数据 |
|||
dataDelete(index) { |
|||
this.formobj.baseVehinstallModpricedetails.splice(index, 1) |
|||
}, |
|||
handleLook(row) {}, |
|||
resetState() { |
|||
this.viewState = 1 |
|||
}, |
|||
save() { |
|||
this.$refs['form_obj'].validate((valid) => { |
|||
if (valid) { |
|||
this.submitdisabled = true |
|||
req.saveOrUpdate(this.formobj).then((resp) => { |
|||
this.submitdisabled = false |
|||
if (resp.success) { |
|||
this.$message({ |
|||
showClose: true, |
|||
type: 'success', |
|||
message: resp.msg |
|||
}) |
|||
this.handleReturn('true') |
|||
} |
|||
}).catch(() => { |
|||
this.submitdisabled = false |
|||
}) |
|||
} else { |
|||
return false |
|||
} |
|||
}) |
|||
}, |
|||
// 返回(===既判断) |
|||
handleReturn(isreload) { |
|||
if (isreload === 'true') this.$emit('reloadlist') |
|||
// 表单数据 |
|||
this.formobj = { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
} |
|||
this.$refs['form_obj'].resetFields() |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
.title { |
|||
padding: 7px; |
|||
display: flex; |
|||
flex-direction: row; |
|||
justify-content: space-between; |
|||
align-items: center; |
|||
} |
|||
.rowStyle { |
|||
border-left: 0px; |
|||
} |
|||
.colOneStyle { |
|||
border-right: 0px !important; |
|||
border-bottom: 0px !important; |
|||
} |
|||
</style> |
|||
|
@ -0,0 +1,146 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<!--标题按钮部分开始--> |
|||
<div class="tab-header webtop"> |
|||
<!--标题--> |
|||
<div>{{ viewTitle }}</div> |
|||
<!--start 添加修改按钮--> |
|||
<div> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<!--标题按钮部分结束--> |
|||
<!--Start 新增修改部分--> |
|||
<div class="listconadd"> |
|||
<div class="titwu"><span>单车返利预提申请</span></div> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd"> |
|||
<el-table :key="tableKey" :data="formobj.baseVehinstallModpricedetails" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column label="返利类型" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.jacketName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="台数" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预提返利" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modelName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="明细" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-button type="primary" size="mini" @click="handleLook(scope.row)">查看</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="备注" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!--End 添加修改部分--> |
|||
<danchefanliInfo v-show="viewState == 2" ref="divInfo" @doback="resetState"/> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/othermenu/shangzhuangtiaojia' |
|||
import danchefanliInfo from './relation/danchefanliInfo' |
|||
|
|||
export default { |
|||
name: 'bicyclerebatewithholdingInfo', |
|||
components: { |
|||
danchefanliInfo |
|||
}, |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
index: 0, |
|||
tableKey: 0, |
|||
viewState: 1, |
|||
// 表单数据 |
|||
formobj: { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
}, |
|||
rules: {}, |
|||
submitdisabled: false |
|||
} |
|||
}, |
|||
methods: { |
|||
init() { |
|||
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((resp) => { |
|||
if (resp.success) { |
|||
this.formobj.createOrgSid = resp.data |
|||
this.formobj.useOrgSid = resp.data |
|||
fetchBySid(this.formobj.createOrgSid).then((res) => { |
|||
if (res.success) { |
|||
this.formobj.createOrgName = res.data.name |
|||
this.formobj.useOrgName = res.data.name |
|||
} |
|||
}) |
|||
} |
|||
}) |
|||
}, |
|||
showInfo(row) { |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.viewTitle = '单车返利预提申请详情' |
|||
console.log('编辑回显', row.sid) |
|||
req.fetchBySid(row.sid).then((resp) => { |
|||
this.formobj = resp.data |
|||
}).catch((e) => { |
|||
this.formobj = row |
|||
}) |
|||
}, |
|||
handleLook(row) { |
|||
this.viewState = 2 |
|||
this.$refs['divInfo'].showInfo(row) |
|||
}, |
|||
resetState() { |
|||
this.viewState = 1 |
|||
}, |
|||
// 返回(===既判断) |
|||
handleReturn(isreload) { |
|||
if (isreload === 'true') this.$emit('reloadlist') |
|||
// 表单数据 |
|||
this.formobj = { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
} |
|||
this.$refs['form_obj'].resetFields() |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
|||
|
@ -0,0 +1,176 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<!--标题按钮部分开始--> |
|||
<div class="tab-header webtop"> |
|||
<!--标题--> |
|||
<div>{{ viewTitle }}</div> |
|||
<!--start 添加修改按钮--> |
|||
<div> |
|||
<el-button type="danger" size="small">删除</el-button> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<!--标题按钮部分结束--> |
|||
<!--Start 新增修改部分--> |
|||
<div class="listconadd"> |
|||
<div class="titwu"><span>待预提单车返利明细</span></div> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd"> |
|||
<el-table :key="tableKey" :data="formobj.baseVehinstallModpricedetails" :index="index" border style="width: 100%" @selection-change="handleSelectionChange"> |
|||
<el-table-column fixed type="selection" align="center" width="50px"/> |
|||
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column label="品牌" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.jacketName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车型" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车架号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modelName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="厂家结算价" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-button type="primary" size="mini" @click="handleLook(scope.row)">查看</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="其中运费" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="创建日期" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利类型" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利名称" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="计算标准" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预计金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="所属年月" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!--End 添加修改部分--> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/othermenu/shangzhuangtiaojia' |
|||
import { getPathSidByUserSid, fetchBySid } from '@/api/cheliang/dictcommons' |
|||
|
|||
export default { |
|||
name: 'danchefanliAdd', |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
index: 0, |
|||
tableKey: 0, |
|||
viewState: 1, |
|||
sids: [], |
|||
// 表单数据 |
|||
formobj: { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
}, |
|||
rules: {}, |
|||
submitdisabled: false |
|||
} |
|||
}, |
|||
methods: { |
|||
init() { |
|||
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((resp) => { |
|||
if (resp.success) { |
|||
this.formobj.createOrgSid = resp.data |
|||
this.formobj.useOrgSid = resp.data |
|||
fetchBySid(this.formobj.createOrgSid).then((res) => { |
|||
if (res.success) { |
|||
this.formobj.createOrgName = res.data.name |
|||
this.formobj.useOrgName = res.data.name |
|||
} |
|||
}) |
|||
} |
|||
}) |
|||
}, |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
console.log('sids', this.sids) |
|||
}, |
|||
showInfo(row) { |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.viewTitle = '待预提单车返利明细' |
|||
console.log('编辑回显', row.sid) |
|||
req.fetchBySid(row.sid).then((resp) => { |
|||
this.formobj = resp.data |
|||
}).catch((e) => { |
|||
this.formobj = row |
|||
}) |
|||
}, |
|||
// 返回(===既判断) |
|||
handleReturn(isreload) { |
|||
if (isreload === 'true') this.$emit('reloadlist') |
|||
// 表单数据 |
|||
this.formobj = { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
} |
|||
this.$refs['form_obj'].resetFields() |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
|||
|
@ -0,0 +1,165 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<!--标题按钮部分开始--> |
|||
<div class="tab-header webtop"> |
|||
<!--标题--> |
|||
<div>{{ viewTitle }}</div> |
|||
<!--start 添加修改按钮--> |
|||
<div> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<!--标题按钮部分结束--> |
|||
<!--Start 新增修改部分--> |
|||
<div class="listconadd"> |
|||
<div class="titwu"><span>待预提单车返利明细</span></div> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd"> |
|||
<el-table :key="tableKey" :data="formobj.baseVehinstallModpricedetails" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column label="品牌" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.jacketName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车型" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车架号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modelName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="厂家结算价" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-button type="primary" size="mini" @click="handleLook(scope.row)">查看</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="其中运费" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="创建日期" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利类型" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利名称" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="计算标准" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预计金额" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="所属年月" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!--End 添加修改部分--> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/othermenu/shangzhuangtiaojia' |
|||
import { getPathSidByUserSid, fetchBySid } from '@/api/cheliang/dictcommons' |
|||
|
|||
export default { |
|||
name: 'danchefanliInfo', |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
index: 0, |
|||
tableKey: 0, |
|||
viewState: 1, |
|||
// 表单数据 |
|||
formobj: { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
}, |
|||
rules: {}, |
|||
submitdisabled: false |
|||
} |
|||
}, |
|||
methods: { |
|||
init() { |
|||
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((resp) => { |
|||
if (resp.success) { |
|||
this.formobj.createOrgSid = resp.data |
|||
this.formobj.useOrgSid = resp.data |
|||
fetchBySid(this.formobj.createOrgSid).then((res) => { |
|||
if (res.success) { |
|||
this.formobj.createOrgName = res.data.name |
|||
this.formobj.useOrgName = res.data.name |
|||
} |
|||
}) |
|||
} |
|||
}) |
|||
}, |
|||
showInfo(row) { |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.viewTitle = '待预提单车返利明细' |
|||
console.log('编辑回显', row.sid) |
|||
req.fetchBySid(row.sid).then((resp) => { |
|||
this.formobj = resp.data |
|||
}).catch((e) => { |
|||
this.formobj = row |
|||
}) |
|||
}, |
|||
// 返回(===既判断) |
|||
handleReturn(isreload) { |
|||
if (isreload === 'true') this.$emit('reloadlist') |
|||
// 表单数据 |
|||
this.formobj = { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
} |
|||
this.$refs['form_obj'].resetFields() |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
|||
|
@ -0,0 +1,246 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!-- Start 列表页面 --> |
|||
<div> |
|||
<button-bar view-title="待预提单车返利列表" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> |
|||
<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" label-width="100px" class="tab-header"> |
|||
<el-form-item label="品牌"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车型"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车架号"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="创建日期"> |
|||
<el-date-picker v-model="listQuery.params.createStartTime" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.createEndTime" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/> |
|||
</el-form-item> |
|||
<el-form-item label="返利类型"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="返利名称"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="状态"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center;"> |
|||
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="listtop"> |
|||
<div class="tit">待预提单车返利列表</div> |
|||
<el-button size="small" type="primary">确定</el-button> |
|||
</div> |
|||
<div class=""> |
|||
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|||
<el-table-column fixed type="selection" align="center" width="50px"/> |
|||
<el-table-column fixed label="序号" type="index" :index="indexMethod" align="center" width="80px"/> |
|||
<el-table-column label="状态" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.nodeState }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="品牌" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createTime }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车型" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.applyPeoName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车架号" align="center" width="250"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createOrgName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="厂家结算价" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.applyTitle }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="其中运费" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="创建日期" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利类型" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利名称" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="计算标准" align="center" width="100"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预计返利" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="所属年月" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
<div class="pages"> |
|||
<!-- 翻页 --> |
|||
<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 req from '@/api/othermenu/shangzhuangtiaojia' |
|||
import Pagination from '@/components/pagination' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
|
|||
export default { |
|||
name: 'bicyclerebatemanagement', |
|||
components: { |
|||
Pagination, |
|||
ButtonBar |
|||
}, |
|||
data() { |
|||
return { |
|||
btndisabled: false, |
|||
btnList: [ |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
// 查询条件 ----------- |
|||
tableKey: 0, |
|||
list: [], |
|||
sids: [], |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
listQuery: { |
|||
params: { |
|||
createBySid: '', |
|||
createEndTime: '', |
|||
createStartTime: '' |
|||
}, |
|||
current: 1, |
|||
size: 5, |
|||
total: 0 |
|||
}, |
|||
rules: {} |
|||
} |
|||
}, |
|||
created() { |
|||
// 加载列表 |
|||
this.getList() |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
clicksearchShow() { |
|||
this.isSearchShow = !this.isSearchShow |
|||
if (this.isSearchShow) { |
|||
this.searchxianshitit = '隐藏查询条件' |
|||
} else { |
|||
this.searchxianshitit = '显示查询条件' |
|||
} |
|||
}, |
|||
btnHandle(btnKey) { |
|||
console.log('XXXXXXXXXXXXXXX ' + btnKey) |
|||
switch (btnKey) { |
|||
case 'doClose': |
|||
this.doClose() |
|||
break |
|||
default: |
|||
break |
|||
} |
|||
}, |
|||
// 序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
console.log('sids', this.sids) |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listQuery.params.createBySid = window.sessionStorage.getItem('userSid') |
|||
req.listPage(this.listQuery).then((response) => { |
|||
console.log('列表查询结果:', response) |
|||
this.listLoading = false |
|||
if (response.success && response.data && response.data.total > 0) { |
|||
this.list = response.data.records |
|||
this.listQuery.total = response.data.total |
|||
} else { |
|||
this.list = [] |
|||
this.listQuery.total = 0 |
|||
} |
|||
}) |
|||
}, |
|||
// 查询按钮 |
|||
handleFilter() { |
|||
this.listQuery.current = 1 |
|||
this.getList() |
|||
}, |
|||
handleReset() { |
|||
this.listQuery = { |
|||
params: { |
|||
createBySid: '', |
|||
createEndTime: '', |
|||
createStartTime: '' |
|||
}, |
|||
current: 1, |
|||
size: 5, |
|||
total: 0 |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,388 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!-- Start 列表页面 --> |
|||
<div v-show="viewState == 1"> |
|||
<button-bar view-title="单车返利管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> |
|||
<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" label-width="100px" class="tab-header"> |
|||
<el-form-item label="品牌"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车型"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车架号"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="创建日期"> |
|||
<el-date-picker v-model="listQuery.params.createStartTime" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.createEndTime" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/> |
|||
</el-form-item> |
|||
<el-form-item label="返利类型"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="返利名称"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="状态"> |
|||
<el-input v-model="listQuery.params.mainSid" placeholder="请输入车架号" clearable/> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center;"> |
|||
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button> |
|||
<el-button type="primary" size="small">待确认返利</el-button> |
|||
<el-button type="primary" size="small">未调整</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="listtop"> |
|||
<div class="tit">单车返利列表</div> |
|||
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<div class=""> |
|||
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|||
<el-table-column fixed type="selection" align="center" width="50px"/> |
|||
<el-table-column fixed label="序号" type="index" :index="indexMethod" align="center" width="80px"/> |
|||
<el-table-column fixed label="操作" align="center" width="180px" > |
|||
<template slot-scope="scope"> |
|||
<el-button type="primary" size="mini" @click="toEdit(scope.row)">编辑</el-button> |
|||
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="状态" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.nodeState }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="品牌" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createTime }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车型" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.applyPeoName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车架号" align="center" width="250"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createOrgName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="厂家结算价" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.applyTitle }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="其中运费" align="center" width="200"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="创建日期" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利类型" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="返利名称" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="计算标准" align="center" width="100"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预计返利" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="所属年月" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预提日期" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传日期" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="上传金额" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="二次上传日期" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="二次上传金额" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="待确定金额" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="费用" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="是否调整" align="center" width="100"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="调整金额" align="center" width="100"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="调整说明" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modpriceReason }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
<div class="pages"> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<bicyclerebatemanagementAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/> |
|||
<bicyclerebatemanagementInfo v-show="viewState == 4" ref="divInfo" @doback="resetState"/> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/othermenu/shangzhuangtiaojia' |
|||
import Pagination from '@/components/pagination' |
|||
import pageye from '@/components/pagination/pageye' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
import bicyclerebatemanagementAdd from './bicyclerebatemanagementAdd' |
|||
import bicyclerebatemanagementInfo from './bicyclerebatemanagementInfo' |
|||
|
|||
export default { |
|||
name: 'bicyclerebatemanagement', |
|||
components: { |
|||
Pagination, |
|||
pageye, |
|||
ButtonBar, |
|||
bicyclerebatemanagementAdd, |
|||
bicyclerebatemanagementInfo |
|||
}, |
|||
data() { |
|||
return { |
|||
btndisabled: false, |
|||
btnList: [ |
|||
{ |
|||
type: 'primary', |
|||
size: 'small', |
|||
icon: 'plus', |
|||
btnKey: 'toAdd', |
|||
btnLabel: '新增' |
|||
}, |
|||
{ |
|||
type: 'success', |
|||
size: 'small', |
|||
icon: 'Import', |
|||
btnKey: 'doImport', |
|||
btnLabel: '导入' |
|||
}, |
|||
{ |
|||
type: 'danger', |
|||
size: 'small', |
|||
icon: 'del', |
|||
btnKey: 'doDel', |
|||
btnLabel: '删除' |
|||
}, |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
viewState: 4, |
|||
// 查询条件 ----------- |
|||
tableKey: 0, |
|||
list: [], |
|||
sids: [], |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
listQuery: { |
|||
params: { |
|||
createBySid: '', |
|||
createEndTime: '', |
|||
createStartTime: '' |
|||
}, |
|||
current: 1, |
|||
size: 5, |
|||
total: 0 |
|||
}, |
|||
rules: {} |
|||
} |
|||
}, |
|||
created() { |
|||
// 加载列表 |
|||
this.getList() |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
clicksearchShow() { |
|||
this.isSearchShow = !this.isSearchShow |
|||
if (this.isSearchShow) { |
|||
this.searchxianshitit = '隐藏查询条件' |
|||
} else { |
|||
this.searchxianshitit = '显示查询条件' |
|||
} |
|||
}, |
|||
btnHandle(btnKey) { |
|||
console.log('XXXXXXXXXXXXXXX ' + btnKey) |
|||
switch (btnKey) { |
|||
case 'toAdd': |
|||
this.toAdd() |
|||
break |
|||
case 'doImport': |
|||
this.doImport() |
|||
break |
|||
case 'doDel': |
|||
this.doDel() |
|||
break |
|||
case 'doClose': |
|||
this.doClose() |
|||
break |
|||
default: |
|||
break |
|||
} |
|||
}, |
|||
// 序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
console.log('sids', this.sids) |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listQuery.params.createBySid = window.sessionStorage.getItem('userSid') |
|||
req.listPage(this.listQuery).then((response) => { |
|||
console.log('列表查询结果:', response) |
|||
this.listLoading = false |
|||
if (response.success && response.data && response.data.total > 0) { |
|||
this.list = response.data.records |
|||
this.listQuery.total = response.data.total |
|||
} else { |
|||
this.list = [] |
|||
this.listQuery.total = 0 |
|||
} |
|||
}) |
|||
}, |
|||
// 查询按钮 |
|||
handleFilter() { |
|||
this.listQuery.current = 1 |
|||
this.getList() |
|||
}, |
|||
handleReset() { |
|||
this.listQuery = { |
|||
params: { |
|||
createBySid: '', |
|||
createEndTime: '', |
|||
createStartTime: '' |
|||
}, |
|||
current: 1, |
|||
size: 5, |
|||
total: 0 |
|||
} |
|||
this.getList() |
|||
}, |
|||
toAdd() { |
|||
this.viewState = 2 |
|||
this.$refs['divAdd'].showAdd(this.listQuery.params.createOrgSid) |
|||
}, |
|||
toEdit(row) { |
|||
this.viewState = 3 |
|||
this.$refs['divAdd'].showEdit(row) |
|||
}, |
|||
toInfo(row) { |
|||
this.viewState = 4 |
|||
this.$refs['divInfo'].showInfo(row) |
|||
}, |
|||
doDel() { |
|||
if (this.sids.length === 0) { |
|||
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' }) |
|||
return |
|||
} |
|||
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?' |
|||
this.$confirm(tip, '提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
type: 'warning' |
|||
}).then(() => { |
|||
const loading = this.$loading({ |
|||
lock: true, |
|||
text: 'Loading', |
|||
spinner: 'el-icon-loading', |
|||
background: 'rgba(0, 0, 0, 0.7)' |
|||
}) |
|||
req.delete(this.sids).then(resp => { |
|||
if (resp.success) { |
|||
this.$message({ type: 'success', message: resp.msg, showClose: true }) |
|||
} |
|||
this.getList() |
|||
loading.close() |
|||
}).catch(e => { |
|||
loading.close() |
|||
}) |
|||
}).catch(() => { |
|||
}) |
|||
}, |
|||
resetState() { |
|||
this.viewState = 1 |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,278 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState == 1"> |
|||
<!--标题按钮部分开始--> |
|||
<div class="tab-header webtop"> |
|||
<!--标题--> |
|||
<div>{{ viewTitle }}</div> |
|||
<!--start 添加修改按钮--> |
|||
<div> |
|||
<el-button type="primary" size="small" :disabled="submitdisabled" @click="save()">保存 |
|||
</el-button> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<!--标题按钮部分结束--> |
|||
<!--Start 新增修改部分--> |
|||
<div class="listconadd"> |
|||
<div class="titwu"><span>单车返利</span></div> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd"> |
|||
<el-row style="border-top: 1px solid #E0E3EB"> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>返利类型</span> |
|||
</el-col> |
|||
<el-col :span="4"> |
|||
<el-form-item><span>{{ formobj.createOrgName }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>厂家返利名称</span> |
|||
</el-col> |
|||
<el-col :span="4"> |
|||
<el-form-item><span>{{ formobj.applyPeoName }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>所属年月</span> |
|||
</el-col> |
|||
<el-col :span="4"> |
|||
<el-form-item><span>{{ formobj.createTime }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>计算方式</span> |
|||
</el-col> |
|||
<el-col :span="4"> |
|||
<el-form-item><el-input v-model="formobj.modpriceReason" clearable placeholder="" class="addinputw"></el-input></el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>计算标注(%)</span> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item><el-input v-model="formobj.modpriceReason" clearable placeholder="" class="addinputw"></el-input></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<div class="title"> |
|||
<div>返利车辆列表</div> |
|||
<div> |
|||
<el-button type="primary" size="mini" icon="el-icon-plus" @click="addjacket()">添加</el-button> |
|||
<el-button type="primary" size="mini" icon="el-icon-plus" @click="addjacket()">批量选择</el-button> |
|||
</div> |
|||
</div> |
|||
<el-table :key="tableKey" :data="formobj.baseVehinstallModpricedetails" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column fixed prop="name" label="操作" width="100px" align="center" header-align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-button size="mini" type="danger" @click="dataDelete(scope.$index)">删除 |
|||
</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车架号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.jacketName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="厂家结算价" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="其中运费" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modelName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预计返利" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-input v-model="scope.row.vehGuidedPrice" clearable placeholder="" class="addinputw"></el-input> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="备注" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!--End 添加修改部分--> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/othermenu/shangzhuangtiaojia' |
|||
import { getPathSidByUserSid, fetchBySid } from '@/api/cheliang/dictcommons' |
|||
|
|||
export default { |
|||
name: 'bicyclerebatemanagementAdd', |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
index: 0, |
|||
tableKey: 0, |
|||
viewState: 1, |
|||
// 表单数据 |
|||
formobj: { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
}, |
|||
rules: {}, |
|||
submitdisabled: false |
|||
} |
|||
}, |
|||
methods: { |
|||
// 获取制单日期 |
|||
newDate() { |
|||
let date = new Date() |
|||
let year = date.getFullYear() // 年 |
|||
let month = date.getMonth() + 1 // 月 |
|||
let day = date.getDate() // 日 |
|||
if (month < 10) { |
|||
month = '0' + month |
|||
} |
|||
if (day < 10) { |
|||
day = '0' + day |
|||
} |
|||
this.formobj.createTime = year + '-' + month + '-' + day |
|||
}, |
|||
init() { |
|||
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((resp) => { |
|||
if (resp.success) { |
|||
this.formobj.createOrgSid = resp.data |
|||
this.formobj.useOrgSid = resp.data |
|||
fetchBySid(this.formobj.createOrgSid).then((res) => { |
|||
if (res.success) { |
|||
this.formobj.createOrgName = res.data.name |
|||
this.formobj.useOrgName = res.data.name |
|||
} |
|||
}) |
|||
} |
|||
}) |
|||
}, |
|||
showAdd() { |
|||
this.init() |
|||
this.newDate() |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.formobj.createBySid = window.sessionStorage.getItem('userSid') |
|||
this.formobj.applyPeoName = window.sessionStorage.getItem('name') |
|||
this.viewTitle = '【新增】单车返利' |
|||
}, |
|||
showEdit(row) { |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.viewTitle = '【编辑】单车返利' |
|||
console.log('编辑回显', row.sid) |
|||
req.fetchBySid(row.sid).then((resp) => { |
|||
this.formobj = resp.data |
|||
}).catch((e) => { |
|||
this.formobj = row |
|||
}) |
|||
}, |
|||
// 明细表添加一行数据 |
|||
addjacket() { |
|||
this.viewState = 2 |
|||
this.$refs['divSelect'].showData(this.formobj.baseVehinstallModpricedetails) |
|||
}, |
|||
backData(value) { |
|||
this.viewState = 1 |
|||
if (value.length > 0) { |
|||
value.forEach((e) => { |
|||
this.formobj.baseVehinstallModpricedetails.push({ |
|||
adjustVehGuidedPrice: '', |
|||
costPrice: e.costPrice, |
|||
guidedPrice: e.guidedPrice, |
|||
incOrDecInPrice: '', |
|||
jacketName: e.jacketName, |
|||
jacketSid: e.jacketSid, |
|||
mainSid: '', |
|||
modelName: e.modelName, |
|||
modelSid: e.modelSid, |
|||
sid: '', |
|||
vehGuidedPrice: '', |
|||
vinNo: e.vinNo, |
|||
remarks: '' |
|||
}) |
|||
}) |
|||
} |
|||
}, |
|||
// 明细表删除一行数据 |
|||
dataDelete(index) { |
|||
this.formobj.baseVehinstallModpricedetails.splice(index, 1) |
|||
}, |
|||
resetState() { |
|||
this.viewState = 1 |
|||
}, |
|||
save() { |
|||
this.$refs['form_obj'].validate((valid) => { |
|||
if (valid) { |
|||
this.submitdisabled = true |
|||
req.saveOrUpdate(this.formobj).then((resp) => { |
|||
this.submitdisabled = false |
|||
if (resp.success) { |
|||
this.$message({ |
|||
showClose: true, |
|||
type: 'success', |
|||
message: resp.msg |
|||
}) |
|||
this.handleReturn('true') |
|||
} |
|||
}).catch(() => { |
|||
this.submitdisabled = false |
|||
}) |
|||
} else { |
|||
return false |
|||
} |
|||
}) |
|||
}, |
|||
// 返回(===既判断) |
|||
handleReturn(isreload) { |
|||
if (isreload === 'true') this.$emit('reloadlist') |
|||
// 表单数据 |
|||
this.formobj = { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
} |
|||
this.$refs['form_obj'].resetFields() |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
.title { |
|||
padding: 7px; |
|||
display: flex; |
|||
flex-direction: row; |
|||
justify-content: space-between; |
|||
align-items: center; |
|||
} |
|||
.rowStyle { |
|||
border-left: 0px; |
|||
} |
|||
.colOneStyle { |
|||
border-right: 0px !important; |
|||
border-bottom: 0px !important; |
|||
} |
|||
</style> |
|||
|
@ -0,0 +1,156 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div> |
|||
<!--标题按钮部分开始--> |
|||
<div class="tab-header webtop"> |
|||
<!--标题--> |
|||
<div>{{ viewTitle }}</div> |
|||
<!--start 添加修改按钮--> |
|||
<div> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<!--标题按钮部分结束--> |
|||
<!--Start 新增修改部分--> |
|||
<div class="listconadd"> |
|||
<div class="titwu"><span>单车返利</span></div> |
|||
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd"> |
|||
<el-row style="border-top: 1px solid #E0E3EB"> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>返利类型</span> |
|||
</el-col> |
|||
<el-col :span="4"> |
|||
<el-form-item><span>{{ formobj.createOrgName }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>厂家返利名称</span> |
|||
</el-col> |
|||
<el-col :span="4"> |
|||
<el-form-item><span>{{ formobj.applyPeoName }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>所属年月</span> |
|||
</el-col> |
|||
<el-col :span="4"> |
|||
<el-form-item><span>{{ formobj.createTime }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>计算方式</span> |
|||
</el-col> |
|||
<el-col :span="4"> |
|||
<el-form-item><el-input v-model="formobj.modpriceReason" clearable placeholder="" class="addinputw"></el-input></el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>计算标注(%)</span> |
|||
</el-col> |
|||
<el-col :span="12"> |
|||
<el-form-item><el-input v-model="formobj.modpriceReason" clearable placeholder="" class="addinputw"></el-input></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<div class="title"> |
|||
<div>返利车辆列表</div> |
|||
</div> |
|||
<el-table :key="tableKey" :data="formobj.baseVehinstallModpricedetails" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column label="车架号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.jacketName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="厂家结算价" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="其中运费" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modelName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="预计返利" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-input v-model="scope.row.vehGuidedPrice" clearable placeholder="" class="addinputw"></el-input> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="备注" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.costPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!--End 添加修改部分--> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/othermenu/shangzhuangtiaojia' |
|||
|
|||
export default { |
|||
name: 'bicyclerebatemanagementInfo', |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
index: 0, |
|||
tableKey: 0, |
|||
// 表单数据 |
|||
formobj: { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
}, |
|||
rules: {}, |
|||
submitdisabled: false |
|||
} |
|||
}, |
|||
methods: { |
|||
showInfo(row) { |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
this.viewTitle = '单车返利详情' |
|||
console.log('编辑回显', row.sid) |
|||
req.fetchBySid(row.sid).then((resp) => { |
|||
this.formobj = resp.data |
|||
}).catch((e) => { |
|||
this.formobj = row |
|||
}) |
|||
}, |
|||
// 返回(===既判断) |
|||
handleReturn(isreload) { |
|||
if (isreload === 'true') this.$emit('reloadlist') |
|||
// 表单数据 |
|||
this.formobj = { |
|||
applyPeoName: '', |
|||
applyTitle: '', |
|||
createBySid: '', |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
modpriceReason: '', |
|||
nodeState: '', |
|||
sid: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
baseVehinstallModpricedetails: [] |
|||
} |
|||
this.$refs['form_obj'].resetFields() |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
|||
|
@ -0,0 +1,335 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!-- Start 列表页面 --> |
|||
<div> |
|||
<button-bar view-title="车辆配件更换记录" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> |
|||
<div class="main-content" style="padding-top: 10px"> |
|||
<!-- <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" label-width="110px" class="tab-header">--> |
|||
<!-- <el-form-item label="认款日期">--> |
|||
<!-- <div class="block" style="float: left;">--> |
|||
<!-- <el-date-picker v-model="listQuery.params.subscriptionStartDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>--> |
|||
<!-- </div>--> |
|||
<!-- <div style="float: left;margin: 0px 10px">至</div>--> |
|||
<!-- <div class="block" style="float: left;">--> |
|||
<!-- <el-date-picker v-model="listQuery.params.subscriptionEndDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>--> |
|||
<!-- </div>--> |
|||
<!-- </el-form-item>--> |
|||
<!-- <el-form-item label="申请编号">--> |
|||
<!-- <el-input v-model="listQuery.params.proSchAppNo" placeholder="请输入排产申请编号" clearable/>--> |
|||
<!-- </el-form-item>--> |
|||
<!-- </el-form>--> |
|||
<!-- <div class="btn" style="text-align: center;">--> |
|||
<!-- <el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button>--> |
|||
<!-- <el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button>--> |
|||
<!-- </div>--> |
|||
<!-- </div>--> |
|||
<!-- </div>--> |
|||
<div class="listtop"> |
|||
<div class="tit">车辆配件更换记录列表</div> |
|||
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<div class=""> |
|||
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;"> |
|||
<el-table-column fixed width="60px" label="序号" type="index" :index="indexMethod" align="center"/> |
|||
<el-table-column label="来源车架号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.sourceVinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="配件" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.partName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="安装至车架号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.installVinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="费用" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.money }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="备注" header-align="center" align="left"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.remarks }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
<div class="pages"> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- End 列表页面 --> |
|||
<el-dialog center :visible.sync="dialogVisible" width="60%"> |
|||
<el-form v-model="formobj" ref="form_obj" class="formadd"> |
|||
<el-row style="border-top: 1px solid #E0E3EB"> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>来源车架号</span> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item><span>{{ formobj.sourceVinNo }}</span></el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>配件</span> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item><el-input v-model="formobj.partName" placeholder="" clearable class="addinputw"/></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>安装至车架号</span> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item> |
|||
<el-select v-model="formobj.installVinNo" class="addinputw" clearable placeholder="" @change="cahngeInstallVinNo" filterable> |
|||
<el-option v-for="item in installVinNo_list" :key="item.installSid" :label="item.installVinNo" :value="item.installVinNo"/> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>费用</span> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item><el-input v-model="formobj.money" placeholder="" clearable class="addinputw"/></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>备注</span> |
|||
</el-col> |
|||
<el-col :span="20"> |
|||
<el-form-item><el-input v-model="formobj.remarks" placeholder="" clearable class="addinputw"/></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
</el-form> |
|||
<div slot="footer" class="dialog-footer"> |
|||
<el-button @click="handleCancel" size="small">取 消</el-button> |
|||
<el-button type="primary" @click="handleConfirm" size="small">确 定</el-button> |
|||
</div> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { listPage, save } from '@/api/cheliang/basevehicle' |
|||
import { getPathSidByUserSid, fetchBySid, fetchVinNoAndVehSid } from '@/api/cheliang/dictcommons' |
|||
import Pagination from '@/components/pagination' |
|||
import pageye from '@/components/pagination/pageye' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
|
|||
export default { |
|||
name: 'changjiaxitongrenkuan', |
|||
components: { |
|||
Pagination, |
|||
pageye, |
|||
ButtonBar |
|||
}, |
|||
data() { |
|||
return { |
|||
btndisabled: false, |
|||
dialogVisible: false, |
|||
installVinNo_list: [], |
|||
formobj: { |
|||
createOrgName: '', |
|||
createOrgSid: '', |
|||
installSid: '', |
|||
installVinNo: '', |
|||
money: '', |
|||
partName: '', |
|||
sid: '', |
|||
sourceVehSid: '', |
|||
sourceVinNo: '', |
|||
useOrgName: '', |
|||
useOrgSid: '', |
|||
remarks: '' |
|||
}, |
|||
btnList: [ |
|||
{ |
|||
type: 'primary', |
|||
size: 'small', |
|||
icon: 'plus', |
|||
btnKey: 'toAdd', |
|||
btnLabel: '新增' |
|||
}, |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
// 查询条件 ----------- |
|||
tableKey: 0, |
|||
list: [], |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
listQuery: { |
|||
params: { |
|||
sourceVehSid: '', |
|||
createOrgSid: '' |
|||
}, |
|||
current: 1, |
|||
size: 5, |
|||
total: 0 |
|||
}, |
|||
rules: {} |
|||
} |
|||
}, |
|||
created() { |
|||
// 初始化变量 |
|||
this.init() |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
clicksearchShow() { |
|||
this.isSearchShow = !this.isSearchShow |
|||
if (this.isSearchShow) { |
|||
this.searchxianshitit = '隐藏查询条件' |
|||
} else { |
|||
this.searchxianshitit = '显示查询条件' |
|||
} |
|||
}, |
|||
btnHandle(btnKey) { |
|||
console.log('XXXXXXXXXXXXXXX ' + btnKey) |
|||
switch (btnKey) { |
|||
case 'toAdd': |
|||
this.toAdd() |
|||
break |
|||
case 'doClose': |
|||
this.doClose() |
|||
break |
|||
default: |
|||
break |
|||
} |
|||
}, |
|||
init(value) { |
|||
if (value !== undefined && value !== null) { |
|||
for (var i = 0; i < value.length; i++) { |
|||
this.formobj.sourceVinNo = value[i].vinNo |
|||
this.formobj.sourceVehSid = value[i].sid |
|||
this.listQuery.params.sourceVehSid = value[i].sid |
|||
} |
|||
} |
|||
getPathSidByUserSid({ userSid: window.sessionStorage.getItem('userSid') }).then((res) => { |
|||
if (res.success) { |
|||
this.listQuery.params.createOrgSid = res.data |
|||
this.formobj.createOrgSid = res.data |
|||
this.formobj.useOrgSid = res.data |
|||
fetchVinNoAndVehSid(this.formobj.createOrgSid).then((response) => { |
|||
if (response.success) { |
|||
this.installVinNo_list = response.data |
|||
} |
|||
}) |
|||
fetchBySid(this.formobj.createOrgSid).then((resp) => { |
|||
if (resp.success) { |
|||
this.formobj.createOrgName = resp.data.name |
|||
this.formobj.useOrgName = resp.data.name |
|||
this.getList() |
|||
} |
|||
}) |
|||
} |
|||
}) |
|||
}, |
|||
// 序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
listPage(this.listQuery).then((response) => { |
|||
console.log('列表查询结果:', response) |
|||
this.listLoading = false |
|||
if ( |
|||
response.code === '200' && |
|||
response.data && |
|||
response.data.total > 0 |
|||
) { |
|||
this.list = response.data.records |
|||
this.listQuery.total = response.data.total |
|||
} else { |
|||
this.list = [] |
|||
this.listQuery.total = 0 |
|||
} |
|||
}) |
|||
}, |
|||
// 查询按钮 |
|||
handleFilter() { |
|||
this.listQuery.current = 1 |
|||
this.getList() |
|||
}, |
|||
handleReset() { |
|||
this.listQuery = { |
|||
params: { |
|||
state: 0, |
|||
paymentState: '', |
|||
subscriptionStartDate: '', |
|||
subscriptionEndDate: '', |
|||
proSchAppNo: '', |
|||
applyTypeKey: '', |
|||
createOrgSid: '' |
|||
}, |
|||
current: 1, |
|||
size: 5, |
|||
total: 0 |
|||
} |
|||
this.init() |
|||
}, |
|||
toAdd() { |
|||
this.dialogVisible = true |
|||
}, |
|||
cahngeInstallVinNo(value) { |
|||
let bb = null |
|||
this.installVinNo_list.forEach((e) => { |
|||
if (e.installVinNo === value) { |
|||
bb = { |
|||
value: e.installVinNo, |
|||
sid: e.installSid |
|||
} |
|||
} |
|||
}) |
|||
this.formobj.installVinNo = bb.value |
|||
this.formobj.installSid = bb.sid |
|||
}, |
|||
handleConfirm() { |
|||
save(this.formobj).then((resp) => { |
|||
if (resp.success) { |
|||
this.$message({ showClose: true,type: 'success', message: resp.msg }) |
|||
this.handleCancel() |
|||
this.getList() |
|||
} |
|||
}) |
|||
}, |
|||
handleCancel() { |
|||
this.dialogVisible = false |
|||
this.formobj.money = '' |
|||
this.formobj.partName = '' |
|||
this.formobj.installVinNo = '' |
|||
this.formobj.installSid = '' |
|||
this.formobj.remarks = '' |
|||
}, |
|||
doClose() { |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
Loading…
Reference in new issue