
32 changed files with 3180 additions and 0 deletions
@ -0,0 +1,63 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.as.hosesuppapply; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
@Data |
|||
@ApiModel(value = "工时提成抵顶配件费用申请 视图数据详情", description = "工时提成抵顶配件费用申请 视图数据详情") |
|||
public class AppHoseSuppApplyDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("申请人") |
|||
private String createByName; |
|||
@ApiModelProperty("申请部门名称") |
|||
private String deptName; |
|||
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
|||
@ApiModelProperty("申请日期") |
|||
private Date createTime; |
|||
@ApiModelProperty("二级站名称") |
|||
private String secondStatName; |
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("实例id") |
|||
private String procInsId; // 实例id
|
|||
@ApiModelProperty("任务id") |
|||
private String taskId; // 任务id
|
|||
@ApiModelProperty |
|||
private List<AppHoseSuppGoodsDetailDetailsVo> asHoseSuppGoodsDetailList; |
|||
@ApiModelProperty |
|||
private List<AppHoseSuppSitemDetailDetailsVo> asHoseSuppSitemDetailList; |
|||
} |
@ -0,0 +1,64 @@ |
|||
package com.yxt.anrui.terminal.api.as.hosesuppapply; |
|||
|
|||
import com.yxt.anrui.terminal.api.as.hosesuppapply.flowable.AppDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.as.hosesuppapply.flowable.AppFlowDto; |
|||
import com.yxt.anrui.terminal.api.as.hosesuppapply.flowable.AppFlowQuery; |
|||
import com.yxt.anrui.terminal.api.as.hosesuppapply.flowable.AppFlowTaskQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.cloud.openfeign.SpringQueryMap; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* @Author |
|||
* @Date |
|||
* @Description |
|||
*/ |
|||
@FeignClient( |
|||
contextId = "terminal-AppHoseSuppApply", |
|||
name = "anrui-terminal", |
|||
path = "v1/hosesuppapply") |
|||
public interface AppHoseSuppApplyFeign { |
|||
|
|||
@ApiOperation("详情") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<AppHoseSuppApplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
|
|||
/**********************************************流程********************************************/ |
|||
|
|||
@ApiOperation("办理") |
|||
@PutMapping("/agreeCreditInfo") |
|||
@ResponseBody |
|||
ResultBean agreeCreditInfo(@RequestBody AppFlowDto dto); |
|||
|
|||
@ApiOperation("驳回") |
|||
@PutMapping("/rejectCreditInfo") |
|||
@ResponseBody |
|||
ResultBean rejectCreditInfo(@RequestBody AppFlowTaskQuery query); |
|||
|
|||
@ApiOperation("撤回") |
|||
@PutMapping("/recallCreditInfo") |
|||
@ResponseBody |
|||
ResultBean recallCreditInfo(@RequestBody AppFlowTaskQuery query); |
|||
|
|||
@ApiOperation("终止") |
|||
@PutMapping("/stopCreditInfo") |
|||
@ResponseBody |
|||
ResultBean stopCreditInfo(@RequestBody AppFlowTaskQuery query); |
|||
|
|||
@ApiOperation("获取流程操作标题") |
|||
@GetMapping("/getFlowOperateTitle") |
|||
@ResponseBody |
|||
ResultBean<String> getFlowOperateTitle(@SpringQueryMap AppFlowQuery query); |
|||
|
|||
@ApiOperation(value = "加签") |
|||
@PutMapping(value = "/delegate") |
|||
@ResponseBody |
|||
public ResultBean delegate(@RequestBody AppDelegateQuery delegateQuery); |
|||
|
|||
@ApiOperation(value = "转办") |
|||
@PutMapping(value = "/assignTask") |
|||
@ResponseBody |
|||
public ResultBean assignTask(@RequestBody AppDelegateQuery delegateQuery); |
|||
} |
@ -0,0 +1,57 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.as.hosesuppapply; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
@Data |
|||
@ApiModel(value = "工时提成抵顶配件费用商品明细 视图数据详情", description = "工时提成抵顶配件费用商品明细 视图数据详情") |
|||
public class AppHoseSuppGoodsDetailDetailsVo implements Vo { |
|||
|
|||
@ApiModelProperty("商品sku名称") |
|||
private String goodsSkuTitle; |
|||
@ApiModelProperty("商品ID") |
|||
private String goodsID; |
|||
@ApiModelProperty("图号") |
|||
private String goodsSkuCode; |
|||
@ApiModelProperty("规格型号") |
|||
private String goodsSkuOwnSpec; |
|||
@ApiModelProperty("单位") |
|||
private String unit; |
|||
@ApiModelProperty("仓库名称") |
|||
private String warehouseName; |
|||
@ApiModelProperty("库位编码") |
|||
private String warehouseRackCode; |
|||
@ApiModelProperty("入库单价") |
|||
private BigDecimal cost; |
|||
@ApiModelProperty("库存数量") |
|||
private BigDecimal count; |
|||
} |
@ -0,0 +1,58 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.as.hosesuppapply; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
@Data |
|||
@ApiModel(value = "工时提成抵顶配件费用维修项目明细 视图数据详情", description = "工时提成抵顶配件费用维修项目明细 视图数据详情") |
|||
public class AppHoseSuppSitemDetailDetailsVo implements Vo { |
|||
|
|||
@ApiModelProperty("维修单编号") |
|||
private String repairId; // 维修单编号
|
|||
@ApiModelProperty("维修单类型") |
|||
private String billType; // 维修单类型
|
|||
@ApiModelProperty("科目") |
|||
private String subject; // 科目
|
|||
@ApiModelProperty("维修项目") |
|||
private String sitem; // 维修项目
|
|||
@ApiModelProperty("工种") |
|||
private String serviceType; // 工种
|
|||
@ApiModelProperty("工时数量") |
|||
private BigDecimal hours; // 工时数量
|
|||
@ApiModelProperty("销售价") |
|||
private BigDecimal salePrice; // 销售价
|
|||
@ApiModelProperty("工时提成") |
|||
private BigDecimal examineHourPrice; // 工时提成
|
|||
@ApiModelProperty("抵顶金额") |
|||
private BigDecimal suppAmout; // 抵顶金额
|
|||
|
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.anrui.terminal.api.as.hosesuppapply.flowable; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/9/28 10:16 |
|||
*/ |
|||
@Data |
|||
public class AppDelegateQuery { |
|||
@ApiModelProperty |
|||
private String userSid; |
|||
@ApiModelProperty("流程实例id") |
|||
@JsonProperty("procInsId") |
|||
private String instanceId; |
|||
@ApiModelProperty("任务Id") |
|||
private String taskId; |
|||
@ApiModelProperty("审批人sid") |
|||
private String assignee; |
|||
@ApiModelProperty("填写意见") |
|||
private String views; |
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.yxt.anrui.terminal.api.as.hosesuppapply.flowable; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/8/9 14:09 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class AppFlowDto implements Dto { |
|||
private static final long serialVersionUID = 3626473483180150495L; |
|||
|
|||
@ApiModelProperty(value = "任务id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
@ApiModelProperty(value = "流程id") |
|||
@NotBlank(message = "参数错误:procInsId") |
|||
@JsonProperty("procInsId") |
|||
private String instanceId; |
|||
@ApiModelProperty(value = "意见") |
|||
private String comment; |
|||
@ApiModelProperty(value = "业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
@ApiModelProperty(value = "用户sid") |
|||
@NotBlank(message = "参数错误:userSid") |
|||
private String userSid; |
|||
@ApiModelProperty(value = "节点id") |
|||
@NotBlank(message = "参数错误:taskDefKey") |
|||
private String taskDefKey; |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.yxt.anrui.terminal.api.as.hosesuppapply.flowable; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/8/9 14:15 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class AppFlowQuery implements Query { |
|||
private static final long serialVersionUID = 5514095179438249641L; |
|||
|
|||
@ApiModelProperty(value = "节点key") |
|||
private String taskDefKey; |
|||
@ApiModelProperty(value = "业务sid") |
|||
private String businessSid; |
|||
@ApiModelProperty(value = "0 上一环节 1下一环节") |
|||
@NotNull(message = "参数错误:next") |
|||
private Integer next; |
|||
|
|||
@ApiModelProperty("组织机构全路径") |
|||
private String orgPath; |
|||
} |
@ -0,0 +1,47 @@ |
|||
package com.yxt.anrui.terminal.api.as.hosesuppapply.flowable; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/8/9 14:11 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class AppFlowTaskQuery implements Query { |
|||
private static final long serialVersionUID = -7082170710942810289L; |
|||
|
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@ApiModelProperty("任务Id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@ApiModelProperty("业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
/** |
|||
* 终止、驳回 |
|||
*/ |
|||
@ApiModelProperty("任务意见") |
|||
private String comment; |
|||
/** |
|||
* 终止、撤回、驳回 |
|||
*/ |
|||
@ApiModelProperty("用户Sid") |
|||
private String userSid; |
|||
/** |
|||
* 终止 |
|||
*/ |
|||
@ApiModelProperty("流程实例Id") |
|||
@JsonProperty("procInsId") |
|||
private String instanceId; |
|||
} |
@ -0,0 +1,85 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.as.hosesuppapply; |
|||
|
|||
import com.yxt.anrui.terminal.api.as.hosesuppapply.flowable.AppDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.as.hosesuppapply.flowable.AppFlowDto; |
|||
import com.yxt.anrui.terminal.api.as.hosesuppapply.flowable.AppFlowQuery; |
|||
import com.yxt.anrui.terminal.api.as.hosesuppapply.flowable.AppFlowTaskQuery; |
|||
import com.yxt.anrui.terminal.api.as.hosesuppapply.AppHoseSuppApplyDetailsVo; |
|||
import com.yxt.anrui.terminal.api.as.hosesuppapply.AppHoseSuppApplyFeign; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
@RestController |
|||
@RequestMapping("v1/hosesuppapply") |
|||
public class AppHoseSuppApplyRest implements AppHoseSuppApplyFeign { |
|||
|
|||
@Autowired |
|||
private AppHoseSuppApplyService appHoseSuppApplyService; |
|||
|
|||
@Override |
|||
public ResultBean<AppHoseSuppApplyDetailsVo> fetchDetailsBySid(String sid) { |
|||
return appHoseSuppApplyService.fetchDetailsBySid(sid); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean agreeCreditInfo(AppFlowDto dto) { |
|||
return appHoseSuppApplyService.agreeCreditInfo(dto); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean rejectCreditInfo(AppFlowTaskQuery query) { |
|||
return appHoseSuppApplyService.rejectCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean recallCreditInfo(AppFlowTaskQuery query) { |
|||
return appHoseSuppApplyService.recallCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean stopCreditInfo(AppFlowTaskQuery query) { |
|||
return appHoseSuppApplyService.stopCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<String> getFlowOperateTitle(AppFlowQuery query) { |
|||
return appHoseSuppApplyService.getFlowOperateTitle(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delegate(AppDelegateQuery delegateQuery) { |
|||
return appHoseSuppApplyService.delegate(delegateQuery); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean assignTask(AppDelegateQuery delegateQuery) { |
|||
return appHoseSuppApplyService.assignTask(delegateQuery); |
|||
} |
|||
} |
@ -0,0 +1,171 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.as.hosesuppapply; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrg; |
|||
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
|||
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
|||
import com.yxt.anrui.portal.api.sysuser.SysUserVo; |
|||
import com.yxt.anrui.terminal.api.as.hosesuppapply.flowable.AppDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.as.hosesuppapply.flowable.AppFlowDto; |
|||
import com.yxt.anrui.terminal.api.as.hosesuppapply.flowable.AppFlowQuery; |
|||
import com.yxt.anrui.terminal.api.as.hosesuppapply.flowable.AppFlowTaskQuery; |
|||
import com.yxt.anrui.terminal.api.as.hosesuppapply.AppHoseSuppApplyDetailsVo; |
|||
import com.yxt.anrui.terminal.fegin.ashosesuppapply.flowable.*; |
|||
import com.yxt.anrui.terminal.fegin.ashosesuppapply.AsHoseSuppApplyDetailsVo; |
|||
import com.yxt.anrui.terminal.fegin.ashosesuppapply.AsHoseSuppApplyFegin; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.Collections; |
|||
import java.util.List; |
|||
|
|||
@Service |
|||
public class AppHoseSuppApplyService { |
|||
|
|||
@Resource |
|||
private AsHoseSuppApplyFegin asHoseSuppApplyFegin; |
|||
@Autowired |
|||
private SysStaffOrgFeign sysStaffOrgFeign; |
|||
@Autowired |
|||
private SysUserFeign sysUserFeign; |
|||
|
|||
public ResultBean<AppHoseSuppApplyDetailsVo> fetchDetailsBySid(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
AsHoseSuppApplyDetailsVo data = asHoseSuppApplyFegin.fetchDetailsBySid(sid).getData(); |
|||
AppHoseSuppApplyDetailsVo appHoseSuppApplyDetailsVo = new AppHoseSuppApplyDetailsVo(); |
|||
BeanUtil.copyProperties(data,appHoseSuppApplyDetailsVo); |
|||
appHoseSuppApplyDetailsVo.setProcInsId(data.getProcInstId()); |
|||
return rb.success().setData(appHoseSuppApplyDetailsVo); |
|||
} |
|||
|
|||
public ResultBean agreeCreditInfo(AppFlowDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
//根据用户sid获取staffSid
|
|||
ResultBean<SysUserVo> userVoResultBean = sysUserFeign.fetchBySid(dto.getUserSid()); |
|||
if (!userVoResultBean.getSuccess()) { |
|||
return rb.setMsg(userVoResultBean.getMsg()); |
|||
} |
|||
//根据staffSid获取用户的组织全路径
|
|||
ResultBean<SysStaffOrg> staffOrgResultBean = sysStaffOrgFeign.getOrgByStaffSid(userVoResultBean.getData().getStaffSid()); |
|||
if (!staffOrgResultBean.getSuccess()) { |
|||
return rb.setMsg(staffOrgResultBean.getMsg()); |
|||
} |
|||
//用户的组织全路径
|
|||
String orgSidPath = staffOrgResultBean.getData().getOrgSidPath(); |
|||
CompleteHoseSuppApplyDto completeBwinvoiceApplyDto = new CompleteHoseSuppApplyDto(); |
|||
BeanUtil.copyProperties(dto, completeBwinvoiceApplyDto); |
|||
completeBwinvoiceApplyDto.setOrgSidPath(orgSidPath); |
|||
ResultBean resultBean = asHoseSuppApplyFegin.complete(completeBwinvoiceApplyDto); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean rejectCreditInfo(AppFlowTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
HoseSuppApplyTaskQuery hoseSuppApplyTaskQuery = new HoseSuppApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, hoseSuppApplyTaskQuery); |
|||
ResultBean resultBean = asHoseSuppApplyFegin.taskReject(hoseSuppApplyTaskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean recallCreditInfo(AppFlowTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
HoseSuppApplyTaskQuery hoseSuppApplyTaskQuery = new HoseSuppApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, hoseSuppApplyTaskQuery); |
|||
ResultBean resultBean = asHoseSuppApplyFegin.revokeProcess(hoseSuppApplyTaskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean stopCreditInfo(AppFlowTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
HoseSuppApplyTaskQuery hoseSuppApplyTaskQuery = new HoseSuppApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, hoseSuppApplyTaskQuery); |
|||
ResultBean resultBean = asHoseSuppApplyFegin.breakProcess(hoseSuppApplyTaskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean<String> getFlowOperateTitle(AppFlowQuery query) { |
|||
ResultBean<String> rb = ResultBean.fireFail(); |
|||
//0 上一环节 1下一环节
|
|||
int next = query.getNext(); |
|||
HoseSuppApplyNodeQuery getNodeQuery = new HoseSuppApplyNodeQuery(); |
|||
BeanUtil.copyProperties(query, getNodeQuery); |
|||
String data = ""; |
|||
if (next == 0) { |
|||
ResultBean<List<HoseSuppApplyNodeVo>> getPreviousNodesForReject = asHoseSuppApplyFegin.getPreviousNodesForReject(getNodeQuery); |
|||
if (getPreviousNodesForReject.getSuccess()) { |
|||
getPreviousNodesForReject.getData().removeAll(Collections.singleton(null)); |
|||
data = getPreviousNodesForReject.getData().get(0).getName(); |
|||
} else { |
|||
return rb.setMsg(getPreviousNodesForReject.getMsg()); |
|||
} |
|||
} else if (next == 1) { |
|||
ResultBean<List<HoseSuppApplyNodeVo>> getNextNodesForSubmit = asHoseSuppApplyFegin.getNextNodesForSubmit(getNodeQuery); |
|||
if (getNextNodesForSubmit.getSuccess()) { |
|||
getNextNodesForSubmit.getData().removeAll(Collections.singleton(null)); |
|||
data = getNextNodesForSubmit.getData().get(0).getName(); |
|||
} else { |
|||
return rb.setMsg(getNextNodesForSubmit.getMsg()); |
|||
} |
|||
} else { |
|||
return rb.setMsg("参数错误:next"); |
|||
} |
|||
return rb.success().setData(data); |
|||
} |
|||
|
|||
public ResultBean delegate(AppDelegateQuery delegateQuery) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
HoseSuppApplyDelegateQuery delegateQuery1 = new |
|||
HoseSuppApplyDelegateQuery(); |
|||
BeanUtil.copyProperties(delegateQuery, delegateQuery1); |
|||
asHoseSuppApplyFegin.delegate(delegateQuery1); |
|||
return rb.success(); |
|||
} |
|||
|
|||
public ResultBean assignTask(AppDelegateQuery delegateQuery) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
HoseSuppApplyDelegateQuery delegateQuery1 = new |
|||
HoseSuppApplyDelegateQuery(); |
|||
BeanUtil.copyProperties(delegateQuery, delegateQuery1); |
|||
asHoseSuppApplyFegin.assignTask(delegateQuery1); |
|||
return rb.success(); |
|||
} |
|||
} |
@ -0,0 +1,88 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.fegin.ashosesuppapply; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
@Data |
|||
@ApiModel(value = "工时提成抵顶配件费用申请 视图数据详情", description = "工时提成抵顶配件费用申请 视图数据详情") |
|||
public class AsHoseSuppApplyDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
|||
@ApiModelProperty("申请日期") |
|||
private Date createTime; |
|||
@ApiModelProperty("单据编号") |
|||
private String billNo; // 单据编号
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("申请人sid") |
|||
private String createBySid; |
|||
@ApiModelProperty("申请人") |
|||
private String createByName; // 申请人
|
|||
@ApiModelProperty("申请部门sid") |
|||
private String deptSid; // 申请部门sid
|
|||
@ApiModelProperty("申请部门名称") |
|||
private String deptName; // 申请部门名称
|
|||
@ApiModelProperty("二级站sid") |
|||
private String secondStatSid; // 二级站sid
|
|||
@ApiModelProperty("二级站名称") |
|||
private String secondStatName; // 二级站名称
|
|||
@ApiModelProperty("商品总额") |
|||
private BigDecimal costTotal; |
|||
@ApiModelProperty("工时提成抵顶金额") |
|||
private BigDecimal suppAmoutTotal; |
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; // 分公司sid
|
|||
@ApiModelProperty("分公司名称") |
|||
private String useOrgName; // 分公司名称
|
|||
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
|||
@ApiModelProperty("办结日期") |
|||
private Date finishTime; |
|||
@ApiModelProperty("实例id") |
|||
private String procInstId; // 实例id
|
|||
@ApiModelProperty("流程定义id") |
|||
private String procDefId; // 流程定义id
|
|||
@ApiModelProperty("任务id") |
|||
private String taskId; // 任务id
|
|||
@ApiModelProperty("环节id") |
|||
private String nodeId; // 环节id
|
|||
@ApiModelProperty("流程状态") |
|||
private String nodeState; // 流程状态
|
|||
@ApiModelProperty |
|||
private List<AsHoseSuppGoodsDetailDetailsVo> asHoseSuppGoodsDetailList; |
|||
@ApiModelProperty |
|||
private List<AsHoseSuppSitemDetailDetailsVo> asHoseSuppSitemDetailList; |
|||
} |
@ -0,0 +1,59 @@ |
|||
package com.yxt.anrui.terminal.fegin.ashosesuppapply; |
|||
|
|||
import com.yxt.anrui.terminal.fegin.asbwinvoiceapply.AsBwinvoiceapplyDetailsVo; |
|||
import com.yxt.anrui.terminal.fegin.asbwinvoiceapply.flowable.*; |
|||
import com.yxt.anrui.terminal.fegin.ashosesuppapply.flowable.*; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.cloud.openfeign.SpringQueryMap; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.validation.Valid; |
|||
import java.util.List; |
|||
|
|||
@FeignClient( |
|||
contextId = "yxt-as-AsHoseSuppApply", |
|||
name = "yxt-as", |
|||
path = "v1/ashosesuppapply" |
|||
) |
|||
public interface AsHoseSuppApplyFegin { |
|||
|
|||
@ApiOperation("详情") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<AsHoseSuppApplyDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
|
|||
@ApiOperation(value = "办理(同意)") |
|||
@PostMapping("/complete") |
|||
public ResultBean complete(@Valid @RequestBody CompleteHoseSuppApplyDto query); |
|||
|
|||
@ApiOperation(value = "获取上一个环节") |
|||
@GetMapping(value = "/getPreviousNodesForReject") |
|||
ResultBean<List<HoseSuppApplyNodeVo>> getPreviousNodesForReject(@Valid @SpringQueryMap HoseSuppApplyNodeQuery query); |
|||
|
|||
@ApiOperation(value = "获取下一个环节") |
|||
@GetMapping(value = "/getNextNodesForSubmit") |
|||
ResultBean<List<HoseSuppApplyNodeVo>> getNextNodesForSubmit(@Valid @SpringQueryMap HoseSuppApplyNodeQuery query); |
|||
|
|||
@ApiOperation(value = "驳回任务") |
|||
@PostMapping(value = "/reject") |
|||
public ResultBean taskReject(@Valid @RequestBody HoseSuppApplyTaskQuery query); |
|||
|
|||
@ApiOperation(value = "撤回流程") |
|||
@PostMapping(value = "/revokeProcess") |
|||
public ResultBean revokeProcess(@Valid @RequestBody HoseSuppApplyTaskQuery query); |
|||
|
|||
@ApiOperation(value = "终止任务") |
|||
@PostMapping(value = "/breakProcess") |
|||
public ResultBean breakProcess(@Valid @RequestBody HoseSuppApplyTaskQuery query); |
|||
|
|||
@ApiOperation(value = "加签") |
|||
@PostMapping(value = "/delegate") |
|||
@ResponseBody |
|||
public ResultBean delegate(@RequestBody HoseSuppApplyDelegateQuery query); |
|||
|
|||
@ApiOperation(value = "转办") |
|||
@PutMapping(value = "/assignTask") |
|||
@ResponseBody |
|||
public ResultBean assignTask(@RequestBody HoseSuppApplyDelegateQuery query); |
|||
} |
@ -0,0 +1,76 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.fegin.ashosesuppapply; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
@Data |
|||
@ApiModel(value = "工时提成抵顶配件费用商品明细 视图数据详情", description = "工时提成抵顶配件费用商品明细 视图数据详情") |
|||
public class AsHoseSuppGoodsDetailDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("主表sid") |
|||
private String billSid; // 主表sid
|
|||
@ApiModelProperty("商品ID") |
|||
private String goodsID; // 商品ID
|
|||
@ApiModelProperty("商品spuSid") |
|||
private String goodsSpuSid; // 商品spuSid
|
|||
@ApiModelProperty("商品spu名称") |
|||
private String goodsSpuName; // 商品spu名称
|
|||
@ApiModelProperty("商品skuSid") |
|||
private String goodsSkuSid; // 商品skuSid
|
|||
@ApiModelProperty("商品sku名称") |
|||
private String goodsSkuTitle; // 商品sku名称
|
|||
@ApiModelProperty("图号") |
|||
private String goodsSkuCode; // 图号
|
|||
@ApiModelProperty("规格型号") |
|||
private String goodsSkuOwnSpec; // 规格型号
|
|||
@ApiModelProperty("厂家sid") |
|||
private String manufacturerSid; // 厂家sid
|
|||
@ApiModelProperty("厂家名称") |
|||
private String manufacturerName; // 厂家名称
|
|||
@ApiModelProperty("入库单价") |
|||
private BigDecimal cost; // 入库单价
|
|||
@ApiModelProperty("单位") |
|||
private String unit; // 单位
|
|||
@ApiModelProperty("仓库sid") |
|||
private String warehouseSid; // 仓库sid
|
|||
@ApiModelProperty("仓库名称") |
|||
private String warehouseName; // 仓库名称
|
|||
@ApiModelProperty("库位sid") |
|||
private String warehouseRackSid; // 库位sid
|
|||
@ApiModelProperty("库位编码") |
|||
private String warehouseRackCode; // 库位编码
|
|||
@ApiModelProperty("库存数量") |
|||
private BigDecimal count; // 库存数量
|
|||
|
|||
} |
@ -0,0 +1,62 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.fegin.ashosesuppapply; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
@Data |
|||
@ApiModel(value = "工时提成抵顶配件费用维修项目明细 视图数据详情", description = "工时提成抵顶配件费用维修项目明细 视图数据详情") |
|||
public class AsHoseSuppSitemDetailDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("主表sid") |
|||
private String billSid; // 主表sid
|
|||
@ApiModelProperty("维修单编号") |
|||
private String repairId; // 维修单编号
|
|||
@ApiModelProperty("维修单类型") |
|||
private String billType; // 维修单类型
|
|||
@ApiModelProperty("科目") |
|||
private String subject; // 科目
|
|||
@ApiModelProperty("维修项目") |
|||
private String sitem; // 维修项目
|
|||
@ApiModelProperty("工种") |
|||
private String serviceType; // 工种
|
|||
@ApiModelProperty("工时数量") |
|||
private BigDecimal hours; // 工时数量
|
|||
@ApiModelProperty("销售价") |
|||
private BigDecimal salePrice; // 销售价
|
|||
@ApiModelProperty("工时提成") |
|||
private BigDecimal examineHourPrice; // 工时提成
|
|||
@ApiModelProperty("抵顶金额") |
|||
private BigDecimal suppAmout; // 抵顶金额
|
|||
|
|||
} |
@ -0,0 +1,35 @@ |
|||
package com.yxt.anrui.terminal.fegin.ashosesuppapply.flowable; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/5/11 |
|||
**/ |
|||
@Data |
|||
public class CompleteHoseSuppApplyDto { |
|||
|
|||
@ApiModelProperty(value = "用户sid") |
|||
@NotBlank(message = "参数错误:userSid") |
|||
private String userSid; |
|||
@ApiModelProperty(value = "用户全路径sid") |
|||
private String orgSidPath; |
|||
@ApiModelProperty(value = "节点id") |
|||
@NotBlank(message = "参数错误:taskDefKey") |
|||
private String taskDefKey; |
|||
@ApiModelProperty(value = "任务id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
@ApiModelProperty(value = "流程id") |
|||
@NotBlank(message = "参数错误:instanceId") |
|||
private String instanceId; |
|||
@ApiModelProperty(value = "意见") |
|||
private String comment; |
|||
@ApiModelProperty(value = "业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.yxt.anrui.terminal.fegin.ashosesuppapply.flowable; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/5/11 |
|||
**/ |
|||
@Data |
|||
public class HoseSuppApplyDelegateQuery { |
|||
|
|||
private String userSid; |
|||
@ApiModelProperty("流程实例id") |
|||
private String instanceId; |
|||
@ApiModelProperty("任务Id") |
|||
private String taskId; |
|||
@ApiModelProperty("审批人sid") |
|||
private String assignee; |
|||
@ApiModelProperty("填写意见") |
|||
private String views; |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.yxt.anrui.terminal.fegin.ashosesuppapply.flowable; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/5/11 |
|||
**/ |
|||
@Data |
|||
public class HoseSuppApplyNodeQuery { |
|||
|
|||
@ApiModelProperty(value = "环节定义id") |
|||
private String taskDefKey; |
|||
@ApiModelProperty(value = "业务sid") |
|||
private String businessSid; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.yxt.anrui.terminal.fegin.ashosesuppapply.flowable; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/5/11 |
|||
**/ |
|||
@Data |
|||
public class HoseSuppApplyNodeVo { |
|||
|
|||
@ApiModelProperty(value = "节点名称") |
|||
private String name; |
|||
@ApiModelProperty(value = "节点id") |
|||
private String id; |
|||
@ApiModelProperty(value = "审批组") |
|||
private List<String> candidateGroups; |
|||
@ApiModelProperty(value = "是否是最后环节") |
|||
private String endTask; |
|||
} |
@ -0,0 +1,43 @@ |
|||
package com.yxt.anrui.terminal.fegin.ashosesuppapply.flowable; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2024/5/11 |
|||
**/ |
|||
@Data |
|||
public class HoseSuppApplyTaskQuery { |
|||
|
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@ApiModelProperty("任务Id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@ApiModelProperty("业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
/** |
|||
* 终止、驳回 |
|||
*/ |
|||
@ApiModelProperty("任务意见") |
|||
private String comment; |
|||
/** |
|||
* 终止、撤回、驳回 |
|||
*/ |
|||
@ApiModelProperty("用户Sid") |
|||
private String userSid; |
|||
/** |
|||
* 终止 |
|||
*/ |
|||
@ApiModelProperty("流程实例Id") |
|||
private String instanceId; |
|||
} |
@ -0,0 +1,22 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export default { |
|||
// 查询分页列表 -- 业务汇总表
|
|||
summary: function(params) { |
|||
return request({ |
|||
url: '/as/v1/AsBusrepairBill/Summary', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 查询分页列表 -- 业务明细表
|
|||
busDetailsList: function(params) { |
|||
return request({ |
|||
url: '/as/v1/AsBusrepairBill/busDetailsList', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export default { |
|||
// 查询分页列表 -- 滞销品查询
|
|||
deadStockList: function(params) { |
|||
return request({ |
|||
url: '/wms/apiadmin/inventory/wmsinventory/deadStockList', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,40 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export default { |
|||
// 查询分页列表 -- 营业汇总表
|
|||
businessSummary: function(params) { |
|||
return request({ |
|||
url: '/as/v1/AsBusrepairBill/businessSummary', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 查询分页列表 -- 营业明细表
|
|||
businessDetails: function(params) { |
|||
return request({ |
|||
url: '/as/v1/AsBusrepairBill/businessDetails', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 查询分页列表 -- 营业保外分析表
|
|||
outInsuranceBusiness: function(params) { |
|||
return request({ |
|||
url: '/as/v1/AsBusrepairBill/outInsuranceBusiness', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 查询分页列表 -- 营业欠款分析表
|
|||
debtBusiness: function(params) { |
|||
return request({ |
|||
url: '/as/v1/AsBusrepairBill/debtBusiness', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export default { |
|||
// 查询分页列表 -- 库存查询表
|
|||
inventoryStockList: function(params) { |
|||
return request({ |
|||
url: '/wms/apiadmin/inventory/wmsinventory/inventoryStockList', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,310 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!--列表页面--> |
|||
<div v-show="viewState == 1"> |
|||
<button-bar view-title="业务明细" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> |
|||
<!--Start查询列表部分--> |
|||
<div class="main-content"> |
|||
<div class="searchcon"> |
|||
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> |
|||
<div v-show="isSearchShow" class="search"> |
|||
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header"> |
|||
<el-form-item label="开单日期"> |
|||
<el-date-picker v-model="listQuery.params.createStartTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.createEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="结算日期"> |
|||
<el-date-picker v-model="listQuery.params.settleStartTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.settleEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="业务类型"> |
|||
<el-input v-model="listQuery.params.busType" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="名称"> |
|||
<el-input v-model="listQuery.params.name" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="工种"> |
|||
<el-input v-model="listQuery.params.serviceType" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="维修单类型"> |
|||
<el-input v-model="listQuery.params.billType" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="科目"> |
|||
<el-input v-model="listQuery.params.subject" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="图号"> |
|||
<el-input v-model="listQuery.params.goodsSkuCode" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="供应商"> |
|||
<el-input v-model="listQuery.params.supplierName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="厂家"> |
|||
<el-input v-model="listQuery.params.manufacturerName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="销售价/工时单价"> |
|||
<el-input v-model="listQuery.params.price" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="维修单号/销售单号"> |
|||
<el-input v-model="listQuery.params.billNo" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="服务顾问"> |
|||
<el-input v-model="listQuery.params.waitorName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="维修技师"> |
|||
<el-input v-model="listQuery.params.repairerName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车型"> |
|||
<el-input v-model="listQuery.params.vehModel" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车牌号"> |
|||
<el-input v-model="listQuery.params.vehMark" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车架号"> |
|||
<el-input v-model="listQuery.params.vinNo" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="所属公司"> |
|||
<el-input v-model="listQuery.params.useOrgName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="所属门店"> |
|||
<el-input v-model="listQuery.params.deptName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center;"> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
<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> |
|||
<!--Start 主页面主要部分 --> |
|||
<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="50"/> |
|||
<el-table-column fixed label="序号" type="index" width="80" :index="indexMethod" align="center"/> |
|||
<el-table-column prop="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="busType" label="业务类型" align="center" width="100" /> |
|||
<el-table-column prop="name" label="名称" align="center" min-width="100" /> |
|||
<el-table-column prop="billState" label="单据状态" align="center" width="100" /> |
|||
<el-table-column prop="serviceType" label="工种" align="center" width="100" /> |
|||
<el-table-column prop="billType" label="维修单类型" align="center" width="100" /> |
|||
<el-table-column prop="subject" label="维修科目" align="center" width="100" /> |
|||
<el-table-column prop="goodsSkuTitle" label="图号" align="center" width="100" /> |
|||
<el-table-column prop="supplierName" label="供应商" align="center" min-width="100" /> |
|||
<el-table-column prop="manufacturerName" label="厂家" align="center" min-width="100" /> |
|||
<el-table-column prop="price" label="销售价/工时单价" align="center" width="100" /> |
|||
<el-table-column prop="num" label="数量" align="center" width="100" /> |
|||
<el-table-column prop="discount" label="折扣" align="center" width="100" /> |
|||
<el-table-column prop="discountAmount" label="折后金额" align="center" width="100" /> |
|||
<el-table-column prop="cost" label="成本单价" align="center" width="100" /> |
|||
<el-table-column prop="costTotal" label="合计成本" align="center" width="100" /> |
|||
<el-table-column prop="profit" label="利润" align="center" width="100" /> |
|||
<el-table-column prop="billNo" label="维修单号/销售单号" align="center" width="190" /> |
|||
<el-table-column prop="createTime" label="开单时间" align="center" width="120" /> |
|||
<el-table-column prop="dispatchTime" label="派工时间" align="center" width="120" /> |
|||
<el-table-column prop="finishTime" label="竣工时间" align="center" width="120" /> |
|||
<el-table-column prop="settleTime" label="结算时间" align="center" width="120" /> |
|||
<el-table-column prop="waitorName" label="服务顾问" align="center" width="100" /> |
|||
<el-table-column prop="repairerName" label="维修技师" align="center" width="100" /> |
|||
<el-table-column prop="customerName" label="客户" align="center" width="100" /> |
|||
<el-table-column prop="vehModel" label="车型" align="center" width="100" /> |
|||
<el-table-column prop="vehMark" label="车牌号" align="center" width="100" /> |
|||
<el-table-column prop="vinNo" label="车架号" align="center" width="100" /> |
|||
</el-table> |
|||
</div> |
|||
<!--End 主页面主要部分--> |
|||
<div class="pages"> |
|||
<div class="tit"/> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Pagination from '@/components/pagination' |
|||
import pageye from '@/components/pagination/pageye' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
import req from '@/api/statement/business' |
|||
|
|||
export default { |
|||
name: 'BusinessDetail', |
|||
components: { |
|||
Pagination, |
|||
pageye, |
|||
ButtonBar |
|||
}, |
|||
data() { |
|||
return { |
|||
btndisabled: false, |
|||
btnList: [ |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
viewState: 1, // 1、列表 2、新增 3、编辑 4、查看 |
|||
tableKey: 0, |
|||
list: [], |
|||
sids: [], // 用于导出的时候保存已选择的SIDs |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
createStartTime: '', |
|||
createEndTime: '', |
|||
busType: '', |
|||
name: '', |
|||
billState: '', |
|||
serviceType: '', |
|||
billType: '', |
|||
subject: '', |
|||
goodsSkuCode: '', |
|||
supplierName: '', |
|||
manufacturerName: '', |
|||
price: '', |
|||
billNo: '', |
|||
waitorName: '', |
|||
repairerName: '', |
|||
customerName: '', |
|||
vehModel: '', |
|||
vehMark: '', |
|||
vinNo: '', |
|||
useOrgName: '', |
|||
deptName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
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 |
|||
} |
|||
}, |
|||
// 信息条数 获取点击时当前的sid |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach(element => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
}, |
|||
// 表中序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid') |
|||
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|||
this.listQuery.params.menuUrl = this.$route.path |
|||
req.busDetailsList(this.listQuery).then((response) => { |
|||
this.listLoading = false |
|||
if (response.success) { |
|||
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 = { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
createStartTime: '', |
|||
createEndTime: '', |
|||
busType: '', |
|||
name: '', |
|||
billState: '', |
|||
serviceType: '', |
|||
billType: '', |
|||
subject: '', |
|||
goodsSkuCode: '', |
|||
supplierName: '', |
|||
manufacturerName: '', |
|||
price: '', |
|||
billNo: '', |
|||
waitorName: '', |
|||
repairerName: '', |
|||
customerName: '', |
|||
vehModel: '', |
|||
vehMark: '', |
|||
vinNo: '', |
|||
useOrgName: '', |
|||
deptName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,224 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!--列表页面--> |
|||
<div v-show="viewState == 1"> |
|||
<button-bar view-title="业务汇总" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> |
|||
<!--Start查询列表部分--> |
|||
<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-date-picker v-model="listQuery.params.createStartTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.createEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="结算日期"> |
|||
<el-date-picker v-model="listQuery.params.settleStartTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.settleEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center;"> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleToday">本日</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentMonth">本月</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentYear">本年</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
<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> |
|||
<!--Start 主页面主要部分 --> |
|||
<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="50"/> |
|||
<el-table-column fixed label="序号" type="index" width="80" :index="indexMethod" align="center"/> |
|||
<el-table-column prop="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="busType" label="业务类型" align="center" width="100" /> |
|||
<el-table-column prop="name" label="名称" align="center" min-width="100" /> |
|||
<el-table-column prop="billState" label="单据状态" align="center" width="100" /> |
|||
<el-table-column prop="serviceType" label="工种" align="center" width="100" /> |
|||
<el-table-column prop="billType" label="维修单类型" align="center" width="100" /> |
|||
<el-table-column prop="subject" label="维修科目" align="center" width="100" /> |
|||
<el-table-column prop="goodsSkuCode" label="图号" align="center" width="100" /> |
|||
<el-table-column prop="supplierName" label="供应商" align="center" min-width="100" /> |
|||
<el-table-column prop="manufacturerName" label="厂家" align="center" min-width="100" /> |
|||
<el-table-column prop="num" label="数量" align="center" width="100" /> |
|||
<el-table-column prop="discountAmount" label="折后金额合计" align="center" width="100" /> |
|||
<el-table-column prop="costTotal" label="成本合计" align="center" width="100" /> |
|||
<el-table-column prop="profit" label="利润" align="center" width="100" /> |
|||
</el-table> |
|||
</div> |
|||
<!--End 主页面主要部分--> |
|||
<div class="pages"> |
|||
<div class="tit"/> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Pagination from '@/components/pagination' |
|||
import pageye from '@/components/pagination/pageye' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
import req from '@/api/statement/business' |
|||
|
|||
export default { |
|||
name: 'ServiceSummary', |
|||
components: { |
|||
Pagination, |
|||
pageye, |
|||
ButtonBar |
|||
}, |
|||
data() { |
|||
return { |
|||
btndisabled: false, |
|||
btnList: [ |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
viewState: 1, // 1、列表 2、新增 3、编辑 4、查看 |
|||
tableKey: 0, |
|||
list: [], |
|||
sids: [], // 用于导出的时候保存已选择的SIDs |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
createStartTime: '', |
|||
createEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
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 |
|||
} |
|||
}, |
|||
// 信息条数 获取点击时当前的sid |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach(element => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
}, |
|||
// 表中序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid') |
|||
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|||
this.listQuery.params.menuUrl = this.$route.path |
|||
req.summary(this.listQuery).then((response) => { |
|||
this.listLoading = false |
|||
if (response.success) { |
|||
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() |
|||
}, |
|||
handleToday() { |
|||
this.listQuery.params.dateType = '1' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentMonth() { |
|||
this.listQuery.params.dateType = '2' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentYear() { |
|||
this.listQuery.params.dateType = '3' |
|||
this.handleFilter() |
|||
}, |
|||
// 点击重置 |
|||
handleReset() { |
|||
this.listQuery = { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
createStartTime: '', |
|||
createEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,217 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!--列表页面--> |
|||
<div v-show="viewState == 1"> |
|||
<button-bar view-title="滞销品查询" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> |
|||
<!--Start查询列表部分--> |
|||
<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.useOrgName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="所属门店"> |
|||
<el-input v-model="listQuery.params.deptName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="商品名称"> |
|||
<el-input v-model="listQuery.params.goodsSpuName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="图号"> |
|||
<el-input v-model="listQuery.params.goodsSkuCode" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="供应商"> |
|||
<el-input v-model="listQuery.params.supplierName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="厂家"> |
|||
<el-input v-model="listQuery.params.manufacturerName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center;"> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
<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> |
|||
<!--Start 主页面主要部分 --> |
|||
<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="50"/> |
|||
<el-table-column fixed label="序号" type="index" width="80" :index="indexMethod" align="center"/> |
|||
<el-table-column prop="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="goodsSpuName" label="商品名称" align="center" width="100" /> |
|||
<el-table-column prop="goodsSkuCode" label="图号" align="center" width="100" /> |
|||
<el-table-column prop="manufacturerName" label="生产厂家" align="center" min-width="100" /> |
|||
<el-table-column prop="supplierName" label="供应商" align="center" min-width="100" /> |
|||
<el-table-column prop="billState" label="库存数量" align="center" width="100" /> |
|||
<el-table-column prop="inventoryAge" label="最长库龄" align="center" width="100" /> |
|||
<el-table-column prop="salesTime" label="最近一次销售时间" align="center" width="100" /> |
|||
<el-table-column prop="noSalesDays" label="未销售天数" align="center" width="100" /> |
|||
<el-table-column prop="storageTime" label="最近一次入库时间" align="center" width="100" /> |
|||
<el-table-column prop="avgPrice" label="平均成本单价" align="center" width="100" /> |
|||
<el-table-column prop="totalCost" label="成本合计" align="center" width="100" /> |
|||
</el-table> |
|||
</div> |
|||
<!--End 主页面主要部分--> |
|||
<div class="pages"> |
|||
<div class="tit"/> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Pagination from '@/components/pagination' |
|||
import pageye from '@/components/pagination/pageye' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
import req from '@/api/statement/deadStock' |
|||
|
|||
export default { |
|||
name: 'DeadStock', |
|||
components: { |
|||
Pagination, |
|||
pageye, |
|||
ButtonBar |
|||
}, |
|||
data() { |
|||
return { |
|||
btndisabled: false, |
|||
btnList: [ |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
viewState: 1, // 1、列表 2、新增 3、编辑 4、查看 |
|||
tableKey: 0, |
|||
list: [], |
|||
sids: [], // 用于导出的时候保存已选择的SIDs |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
useOrgName: '', |
|||
deptName: '', |
|||
goodsSpuName: '', |
|||
goodsSkuCode: '', |
|||
manufacturerName: '', |
|||
supplierName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
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 |
|||
} |
|||
}, |
|||
// 信息条数 获取点击时当前的sid |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach(element => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
}, |
|||
// 表中序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid') |
|||
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|||
this.listQuery.params.menuUrl = this.$route.path |
|||
req.deadStockList(this.listQuery).then((response) => { |
|||
this.listLoading = false |
|||
if (response.success) { |
|||
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 = { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
useOrgName: '', |
|||
deptName: '', |
|||
goodsSpuName: '', |
|||
goodsSkuCode: '', |
|||
manufacturerName: '', |
|||
supplierName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,214 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!--列表页面--> |
|||
<div v-show="viewState == 1"> |
|||
<button-bar view-title="营业保外分析" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> |
|||
<!--Start查询列表部分--> |
|||
<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-date-picker v-model="listQuery.params.settleStartTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.settleEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center;"> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleToday">本日</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentMonth">本月</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentYear">本年</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
<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> |
|||
<!--Start 主页面主要部分 --> |
|||
<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="50"/> |
|||
<el-table-column fixed label="序号" type="index" width="80" :index="indexMethod" align="center"/> |
|||
<el-table-column prop="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="billType" label="维修单类型" align="center" width="100" /> |
|||
<el-table-column prop="hourAmount" label="工时费" align="center" width="100" /> |
|||
<el-table-column prop="goodsAmount" label="材料费" align="center" min-width="100" /> |
|||
<el-table-column prop="addAmount" label="附加费" align="center" min-width="100" /> |
|||
<el-table-column prop="otherAmount" label="其他附加费" align="center" width="100" /> |
|||
<el-table-column prop="totalAmount" label="收入合计" align="center" width="100" /> |
|||
<el-table-column prop="hourAmountCost" label="工时成本" align="center" width="100" /> |
|||
<el-table-column prop="goodsAmountCost" label="材料成本" align="center" width="100" /> |
|||
<el-table-column prop="otherAmountCost" label="附加成本" align="center" width="100" /> |
|||
<el-table-column prop="totalCost" label="成本合计" align="center" width="100" /> |
|||
<el-table-column prop="profit" label="利润合计" align="center" width="100" /> |
|||
<el-table-column prop="billNum" label="涉及单数" align="center" width="100" /> |
|||
</el-table> |
|||
</div> |
|||
<!--End 主页面主要部分--> |
|||
<div class="pages"> |
|||
<div class="tit"/> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Pagination from '@/components/pagination' |
|||
import pageye from '@/components/pagination/pageye' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
import req from '@/api/statement/doBusiness' |
|||
|
|||
export default { |
|||
name: 'BusinessAnalysisByFirst', |
|||
components: { |
|||
Pagination, |
|||
pageye, |
|||
ButtonBar |
|||
}, |
|||
data() { |
|||
return { |
|||
btndisabled: false, |
|||
btnList: [ |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
viewState: 1, // 1、列表 2、新增 3、编辑 4、查看 |
|||
tableKey: 0, |
|||
list: [], |
|||
sids: [], // 用于导出的时候保存已选择的SIDs |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
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 |
|||
} |
|||
}, |
|||
// 信息条数 获取点击时当前的sid |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach(element => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
}, |
|||
// 表中序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid') |
|||
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|||
this.listQuery.params.menuUrl = this.$route.path |
|||
req.outInsuranceBusiness(this.listQuery).then((response) => { |
|||
this.listLoading = false |
|||
if (response.success) { |
|||
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() |
|||
}, |
|||
handleToday() { |
|||
this.listQuery.params.dateType = '1' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentMonth() { |
|||
this.listQuery.params.dateType = '2' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentYear() { |
|||
this.listQuery.params.dateType = '3' |
|||
this.handleFilter() |
|||
}, |
|||
// 点击重置 |
|||
handleReset() { |
|||
this.listQuery = { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,215 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!--列表页面--> |
|||
<div v-show="viewState == 1"> |
|||
<button-bar view-title="营业欠款分析" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> |
|||
<!--Start查询列表部分--> |
|||
<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-date-picker v-model="listQuery.params.settleStartTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.settleEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center;"> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleToday">本日</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentMonth">本月</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentYear">本年</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
<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> |
|||
<!--Start 主页面主要部分 --> |
|||
<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="50"/> |
|||
<el-table-column fixed label="序号" type="index" width="80" :index="indexMethod" align="center"/> |
|||
<el-table-column prop="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="billType" label="维修单类型" align="center" width="100" /> |
|||
<el-table-column prop="hourAmount" label="工时费" align="center" width="100" /> |
|||
<el-table-column prop="goodsAmount" label="材料费" align="center" min-width="100" /> |
|||
<el-table-column prop="addAmount" label="附加费" align="center" min-width="100" /> |
|||
<el-table-column prop="otherAmount" label="其他附加费" align="center" width="100" /> |
|||
<el-table-column prop="totalAmount" label="应收合计" align="center" width="100" /> |
|||
<el-table-column prop="hourAmountCost" label="工时成本" align="center" width="100" /> |
|||
<el-table-column prop="goodsAmountCost" label="材料成本" align="center" width="100" /> |
|||
<el-table-column prop="otherAmountCost" label="附加成本" align="center" width="100" /> |
|||
<el-table-column prop="totalCost" label="成本合计" align="center" width="100" /> |
|||
<el-table-column prop="billNum" label="单数" align="center" width="100" /> |
|||
<el-table-column prop="debtNum" label="当前欠款单数" align="center" width="100" /> |
|||
<el-table-column prop="debtAmount" label="当前欠款金额" align="center" width="100" /> |
|||
</el-table> |
|||
</div> |
|||
<!--End 主页面主要部分--> |
|||
<div class="pages"> |
|||
<div class="tit"/> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Pagination from '@/components/pagination' |
|||
import pageye from '@/components/pagination/pageye' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
import req from '@/api/statement/doBusiness' |
|||
|
|||
export default { |
|||
name: 'BusinessAnalysisBySecond', |
|||
components: { |
|||
Pagination, |
|||
pageye, |
|||
ButtonBar |
|||
}, |
|||
data() { |
|||
return { |
|||
btndisabled: false, |
|||
btnList: [ |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
viewState: 1, // 1、列表 2、新增 3、编辑 4、查看 |
|||
tableKey: 0, |
|||
list: [], |
|||
sids: [], // 用于导出的时候保存已选择的SIDs |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
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 |
|||
} |
|||
}, |
|||
// 信息条数 获取点击时当前的sid |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach(element => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
}, |
|||
// 表中序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid') |
|||
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|||
this.listQuery.params.menuUrl = this.$route.path |
|||
req.debtBusiness(this.listQuery).then((response) => { |
|||
this.listLoading = false |
|||
if (response.success) { |
|||
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() |
|||
}, |
|||
handleToday() { |
|||
this.listQuery.params.dateType = '1' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentMonth() { |
|||
this.listQuery.params.dateType = '2' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentYear() { |
|||
this.listQuery.params.dateType = '3' |
|||
this.handleFilter() |
|||
}, |
|||
// 点击重置 |
|||
handleReset() { |
|||
this.listQuery = { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,223 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!--列表页面--> |
|||
<div v-show="viewState == 1"> |
|||
<button-bar view-title="营业汇总" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> |
|||
<!--Start查询列表部分--> |
|||
<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-date-picker v-model="listQuery.params.settleStartTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.settleEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center;"> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleToday">本日</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentMonth">本月</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentYear">本年</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
<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> |
|||
<!--Start 主页面主要部分 --> |
|||
<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="50"/> |
|||
<el-table-column fixed label="序号" type="index" width="80" :index="indexMethod" align="center"/> |
|||
<el-table-column prop="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="settleTime" label="结算日期" align="center" width="100" /> |
|||
<el-table-column prop="turnover" label="营业额" align="center" width="100" /> |
|||
<el-table-column prop="billNum" label="涉及单数" align="center" min-width="100" /> |
|||
<el-table-column prop="hourAmount" label="工时" align="center" min-width="100" /> |
|||
<el-table-column prop="goodsAmount" label="材料" align="center" width="100" /> |
|||
<el-table-column prop="addAmount" label="附加项目" align="center" width="100" /> |
|||
<el-table-column prop="otherAmountCost" label="其他附加项目" align="center" width="100" /> |
|||
<el-table-column prop="backAmount" label="退货" align="center" width="100" /> |
|||
<el-table-column prop="cost" label="成本" align="center" width="100" /> |
|||
<el-table-column prop="hourAmountCost" label="工时成本" align="center" width="100" /> |
|||
<el-table-column prop="goodsAmountCost" label="材料成本" align="center" width="100" /> |
|||
<el-table-column prop="otherAmountCost" label="其他附加项目成本" align="center" width="100" /> |
|||
<el-table-column prop="grossProfit" label="毛利润" align="center" width="100" /> |
|||
<el-table-column prop="packsReceivable" label="三包应收" align="center" width="100" /> |
|||
<el-table-column prop="packsHourAmount" label="三包工时" align="center" width="100" /> |
|||
<el-table-column prop="packsGoodsAmount" label="三包用料" align="center" width="100" /> |
|||
<el-table-column prop="packsOtherAmount" label="三包(包含其他附加)" align="center" width="100" /> |
|||
<el-table-column prop="outReceivable" label="保外应收" align="center" width="100" /> |
|||
<el-table-column prop="outHourAmount" label="保外工时" align="center" width="100" /> |
|||
<el-table-column prop="outGoodsAmount" label="保外用料" align="center" width="100" /> |
|||
<el-table-column prop="outOtherAmount" label="保外附加(包含其他附加)" align="center" width="100" /> |
|||
</el-table> |
|||
</div> |
|||
<!--End 主页面主要部分--> |
|||
<div class="pages"> |
|||
<div class="tit"/> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Pagination from '@/components/pagination' |
|||
import pageye from '@/components/pagination/pageye' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
import req from '@/api/statement/doBusiness' |
|||
|
|||
export default { |
|||
name: 'BusinessSummary', |
|||
components: { |
|||
Pagination, |
|||
pageye, |
|||
ButtonBar |
|||
}, |
|||
data() { |
|||
return { |
|||
btndisabled: false, |
|||
btnList: [ |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
viewState: 1, // 1、列表 2、新增 3、编辑 4、查看 |
|||
tableKey: 0, |
|||
list: [], |
|||
sids: [], // 用于导出的时候保存已选择的SIDs |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
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 |
|||
} |
|||
}, |
|||
// 信息条数 获取点击时当前的sid |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach(element => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
}, |
|||
// 表中序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid') |
|||
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|||
this.listQuery.params.menuUrl = this.$route.path |
|||
req.businessSummary(this.listQuery).then((response) => { |
|||
this.listLoading = false |
|||
if (response.success) { |
|||
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() |
|||
}, |
|||
handleToday() { |
|||
this.listQuery.params.dateType = '1' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentMonth() { |
|||
this.listQuery.params.dateType = '2' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentYear() { |
|||
this.listQuery.params.dateType = '3' |
|||
this.handleFilter() |
|||
}, |
|||
// 点击重置 |
|||
handleReset() { |
|||
this.listQuery = { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,297 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!--列表页面--> |
|||
<div v-show="viewState == 1"> |
|||
<button-bar view-title="营业明细" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> |
|||
<!--Start查询列表部分--> |
|||
<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-date-picker v-model="listQuery.params.settleStartTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.settleEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="单据编号"> |
|||
<el-input v-model="listQuery.params.billNo" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="单据类型"> |
|||
<el-input v-model="listQuery.params.busType" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="维修单类型"> |
|||
<el-input v-model="listQuery.params.billType" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="科目"> |
|||
<el-input v-model="listQuery.params.subject" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="客户"> |
|||
<el-input v-model="listQuery.params.customer" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车牌号"> |
|||
<el-input v-model="listQuery.params.vehMark" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车架号"> |
|||
<el-input v-model="listQuery.params.vinNo" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="欠款"> |
|||
<el-input v-model="listQuery.params.vinNo" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="承诺回款日期"> |
|||
<el-date-picker v-model="listQuery.params.paymentStartDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
<span style="padding: 0 8px">至</span> |
|||
<el-date-picker v-model="listQuery.params.paymentEndDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item label="超期天数"> |
|||
<el-input v-model="listQuery.params.vinNo" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="对接人"> |
|||
<el-input v-model="listQuery.params.dockingPeople" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="服务顾问"> |
|||
<el-input v-model="listQuery.params.waitorName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center;"> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleToday">本日</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentMonth">本月</el-button> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleCurrentYear">本年</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
<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> |
|||
<!--Start 主页面主要部分 --> |
|||
<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="50"/> |
|||
<el-table-column fixed label="序号" type="index" width="80" :index="indexMethod" align="center"/> |
|||
<el-table-column prop="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="billNo" label="单据编号" align="center" width="100" /> |
|||
<el-table-column prop="createTime" label="开单时间" align="center" width="100" /> |
|||
<el-table-column prop="finishTime" label="竣工时间" align="center" min-width="100" /> |
|||
<el-table-column prop="settleTime" label="结算时间" align="center" min-width="100" /> |
|||
<el-table-column prop="busType" label="单据类型" align="center" width="100" /> |
|||
<el-table-column prop="billType" label="维修单类型" align="center" width="100" /> |
|||
<el-table-column prop="subject" label="维修科目" align="center" width="100" /> |
|||
<el-table-column prop="customerName" label="客户" align="center" width="100" /> |
|||
<el-table-column prop="vehMark" label="车牌号" align="center" width="100" /> |
|||
<el-table-column prop="vinNo" label="车架号" align="center" width="100" /> |
|||
<el-table-column prop="hourAmount" label="工时" align="center" width="100" /> |
|||
<el-table-column prop="goodsAmount" label="材料" align="center" width="100" /> |
|||
<el-table-column prop="addAmount" label="附加" align="center" width="100" /> |
|||
<el-table-column prop="otherAmount" label="其他附加" align="center" width="100" /> |
|||
<el-table-column prop="totalAmount" label="合计" align="center" width="100" /> |
|||
<el-table-column prop="costTotal" label="成本" align="center" width="100" /> |
|||
<el-table-column prop="hourAmountCost" label="工时成本" align="center" width="100" /> |
|||
<el-table-column prop="goodsAmountCost" label="材料成本" align="center" width="100" /> |
|||
<el-table-column prop="otherAmountCost" label="其他附加项目成本" align="center" width="100" /> |
|||
<el-table-column prop="profit" label="利润" align="center" width="100" /> |
|||
<el-table-column prop="receivedAmount" label="已交款" align="center" width="100" /> |
|||
<el-table-column prop="debt" label="欠款" align="center" width="100" /> |
|||
<el-table-column prop="paymentDate" label="承诺回款日期" align="center" width="100" /> |
|||
<el-table-column prop="overDueDays" label="超期天数" align="center" width="100" /> |
|||
<el-table-column prop="dockingPeople" label="对接人" align="center" width="100" /> |
|||
<el-table-column prop="waitorName" label="服务顾问" align="center" width="100" /> |
|||
</el-table> |
|||
</div> |
|||
<!--End 主页面主要部分--> |
|||
<div class="pages"> |
|||
<div class="tit"/> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Pagination from '@/components/pagination' |
|||
import pageye from '@/components/pagination/pageye' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
import req from '@/api/statement/doBusiness' |
|||
|
|||
export default { |
|||
name: 'OperatingDetail', |
|||
components: { |
|||
Pagination, |
|||
pageye, |
|||
ButtonBar |
|||
}, |
|||
data() { |
|||
return { |
|||
btndisabled: false, |
|||
btnList: [ |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
viewState: 1, // 1、列表 2、新增 3、编辑 4、查看 |
|||
tableKey: 0, |
|||
list: [], |
|||
sids: [], // 用于导出的时候保存已选择的SIDs |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
createEndTime: '', |
|||
busType: '', |
|||
billType: '', |
|||
subject: '', |
|||
customer: '', |
|||
billState: '', |
|||
serviceType: '', |
|||
debtStart: '', |
|||
debtEnd: '', |
|||
paymentStartDate: '', |
|||
paymentEndDate: '', |
|||
overdueStartDay: '', |
|||
overdueEndDay: '', |
|||
dockingPeople: '', |
|||
waitorName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
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 |
|||
} |
|||
}, |
|||
// 信息条数 获取点击时当前的sid |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach(element => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
}, |
|||
// 表中序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listLoading = true |
|||
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid') |
|||
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|||
this.listQuery.params.menuUrl = this.$route.path |
|||
req.businessDetails(this.listQuery).then((response) => { |
|||
this.listLoading = false |
|||
if (response.success) { |
|||
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() |
|||
}, |
|||
handleToday() { |
|||
this.listQuery.params.dateType = '1' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentMonth() { |
|||
this.listQuery.params.dateType = '2' |
|||
this.handleFilter() |
|||
}, |
|||
handleCurrentYear() { |
|||
this.listQuery.params.dateType = '3' |
|||
this.handleFilter() |
|||
}, |
|||
// 点击重置 |
|||
handleReset() { |
|||
this.listQuery = { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
settleStartTime: '', |
|||
settleEndTime: '', |
|||
dateType: '', |
|||
createEndTime: '', |
|||
busType: '', |
|||
billType: '', |
|||
subject: '', |
|||
customer: '', |
|||
billState: '', |
|||
serviceType: '', |
|||
debtStart: '', |
|||
debtEnd: '', |
|||
paymentStartDate: '', |
|||
paymentEndDate: '', |
|||
overdueStartDay: '', |
|||
overdueEndDay: '', |
|||
dockingPeople: '', |
|||
waitorName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,257 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<!--列表页面--> |
|||
<div v-show="viewState == 1"> |
|||
<button-bar view-title="库存查询" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/> |
|||
<!--Start查询列表部分--> |
|||
<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="商品ID"> |
|||
<el-input v-model="listQuery.params.goodsID" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="商品名称"> |
|||
<el-input v-model="listQuery.params.goodsSpuName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="图号"> |
|||
<el-input v-model="listQuery.params.goodsSkuCode" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="库存数量"> |
|||
<el-input v-model="listQuery.params.countStart" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="成本单价"> |
|||
<el-input v-model="listQuery.params.goodsSkuCode" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="销售单价"> |
|||
<el-input v-model="listQuery.params.goodsSkuCode" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="仓库"> |
|||
<el-input v-model="listQuery.params.warehouseName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="库区"> |
|||
<el-input v-model="listQuery.params.wareAreaName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="库位"> |
|||
<el-input v-model="listQuery.params.warehouseRackCode" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="供应商"> |
|||
<el-input v-model="listQuery.params.supplierName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="生产厂家"> |
|||
<el-input v-model="listQuery.params.manufacturerName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center;"> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
<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> |
|||
<!--Start 主页面主要部分 --> |
|||
<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="50"/> |
|||
<el-table-column fixed label="序号" type="index" width="80" :index="indexMethod" align="center"/> |
|||
<el-table-column prop="useOrgName" label="所属公司" align="center" min-width="130" /> |
|||
<el-table-column prop="deptName" label="所属门店" align="center" min-width="100" /> |
|||
<el-table-column prop="goodsID" label="商品ID" align="center" width="100" /> |
|||
<el-table-column prop="goodsSpuName" label="商品名称" align="center" width="100" /> |
|||
<el-table-column prop="goodsSkuCode" label="图号" align="center" min-width="100" /> |
|||
<el-table-column prop="goodsSkuOwnSpec" label="规格" align="center" min-width="100" /> |
|||
<el-table-column prop="unit" label="单位" align="center" width="100" /> |
|||
<el-table-column prop="count" label="库存数量" align="center" width="100" /> |
|||
<el-table-column prop="cost" label="成本单价" align="center" width="100" /> |
|||
<el-table-column prop="costTotal" label="成本合计" align="center" width="100" /> |
|||
<el-table-column prop="price" label="销售单价" align="center" width="100" /> |
|||
<el-table-column prop="warehouseName" label="仓库" align="center" width="100" /> |
|||
<el-table-column prop="wareAreaName" label="库区" align="center" width="100" /> |
|||
<el-table-column prop="warehouseRackCode" label="库位" align="center" width="100" /> |
|||
<el-table-column prop="supplierName" label="供应商" align="center" width="100" /> |
|||
<el-table-column prop="manufacturerName" label="生产厂家" align="center" width="100" /> |
|||
<el-table-column prop="firstInDate" label="首次入库日期" align="center" width="100" /> |
|||
<el-table-column prop="lastStorageDate" label="最近一次入库日期" align="center" width="100" /> |
|||
<el-table-column prop="lastSalesDate" label="最近一次销售时间" align="center" width="100" /> |
|||
<el-table-column prop="inventoryAge" label="最近一次入库距当前天数" align="center" width="100" /> |
|||
<el-table-column prop="manufactorBillNo" label="订单编号" align="center" width="100" /> |
|||
<el-table-column prop="procurementMethod" label="采购方式" align="center" width="100" /> |
|||
<el-table-column prop="purchaseTypeValue" label="采购类别" align="center" width="100" /> |
|||
<el-table-column prop="manufacturersOrderTypeValue" label="厂家订单类型" align="center" width="100" /> |
|||
</el-table> |
|||
</div> |
|||
<!--End 主页面主要部分--> |
|||
<div class="pages"> |
|||
<div class="tit"/> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
<!--End查询列表部分--> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Pagination from '@/components/pagination' |
|||
import pageye from '@/components/pagination/pageye' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
import req from '@/api/statement/inventory' |
|||
|
|||
export default { |
|||
name: 'Inventory', |
|||
components: { |
|||
Pagination, |
|||
pageye, |
|||
ButtonBar |
|||
}, |
|||
data() { |
|||
return { |
|||
btndisabled: false, |
|||
btnList: [ |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
viewState: 1, // 1、列表 2、新增 3、编辑 4、查看 |
|||
tableKey: 0, |
|||
list: [], |
|||
sids: [], // 用于导出的时候保存已选择的SIDs |
|||
FormLoading: false, |
|||
listLoading: false, |
|||
// 翻页 |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
goodsID: '', |
|||
goodsSpuName: '', |
|||
goodsSkuCode: '', |
|||
countStart: '', |
|||
countEnd: '', |
|||
costStart: '', |
|||
costEnd: '', |
|||
priceStart: '', |
|||
priceEnd: '', |
|||
warehouseName: '', |
|||
wareAreaName: '', |
|||
warehouseRackCode: '', |
|||
supplierName: '', |
|||
manufacturerName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
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 |
|||
} |
|||
}, |
|||
// 信息条数 获取点击时当前的sid |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach(element => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
}, |
|||
// 表中序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|||
req.inventoryStockList(this.listQuery).then((response) => { |
|||
this.listLoading = false |
|||
if (response.success) { |
|||
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 = { |
|||
current: 1, |
|||
size: 5, |
|||
total: 0, |
|||
params: { |
|||
goodsID: '', |
|||
goodsSpuName: '', |
|||
goodsSkuCode: '', |
|||
countStart: '', |
|||
countEnd: '', |
|||
costStart: '', |
|||
costEnd: '', |
|||
priceStart: '', |
|||
priceEnd: '', |
|||
warehouseName: '', |
|||
wareAreaName: '', |
|||
warehouseRackCode: '', |
|||
supplierName: '', |
|||
manufacturerName: '', |
|||
userSid: '', |
|||
orgPath: '', |
|||
menuUrl: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
Loading…
Reference in new issue