product
杨世强 2 years ago
commit a14b091e17

@ -35,10 +35,7 @@ import org.springframework.web.bind.annotation.*;
import javax.validation.Valid; import javax.validation.Valid;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.*;
import java.util.Date;
import java.util.List;
import java.util.Map;
/** /**
* *
@ -132,7 +129,12 @@ public class MonitoringitemController {
return ActionResult.success("成功"); return ActionResult.success("成功");
} }
@ApiOperation("移动端视频流地址获取")
@PostMapping("/getMobileList")
public ActionResult list(){
List<HashMap<String, Object>> list = monitoringitemService.getMonitoringitemList();
return ActionResult.success(list);
}
/** /**
* *
@ -141,6 +143,7 @@ public class MonitoringitemController {
* @return * @return
*/ */
@PostMapping("/getList") @PostMapping("/getList")
@ApiOperation("列表")
public ActionResult list(@RequestBody MonitoringitemPagination monitoringitemPagination)throws IOException{ public ActionResult list(@RequestBody MonitoringitemPagination monitoringitemPagination)throws IOException{
List<MonitoringitemEntity> list= monitoringitemService.getList(monitoringitemPagination); List<MonitoringitemEntity> list= monitoringitemService.getList(monitoringitemPagination);
//处理id字段转名称若无需转或者为空可删除 //处理id字段转名称若无需转或者为空可删除

@ -4,6 +4,9 @@ package jnpf.monitoringitem.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import jnpf.monitoringitem.entity.MonitoringitemEntity; import jnpf.monitoringitem.entity.MonitoringitemEntity;
import java.util.HashMap;
import java.util.List;
/** /**
* *
* *
@ -13,5 +16,5 @@ import jnpf.monitoringitem.entity.MonitoringitemEntity;
* 2023-02-13 * 2023-02-13
*/ */
public interface MonitoringitemMapper extends BaseMapper<MonitoringitemEntity> { public interface MonitoringitemMapper extends BaseMapper<MonitoringitemEntity> {
List<HashMap<String,Object>> getMonitorItemList();
} }

@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
import jnpf.monitoringitem.entity.MonitoringitemEntity; import jnpf.monitoringitem.entity.MonitoringitemEntity;
import jnpf.monitoringitem.model.monitoringitem.MonitoringitemPagination; import jnpf.monitoringitem.model.monitoringitem.MonitoringitemPagination;
import java.util.HashMap;
import java.util.List; import java.util.List;
/** /**
* *
@ -20,7 +21,7 @@ public interface MonitoringitemService extends IService<MonitoringitemEntity> {
List<MonitoringitemEntity> getTypeList(MonitoringitemPagination monitoringitemPagination,String dataType); List<MonitoringitemEntity> getTypeList(MonitoringitemPagination monitoringitemPagination,String dataType);
List<HashMap<String,Object>> getMonitoringitemList();
MonitoringitemEntity getInfo(String id); MonitoringitemEntity getInfo(String id);

@ -18,8 +18,10 @@ import jnpf.util.UserProvider;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap;
import java.util.List; import java.util.List;
/** /**
@ -40,7 +42,8 @@ public class MonitoringitemServiceImpl extends ServiceImpl<MonitoringitemMapper,
@Autowired @Autowired
private AuthorizeService authorizeService; private AuthorizeService authorizeService;
@Resource
private MonitoringitemMapper monitoringitemMapper;
@ -191,6 +194,11 @@ public class MonitoringitemServiceImpl extends ServiceImpl<MonitoringitemMapper,
} }
} }
@Override
public List<HashMap<String, Object>> getMonitoringitemList() {
return monitoringitemMapper.getMonitorItemList();
}
@Override @Override
public MonitoringitemEntity getInfo(String id){ public MonitoringitemEntity getInfo(String id){
QueryWrapper<MonitoringitemEntity> queryWrapper=new QueryWrapper<>(); QueryWrapper<MonitoringitemEntity> queryWrapper=new QueryWrapper<>();

@ -1,56 +1,56 @@
package jnpf.supplier.controller; package jnpf.supplier.controller;
import cn.afterturn.easypoi.excel.ExcelExportUtil; import cn.afterturn.easypoi.excel.ExcelExportUtil;
import cn.afterturn.easypoi.excel.entity.ExportParams; import cn.afterturn.easypoi.excel.entity.ExportParams;
import cn.afterturn.easypoi.excel.entity.params.ExcelExportEntity;
import cn.afterturn.easypoi.excel.entity.enmus.ExcelType; import cn.afterturn.easypoi.excel.entity.enmus.ExcelType;
import cn.afterturn.easypoi.excel.entity.params.ExcelExportEntity;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import jnpf.base.ActionResult; import jnpf.base.ActionResult;
import jnpf.base.vo.PageListVO;
import jnpf.base.vo.PaginationVO;
import jnpf.base.UserInfo; import jnpf.base.UserInfo;
import jnpf.base.vo.DownloadVO; import jnpf.base.vo.DownloadVO;
import jnpf.base.vo.PageListVO;
import jnpf.base.vo.PaginationVO;
import jnpf.config.ConfigValueUtil; import jnpf.config.ConfigValueUtil;
import jnpf.exception.DataException; import jnpf.exception.DataException;
import org.springframework.transaction.annotation.Transactional; import jnpf.supplier.entity.SupplierEntity;
import jnpf.supplier.entity.SupplierMobileEntity;
import jnpf.supplier.model.supplier.*; import jnpf.supplier.model.supplier.*;
import jnpf.supplier.model.supplier.SupplierPagination; import jnpf.supplier.service.SupplierService;
import jnpf.util.*; import jnpf.util.*;
import lombok.extern.slf4j.Slf4j; import jnpf.util.enums.FileTypeEnum;
import jnpf.util.file.UploadUtil;
import lombok.Cleanup; import lombok.Cleanup;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import jnpf.supplier.entity.SupplierMobileEntity;
import jnpf.supplier.service.SupplierMobileService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid; import javax.validation.Valid;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import jnpf.util.GeneraterSwapUtil; import java.util.ArrayList;
import java.util.*; import java.util.HashMap;
import java.util.List;
import jnpf.util.file.UploadUtil; import java.util.Map;
import jnpf.util.enums.FileTypeEnum;
/** /**
* *
* supplier *
* @ V3.2.0 * @ V3.2.0
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ 2023-02-13 * @ 2023-02-16
*/ */
@Slf4j @Slf4j
@RestController @RestController
@Api(tags = "supplier" , value = "supplier") @Api(tags = "供应商档案" , value = "example")
@RequestMapping("/api/supplier/Supplier") @RequestMapping("/api/example/Supplier")
public class SupplierMobileController { public class SupplierController {
@Autowired @Autowired
private GeneraterSwapUtil generaterSwapUtil; private GeneraterSwapUtil generaterSwapUtil;
@ -62,7 +62,7 @@ public class SupplierMobileController {
private UserProvider userProvider; private UserProvider userProvider;
@Autowired @Autowired
private SupplierMobileService supplierMobileService; private SupplierService supplierService;
@ -75,10 +75,12 @@ public class SupplierMobileController {
*/ */
@PostMapping("/getList") @PostMapping("/getList")
public ActionResult list(@RequestBody SupplierPagination supplierPagination)throws IOException{ public ActionResult list(@RequestBody SupplierPagination supplierPagination)throws IOException{
List<SupplierMobileEntity> list= supplierMobileService.getList(supplierPagination); List<SupplierMobileEntity> list= supplierService.getList(supplierPagination);
//处理id字段转名称若无需转或者为空可删除 //处理id字段转名称若无需转或者为空可删除
for(SupplierMobileEntity entity:list){ for(SupplierMobileEntity entity:list){
entity.setCompanyId(generaterSwapUtil.comSelectValues(entity.getCompanyId())); Map<String,Object> companyIdMap = new HashMap<>();
entity.setCompanyId(generaterSwapUtil.getPopupSelectValue("394016341591396805","F_Id","F_FullName",entity.getCompanyId(),companyIdMap));
entity.setProvince(generaterSwapUtil.provinceData(entity.getProvince()));
entity.setStatus(generaterSwapUtil.switchSelectValue(entity.getStatus() ,"1" ,"0")); entity.setStatus(generaterSwapUtil.switchSelectValue(entity.getStatus() ,"1" ,"0"));
} }
List<SupplierListVO> listVO=JsonUtil.getJsonToList(list,SupplierListVO.class); List<SupplierListVO> listVO=JsonUtil.getJsonToList(list,SupplierListVO.class);
@ -105,9 +107,10 @@ public class SupplierMobileController {
public ActionResult create(@RequestBody @Valid SupplierCrForm supplierCrForm) throws DataException { public ActionResult create(@RequestBody @Valid SupplierCrForm supplierCrForm) throws DataException {
String mainId =RandomUtil.uuId(); String mainId =RandomUtil.uuId();
UserInfo userInfo=userProvider.get(); UserInfo userInfo=userProvider.get();
SupplierMobileEntity entity = JsonUtil.getJsonToBean(supplierCrForm, SupplierMobileEntity.class); supplierCrForm.setCreatorTime(DateUtil.getNow());
SupplierEntity entity = JsonUtil.getJsonToBean(supplierCrForm, SupplierEntity.class);
entity.setId(mainId); entity.setId(mainId);
supplierMobileService.save(entity); supplierService.save(entity);
return ActionResult.success("创建成功"); return ActionResult.success("创建成功");
@ -145,10 +148,12 @@ public class SupplierMobileController {
return ActionResult.fail("请选择导出字段"); return ActionResult.fail("请选择导出字段");
} }
SupplierPagination supplierPagination=JsonUtil.getJsonToBean(supplierPaginationExportModel, SupplierPagination.class); SupplierPagination supplierPagination=JsonUtil.getJsonToBean(supplierPaginationExportModel, SupplierPagination.class);
List<SupplierMobileEntity> list= supplierMobileService.getTypeList(supplierPagination,supplierPaginationExportModel.getDataType()); List<SupplierEntity> list= supplierService.getTypeList(supplierPagination,supplierPaginationExportModel.getDataType());
//处理id字段转名称若无需转或者为空可删除 //处理id字段转名称若无需转或者为空可删除
for(SupplierMobileEntity entity:list){ for(SupplierEntity entity:list){
entity.setCompanyId(generaterSwapUtil.comSelectValues(entity.getCompanyId())); Map<String,Object> companyIdMap = new HashMap<>();
entity.setCompanyId(generaterSwapUtil.getPopupSelectValue("394016341591396805","F_Id","F_FullName",entity.getCompanyId(),companyIdMap));
entity.setProvince(generaterSwapUtil.provinceData(entity.getProvince()));
entity.setStatus(generaterSwapUtil.switchSelectValue(entity.getStatus() ,"1" ,"0")); entity.setStatus(generaterSwapUtil.switchSelectValue(entity.getStatus() ,"1" ,"0"));
} }
List<SupplierListVO> listVO=JsonUtil.getJsonToList(list,SupplierListVO.class); List<SupplierListVO> listVO=JsonUtil.getJsonToList(list,SupplierListVO.class);
@ -172,33 +177,75 @@ public class SupplierMobileController {
case "supplierCode" : case "supplierCode" :
entitys.add(new ExcelExportEntity("供应商编码" ,"supplierCode")); entitys.add(new ExcelExportEntity("供应商编码" ,"supplierCode"));
break; break;
case "companyId" :
entitys.add(new ExcelExportEntity("所属公司" ,"companyId"));
break;
case "supplierName" : case "supplierName" :
entitys.add(new ExcelExportEntity("供应商名称" ,"supplierName")); entitys.add(new ExcelExportEntity("供应商名称" ,"supplierName"));
break; break;
case "supplierSiteId" : case "country" :
entitys.add(new ExcelExportEntity("供应商地点ID" ,"supplierSiteId")); entitys.add(new ExcelExportEntity("国家" ,"country"));
break; break;
case "supplierSiteCode" : case "supply" :
entitys.add(new ExcelExportEntity("供应商地点名称" ,"supplierSiteCode")); entitys.add(new ExcelExportEntity("供货指标" ,"supply"));
break; break;
case "companyId" : case "province" :
entitys.add(new ExcelExportEntity("公司名称" ,"companyId")); entitys.add(new ExcelExportEntity("省" ,"province"));
break;
case "address" :
entitys.add(new ExcelExportEntity("地址" ,"address"));
break; break;
case "contactName" : case "contactName" :
entitys.add(new ExcelExportEntity("联系人" ,"contactName")); entitys.add(new ExcelExportEntity("联系人" ,"contactName"));
break; break;
case "supplierLevel" :
entitys.add(new ExcelExportEntity("供应商等级" ,"supplierLevel"));
break;
case "contactPhone" : case "contactPhone" :
entitys.add(new ExcelExportEntity("联系电话" ,"contactPhone")); entitys.add(new ExcelExportEntity("联系电话" ,"contactPhone"));
break; break;
case "supplierLevel" : case "enterprise" :
entitys.add(new ExcelExportEntity("供应商等级" ,"supplierLevel")); entitys.add(new ExcelExportEntity("供应商性质" ,"enterprise"));
break;
case "address" :
entitys.add(new ExcelExportEntity("地址" ,"address"));
break;
case "classification" :
entitys.add(new ExcelExportEntity("供应商类型" ,"classification"));
break;
case "bank" :
entitys.add(new ExcelExportEntity("开户行" ,"bank"));
break;
case "vatRegistrationNum" :
entitys.add(new ExcelExportEntity("纳税编号" ,"vatRegistrationNum"));
break;
case "bankAccount" :
entitys.add(new ExcelExportEntity("银行账户" ,"bankAccount"));
break;
case "taxCode" :
entitys.add(new ExcelExportEntity("默认税码" ,"taxCode"));
break;
case "payable" :
entitys.add(new ExcelExportEntity("应付科目" ,"payable"));
break;
case "isPurchase" :
entitys.add(new ExcelExportEntity("是否采购" ,"isPurchase"));
break;
case "prepaid" :
entitys.add(new ExcelExportEntity("预付科目" ,"prepaid"));
break;
case "isPayment" :
entitys.add(new ExcelExportEntity("是否付款" ,"isPayment"));
break; break;
case "status" : case "status" :
entitys.add(new ExcelExportEntity("启用" ,"status")); entitys.add(new ExcelExportEntity("启用" ,"status"));
break; break;
case "supplierSiteCode" :
entitys.add(new ExcelExportEntity("供应商地点" ,"supplierSiteCode"));
break;
case "creatorTime" :
entitys.add(new ExcelExportEntity("创建时间" ,"creatorTime"));
break;
case "lastModifyTime" :
entitys.add(new ExcelExportEntity("修改时间" ,"lastModifyTime"));
break;
default: default:
break; break;
} }
@ -260,8 +307,14 @@ public class SupplierMobileController {
*/ */
@GetMapping("/{id}") @GetMapping("/{id}")
public ActionResult<SupplierInfoVO> info(@PathVariable("id") String id){ public ActionResult<SupplierInfoVO> info(@PathVariable("id") String id){
SupplierMobileEntity entity= supplierMobileService.getInfo(id); SupplierEntity entity= supplierService.getInfo(id);
SupplierInfoVO vo=JsonUtil.getJsonToBean(entity, SupplierInfoVO.class); SupplierInfoVO vo=JsonUtil.getJsonToBean(entity, SupplierInfoVO.class);
if(vo.getCreatorTime()!=null){
vo.setCreatorTime(vo.getCreatorTime());
}
if(vo.getLastModifyTime()!=null){
vo.setLastModifyTime(vo.getLastModifyTime());
}
//子表 //子表
//副表 //副表
@ -276,7 +329,7 @@ public class SupplierMobileController {
*/ */
@GetMapping("/detail/{id}") @GetMapping("/detail/{id}")
public ActionResult<SupplierInfoVO> detailInfo(@PathVariable("id") String id){ public ActionResult<SupplierInfoVO> detailInfo(@PathVariable("id") String id){
SupplierMobileEntity entity= supplierMobileService.getInfo(id); SupplierEntity entity= supplierService.getInfo(id);
SupplierInfoVO vo=JsonUtil.getJsonToBean(entity, SupplierInfoVO.class); SupplierInfoVO vo=JsonUtil.getJsonToBean(entity, SupplierInfoVO.class);
//子表数据转换 //子表数据转换
@ -284,7 +337,9 @@ public class SupplierMobileController {
//附表数据转换 //附表数据转换
//添加到详情表单对象中 //添加到详情表单对象中
vo.setCompanyId(generaterSwapUtil.comSelectValues(vo.getCompanyId())); Map<String,Object> companyIdMap = new HashMap<>();
vo.setCompanyId(generaterSwapUtil.getPopupSelectValue("394016341591396805","F_Id","F_FullName",vo.getCompanyId(),companyIdMap));
vo.setProvince(generaterSwapUtil.provinceData(vo.getProvince()));
vo.setStatus(generaterSwapUtil.switchSelectValue(vo.getStatus() ,"1" ,"0")); vo.setStatus(generaterSwapUtil.switchSelectValue(vo.getStatus() ,"1" ,"0"));
return ActionResult.success(vo); return ActionResult.success(vo);
@ -303,10 +358,12 @@ public class SupplierMobileController {
@Transactional @Transactional
public ActionResult update(@PathVariable("id") String id,@RequestBody @Valid SupplierUpForm supplierUpForm) throws DataException { public ActionResult update(@PathVariable("id") String id,@RequestBody @Valid SupplierUpForm supplierUpForm) throws DataException {
UserInfo userInfo=userProvider.get(); UserInfo userInfo=userProvider.get();
SupplierMobileEntity entity= supplierMobileService.getInfo(id); SupplierEntity entity= supplierService.getInfo(id);
if(entity!=null){ if(entity!=null){
SupplierMobileEntity subentity=JsonUtil.getJsonToBean(supplierUpForm, SupplierMobileEntity.class); supplierUpForm.setLastModifyTime(DateUtil.getNow());
supplierMobileService.update(id, subentity); SupplierEntity subentity=JsonUtil.getJsonToBean(supplierUpForm, SupplierEntity.class);
subentity.setCreatorTime(entity.getCreatorTime());
supplierService.update(id, subentity);
return ActionResult.success("更新成功"); return ActionResult.success("更新成功");
}else{ }else{
return ActionResult.fail("更新失败,数据不存在"); return ActionResult.fail("更新失败,数据不存在");
@ -324,9 +381,9 @@ public class SupplierMobileController {
@DeleteMapping("/{id}") @DeleteMapping("/{id}")
@Transactional @Transactional
public ActionResult delete(@PathVariable("id") String id){ public ActionResult delete(@PathVariable("id") String id){
SupplierMobileEntity entity= supplierMobileService.getInfo(id); SupplierEntity entity= supplierService.getInfo(id);
if(entity!=null){ if(entity!=null){
supplierMobileService.delete(entity); supplierService.delete(entity);
} }
return ActionResult.success("删除成功"); return ActionResult.success("删除成功");
@ -337,9 +394,4 @@ public class SupplierMobileController {
} }

@ -0,0 +1,131 @@
package jnpf.supplier.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
/**
*
*
* @ V3.2.0
* @ LINKAGE-BOOT
* @ LINKAGE-BOOT
* @ 2023-02-16
*/
@Data
@TableName("jg_supplier")
public class SupplierEntity {
@TableId("ID")
private String id;
@TableField("CREATOR_USER_ID")
private String creatorUserId;
@TableField("CREATOR_USER_NAME")
private String creatorUserName;
@TableField("CREATOR_TIME")
private Date creatorTime;
@TableField("LAST_MODIFY_USER_ID")
private String lastModifyUserId;
@TableField("LAST_MODIFY_USER_NAME")
private String lastModifyUserName;
@TableField("LAST_MODIFY_TIME")
private Date lastModifyTime;
@TableField("DELETE_USER_ID")
private String deleteUserId;
@TableField("DELETE_USER_NAME")
private String deleteUserName;
@TableField("DELETE_TIME")
private Date deleteTime;
@TableField("DELETE_MARK")
private String deleteMark;
@TableField("SUPPLIER_CODE")
private String supplierCode;
@TableField("SUPPLIER_NAME")
private String supplierName;
@TableField("SUPPLIER_SITE_ID")
private String supplierSiteId;
@TableField("SUPPLIER_SITE_CODE")
private String supplierSiteCode;
@TableField("COMPANY_ID")
private String companyId;
@TableField("VAT_REGISTRATION_NUM")
private String vatRegistrationNum;
@TableField("ORGNIZE_ID")
private String orgnizeId;
@TableField("DEPARTMENT_ID")
private String departmentId;
@TableField("SUPPLY")
private Integer supply;
@TableField("CONTACT_NAME")
private String contactName;
@TableField("CONTACT_PHONE")
private String contactPhone;
@TableField("SUPPLIER_LEVEL")
private String supplierLevel;
@TableField("ADDRESS")
private String address;
@TableField("STATUS")
private String status;
@TableField("COUNTRY")
private String country;
@TableField("PROVINCE")
private String province;
@TableField("CLASSIFICATION")
private String classification;
@TableField("ENTERPRISE")
private String enterprise;
@TableField("BANK")
private String bank;
@TableField("BANK_ACCOUNT")
private String bankAccount;
@TableField("TAX_CODE")
private String taxCode;
@TableField("PAYABLE")
private String payable;
@TableField("PREPAID")
private String prepaid;
@TableField("IS_PURCHASE")
private String isPurchase;
@TableField("IS_PAYMENT")
private String isPayment;
}

@ -1,25 +1,19 @@
package jnpf.supplier.entity; package jnpf.supplier.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonProperty;
/** /**
* * @Author: WangChuang
* * @Date: 16/2/2023 10:06
* @ V3.2.0 * @Description //注释:
* @ LINKAGE-BOOT * @Version 1.0
* @ LINKAGE-BOOT
* @ 2023-02-13
*/ */
@Data @Data
@TableName("jg_supplier")
public class SupplierMobileEntity { public class SupplierMobileEntity {
@TableId("ID") @TableId("ID")
@ -70,9 +64,6 @@ public class SupplierMobileEntity {
@TableField("COMPANY_ID") @TableField("COMPANY_ID")
private String companyId; private String companyId;
@TableField("COMPANY_NAME")
private String companyName;
@TableField("VAT_REGISTRATION_NUM") @TableField("VAT_REGISTRATION_NUM")
private String vatRegistrationNum; private String vatRegistrationNum;
@ -100,4 +91,46 @@ public class SupplierMobileEntity {
@TableField("STATUS") @TableField("STATUS")
private String status; private String status;
@TableField("COUNTRY")
private String country;
@TableField("PROVINCE")
private String province;
@TableField("CLASSIFICATION")
private String classification;
@TableField("ENTERPRISE")
private String enterprise;
@TableField("BANK")
private String bank;
@TableField("BANK_ACCOUNT")
private String bankAccount;
@TableField("TAX_CODE")
private String taxCode;
@TableField("PAYABLE")
private String payable;
@TableField("PREPAID")
private String prepaid;
@TableField("IS_PURCHASE")
private String isPurchase;
@TableField("IS_PAYMENT")
private String isPayment;
private BigDecimal settlemenSum;
private BigDecimal weightSum;
private BigDecimal buckleWeightSum;
private BigDecimal grossWeightSum;
private BigDecimal salesPriceSum;
} }

@ -0,0 +1,23 @@
package jnpf.supplier.mapper;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import jnpf.supplier.entity.SupplierEntity;
import jnpf.supplier.entity.SupplierMobileEntity;
import org.apache.ibatis.annotations.Param;
/**
*
*
* V3.2.0
* LINKAGE-BOOT
* LINKAGE-BOOT
* 2023-02-16
*/
public interface SupplierMapper extends BaseMapper<SupplierEntity> {
IPage<SupplierMobileEntity> getSupplierList(@Param("page") Page<SupplierMobileEntity> page,@Param("ew") Wrapper<SupplierEntity> queryWrapper);
}

@ -1,17 +0,0 @@
package jnpf.supplier.mapper;
import jnpf.supplier.entity.SupplierMobileEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
*
* supplier
* V3.2.0
* LINKAGE-BOOT
* LINKAGE-BOOT
* 2023-02-13
*/
public interface SupplierMobileMapper extends BaseMapper<SupplierMobileEntity> {
}

@ -14,7 +14,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
* @ V3.2.0 * @ V3.2.0
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ 2023-02-13 * @ 2023-02-16
*/ */
@Data @Data
public class SupplierCrForm { public class SupplierCrForm {
@ -23,42 +23,98 @@ public class SupplierCrForm {
@JsonProperty("supplierCode") @JsonProperty("supplierCode")
private String supplierCode; private String supplierCode;
/** 所属公司 **/
@JsonProperty("companyId")
private String companyId;
/** 供应商名称 **/ /** 供应商名称 **/
@JsonProperty("supplierName") @JsonProperty("supplierName")
private String supplierName; private String supplierName;
/** 供应商地点ID **/ /** 国家 **/
@JsonProperty("supplierSiteId") @JsonProperty("country")
private String supplierSiteId; private String country;
/** 供应商地点名称 **/ /** 供货指标 **/
@JsonProperty("supplierSiteCode") @JsonProperty("supply")
private String supplierSiteCode; private String supply;
/** 公司名称 **/ /** 省 **/
@JsonProperty("companyId") @JsonProperty("province")
private String companyId; private String province;
/** 地址 **/
@JsonProperty("address")
private String address;
/** 联系人 **/ /** 联系人 **/
@JsonProperty("contactName") @JsonProperty("contactName")
private String contactName; private String contactName;
/** 供应商等级 **/
@JsonProperty("supplierLevel")
private String supplierLevel;
/** 联系电话 **/ /** 联系电话 **/
@JsonProperty("contactPhone") @JsonProperty("contactPhone")
private String contactPhone; private String contactPhone;
/** 供应商等级 **/ /** 供应商性质 **/
@JsonProperty("supplierLevel") @JsonProperty("enterprise")
private String supplierLevel; private String enterprise;
/** 地址 **/
@JsonProperty("address")
private String address;
/** 供应商类型 **/
@JsonProperty("classification")
private String classification;
/** 开户行 **/
@JsonProperty("bank")
private String bank;
/** 纳税编号 **/
@JsonProperty("vatRegistrationNum")
private String vatRegistrationNum;
/** 银行账户 **/
@JsonProperty("bankAccount")
private String bankAccount;
/** 默认税码 **/
@JsonProperty("taxCode")
private String taxCode;
/** 应付科目 **/
@JsonProperty("payable")
private String payable;
/** 是否采购 **/
@JsonProperty("isPurchase")
private String isPurchase;
/** 预付科目 **/
@JsonProperty("prepaid")
private String prepaid;
/** 是否付款 **/
@JsonProperty("isPayment")
private String isPayment;
/** 启用 **/ /** 启用 **/
@JsonProperty("status") @JsonProperty("status")
private String status; private String status;
/** 供应商地点 **/
@JsonProperty("supplierSiteCode")
private String supplierSiteCode;
/** 创建时间 **/
@JsonProperty("creatorTime")
private String creatorTime;
/** 修改时间 **/
@JsonProperty("lastModifyTime")
private String lastModifyTime;
} }

@ -15,7 +15,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
* @ V3.2.0 * @ V3.2.0
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ 2023-02-13 * @ 2023-02-16
*/ */
@Data @Data
public class SupplierInfoVO{ public class SupplierInfoVO{
@ -27,40 +27,98 @@ public class SupplierInfoVO{
@JsonProperty("supplierCode") @JsonProperty("supplierCode")
private String supplierCode; private String supplierCode;
/** 所属公司 **/
@JsonProperty("companyId")
private String companyId;
/** 供应商名称 **/ /** 供应商名称 **/
@JsonProperty("supplierName") @JsonProperty("supplierName")
private String supplierName; private String supplierName;
/** 供应商地点ID **/ /** 国家 **/
@JsonProperty("supplierSiteId") @JsonProperty("country")
private String supplierSiteId; private String country;
/** 供应商地点名称 **/ /** 供货指标 **/
@JsonProperty("supplierSiteCode") @JsonProperty("supply")
private String supplierSiteCode; private String supply;
/** 公司名称 **/ /** 省 **/
@JsonProperty("companyId") @JsonProperty("province")
private String companyId; private String province;
/** 地址 **/
@JsonProperty("address")
private String address;
/** 联系人 **/ /** 联系人 **/
@JsonProperty("contactName") @JsonProperty("contactName")
private String contactName; private String contactName;
/** 供应商等级 **/
@JsonProperty("supplierLevel")
private String supplierLevel;
/** 联系电话 **/ /** 联系电话 **/
@JsonProperty("contactPhone") @JsonProperty("contactPhone")
private String contactPhone; private String contactPhone;
/** 供应商等级 **/ /** 供应商性质 **/
@JsonProperty("supplierLevel") @JsonProperty("enterprise")
private String supplierLevel; private String enterprise;
/** 地址 **/
@JsonProperty("address")
private String address;
/** 供应商类型 **/
@JsonProperty("classification")
private String classification;
/** 开户行 **/
@JsonProperty("bank")
private String bank;
/** 纳税编号 **/
@JsonProperty("vatRegistrationNum")
private String vatRegistrationNum;
/** 银行账户 **/
@JsonProperty("bankAccount")
private String bankAccount;
/** 默认税码 **/
@JsonProperty("taxCode")
private String taxCode;
/** 应付科目 **/
@JsonProperty("payable")
private String payable;
/** 是否采购 **/
@JsonProperty("isPurchase")
private String isPurchase;
/** 预付科目 **/
@JsonProperty("prepaid")
private String prepaid;
/** 是否付款 **/
@JsonProperty("isPayment")
private String isPayment;
/** 启用 **/ /** 启用 **/
@JsonProperty("status") @JsonProperty("status")
private String status; private String status;
/** 供应商地点 **/
@JsonProperty("supplierSiteCode")
private String supplierSiteCode;
/** 创建时间 **/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
@JsonProperty("creatorTime")
private Date creatorTime;
/** 修改时间 **/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
@JsonProperty("lastModifyTime")
private Date lastModifyTime;
} }

@ -10,7 +10,7 @@ import java.util.List;
* @ V3.2.0 * @ V3.2.0
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ 2023-02-13 * @ 2023-02-16
*/ */
@Data @Data
public class SupplierListQuery extends Pagination { public class SupplierListQuery extends Pagination {
@ -20,6 +20,15 @@ public class SupplierListQuery extends Pagination {
/** 供应商名称 */ /** 供应商名称 */
private String supplierName; private String supplierName;
/** 联系人 */
private String contactName;
/** 联系电话 */
private String contactPhone;
/** 供应商地点 */
private String supplierSiteCode;
/** /**
* id * id
*/ */

@ -3,19 +3,19 @@
package jnpf.supplier.model.supplier; package jnpf.supplier.model.supplier;
import lombok.Data;
import java.sql.Time;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date;
/** /**
* *
* *
* @ V3.2.0 * @ V3.2.0
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ 2023-02-13 * @ 2023-02-16
*/ */
@Data @Data
public class SupplierListVO{ public class SupplierListVO{
@ -29,29 +29,29 @@ public class SupplierListVO{
private String supplierCode; private String supplierCode;
/** 所属公司 **/
@JsonProperty("companyId")
private String companyId;
/** 供应商名称 **/ /** 供应商名称 **/
@JsonProperty("supplierName") @JsonProperty("supplierName")
private String supplierName; private String supplierName;
/** 供应商地点ID **/ /** 国家 **/
@JsonProperty("supplierSiteId") @JsonProperty("country")
private String supplierSiteId; private String country;
/** 供应商地点名称 **/ /** 供货指标 **/
@JsonProperty("supplierSiteCode") @JsonProperty("supply")
private String supplierSiteCode; private String supply;
/** 公司名称 **/ /** 省 **/
@JsonProperty("companyId") @JsonProperty("province")
private String companyId; private String province;
/** 地址 **/
@JsonProperty("address")
private String address;
/** 联系人 **/ /** 联系人 **/
@ -59,14 +59,69 @@ public class SupplierListVO{
private String contactName; private String contactName;
/** 供应商等级 **/
@JsonProperty("supplierLevel")
private String supplierLevel;
/** 联系电话 **/ /** 联系电话 **/
@JsonProperty("contactPhone") @JsonProperty("contactPhone")
private String contactPhone; private String contactPhone;
/** 供应商等级 **/ /** 供应商性质 **/
@JsonProperty("supplierLevel") @JsonProperty("enterprise")
private String supplierLevel; private String enterprise;
/** 地址 **/
@JsonProperty("address")
private String address;
/** 供应商类型 **/
@JsonProperty("classification")
private String classification;
/** 开户行 **/
@JsonProperty("bank")
private String bank;
/** 纳税编号 **/
@JsonProperty("vatRegistrationNum")
private String vatRegistrationNum;
/** 银行账户 **/
@JsonProperty("bankAccount")
private String bankAccount;
/** 默认税码 **/
@JsonProperty("taxCode")
private String taxCode;
/** 应付科目 **/
@JsonProperty("payable")
private String payable;
/** 是否采购 **/
@JsonProperty("isPurchase")
private String isPurchase;
/** 预付科目 **/
@JsonProperty("prepaid")
private String prepaid;
/** 是否付款 **/
@JsonProperty("isPayment")
private String isPayment;
/** 启用 **/ /** 启用 **/
@ -74,4 +129,30 @@ public class SupplierListVO{
private String status; private String status;
/** 供应商地点 **/
@JsonProperty("supplierSiteCode")
private String supplierSiteCode;
/** 创建时间 **/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
@JsonProperty("creatorTime")
private Date creatorTime;
/** 修改时间 **/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
@JsonProperty("lastModifyTime")
private Date lastModifyTime;
private BigDecimal settlemenSum;
private BigDecimal weightSum;
private BigDecimal buckleWeightSum;
private BigDecimal grossWeightSum;
private BigDecimal salesPriceSum;
} }

@ -11,7 +11,7 @@ import java.util.List;
* @ V3.2.0 * @ V3.2.0
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ 2023-02-13 * @ 2023-02-16
*/ */
@Data @Data
public class SupplierPagination extends Pagination { public class SupplierPagination extends Pagination {
@ -21,6 +21,15 @@ public class SupplierPagination extends Pagination {
/** 供应商名称 */ /** 供应商名称 */
private String supplierName; private String supplierName;
/** 联系人 */
private String contactName;
/** 联系电话 */
private String contactPhone;
/** 供应商地点 */
private String supplierSiteCode;
/** /**
* id * id
*/ */

@ -9,7 +9,7 @@ import java.util.*;
* @ V3.2.0 * @ V3.2.0
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ 2023-02-13 * @ 2023-02-16
*/ */
@Data @Data
public class SupplierPaginationExportModel extends Pagination { public class SupplierPaginationExportModel extends Pagination {
@ -26,4 +26,13 @@ public class SupplierPaginationExportModel extends Pagination {
/** 供应商名称 */ /** 供应商名称 */
private String supplierName; private String supplierName;
/** 联系人 */
private String contactName;
/** 联系电话 */
private String contactPhone;
/** 供应商地点 */
private String supplierSiteCode;
} }

@ -15,7 +15,7 @@ import lombok.Data;
* @ V3.2.0 * @ V3.2.0
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ LINKAGE-BOOT * @ LINKAGE-BOOT
* @ 2023-02-13 * @ 2023-02-16
*/ */
@Data @Data
public class SupplierUpForm{ public class SupplierUpForm{
@ -28,29 +28,29 @@ public class SupplierUpForm{
private String supplierCode; private String supplierCode;
/** 所属公司 **/
@JsonProperty("companyId")
private String companyId;
/** 供应商名称 **/ /** 供应商名称 **/
@JsonProperty("supplierName") @JsonProperty("supplierName")
private String supplierName; private String supplierName;
/** 供应商地点ID **/ /** 国家 **/
@JsonProperty("supplierSiteId") @JsonProperty("country")
private String supplierSiteId; private String country;
/** 供应商地点名称 **/ /** 供货指标 **/
@JsonProperty("supplierSiteCode") @JsonProperty("supply")
private String supplierSiteCode; private String supply;
/** 公司名称 **/ /** 省 **/
@JsonProperty("companyId") @JsonProperty("province")
private String companyId; private String province;
/** 地址 **/
@JsonProperty("address")
private String address;
/** 联系人 **/ /** 联系人 **/
@ -58,14 +58,69 @@ public class SupplierUpForm{
private String contactName; private String contactName;
/** 供应商等级 **/
@JsonProperty("supplierLevel")
private String supplierLevel;
/** 联系电话 **/ /** 联系电话 **/
@JsonProperty("contactPhone") @JsonProperty("contactPhone")
private String contactPhone; private String contactPhone;
/** 供应商等级 **/ /** 供应商性质 **/
@JsonProperty("supplierLevel") @JsonProperty("enterprise")
private String supplierLevel; private String enterprise;
/** 地址 **/
@JsonProperty("address")
private String address;
/** 供应商类型 **/
@JsonProperty("classification")
private String classification;
/** 开户行 **/
@JsonProperty("bank")
private String bank;
/** 纳税编号 **/
@JsonProperty("vatRegistrationNum")
private String vatRegistrationNum;
/** 银行账户 **/
@JsonProperty("bankAccount")
private String bankAccount;
/** 默认税码 **/
@JsonProperty("taxCode")
private String taxCode;
/** 应付科目 **/
@JsonProperty("payable")
private String payable;
/** 是否采购 **/
@JsonProperty("isPurchase")
private String isPurchase;
/** 预付科目 **/
@JsonProperty("prepaid")
private String prepaid;
/** 是否付款 **/
@JsonProperty("isPayment")
private String isPayment;
/** 启用 **/ /** 启用 **/
@ -73,4 +128,19 @@ public class SupplierUpForm{
private String status; private String status;
/** 供应商地点 **/
@JsonProperty("supplierSiteCode")
private String supplierSiteCode;
/** 创建时间 **/
@JsonProperty("creatorTime")
private String creatorTime;
/** 修改时间 **/
@JsonProperty("lastModifyTime")
private String lastModifyTime;
} }

@ -1,34 +0,0 @@
package jnpf.supplier.service;
import jnpf.supplier.entity.SupplierMobileEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import jnpf.supplier.model.supplier.SupplierPagination;
import java.util.*;
/**
*
* supplier
* V3.2.0
* LINKAGE-BOOT
* LINKAGE-BOOT
* 2023-02-13
*/
public interface SupplierMobileService extends IService<SupplierMobileEntity> {
List<SupplierMobileEntity> getList(SupplierPagination supplierPagination);
List<SupplierMobileEntity> getTypeList(SupplierPagination supplierPagination, String dataType);
SupplierMobileEntity getInfo(String id);
void delete(SupplierMobileEntity entity);
void create(SupplierMobileEntity entity);
boolean update( String id, SupplierMobileEntity entity);
// 子表方法
//列表子表数据方法
}

@ -0,0 +1,44 @@
package jnpf.supplier.service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import jnpf.supplier.entity.SupplierEntity;
import jnpf.supplier.entity.SupplierMobileEntity;
import jnpf.supplier.model.supplier.SupplierPagination;
import java.util.List;
/**
*
*
* V3.2.0
* LINKAGE-BOOT
* LINKAGE-BOOT
* 2023-02-16
*/
public interface SupplierService extends IService<SupplierEntity> {
List<SupplierMobileEntity> getList(SupplierPagination supplierPagination);
List<SupplierEntity> getTypeList(SupplierPagination supplierPagination,String dataType);
SupplierEntity getInfo(String id);
void delete(SupplierEntity entity);
void create(SupplierEntity entity);
boolean update( String id, SupplierEntity entity);
IPage<SupplierMobileEntity> page(Page<SupplierMobileEntity> page, Wrapper<SupplierEntity> queryWrapper) ;
// 子表方法
//列表子表数据方法
}

@ -1,38 +1,40 @@
package jnpf.supplier.service.impl; package jnpf.supplier.service.impl;
import jnpf.supplier.entity.*;
import jnpf.supplier.mapper.SupplierMobileMapper;
import jnpf.supplier.service.*;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jnpf.permission.model.authorize.AuthorizeConditionModel; import jnpf.permission.model.authorize.AuthorizeConditionModel;
import jnpf.permission.service.AuthorizeService;
import jnpf.supplier.entity.SupplierEntity;
import jnpf.supplier.entity.SupplierMobileEntity;
import jnpf.supplier.mapper.SupplierMapper;
import jnpf.supplier.model.supplier.SupplierPagination; import jnpf.supplier.model.supplier.SupplierPagination;
import jnpf.supplier.service.SupplierService;
import jnpf.util.ServletUtil;
import jnpf.util.StringUtil;
import jnpf.util.UserProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import jnpf.permission.service.AuthorizeService; import javax.annotation.Resource;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import com.baomidou.mybatisplus.annotation.TableField; import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.beans.factory.annotation.Autowired;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import jnpf.util.*;
import java.util.*;
/** /**
* *
* supplier *
* V3.2.0 * V3.2.0
* LINKAGE-BOOT * LINKAGE-BOOT
* LINKAGE-BOOT * LINKAGE-BOOT
* 2023-02-13 * 2023-02-16
*/ */
@Service @Service
public class SupplierMobileServiceImpl extends ServiceImpl<SupplierMobileMapper, SupplierMobileEntity> implements SupplierMobileService { public class SupplierServiceImpl extends ServiceImpl<SupplierMapper, SupplierEntity> implements SupplierService {
@Autowired @Autowired
@ -41,7 +43,8 @@ public class SupplierMobileServiceImpl extends ServiceImpl<SupplierMobileMapper,
@Autowired @Autowired
private AuthorizeService authorizeService; private AuthorizeService authorizeService;
@Resource
private SupplierMapper supplierMapper;
@ -51,7 +54,7 @@ public class SupplierMobileServiceImpl extends ServiceImpl<SupplierMobileMapper,
List<String> AllIdList =new ArrayList(); List<String> AllIdList =new ArrayList();
int total=0; int total=0;
int supplierNum =0; int supplierNum =0;
QueryWrapper<SupplierMobileEntity> supplierQueryWrapper=new QueryWrapper<>(); QueryWrapper<SupplierEntity> supplierQueryWrapper=new QueryWrapper<>();
boolean pcPermission = false; boolean pcPermission = false;
boolean appPermission = false; boolean appPermission = false;
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
@ -61,7 +64,7 @@ public class SupplierMobileServiceImpl extends ServiceImpl<SupplierMobileMapper,
if (ObjectUtil.isEmpty(supplierObj)){ if (ObjectUtil.isEmpty(supplierObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
supplierQueryWrapper = (QueryWrapper<SupplierMobileEntity>)supplierObj; supplierQueryWrapper = (QueryWrapper<SupplierEntity>)supplierObj;
supplierNum++; supplierNum++;
} }
} }
@ -72,7 +75,7 @@ public class SupplierMobileServiceImpl extends ServiceImpl<SupplierMobileMapper,
if (ObjectUtil.isEmpty(supplierObj)){ if (ObjectUtil.isEmpty(supplierObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
supplierQueryWrapper = (QueryWrapper<SupplierMobileEntity>)supplierObj; supplierQueryWrapper = (QueryWrapper<SupplierEntity>)supplierObj;
supplierNum++; supplierNum++;
} }
@ -81,25 +84,40 @@ public class SupplierMobileServiceImpl extends ServiceImpl<SupplierMobileMapper,
} }
if(StringUtil.isNotEmpty(supplierPagination.getSupplierCode())){ if(StringUtil.isNotEmpty(supplierPagination.getSupplierCode())){
supplierNum++; supplierNum++;
supplierQueryWrapper.lambda().like(SupplierMobileEntity::getSupplierCode,supplierPagination.getSupplierCode()); supplierQueryWrapper.lambda().like(SupplierEntity::getSupplierCode,supplierPagination.getSupplierCode());
} }
if(StringUtil.isNotEmpty(supplierPagination.getSupplierName())){ if(StringUtil.isNotEmpty(supplierPagination.getSupplierName())){
supplierNum++; supplierNum++;
supplierQueryWrapper.lambda().like(SupplierMobileEntity::getSupplierName,supplierPagination.getSupplierName()); supplierQueryWrapper.lambda().like(SupplierEntity::getSupplierName,supplierPagination.getSupplierName());
}
if(StringUtil.isNotEmpty(supplierPagination.getContactName())){
supplierNum++;
supplierQueryWrapper.lambda().like(SupplierEntity::getContactName,supplierPagination.getContactName());
}
if(StringUtil.isNotEmpty(supplierPagination.getContactPhone())){
supplierNum++;
supplierQueryWrapper.lambda().like(SupplierEntity::getContactPhone,supplierPagination.getContactPhone());
}
if(StringUtil.isNotEmpty(supplierPagination.getSupplierSiteCode())){
supplierNum++;
supplierQueryWrapper.lambda().like(SupplierEntity::getSupplierSiteCode,supplierPagination.getSupplierSiteCode());
} }
if(AllIdList.size()>0){ if(AllIdList.size()>0){
supplierQueryWrapper.lambda().in(SupplierMobileEntity::getId, AllIdList); supplierQueryWrapper.lambda().in(SupplierEntity::getId, AllIdList);
} }
//排序 //排序
if(StringUtil.isEmpty(supplierPagination.getSidx())){ if(StringUtil.isEmpty(supplierPagination.getSidx())){
supplierQueryWrapper.lambda().orderByDesc(SupplierMobileEntity::getSupplierCode); supplierQueryWrapper.lambda().orderByDesc(SupplierEntity::getCreatorTime);
}else{ }else{
try { try {
String sidx = supplierPagination.getSidx(); String sidx = supplierPagination.getSidx();
SupplierMobileEntity supplierMobileEntity = new SupplierMobileEntity(); SupplierEntity supplierEntity = new SupplierEntity();
Field declaredField = supplierMobileEntity.getClass().getDeclaredField(sidx); Field declaredField = supplierEntity.getClass().getDeclaredField(sidx);
declaredField.setAccessible(true); declaredField.setAccessible(true);
String value = declaredField.getAnnotation(TableField.class).value(); String value = declaredField.getAnnotation(TableField.class).value();
supplierQueryWrapper="asc".equals(supplierPagination.getSort().toLowerCase())?supplierQueryWrapper.orderByAsc(value):supplierQueryWrapper.orderByDesc(value); supplierQueryWrapper="asc".equals(supplierPagination.getSort().toLowerCase())?supplierQueryWrapper.orderByAsc(value):supplierQueryWrapper.orderByDesc(value);
@ -117,12 +135,12 @@ public class SupplierMobileServiceImpl extends ServiceImpl<SupplierMobileMapper,
} }
} }
@Override @Override
public List<SupplierMobileEntity> getTypeList(SupplierPagination supplierPagination, String dataType){ public List<SupplierEntity> getTypeList(SupplierPagination supplierPagination,String dataType){
String userId=userProvider.get().getUserId(); String userId=userProvider.get().getUserId();
List<String> AllIdList =new ArrayList(); List<String> AllIdList =new ArrayList();
int total=0; int total=0;
int supplierNum =0; int supplierNum =0;
QueryWrapper<SupplierMobileEntity> supplierQueryWrapper=new QueryWrapper<>(); QueryWrapper<SupplierEntity> supplierQueryWrapper=new QueryWrapper<>();
boolean pcPermission = false; boolean pcPermission = false;
boolean appPermission = false; boolean appPermission = false;
boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc");
@ -132,7 +150,7 @@ public class SupplierMobileServiceImpl extends ServiceImpl<SupplierMobileMapper,
if (ObjectUtil.isEmpty(supplierObj)){ if (ObjectUtil.isEmpty(supplierObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
supplierQueryWrapper = (QueryWrapper<SupplierMobileEntity>)supplierObj; supplierQueryWrapper = (QueryWrapper<SupplierEntity>)supplierObj;
supplierNum++; supplierNum++;
} }
} }
@ -143,7 +161,7 @@ public class SupplierMobileServiceImpl extends ServiceImpl<SupplierMobileMapper,
if (ObjectUtil.isEmpty(supplierObj)){ if (ObjectUtil.isEmpty(supplierObj)){
return new ArrayList<>(); return new ArrayList<>();
} else { } else {
supplierQueryWrapper = (QueryWrapper<SupplierMobileEntity>)supplierObj; supplierQueryWrapper = (QueryWrapper<SupplierEntity>)supplierObj;
supplierNum++; supplierNum++;
} }
@ -152,25 +170,40 @@ public class SupplierMobileServiceImpl extends ServiceImpl<SupplierMobileMapper,
} }
if(StringUtil.isNotEmpty(supplierPagination.getSupplierCode())){ if(StringUtil.isNotEmpty(supplierPagination.getSupplierCode())){
supplierNum++; supplierNum++;
supplierQueryWrapper.lambda().like(SupplierMobileEntity::getSupplierCode,supplierPagination.getSupplierCode()); supplierQueryWrapper.lambda().like(SupplierEntity::getSupplierCode,supplierPagination.getSupplierCode());
} }
if(StringUtil.isNotEmpty(supplierPagination.getSupplierName())){ if(StringUtil.isNotEmpty(supplierPagination.getSupplierName())){
supplierNum++; supplierNum++;
supplierQueryWrapper.lambda().like(SupplierMobileEntity::getSupplierName,supplierPagination.getSupplierName()); supplierQueryWrapper.lambda().like(SupplierEntity::getSupplierName,supplierPagination.getSupplierName());
}
if(StringUtil.isNotEmpty(supplierPagination.getContactName())){
supplierNum++;
supplierQueryWrapper.lambda().like(SupplierEntity::getContactName,supplierPagination.getContactName());
}
if(StringUtil.isNotEmpty(supplierPagination.getContactPhone())){
supplierNum++;
supplierQueryWrapper.lambda().like(SupplierEntity::getContactPhone,supplierPagination.getContactPhone());
}
if(StringUtil.isNotEmpty(supplierPagination.getSupplierSiteCode())){
supplierNum++;
supplierQueryWrapper.lambda().like(SupplierEntity::getSupplierSiteCode,supplierPagination.getSupplierSiteCode());
} }
if(AllIdList.size()>0){ if(AllIdList.size()>0){
supplierQueryWrapper.lambda().in(SupplierMobileEntity::getId, AllIdList); supplierQueryWrapper.lambda().in(SupplierEntity::getId, AllIdList);
} }
//排序 //排序
if(StringUtil.isEmpty(supplierPagination.getSidx())){ if(StringUtil.isEmpty(supplierPagination.getSidx())){
supplierQueryWrapper.lambda().orderByDesc(SupplierMobileEntity::getSupplierCode); supplierQueryWrapper.lambda().orderByDesc(SupplierEntity::getCreatorTime);
}else{ }else{
try { try {
String sidx = supplierPagination.getSidx(); String sidx = supplierPagination.getSidx();
SupplierMobileEntity supplierMobileEntity = new SupplierMobileEntity(); SupplierEntity supplierEntity = new SupplierEntity();
Field declaredField = supplierMobileEntity.getClass().getDeclaredField(sidx); Field declaredField = supplierEntity.getClass().getDeclaredField(sidx);
declaredField.setAccessible(true); declaredField.setAccessible(true);
String value = declaredField.getAnnotation(TableField.class).value(); String value = declaredField.getAnnotation(TableField.class).value();
supplierQueryWrapper="asc".equals(supplierPagination.getSort().toLowerCase())?supplierQueryWrapper.orderByAsc(value):supplierQueryWrapper.orderByDesc(value); supplierQueryWrapper="asc".equals(supplierPagination.getSort().toLowerCase())?supplierQueryWrapper.orderByAsc(value):supplierQueryWrapper.orderByDesc(value);
@ -180,11 +213,11 @@ public class SupplierMobileServiceImpl extends ServiceImpl<SupplierMobileMapper,
} }
if("0".equals(dataType)){ if("0".equals(dataType)){
if((total>0 && AllIdList.size()>0) || total==0){ if((total>0 && AllIdList.size()>0) || total==0){
Page<SupplierMobileEntity> page=new Page<>(supplierPagination.getCurrentPage(), supplierPagination.getPageSize()); Page<SupplierEntity> page=new Page<>(supplierPagination.getCurrentPage(), supplierPagination.getPageSize());
IPage<SupplierMobileEntity> userIPage=this.page(page, supplierQueryWrapper); IPage<SupplierEntity> userIPage=this.page(page, supplierQueryWrapper);
return supplierPagination.setData(userIPage.getRecords(),userIPage.getTotal()); return supplierPagination.setData(userIPage.getRecords(),userIPage.getTotal());
}else{ }else{
List<SupplierMobileEntity> list = new ArrayList(); List<SupplierEntity> list = new ArrayList();
return supplierPagination.setData(list, list.size()); return supplierPagination.setData(list, list.size());
} }
}else{ }else{
@ -193,24 +226,30 @@ public class SupplierMobileServiceImpl extends ServiceImpl<SupplierMobileMapper,
} }
@Override @Override
public SupplierMobileEntity getInfo(String id){ public SupplierEntity getInfo(String id){
QueryWrapper<SupplierMobileEntity> queryWrapper=new QueryWrapper<>(); QueryWrapper<SupplierEntity> queryWrapper=new QueryWrapper<>();
queryWrapper.lambda().eq(SupplierMobileEntity::getId,id); queryWrapper.lambda().eq(SupplierEntity::getId,id);
return this.getOne(queryWrapper); return this.getOne(queryWrapper);
} }
@Override @Override
public void create(SupplierMobileEntity entity){ public void create(SupplierEntity entity){
this.save(entity); this.save(entity);
} }
@Override @Override
public boolean update(String id, SupplierMobileEntity entity){ public boolean update(String id, SupplierEntity entity){
entity.setId(id); entity.setId(id);
return this.updateById(entity); return this.updateById(entity);
} }
@Override
public IPage<SupplierMobileEntity> page(Page<SupplierMobileEntity> page, Wrapper<SupplierEntity> queryWrapper) {
return supplierMapper.getSupplierList(page,queryWrapper);
}
@Override @Override
public void delete(SupplierMobileEntity entity){ public void delete(SupplierEntity entity){
if(entity!=null){ if(entity!=null){
this.removeById(entity.getId()); this.removeById(entity.getId());
} }

@ -36,7 +36,6 @@
a.enterprise, a.enterprise,
a.classification, a.classification,
a.country, a.country,
a.city,
IFNULL( SUM( b.gross_weight ), 0.0000000000 ) settlemenSum, IFNULL( SUM( b.gross_weight ), 0.0000000000 ) settlemenSum,
IFNULL( SUM( b.net_weight ), 0.0000000000 ) weightSum, IFNULL( SUM( b.net_weight ), 0.0000000000 ) weightSum,
IFNULL( SUM( b.buckle_weight ), 0.0000000000 ) buckleWeightSum, IFNULL( SUM( b.buckle_weight ), 0.0000000000 ) buckleWeightSum,
@ -85,7 +84,6 @@
<result column="enterprise" property="enterprise"/> <result column="enterprise" property="enterprise"/>
<result column="classification" property="classification"/> <result column="classification" property="classification"/>
<result column="country" property="country"/> <result column="country" property="country"/>
<result column="city" property="city"/>
<result column="settlemenSum" property="settlemenSum"/> <result column="settlemenSum" property="settlemenSum"/>
<result column="weightSum" property="weightSum"/> <result column="weightSum" property="weightSum"/>

@ -2,5 +2,29 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="jnpf.monitoringitem.mapper.MonitoringitemMapper"> <mapper namespace="jnpf.monitoringitem.mapper.MonitoringitemMapper">
<select id="getMonitorItemList" resultMap="getMonitorItemListTree" >
select a.m_name,b.* from jg_monitoring a LEFT JOIN jg_monitoring_item0 b on a.id= b.monitoring_id where ISNULL(b.isEnable) or b.isEnable='1'
</select>
<resultMap id="getMonitorItemListTree" type="map">
<!-- 区域名称-->
<result column="m_name" property="name" ></result>
<collection property="videoStreaming" ofType="map" javaType="list">
<!-- 摄像头名字-->
<result property="mName" column="m_name"></result>
<!-- 设备序列号-->
<result property="serialnumber" column="serialnumber"></result>
<!-- fiv视频流地址-->
<result property="flvAddress" column="flvAddress"></result>
<!-- flv高清视频流地址 -->
<result property="flvHdAddress" column="flvHdAddress"></result>
<!-- 通道号 -->
<result property="channelNumber" column="channelNumber"></result>
<!-- 设备状态 -->
<result property="mStatus" column="m_status"></result>
</collection>
</resultMap>
</mapper> </mapper>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="jnpf.supplier.mapper.SupplierMobileMapper"> <mapper namespace="jnpf.supplier.mapper.SupplierMapper">
<select id="getSupplierList" resultMap="supplierMap"> <select id="getSupplierList" resultMap="supplierMap">
SELECT SELECT
* *
@ -23,7 +23,6 @@
a.supplier_site_id, a.supplier_site_id,
a.supplier_site_code, a.supplier_site_code,
a.company_id, a.company_id,
a.company_name,
a.vat_registration_num, a.vat_registration_num,
a.orgnize_id, a.orgnize_id,
a.department_id, a.department_id,
@ -33,6 +32,17 @@
a.supplier_level, a.supplier_level,
a.address, a.address,
a.`status`, a.`status`,
a.country,
a.province,
a.classification,
a.enterprise,
a.bank,
a.bank_account,
a.tax_code,
a.payable,
a.prepaid,
a.is_purchase,
a.is_payment,
IFNULL( SUM( b.gross_weight ), 0.0000000000 ) settlemenSum, IFNULL( SUM( b.gross_weight ), 0.0000000000 ) settlemenSum,
IFNULL( SUM( b.net_weight ), 0.0000000000 ) weightSum, IFNULL( SUM( b.net_weight ), 0.0000000000 ) weightSum,
IFNULL( SUM( b.buckle_weight ), 0.0000000000 ) buckleWeightSum, IFNULL( SUM( b.buckle_weight ), 0.0000000000 ) buckleWeightSum,
@ -51,24 +61,24 @@
<resultMap id="supplierMap" type="jnpf.supplier.entity.SupplierMobileEntity"> <resultMap id="supplierMap" type="jnpf.supplier.entity.SupplierMobileEntity">
<result column="id" property="id"/> <result column="id" property="id"/>
<result column="creator_user_id" property="creatoruserid"/> <result column="creator_user_id" property="creatorUserId"/>
<result column="creator_user_name" property="creatorusername"/> <result column="creator_user_name" property="creatorUserName"/>
<result column="creator_time" property="creatortime"/> <result column="creator_time" property="creatorTime"/>
<result column="last_modify_user_id" property="lastmodifyuserid"/> <result column="last_modify_user_id" property="lastModifyUserId"/>
<result column="last_modify_user_name" property="lastmodifyusername"/> <result column="last_modify_user_name" property="lastModifyUserName"/>
<result column="last_modify_time" property="lastmodifytime"/> <result column="last_modify_time" property="lastModifyTime"/>
<result column="delete_user_id" property="deleteuserid"/> <result column="delete_user_id" property="deleteUserId"/>
<result column="delete_user_name" property="deleteusername"/> <result column="delete_user_name" property="deleteUserName"/>
<result column="delete_time" property="deletetime"/> <result column="delete_time" property="deleteTime"/>
<result column="delete_mark" property="deletemark"/> <result column="delete_mark" property="deleteMark"/>
<result column="supplier_code" property="supplierCode"/> <result column="supplier_code" property="supplierCode"/>
<result column="supplier_name" property="supplierName"/> <result column="supplier_name" property="supplierName"/>
<result column="supplier_site_id" property="supplierSiteCode"/> <result column="supplier_site_id" property="supplierSiteCode"/>
<result column="supplier_site_code" property="supplierSiteCode"/> <result column="supplier_site_code" property="supplierSiteCode"/>
<result column="company_id" property="companyId"/> <result column="company_id" property="companyId"/>
<result column="company_name" property="companyName"/>
<result column="vat_registration_num" property="vatRegistrationNum"/> <result column="vat_registration_num" property="vatRegistrationNum"/>
<result column="orgnize_id" property="orgId"/> <result column="orgnize_id" property="orgnizeId"/>
<result column="department_id" property="departmentId"/> <result column="department_id" property="departmentId"/>
<result column="supply" property="supply"/> <result column="supply" property="supply"/>
<result column="contact_name" property="contactName"/> <result column="contact_name" property="contactName"/>
@ -76,6 +86,17 @@
<result column="supplier_level" property="supplierLevel"/> <result column="supplier_level" property="supplierLevel"/>
<result column="address" property="address"/> <result column="address" property="address"/>
<result column="status" property="status"/> <result column="status" property="status"/>
<result column="country" property="country"/>
<result column="province" property="province"/>
<result column="classification" property="classification"/>
<result column="enterprise" property="enterprise"/>
<result column="bank" property="bank"/>
<result column="bank_account" property="bankAccount"/>
<result column="tax_code" property="taxCode"/>
<result column="payable" property="payable"/>
<result column="prepaid" property="prepaid"/>
<result column="is_purchase" property="isPurchase"/>
<result column="is_payment" property="isPayment"/>
<result column="settlemenSum" property="settlemenSum"/> <result column="settlemenSum" property="settlemenSum"/>
<result column="weightSum" property="weightSum"/> <result column="weightSum" property="weightSum"/>
<result column="buckleWeightSum" property="buckleWeightSum"/> <result column="buckleWeightSum" property="buckleWeightSum"/>

@ -26,6 +26,17 @@
</el-button> </el-button>
<el-button type="text" icon="el-icon-delete" @click="handleBatchRemoveDel()" >批量删除 <el-button type="text" icon="el-icon-delete" @click="handleBatchRemoveDel()" >批量删除
</el-button> </el-button>
<el-button type="text" icon="el-icon-plus" @click="1">
</el-button>
<el-button type="text" icon="el-icon-plus" @click="1">
</el-button>
<el-button type="text" icon="el-icon-plus" @click="1">
</el-button>
<el-button type="text" icon="el-icon-plus" @click="1">
</el-button>
<el-button type="text" icon="el-icon-plus" @click="1">
</el-button>
</div> </div>
<div class="JNPF-common-head-right"> <div class="JNPF-common-head-right">
<el-tooltip effect="dark" content="刷新" placement="top"> <el-tooltip effect="dark" content="刷新" placement="top">
@ -35,36 +46,37 @@
<screenfull isContainer/> <screenfull isContainer/>
</div> </div>
</div> </div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c @selection-change="handleSelectionChange"> <JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c :hasNO="false" @selection-change="handleSelectionChange" border>
<el-table-column prop="documentNo" label="单据编号" width="0" align="left" <el-table-column type="index" width="50" label="序号" fixed="left" align="center" />
<el-table-column prop="documentNo" label="单据编号" sortable width="200" align="center" fixed="left"
/> />
<el-table-column prop="customerName" label="客户名称" width="0" align="left" <el-table-column prop="customerName" label="客户名称" sortable width="150" align="center" fixed="left"
/> />
<el-table-column prop="amount" label="金额" width="0" align="left" <el-table-column prop="amount" label="金额" width="120" sortable align="center"
/> />
<el-table-column prop="quantity" label="数量" width="0" align="left" <el-table-column prop="quantity" label="数量" width="120" sortable align="center"
/> />
<el-table-column label="币别 " width="0" prop="currency" algin="left" <el-table-column label="币别 " width="80" prop="currency" sortable algin="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.currency | dynamicText(currencyOptions) }} {{ scope.row.currency | dynamicText(currencyOptions) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="invoiceAmount" label="发票金额" width="0" align="left" <el-table-column prop="invoiceAmount" label="发票金额" sortable width="120" align="center"
/> />
<el-table-column prop="invoiceQuantity" label="发票数量" width="0" align="left" <el-table-column prop="invoiceQuantity" label="发票数量" sortable width="120" align="center"
/> />
<el-table-column prop="salesOrderNo" label="销售订单号" width="0" align="left" <el-table-column prop="salesOrderNo" label="销售订单号" sortable width="200" align="center"
/> />
<el-table-column prop="contractName" label="合同名称" width="0" align="left" <el-table-column prop="contractName" label="合同名称" sortable width="200" align="center"
/> />
<el-table-column label="单据状态 " width="0" prop="status" algin="left" <el-table-column label="单据状态 " width="120" sortable prop="status" algin="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.status | dynamicText(statusOptions) }} {{ scope.row.status | dynamicText(statusOptions) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="creatorUserName" label="制单人" width="0" align="left" <el-table-column prop="creatorUserName" label="制单人" width="120" sortable align="center"
/> />
<el-table-column label="操作" fixed="right" <el-table-column label="操作" fixed="right"
width="150" > width="150" >

@ -1,4 +1,5 @@
<template> <template>
<<<<<<< HEAD
<el-dialog :title="!dataForm.id ? '新建' : isDetail ? '详情':'编辑'" <el-dialog :title="!dataForm.id ? '新建' : isDetail ? '详情':'编辑'"
:close-on-click-modal="false" append-to-body :close-on-click-modal="false" append-to-body
:visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll :visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll
@ -11,102 +12,98 @@
prop="documentNo" > prop="documentNo" >
<el-input v-model="dataForm.documentNo" <el-input v-model="dataForm.documentNo"
placeholder="系统自动生成" readonly> placeholder="系统自动生成" readonly>
=======
<el-dialog :title="!dataForm.id ? '新建' : isDetail ? '详情':'编辑'" :close-on-click-modal="false" append-to-body
:visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll width="1500px">
<el-row :gutter="15" class="">
<el-form ref="elForm" :model="dataForm" :rules="rules" size="small" label-width="100px" label-position="right">
<template v-if="!loading">
<el-col :span="8">
<el-form-item label="单据编号" prop="documentNo">
<el-input v-model="dataForm.documentNo" placeholder="系统自动生成" readonly>
>>>>>>> ddaf1c11476266e400901543653df705c0f58f87
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8" > <el-col :span="8">
<el-form-item label="客户名称" <el-form-item label="客户名称" prop="customerName">
prop="customerName" > <popupSelect v-model="dataForm.customerName" placeholder="请选择" clearable field="customerName"
<popupSelect v-model="dataForm.customerName" interfaceId="393371066040385285" :columnOptions="customerNamecolumnOptions" propsValue="supplier_nm"
placeholder="请选择" clearable field="customerName" interfaceId="393371066040385285" :columnOptions="customerNamecolumnOptions" propsValue="supplier_nm" relationField="supplier_nm" popupType="dialog" relationField="supplier_nm" popupType="dialog" popupTitle="选择数据" popupWidth="800px"
popupTitle="选择数据" popupWidth="800px" @change="popupSelect" @change="popupSelect">
>
</popupSelect> </popupSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8" > <el-col :span="8">
<el-form-item label="收款金额" <el-form-item label="收款金额" prop="amountCollected">
prop="amountCollected" > <el-input v-model="dataForm.amountCollected" placeholder="请输入" clearable :style='{"width":"100%"}'>
<el-input v-model="dataForm.amountCollected"
placeholder="请输入" clearable :style='{"width":"100%"}'>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8" > <el-col :span="8">
<el-form-item label="收款账户" <el-form-item label="收款账户" prop="collectionCount">
prop="collectionCount" > <el-input v-model="dataForm.collectionCount" placeholder="请输入" clearable :style='{"width":"100%"}'>
<el-input v-model="dataForm.collectionCount"
placeholder="请输入" clearable :style='{"width":"100%"}'>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8" > <el-col :span="8">
<el-form-item label="收款银行" <el-form-item label="收款银行" prop="collectionBank">
prop="collectionBank" > <el-input v-model="dataForm.collectionBank" placeholder="请输入" clearable :style='{"width":"100%"}'>
<el-input v-model="dataForm.collectionBank"
placeholder="请输入" clearable :style='{"width":"100%"}'>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8" > <el-col :span="8">
<el-form-item label="收款类型 " <el-form-item label="收款类型 " prop="paymentType">
prop="paymentType" > <el-select v-model="dataForm.paymentType" placeholder="请选择" clearable :style='{"width":"100%"}'>
<el-select v-model="dataForm.paymentType" <el-option v-for="(item, index) in paymentTypeOptions" :key="index" :label="item.fullName"
placeholder="请选择" clearable :style='{"width":"100%"}'> :value="item.id" :disabled="item.disabled"></el-option>
<el-option v-for="(item, index) in paymentTypeOptions" :key="index" :label="item.fullName" :value="item.id" :disabled="item.disabled" ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8" > <el-col :span="8">
<el-form-item label="币别 " <el-form-item label="币别 " prop="currency">
prop="currency" > <el-select v-model="dataForm.currency" placeholder="请选择" clearable :style='{"width":"100%"}'>
<el-select v-model="dataForm.currency" <el-option v-for="(item, index) in currencyOptions" :key="index" :label="item.fullName" :value="item.id"
placeholder="请选择" clearable :style='{"width":"100%"}'> :disabled="item.disabled"></el-option>
<el-option v-for="(item, index) in currencyOptions" :key="index" :label="item.fullName" :value="item.id" :disabled="item.disabled" ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8" > <el-col :span="8">
<el-form-item label="结算类型" <el-form-item label="结算类型" prop="settlementType">
prop="settlementType" > <el-select v-model="dataForm.settlementType" placeholder="请选择" clearable :style='{"width":"100%"}'>
<el-select v-model="dataForm.settlementType" <el-option v-for="(item, index) in settlementTypeOptions" :key="index" :label="item.fullName"
placeholder="请选择" clearable :style='{"width":"100%"}'> :value="item.id" :disabled="item.disabled"></el-option>
<el-option v-for="(item, index) in settlementTypeOptions" :key="index" :label="item.fullName" :value="item.id" :disabled="item.disabled" ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8" > <el-col :span="8">
<el-form-item label="备注信息" <el-form-item label="备注信息" prop="remark">
prop="remark" > <el-input v-model="dataForm.remark" placeholder="请输入" clearable :style='{"width":"100%"}'>
<el-input v-model="dataForm.remark"
placeholder="请输入" clearable :style='{"width":"100%"}'>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8" > <el-col :span="8">
<el-form-item label="收款凭证" <el-form-item label="收款凭证" prop="voucher">
prop="voucher" > <JNPF-UploadFz v-model="dataForm.voucher" :fileSize="5" sizeUnit="MB" :limit="9" buttonText="点击上传">
<JNPF-UploadFz v-model="dataForm.voucher"
:fileSize="5" sizeUnit="MB" :limit="9" buttonText="点击上传" >
</JNPF-UploadFz> </JNPF-UploadFz>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8" > <el-col :span="8">
<el-form-item label="单据状态 " <el-form-item label="单据状态 " prop="status">
prop="status" > <el-select v-model="dataForm.status" placeholder="请选择" clearable :style='{"width":"100%"}'>
<el-select v-model="dataForm.status" <el-option v-for="(item, index) in statusOptions" :key="index" :label="item.fullName" :value="item.id"
placeholder="请选择" clearable :style='{"width":"100%"}'> :disabled="item.disabled"></el-option>
<el-option v-for="(item, index) in statusOptions" :key="index" :label="item.fullName" :value="item.id" :disabled="item.disabled" ></el-option>
<<<<<<< HEAD
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -222,9 +219,121 @@
</el-col> </el-col>
</el-tab-pane > </el-tab-pane >
</el-tabs> </el-tabs>
=======
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="制单人" prop="creatorUserName">
<el-input v-model="dataForm.creatorUserName" placeholder="请输入" clearable :style='{"width":"100%"}'>
</el-input>
</el-form-item>
</el-col>
<el-col :span="24">
<el-tabs v-model="activeojnisi" tab-position="top" class="mb-20">
<el-tab-pane label="收款明细">
<el-col :span="24">
<el-form-item label-width="0">
<div class="JNPF-common-title">
<h2></h2>
</div>
<el-table :data="dataForm.collection_item0List" size='mini' show-summary>
<el-table-column type="index" width="50" label="序号" align="center" />
<el-table-column prop="amount" label="收款金额" align="center" >
<template slot-scope="scope">
<el-input v-model="scope.row.amount" placeholder="请输入" clearable :style='{"width":"100%"}'>
</el-input>
</template>
</el-table-column>
<el-table-column prop="creatorUserId" label="订单金额" align="center" >
<template slot-scope="scope">
<el-input v-model="scope.row.price" placeholder="请输入" clearable :style='{"width":"100%"}'>
</el-input>
</template>
</el-table-column>
<el-table-column prop="creatorUserName" label="已收款金额" align="center" >
<template slot-scope="scope">
<el-input v-model="scope.row.amountCollected" placeholder="请输入" clearable
:style='{"width":"100%"}'>
</el-input>
</template>
</el-table-column>
<el-table-column prop="deleteTime" label="销售订单编号" align="center" >
<template slot-scope="scope">
<popupSelect v-model="scope.row.documentNo" placeholder="请选择" clearable
:field="'deleteTime'+scope.$index" interfaceId="393372436705378053"
:columnOptions="jg_collection_item0deleteTimecolumnOptions" propsValue="document_no"
relationField="document_no" popupType="dialog" popupWidth="800px"
:bissId="dataForm.customerCode" @change="popupSelect2">
</popupSelect>
</template>
</el-table-column>
<el-table-column prop="lastModifyUserId" label="合同编号" align="center" >
<template slot-scope="scope">
<el-input v-model="scope.row.contractCode" placeholder="请输入" clearable
:style='{"width":"100%"}'>
</el-input>
</template>
</el-table-column>
<el-table-column prop="lastModifyUserName" label="数量" align="center" >
<template slot-scope="scope">
<el-input v-model="scope.row.num" placeholder="请输入" clearable :style='{"width":"100%"}'>
</el-input>
</template>
</el-table-column>
<!-- <el-table-column prop="taxRate" label="税率">-->
<!-- <template slot-scope="scope">-->
<!-- <el-select v-model="scope.row.taxRate"-->
<!-- placeholder="请选择" clearable :style='{"width":"100%"}'>-->
<!-- <el-option v-for="(item, index) in taxRateOptions" :key="index" :label="item.fullName" :value="item.id" :disabled="item.disabled" ></el-option>-->
<!-- </el-select>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column prop="lastModifyTime" label="垫资金额" align="center" >
<template slot-scope="scope">
<el-input v-model="scope.row.advanceAmount" placeholder="请输入" clearable
:style='{"width":"100%"}'>
</el-input>
</template>
</el-table-column>
<el-table-column prop="deleteUserId" label="税额" align="center" >
<template slot-scope="scope">
<el-input v-model="scope.row.rate" placeholder="请输入" clearable :style='{"width":"100%"}'>
</el-input>
</template>
</el-table-column>
<el-table-column prop="deleteUserName" label="不含税金额" align="center" >
<template slot-scope="scope">
<el-input v-model="scope.row.notPrice" placeholder="请输入" clearable :style='{"width":"100%"}'>
</el-input>
</template>
</el-table-column>
<el-table-column prop="creatorTime" label="业务日期" align="center" >
<template slot-scope="scope">
<el-date-picker v-model="scope.row.creatorTime" placeholder="请选择" clearable
:style='{"width":"100%"}' type="date" format="yyyy-MM-dd" value-format="timestamp">
</el-date-picker>
</template>
</el-table-column>
<el-table-column label="操作" width="50">
<template slot-scope="scope">
<el-button size="mini" type="text" class="JNPF-table-delBtn"
@click="delcollection_item0List(scope.$index)">删除</el-button>
</template>
</el-table-column>
</el-table>
<div class="table-actions" @click="addcollection_item0List()">
<el-button type="text" icon="el-icon-plus">添加</el-button>
</div>
</el-form-item>
>>>>>>> ddaf1c11476266e400901543653df705c0f58f87
</el-col>
</el-tab-pane>
</el-tabs>
</el-col> </el-col>
</template> </template>
</el-form> </el-form>
</el-row> </el-row>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="visible = false"> </el-button> <el-button @click="visible = false"> </el-button>
@ -233,6 +342,7 @@
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
<<<<<<< HEAD
import request from '@/utils/request' import request from '@/utils/request'
import { getDataInterfaceRes } from '@/api/systemData/dataInterface' import { getDataInterfaceRes } from '@/api/systemData/dataInterface'
import { getDictionaryDataSelector } from '@/api/systemData/dictionary' import { getDictionaryDataSelector } from '@/api/systemData/dictionary'
@ -274,12 +384,189 @@
currencyOptions:[{"fullName":"人民币","id":"0"},{"fullName":"美元","id":"1"},{"fullName":"英镑","id":"2"}], currencyOptions:[{"fullName":"人民币","id":"0"},{"fullName":"美元","id":"1"},{"fullName":"英镑","id":"2"}],
settlementTypeOptions:[{"fullName":"现金","id":"0"},{"fullName":"赊购","id":"1"},{"fullName":"网银","id":"2"},{"fullName":"银企直连","id":"3"},{"fullName":"银票","id":"4"},{"fullName":"商票","id":"5"}], settlementTypeOptions:[{"fullName":"现金","id":"0"},{"fullName":"赊购","id":"1"},{"fullName":"网银","id":"2"},{"fullName":"银企直连","id":"3"},{"fullName":"银票","id":"4"},{"fullName":"商票","id":"5"}],
statusOptions:[{"fullName":"已保存","id":"0"},{"fullName":"审批中","id":"1"},{"fullName":"已审批","id":"2"},{"fullName":"已付款","id":"3"}], statusOptions:[{"fullName":"已保存","id":"0"},{"fullName":"审批中","id":"1"},{"fullName":"已审批","id":"2"},{"fullName":"已付款","id":"3"}],
=======
import request from '@/utils/request'
import {
getDataInterfaceRes
} from '@/api/systemData/dataInterface'
import {
getDictionaryDataSelector
} from '@/api/systemData/dictionary'
export default {
components: {},
props: [],
data() {
return {
visible: false,
loading: false,
isDetail: false,
dataForm: {
customerCode: '',
documentNo: '',
customerName: '',
amountCollected: '',
collectionCount: '',
collectionBank: '',
paymentType: "0",
currency: "0",
settlementType: "0",
remark: '',
voucher: [],
status: "0",
creatorUserName: '',
collection_item0List: [],
},
activeojnisi: '0',
rules: {},
customerNamecolumnOptions: [{
"label": "客户编码",
"value": "supplier_cd"
}, {
"label": "客户名称",
"value": "supplier_nm"
}, {
"label": "客户地点名称",
"value": "supplier_site_code"
}, {
"label": "客户等级",
"value": "customer_level"
}, ],
jg_collection_item0deleteTimecolumnOptions: [{
"label": "销售订单ID",
"value": "id"
}, {
"label": "销售订单编号",
"value": "document_no"
}, {
"label": "合同编号",
"value": "contract_code"
},
{
"label": "订单金额",
"value": "price"
}, {
"label": "已收款金额",
"value": "amount_collected"
},
{
"label": "重量",
"value": "num"
}, {
"label": "垫资金额",
"value": "advance_amount"
},
{
"label": "税额",
"value": "rate"
}, {
"label": "不含税金额",
"value": "not_price"
}, {
"label": "业务日期",
"value": "creator_time"
},
],
paymentTypeOptions: [{
"fullName": "货款",
"id": "0"
}, {
"fullName": "运费",
"id": "1"
}, {
"fullName": "仓储",
"id": "2"
}],
currencyOptions: [{
"fullName": "人民币",
"id": "0"
}, {
"fullName": "美元",
"id": "1"
}, {
"fullName": "英镑",
"id": "2"
}],
settlementTypeOptions: [{
"fullName": "现金",
"id": "0"
}, {
"fullName": "赊购",
"id": "1"
}, {
"fullName": "网银",
"id": "2"
}, {
"fullName": "银企直连",
"id": "3"
}, {
"fullName": "银票",
"id": "4"
}, {
"fullName": "商票",
"id": "5"
}],
statusOptions: [{
"fullName": "已保存",
"id": "0"
}, {
"fullName": "审批中",
"id": "1"
}, {
"fullName": "已审批",
"id": "2"
}, {
"fullName": "已付款",
"id": "3"
}],
>>>>>>> ddaf1c11476266e400901543653df705c0f58f87
taxRateOptions:[{"fullName":"13","id":"0"},{"fullName":"9","id":"1"},{"fullName":"6","id":"2"},{"fullName":"5","id":"3"},{"fullName":"3","id":"4"},{"fullName":"0","id":"5"}], taxRateOptions: [{
"fullName": "13",
"id": "0"
}, {
"fullName": "9",
"id": "1"
}, {
"fullName": "6",
"id": "2"
}, {
"fullName": "5",
"id": "3"
}, {
"fullName": "3",
"id": "4"
}, {
"fullName": "0",
"id": "5"
}],
} }
}, },
computed: {}, computed: {},
watch: {}, watch: {},
created() {},
mounted() {},
methods: {
popupSelect(e, d) {
this.dataForm.customerCode = d.id;
},
popupSelect2(a, b) {
for (let i = 0; i < this.dataForm.collection_item0List.length; i++) {
if (a == this.dataForm.collection_item0List[i].documentNo) {
this.dataForm.collection_item0List[i].id = b.id;
this.dataForm.collection_item0List[i].price = b.price;
this.dataForm.collection_item0List[i].amountCollected = b.amount_collected;
this.dataForm.collection_item0List[i].contractCode = b.contract_code;
this.dataForm.collection_item0List[i].num = b.num;
this.dataForm.collection_item0List[i].advanceAmount = b.advance_amount;
this.dataForm.collection_item0List[i].rate = b.rate;
this.dataForm.collection_item0List[i].notPrice = b.not_price;
this.dataForm.collection_item0List[i].creatorTime = b.creator_time;
}
}
<<<<<<< HEAD
},
computed: {},
watch: {},
created() { created() {
}, },
mounted() {}, mounted() {},
@ -454,4 +741,128 @@
}, },
} }
=======
},
collection_item0Exist() {
let isOk = true;
for (let i = 0; i < this.dataForm.collection_item0List.length; i++) {
const e = this.dataForm.collection_item0List[i];
}
return isOk;
},
clearData(data) {
for (let key in data) {
if (data[key] instanceof Array) {
data[key] = [];
} else if (data[key] instanceof Object) {
this.clearData(data[key]);
} else {
data[key] = "";
}
}
},
init(id, isDetail) {
this.dataForm.id = id || 0;
this.visible = true;
this.isDetail = isDetail || false;
this.$nextTick(() => {
this.$refs['elForm'].resetFields();
if (this.dataForm.id) {
this.loading = true
request({
url: '/api/collection/Collection/' + this.dataForm.id,
method: 'get'
}).then(res => {
this.dataInfo(res.data)
this.loading = false
});
} else {
this.clearData(this.dataForm)
}
});
this.$store.commit('generator/UPDATE_RELATION_DATA', {})
},
//
dataFormSubmit() {
this.$refs['elForm'].validate((valid) => {
if (valid) {
if (!this.collection_item0Exist()) return
this.request()
}
})
},
request() {
var _data = this.dataList()
if (!this.dataForm.id) {
request({
url: '/api/collection/Collection',
method: 'post',
data: _data
}).then((res) => {
this.$message({
message: res.msg,
type: 'success',
duration: 1000,
onClose: () => {
this.visible = false
this.$emit('refresh', true)
}
})
})
} else {
request({
url: '/api/collection/Collection/' + this.dataForm.id,
method: 'PUT',
data: _data
}).then((res) => {
this.$message({
message: res.msg,
type: 'success',
duration: 1000,
onClose: () => {
this.visible = false
this.$emit('refresh', true)
}
})
})
}
},
addcollection_item0List() {
let item = {
amount: undefined,
creatorUserId: undefined,
creatorUserName: undefined,
deleteTime: undefined,
lastModifyUserId: undefined,
lastModifyUserName: undefined,
taxRate: undefined,
lastModifyTime: undefined,
deleteUserId: undefined,
deleteUserName: undefined,
creatorTime: undefined,
}
this.dataForm.collection_item0List.push(item)
},
delcollection_item0List(index) {
this.dataForm.collection_item0List.splice(index, 1);
},
dataList() {
var _data = JSON.parse(JSON.stringify(this.dataForm));
_data.voucher = JSON.stringify(_data.voucher)
for (let i = 0; i < _data.collection_item0List.length; i++) {
var _list = _data.collection_item0List[i];
}
return _data;
},
dataInfo(dataAll) {
let _dataAll = dataAll
_dataAll.voucher = JSON.parse(_dataAll.voucher)
for (let i = 0; i < _dataAll.collection_item0List.length; i++) {
var _list = _dataAll.collection_item0List[i];
}
this.dataForm = _dataAll
},
},
}
>>>>>>> ddaf1c11476266e400901543653df705c0f58f87
</script> </script>

@ -1,6 +1,7 @@
<template> <template>
<div class="JNPF-common-layout"> <div class="JNPF-common-layout">
<<<<<<< HEAD
<div class="JNPF-common-layout-center"> <div class="JNPF-common-layout-center">
<el-row class="JNPF-common-search-box" :gutter="16"> <el-row class="JNPF-common-search-box" :gutter="16">
<el-form @submit.native.prevent> <el-form @submit.native.prevent>
@ -90,28 +91,122 @@
</JNPF-table> </JNPF-table>
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize" @pagination="initData"/> <pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize" @pagination="initData"/>
</div> </div>
=======
<div class="JNPF-common-layout-center">
<el-row class="JNPF-common-search-box" :gutter="16">
<el-form @submit.native.prevent>
<el-col :span="6">
<el-form-item label="单据编号">
<el-input v-model="query.documentNo" placeholder="请输入" clearable> </el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="search()"></el-button>
<el-button icon="el-icon-refresh-right" @click="reset()"></el-button>
</el-form-item>
</el-col>
</el-form>
</el-row>
<div class="JNPF-common-layout-main JNPF-flex-main">
<div class="JNPF-common-head">
<div>
<el-button type="text" icon="el-icon-plus" @click="addOrUpdateHandle()">
</el-button>
<el-button type="text" icon="el-icon-download" @click="exportData()">
</el-button>
<el-button type="text" icon="el-icon-delete" @click="handleBatchRemoveDel()">
</el-button>
<el-button type="text" icon="el-icon-check" @click="exportData()">
</el-button>
<el-button type="text" icon="el-icon-close" @click="exportData()">
</el-button>
<el-button type="text" icon="el-icon-check" @click="exportData()">
</el-button>
<el-button type="text" icon="el-icon-check" @click="confirmprice()">
</el-button>
</div>
<div class="JNPF-common-head-right">
<el-tooltip effect="dark" content="刷新" placement="top">
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" @click="reset()" />
</el-tooltip>
<screenfull isContainer />
</div> </div>
<JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh"/> >>>>>>> ddaf1c11476266e400901543653df705c0f58f87
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download"/> </div>
<Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false"/> <JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c :hasNO="false"
@selection-change="handleSelectionChange" border>
<el-table-column type="index" width="50" label="序号" fixed="left" align="center" />
<el-table-column prop="documentNo" label="单据编号" fixed="left" sortable width="200" align="center" />
<el-table-column prop="customerName" label="客户名称" fixed="left" sortable width="200" align="center" />
<el-table-column label="币别 " width="80" sortable prop="currency" align="center" >
<template slot-scope="scope">
{{ scope.row.currency | dynamicText(currencyOptions) }}
</template>
</el-table-column>
<el-table-column prop="amountCollected" sortable label="收款金额" width="150" align="center" />
<el-table-column prop="collectionCount" sortable label="收款账户" width="150" align="center" />
<el-table-column prop="collectionBank" sortable label="收款银行" width="150" align="center" />
<el-table-column label="收款类型" sortable width="150" prop="paymentType" align="center" >
<template slot-scope="scope">
{{ scope.row.paymentType | dynamicText(paymentTypeOptions) }}
</template>
</el-table-column>
<el-table-column label="结算类型" sortable width="150" prop="settlementType" align="center" >
<template slot-scope="scope">
{{ scope.row.settlementType | dynamicText(settlementTypeOptions) }}
</template>
</el-table-column>
<el-table-column label="单据状态" sortable width="150" prop="status" align="center" >
<template slot-scope="scope">
{{ scope.row.status | dynamicText(statusOptions) }}
</template>
</el-table-column>
<el-table-column prop="creatorUserName" sortable label="制单人" width="150" align="center" />
<el-table-column label="操作" fixed="right" width="150">
<template slot-scope="scope">
<el-button type="text" @click="addOrUpdateHandle(scope.row.id)">
</el-button>
<el-button type="text" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)">
</el-button>
<el-button type="text" @click="goDetail(scope.row.id)">
</el-button>
</template>
</el-table-column>
</JNPF-table>
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
@pagination="initData" />
</div>
</div>
<JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh" />
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download" />
<Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false" />
</div> </div>
</template> </template>
<script> <script>
import request from '@/utils/request' import request from '@/utils/request'
import {getDictionaryDataSelector} from '@/api/systemData/dictionary' import {
getDictionaryDataSelector
} from '@/api/systemData/dictionary'
import JNPFForm from './Form' import JNPFForm from './Form'
import ExportBox from './ExportBox' import ExportBox from './ExportBox'
import {getDataInterfaceRes} from '@/api/systemData/dataInterface' import {
getDataInterfaceRes
} from '@/api/systemData/dataInterface'
import Detail from './Detail' import Detail from './Detail'
export default { export default {
components: {JNPFForm, ExportBox,Detail}, components: {
JNPFForm,
ExportBox,
Detail
},
data() { data() {
return { return {
detailVisible: false, detailVisible: false,
query: { query: {
documentNo:undefined, documentNo: undefined,
}, },
treeProps: { treeProps: {
children: 'children', children: 'children',
@ -120,7 +215,8 @@
}, },
list: [], list: [],
listLoading: true, listLoading: true,
multipleSelection: [], total: 0, multipleSelection: [],
total: 0,
listQuery: { listQuery: {
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
@ -129,26 +225,115 @@
}, },
formVisible: false, formVisible: false,
exportBoxVisible: false, exportBoxVisible: false,
columnList: [ columnList: [{
{prop: 'documentNo', label: '单据编号'}, prop: 'documentNo',
{prop: 'customerName', label: '客户名称'}, label: '单据编号'
{prop: 'currency', label: '币别 '}, },
{prop: 'amountCollected', label: '收款金额'}, {
{prop: 'collectionCount', label: '收款账户'}, prop: 'customerName',
{prop: 'collectionBank', label: '收款银行'}, label: '客户名称'
{prop: 'paymentType', label: '收款类型 '}, },
{prop: 'settlementType', label: '结算类型'}, {
{prop: 'status', label: '单据状态 '}, prop: 'currency',
{prop: 'creatorUserName', label: '制单人'}, label: '币别 '
},
{
prop: 'amountCollected',
label: '收款金额'
},
{
prop: 'collectionCount',
label: '收款账户'
},
{
prop: 'collectionBank',
label: '收款银行'
},
{
prop: 'paymentType',
label: '收款类型 '
},
{
prop: 'settlementType',
label: '结算类型'
},
{
prop: 'status',
label: '单据状态 '
},
{
prop: 'creatorUserName',
label: '制单人'
},
], ],
paymentTypeOptions:[{"fullName":"货款","id":"0"},{"fullName":"运费","id":"1"},{"fullName":"仓储","id":"2"}], paymentTypeOptions: [{
paymentTypeProps:{"label":"fullName","value":"id"}, "fullName": "货款",
currencyOptions:[{"fullName":"人民币","id":"0"},{"fullName":"美元","id":"1"},{"fullName":"英镑","id":"2"}], "id": "0"
currencyProps:{"label":"fullName","value":"id"}, }, {
settlementTypeOptions:[{"fullName":"现金","id":"0"},{"fullName":"赊购","id":"1"},{"fullName":"网银","id":"2"},{"fullName":"银企直连","id":"3"},{"fullName":"银票","id":"4"},{"fullName":"商票","id":"5"}], "fullName": "运费",
settlementTypeProps:{"label":"fullName","value":"id"}, "id": "1"
statusOptions:[{"fullName":"已保存","id":"0"},{"fullName":"审批中","id":"1"},{"fullName":"已审批","id":"2"},{"fullName":"已付款","id":"3"}], }, {
statusProps:{"label":"fullName","value":"id"}, "fullName": "仓储",
"id": "2"
}],
paymentTypeProps: {
"label": "fullName",
"value": "id"
},
currencyOptions: [{
"fullName": "人民币",
"id": "0"
}, {
"fullName": "美元",
"id": "1"
}, {
"fullName": "英镑",
"id": "2"
}],
currencyProps: {
"label": "fullName",
"value": "id"
},
settlementTypeOptions: [{
"fullName": "现金",
"id": "0"
}, {
"fullName": "赊购",
"id": "1"
}, {
"fullName": "网银",
"id": "2"
}, {
"fullName": "银企直连",
"id": "3"
}, {
"fullName": "银票",
"id": "4"
}, {
"fullName": "商票",
"id": "5"
}],
settlementTypeProps: {
"label": "fullName",
"value": "id"
},
statusOptions: [{
"fullName": "已保存",
"id": "0"
}, {
"fullName": "审批中",
"id": "1"
}, {
"fullName": "已审批",
"id": "2"
}, {
"fullName": "已付款",
"id": "3"
}],
statusProps: {
"label": "fullName",
"value": "id"
},
} }
}, },
computed: { computed: {
@ -160,13 +345,17 @@
this.initData() this.initData()
}, },
methods: { methods: {
goDetail(id){ goDetail(id) {
this.detailVisible = true this.detailVisible = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.Detail.init(id) this.$refs.Detail.init(id)
}) })
}, },
sortChange({column, prop, order}) { sortChange({
column,
prop,
order
}) {
this.listQuery.sort = order == 'ascending' ? 'asc' : 'desc' this.listQuery.sort = order == 'ascending' ? 'asc' : 'desc'
this.listQuery.sidx = !order ? '' : prop this.listQuery.sidx = !order ? '' : prop
this.initData() this.initData()
@ -176,15 +365,15 @@
let _query = { let _query = {
...this.listQuery, ...this.listQuery,
...this.query, ...this.query,
menuId:this.menuId menuId: this.menuId
}; };
request({ request({
url: `/api/collection/Collection/getList`, url: `/api/collection/Collection/getList`,
method: 'post', method: 'post',
data: _query data: _query
}).then(res => { }).then(res => {
var _list =[]; var _list = [];
for(let i=0;i<res.data.list.length;i++){ for (let i = 0; i < res.data.list.length; i++) {
let _data = res.data.list[i]; let _data = res.data.list[i];
_list.push(_data) _list.push(_data)
} }
@ -210,8 +399,7 @@
} }
}); });
}) })
}).catch(() => { }).catch(() => {});
});
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
const res = val.map(item => item.id) const res = val.map(item => item.id)
@ -242,10 +430,9 @@
} }
}); });
}) })
}).catch(() => { }).catch(() => {})
})
}, },
confirmprice(){ confirmprice() {
if (!this.multipleSelection.length) { if (!this.multipleSelection.length) {
this.$message({ this.$message({
type: 'error', type: 'error',
@ -287,7 +474,12 @@
}) })
}, },
download(data) { download(data) {
let query = {...data, ...this.listQuery, ...this.query,menuId:this.menuId} let query = {
...data,
...this.listQuery,
...this.query,
menuId: this.menuId
}
request({ request({
url: `/api/collection/Collection/Actions/Export`, url: `/api/collection/Collection/Actions/Export`,
method: 'GET', method: 'GET',

@ -44,6 +44,7 @@
</div> </div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c :hasNO="false" <JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c :hasNO="false"
@selection-change="handleSelectionChange" border> @selection-change="handleSelectionChange" border>
<el-table-column type="index" width="50" label="序号" fixed="left" align="center" />
<el-table-column prop="paymentno" label="来源单号" fixed="left" sortable width="200" align="center" /> <el-table-column prop="paymentno" label="来源单号" fixed="left" sortable width="200" align="center" />
<el-table-column prop="documentno" label="单据编号" fixed="left" sortable width="200" align="center" /> <el-table-column prop="documentno" label="单据编号" fixed="left" sortable width="200" align="center" />
<el-table-column prop="suppliername" label="供应商" fixed="left" sortable width="150" align="center" /> <el-table-column prop="suppliername" label="供应商" fixed="left" sortable width="150" align="center" />

@ -10,21 +10,21 @@
<el-form-item label="单据编号" <el-form-item label="单据编号"
prop="documentNo"> prop="documentNo">
<el-input v-model="dataForm.documentNo" <el-input v-model="dataForm.documentNo"
placeholder="系统自动生成" readonly> placeholder="系统自动生成" readonly :disabled="true">
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <!-- <el-col :span="8">-->
<el-form-item label="申请时间" <!-- <el-form-item label="申请时间"-->
prop="businessDate"> <!-- prop="businessDate">-->
<el-date-picker v-model="dataForm.businessDate" <!-- <el-date-picker v-model="dataForm.businessDate"-->
placeholder="请选择" clearable :style='{"width":"100%"}' type="datetime" <!-- placeholder="请选择" clearable :style='{"width":"100%"}' type="datetime"-->
format="yyyy-MM-dd HH:mm:ss" value-format="timestamp"> <!-- format="yyyy-MM-dd HH:mm:ss" value-format="timestamp">-->
</el-date-picker> <!-- </el-date-picker>-->
</el-form-item> <!-- </el-form-item>-->
</el-col> <!-- </el-col>-->
<el-col :span="8"> <el-col :span="8">
<el-form-item label="供应商名称" <el-form-item label="供应商名称"
prop="supplierName"> prop="supplierName">
@ -33,7 +33,7 @@
:columnOptions="supplierNamecolumnOptions" propsValue="supplier_name" :columnOptions="supplierNamecolumnOptions" propsValue="supplier_name"
relationField="supplier_name" popupType="dialog" relationField="supplier_name" popupType="dialog"
popupTitle="选择数据" popupWidth="800px" popupTitle="选择数据" popupWidth="800px"
hasPage :pageSize="20" hasPage :pageSize="20" @change="popupSelectourceNo">
> >
</popupSelect> </popupSelect>
@ -54,7 +54,7 @@
<el-form-item label="申请金额" <el-form-item label="申请金额"
prop="ramount"> prop="ramount">
<el-input v-model="dataForm.ramount" <el-input v-model="dataForm.ramount"
placeholder="请输入" readonly clearable :style='{"width":"100%"}'> placeholder="请输入" readonly clearable :style='{"width":"100%"}' @input="inputChange()" :disabled="true">
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -155,26 +155,26 @@
<div class="JNPF-common-title"> <div class="JNPF-common-title">
<h2></h2> <h2></h2>
</div> </div>
<el-table :data="dataForm.paymentdoc_item0List" size='mini'> <el-table :data="dataForm.paymentdoc_item0List" size='mini' >
<el-table-column type="index" width="50" label="序号" align="center"/> <el-table-column type="index" width="50" label="序号" align="center"/>
<el-table-column prop="amount" label="申请金额"> <el-table-column prop="amount" label="申请金额">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.amount" <el-input v-model="scope.row.amount"
placeholder="请输入" clearable :style='{"width":"100%"}'> placeholder="请输入" clearable @input="inputChange()" :style='{"width":"100%"}'>
</el-input> </el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="creatorUserId" label="订单金额"> <el-table-column prop="creatorUserId" label="订单金额">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.creatorUserId" <el-input v-model="scope.row.creatorUserId"
placeholder="请输入" clearable :style='{"width":"100%"}'> placeholder="请输入" clearable :style='{"width":"100%"}' :disabled="true">
</el-input> </el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="creatorUserName" label="已付金额"> <el-table-column prop="creatorUserName" label="已付金额">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.creatorUserName" <el-input v-model="scope.row.creatorUserName"
placeholder="请输入" clearable :style='{"width":"100%"}'> placeholder="请输入" clearable :style='{"width":"100%"}' :disabled="true">
</el-input> </el-input>
</template> </template>
</el-table-column> </el-table-column>
@ -182,7 +182,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<popupSelect v-model="scope.row.purchaseorderId" <popupSelect v-model="scope.row.purchaseorderId"
placeholder="请选择" clearable :field="'purchaseorderId'+scope.$index" placeholder="请选择" clearable :field="'purchaseorderId'+scope.$index"
interfaceId="393348986343324485" :bissId="dataForm.supplierName" interfaceId="393348986343324485" :bissId="dataForm.supplierName" :excludeFields="excludeFields"
:columnOptions="paymentdoc_item0purchaseorderIdcolumnOptions" propsValue="id" :columnOptions="paymentdoc_item0purchaseorderIdcolumnOptions" propsValue="id"
relationField="document_no" popupType="dialog" relationField="document_no" popupType="dialog"
popupWidth="800px" @change="popupSelectorder" popupWidth="800px" @change="popupSelectorder"
@ -190,59 +190,59 @@
</popupSelect> </popupSelect>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="lastModifyUserId" label="合同编号"> <el-table-column prop="lastModifyUserId" label="合同编号" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.lastModifyUserId" <el-input v-model="scope.row.lastModifyUserId"
placeholder="请输入" clearable :style='{"width":"100%"}'> placeholder="请输入" clearable :style='{"width":"100%"}' :disabled="true">
</el-input> </el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="lastModifyUserName" label="重量"> <el-table-column prop="lastModifyUserName" label="重量" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.lastModifyUserName" <el-input v-model="scope.row.lastModifyUserName"
placeholder="请输入" clearable :style='{"width":"100%"}'> placeholder="请输入" clearable :style='{"width":"100%"}':disabled="true">
</el-input> </el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="deleteMark" label="税率(%)"> <el-table-column prop="deleteMark" label="税率(%)">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.deleteMark" <el-input v-model="scope.row.deleteMark"
placeholder="请输入" clearable :style='{"width":"100%"}'> placeholder="请输入" clearable :style='{"width":"100%"}':disabled="true">
</el-input> </el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="departmentId" label="垫资金额"> <el-table-column prop="departmentId" label="垫资金额">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.departmentId" <el-input v-model="scope.row.departmentId"
placeholder="请输入" clearable :style='{"width":"100%"}'> placeholder="请输入" clearable :style='{"width":"100%"}':disabled="true">
</el-input> </el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="orgnizeId" label="税额"> <el-table-column prop="orgnizeId" label="税额">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.orgnizeId" <el-input v-model="scope.row.orgnizeId"
placeholder="请输入" clearable :style='{"width":"100%"}'> placeholder="请输入" clearable :style='{"width":"100%"}':disabled="true">
</el-input> </el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="deleteUserId" label="不含税金额"> <el-table-column prop="deleteUserId" label="不含税金额">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.deleteUserId" <el-input v-model="scope.row.deleteUserId"
placeholder="请输入" clearable :style='{"width":"100%"}'> placeholder="请输入" clearable :style='{"width":"100%"}':disabled="true">
</el-input> </el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="deleteUserName" label="业务类型"> <el-table-column prop="deleteUserName" label="业务类型">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.deleteUserName" <el-input v-model="scope.row.deleteUserName"
placeholder="请输入" clearable :style='{"width":"100%"}'> placeholder="请输入" clearable :style='{"width":"100%"}':disabled="true">
</el-input> </el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="creatorTime" label="业务日期"> <el-table-column prop="creatorTime" label="业务日期">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.creatorTime" <el-input v-model="scope.row.creatorTime"
placeholder="请输入" clearable :style='{"width":"100%"}'> placeholder="请输入" clearable :style='{"width":"100%"}':disabled="true">
</el-input> </el-input>
</template> </template>
</el-table-column> </el-table-column>
@ -277,10 +277,12 @@
import { getDictionaryDataSelector } from '@/api/systemData/dictionary' import { getDictionaryDataSelector } from '@/api/systemData/dictionary'
export default { export default {
components: {}, components: {},
props: [], props: [],
data() { data() {
return { return {
excludeFields: [],
visible: false, visible: false,
loading: false, loading: false,
isDetail: false, isDetail: false,
@ -308,13 +310,21 @@
activeshpeyb: '0', activeshpeyb: '0',
rules: rules:
{ {
collectionAccount: [ supplierName: [
{ {
required: true, required: true,
message: '请输入', message: '请输入供应商',
trigger: 'blur' trigger: 'blur'
} }
], ],
dueDate: [
{
required: true,
message: '请输入应付日期',
trigger: 'blur'
}
],
amount: [{ required: true, message: '请输入', trigger: 'blur' }] amount: [{ required: true, message: '请输入', trigger: 'blur' }]
}, },
@ -355,8 +365,25 @@
mounted() { mounted() {
}, },
methods: { methods: {
inputChange(value){
var amount = 0;
for (let i = 0; i < this.dataForm.paymentdoc_item0List.length; i++) {
amount = amount + parseFloat(this.dataForm.paymentdoc_item0List[i].amount);
}
this.dataForm.ramount = amount;
},
popupSelectourceNo(e, d) {
this.excludeFields = [];
this.dataForm.paymentdoc_item0List = [];
},
popupSelectorder(a, b) { popupSelectorder(a, b) {
var excludeFields = [];
var amount = 0;
for (let i = 0; i < this.dataForm.paymentdoc_item0List.length; i++) { for (let i = 0; i < this.dataForm.paymentdoc_item0List.length; i++) {
excludeFields.push(this.dataForm.paymentdoc_item0List[i].purchaseorderId);
if (a == this.dataForm.paymentdoc_item0List[i].purchaseorderId) { if (a == this.dataForm.paymentdoc_item0List[i].purchaseorderId) {
this.dataForm.paymentdoc_item0List[i].lastModifyUserId = b.contract_code this.dataForm.paymentdoc_item0List[i].lastModifyUserId = b.contract_code
this.dataForm.paymentdoc_item0List[i].lastModifyUserName = b.num this.dataForm.paymentdoc_item0List[i].lastModifyUserName = b.num
@ -364,10 +391,12 @@
this.dataForm.paymentdoc_item0List[i].orgnizeId = b.rate this.dataForm.paymentdoc_item0List[i].orgnizeId = b.rate
this.dataForm.paymentdoc_item0List[i].deleteUserId = b.not_amount this.dataForm.paymentdoc_item0List[i].deleteUserId = b.not_amount
this.dataForm.ramount = parseFloat(this.dataForm.ramount) + parseFloat(b.amount)
} }
amount = amount + parseFloat(this.dataForm.paymentdoc_item0List[i].amount);
} }
this.dataForm.ramount = amount;
this.excludeFields = excludeFields;
}, },
paymentdoc_item0Exist() { paymentdoc_item0Exist() {

@ -30,12 +30,20 @@
<div class="JNPF-common-layout-main JNPF-flex-main"> <div class="JNPF-common-layout-main JNPF-flex-main">
<div class="JNPF-common-head"> <div class="JNPF-common-head">
<div> <div>
<el-button type="text" icon="el-icon-check" @click="addOrUpdateHandle(scope.row.id)">
</el-button>
<el-button type="primary" icon="el-icon-plus" @click="addOrUpdateHandle()"> <el-button type="primary" icon="el-icon-plus" @click="addOrUpdateHandle()">
</el-button> </el-button>
<el-button type="text" icon="el-icon-download" @click="exportData()"> <el-button type="text" icon="el-icon-download" @click="exportData()">
</el-button> </el-button>
<el-button type="text" icon="el-icon-delete" @click="handleBatchRemoveDel()"> <el-button type="text" icon="el-icon-delete" @click="handleBatchRemoveDel()">
</el-button> </el-button>
<el-button type="text" icon="el-icon-check" @click="3">
</el-button>
<el-button type="text" icon="el-icon-close" @click="3">
</el-button>
<el-button type="success" size="medium" @click="paymentapply()"> <el-button type="success" size="medium" @click="paymentapply()">
</el-button> </el-button>
</div> </div>
@ -47,63 +55,76 @@
<screenfull isContainer/> <screenfull isContainer/>
</div> </div>
</div> </div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c <JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c :hasNO="false"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange" border>
<el-table-column prop="documentNo" label="单据编号" width="0" align="left" <el-table-column type="index" width="50" label="序号" fixed="left" align="center"/>
<el-table-column prop="documentNo" label="单据编号" width="200" align="center" sortable fixed="left"
/> />
<el-table-column prop="businessDate" label="申请时间" width="0" align="left" <el-table-column prop="businessDate" label="申请时间" width="150" align="center" sortable fixed="left" sortable="custom"
/> />
<el-table-column prop="supplierName" label="供应商名称" width="0" align="left" <el-table-column prop="supplierName" label="供应商名称" width="200" align="center" sortable fixed="left"
/> />
<el-table-column label="币别 " width="0" prop="currency" algin="left" <el-table-column label="币别 " width="80" prop="currency" algin="center" sortable
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.currency | dynamicText(currencyOptions) }} {{ scope.row.currency | dynamicText(currencyOptions) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="ramount" label="申请金额" width="0" align="left" <el-table-column prop="ramount" label="申请金额" width="120" align="center" sortable
/> />
<el-table-column prop="paymentAmount" label="付款金额" width="0" align="left" <el-table-column prop="paymentAmount" label="付款金额" width="120" align="center"sortable
/> />
<el-table-column prop="unpaymentAmount" label="未付款金额" width="0" align="left" <el-table-column prop="unpaymentAmount" label="未付款金额" width="120" align="center"sortable
/> />
<el-table-column prop="dueDate" label="应付日期" width="0" align="left" <el-table-column prop="dueDate" label="应付日期" width="120" align="center"sortable sortable="custom"
/> />
<el-table-column prop="collectionAccount" label="收款账户" width="0" align="left" <el-table-column prop="collectionAccount" label="收款账户" width="120" align="center"sortable
/> />
<el-table-column prop="colectionBank" label="收款银行" width="0" align="left" <el-table-column prop="colectionBank" label="收款银行" width="120" align="center"sortable
/> />
<el-table-column label="付款类型" width="0" prop="paymentType" algin="left" <el-table-column label="付款类型" width="100" prop="paymentType" algin="center"sortable
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.paymentType | dynamicText(paymentTypeOptions) }} {{ scope.row.paymentType | dynamicText(paymentTypeOptions) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="结算类型" width="0" prop="settlementType" algin="left" <el-table-column label="结算类型" width="100" prop="settlementType" algin="center"sortable
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.settlementType | dynamicText(settlementTypeOptions) }} {{ scope.row.settlementType | dynamicText(settlementTypeOptions) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="单据状态 " width="0" prop="status" algin="left" <el-table-column label="单据状态 " width="100" prop="status" algin="center"sortable
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.status | dynamicText(statusOptions) }} {{ scope.row.status | dynamicText(statusOptions) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="creatorUserName" label="制单人" width="0" align="left" <el-table-column prop="creatorUserName" label="制单人" width="100" align="center"sortable
/> />
<el-table-column label="操作" fixed="right" <el-table-column label="操作" fixed="right"
width="150"> width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="addOrUpdateHandle(scope.row.id)">
</el-button>
<el-button type="text" <el-button type="text"
@click="addOrUpdateHandle(scope.row.id)">编辑 @click="1">撤回申请
</el-button> </el-button>
<el-button type="text" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)"> <el-button type="text"
@click="1">审核
</el-button> </el-button>
<el-button type="text" <el-button type="text"
@click="goDetail(scope.row.id)">详情 @click="1">弃审
</el-button> </el-button>
<el-button type="text"
@click="1">提交
</el-button>
<!-- <el-button type="text" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)">-->
<!-- </el-button>-->
<!-- <el-button type="text"-->
<!-- @click="goDetail(scope.row.id)">详情-->
<!-- </el-button>-->
</template> </template>
</el-table-column> </el-table-column>
</JNPF-table> </JNPF-table>
@ -222,6 +243,10 @@
}).then(res => { }).then(res => {
var _list = [] var _list = []
for (let i = 0; i < res.data.list.length; i++) { for (let i = 0; i < res.data.list.length; i++) {
res.data.list[i].businessDate = res.data.list[i].businessDate ? res.data.list[i].businessDate.substring(0,
10) : '';
res.data.list[i].dueDate = res.data.list[i].dueDate ? res.data.list[i].dueDate
.substring(0, 10) : '';
let _data = res.data.list[i] let _data = res.data.list[i]
_list.push(_data) _list.push(_data)
} }

@ -1,23 +1,21 @@
<template> <template>
<el-dialog :title="!dataForm.id ? '新建' : isDetail ? '详情':'编辑'" :close-on-click-modal="false" append-to-body <el-dialog :title="!dataForm.id ? '新建' : isDetail ? '详情':'编辑'" :close-on-click-modal="false" append-to-body
:visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll width="1000px"> :visible.sync="visible" class="JNPF-dialog JNPF-dialog_center" lock-scroll width="1200px">
<el-row :gutter="15" class=""> <el-row :gutter="15" class="">
<el-form ref="elForm" :model="dataForm" :rules="rules" size="small" label-width="100px" <el-form ref="elForm" :model="dataForm" :rules="rules" size="small" label-width="100px" label-position="right">
label-position="right">
<template v-if="!loading"> <template v-if="!loading">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="物料编码" prop="materialCode"> <el-form-item label="物料编码" prop="materialCode">
<popup-select v-model="dataForm.materialCode" placeholder="请选择" clearable <popup-select v-model="dataForm.materialCode" placeholder="请选择" clearable field="materialCode"
field="materialCode" interfaceId="381037852907038533" :columnOptions="materialCodecolumnOptions" propsValue="item_code" relationField="item_code" popupType="dialog" interfaceId="381037852907038533" :columnOptions="materialCodecolumnOptions" propsValue="item_code"
popupTitle="选择数据" popupWidth="800px"> relationField="item_code" popupType="dialog" popupTitle="选择数据" popupWidth="800px">
</popup-select> </popup-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="物料名称" prop="materialName"> <el-form-item label="物料名称" prop="materialName">
<el-input v-model="dataForm.materialName" placeholder="请输入" clearable <el-input v-model="dataForm.materialName" placeholder="请输入" clearable :style='{"width":"100%"}'>
:style='{"width":"100%"}'>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -25,16 +23,15 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="销售合同" prop="salesName"> <el-form-item label="销售合同" prop="salesName">
<popup-select v-model="dataForm.salesName" placeholder="请选择" clearable field="salesName" <popup-select v-model="dataForm.salesName" placeholder="请选择" clearable field="salesName"
interfaceId="381038993740949317" :columnOptions="salesNamecolumnOptions" propsValue="contract_name" relationField="contract_name" popupType="dialog" interfaceId="381038993740949317" :columnOptions="salesNamecolumnOptions" propsValue="contract_name"
popupTitle="选择数据" popupWidth="800px"> relationField="contract_name" popupType="dialog" popupTitle="选择数据" popupWidth="800px">
</popup-select> </popup-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="客户名称" prop="customerName"> <el-form-item label="客户名称" prop="customerName">
<el-input v-model="dataForm.customerName" placeholder="请输入" clearable <el-input v-model="dataForm.customerName" placeholder="请输入" clearable :style='{"width":"100%"}'>
:style='{"width":"100%"}'>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -42,8 +39,8 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="是否垫资" prop="advance"> <el-form-item label="是否垫资" prop="advance">
<el-select v-model="dataForm.advance" placeholder="请选择" clearable :style='{"width":"100%"}'> <el-select v-model="dataForm.advance" placeholder="请选择" clearable :style='{"width":"100%"}'>
<el-option v-for="(item, index) in advanceOptions" :key="index" :label="item.fullName" <el-option v-for="(item, index) in advanceOptions" :key="index" :label="item.fullName" :value="item.id"
:value="item.id" :disabled="item.disabled"></el-option> :disabled="item.disabled"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -57,10 +54,9 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="运输方式" prop="transportType"> <el-form-item label="运输方式" prop="transportType">
<el-select v-model="dataForm.transportType" placeholder="请选择" clearable <el-select v-model="dataForm.transportType" placeholder="请选择" clearable :style='{"width":"100%"}'>
:style='{"width":"100%"}'> <el-option v-for="(item, index) in transportTypeOptions" :key="index" :label="item.fullName"
<el-option v-for="(item, index) in transportTypeOptions" :key="index" :value="item.id" :disabled="item.disabled"></el-option>
:label="item.fullName" :value="item.id" :disabled="item.disabled"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -75,16 +71,15 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="车号" prop="licenseNo"> <el-form-item label="车号" prop="licenseNo">
<popupSelect v-model="dataForm.licenseNo" placeholder="请选择" clearable field="licenseNo" <popupSelect v-model="dataForm.licenseNo" placeholder="请选择" clearable field="licenseNo"
interfaceId="381432451370615173" :columnOptions="licenseNocolumnOptions" propsValue="ticketno" relationField="ticketno" popupType="dialog" interfaceId="381432451370615173" :columnOptions="licenseNocolumnOptions" propsValue="ticketno"
popupTitle="选择数据" popupWidth="800px"> relationField="ticketno" popupType="dialog" popupTitle="选择数据" popupWidth="800px">
</popupSelect> </popupSelect>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="业务员名称" prop="businessName"> <el-form-item label="业务员名称" prop="businessName">
<el-input v-model="dataForm.businessName" placeholder="请输入" clearable <el-input v-model="dataForm.businessName" placeholder="请输入" clearable :style='{"width":"100%"}'>
:style='{"width":"100%"}'>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -133,8 +128,7 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="司机名称" prop="driverName"> <el-form-item label="司机名称" prop="driverName">
<el-input v-model="dataForm.driverName" placeholder="请输入" clearable <el-input v-model="dataForm.driverName" placeholder="请输入" clearable :style='{"width":"100%"}'>
:style='{"width":"100%"}'>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -148,25 +142,22 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="制单人" prop="creatorusername"> <el-form-item label="制单人" prop="creatorusername">
<el-input v-model="dataForm.creatorusername" placeholder="请输入" clearable <el-input v-model="dataForm.creatorusername" placeholder="请输入" clearable :style='{"width":"100%"}'>
:style='{"width":"100%"}'>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="供应商名称" prop="supplierName"> <el-form-item label="供应商名称" prop="supplierName">
<el-input v-model="dataForm.supplierName" placeholder="请输入" clearable <el-input v-model="dataForm.supplierName" placeholder="请输入" clearable :style='{"width":"100%"}'>
:style='{"width":"100%"}'>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="采购合同" prop="purchaseName"> <el-form-item label="采购合同" prop="purchaseName">
<relationForm v-model="dataForm.purchaseName" placeholder="请选择" clearable <relationForm v-model="dataForm.purchaseName" placeholder="请选择" clearable field="purchaseName"
field="purchaseName" modelId="294090217084722181" modelId="294090217084722181" :columnOptions="purchaseNamecolumnOptions" relationField="selectField121">
:columnOptions="purchaseNamecolumnOptions" relationField="selectField121">
</relationForm> </relationForm>
</el-form-item> </el-form-item>
@ -174,69 +165,62 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="单位" prop="unit"> <el-form-item label="单位" prop="unit">
<el-select v-model="dataForm.unit" placeholder="请选择" clearable :style='{"width":"100%"}'> <el-select v-model="dataForm.unit" placeholder="请选择" clearable :style='{"width":"100%"}'>
<el-option v-for="(item, index) in unitOptions" :key="index" :label="item.fullName" <el-option v-for="(item, index) in unitOptions" :key="index" :label="item.fullName" :value="item.id"
:value="item.id" :disabled="item.disabled"></el-option> :disabled="item.disabled"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="结算重量" prop="settlement"> <el-form-item label="结算重量" prop="settlement">
<el-input v-model="dataForm.settlement" placeholder="请输入" clearable <el-input v-model="dataForm.settlement" placeholder="请输入" clearable :style='{"width":"100%"}'>
:style='{"width":"100%"}'>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="采购单价" prop="purchasePrice"> <el-form-item label="采购单价" prop="purchasePrice">
<el-input v-model="dataForm.purchasePrice" placeholder="请输入" clearable <el-input v-model="dataForm.purchasePrice" placeholder="请输入" clearable :style='{"width":"100%"}'>
:style='{"width":"100%"}'>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="进项票日期" prop="inputDate"> <el-form-item label="进项票日期" prop="inputDate">
<el-date-picker v-model="dataForm.inputDate" placeholder="请选择" clearable <el-date-picker v-model="dataForm.inputDate" placeholder="请选择" clearable :style='{"width":"100%"}'
:style='{"width":"100%"}' type="datetime" format="yyyy-MM-dd HH:mm:ss" type="datetime" format="yyyy-MM-dd" value-format="timestamp">
value-format="timestamp">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="销项票日期" prop="outputDate"> <el-form-item label="销项票日期" prop="outputDate">
<el-date-picker v-model="dataForm.outputDate" placeholder="请选择" clearable <el-date-picker v-model="dataForm.outputDate" placeholder="请选择" clearable :style='{"width":"100%"}'
:style='{"width":"100%"}' type="datetime" format="yyyy-MM-dd HH:mm:ss" type="datetime" format="yyyy-MM-dd" value-format="timestamp">
value-format="timestamp">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="付款日期" prop="payDate"> <el-form-item label="付款日期" prop="payDate">
<el-date-picker v-model="dataForm.payDate" placeholder="请选择" clearable <el-date-picker v-model="dataForm.payDate" placeholder="请选择" clearable :style='{"width":"100%"}'
:style='{"width":"100%"}' type="datetime" format="yyyy-MM-dd HH:mm:ss" type="datetime" format="yyyy-MM-dd" value-format="timestamp">
value-format="timestamp">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="回款日期" prop="paymentDate"> <el-form-item label="回款日期" prop="paymentDate">
<el-date-picker v-model="dataForm.paymentDate" placeholder="请选择" clearable <el-date-picker v-model="dataForm.paymentDate" placeholder="请选择" clearable :style='{"width":"100%"}'
:style='{"width":"100%"}' type="datetime" format="yyyy-MM-dd HH:mm:ss" type="datetime" format="yyyy-MM-dd" value-format="timestamp">
value-format="timestamp">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="磅单日期" prop="poundDate"> <el-form-item label="磅单日期" prop="poundDate">
<el-date-picker v-model="dataForm.poundDate" placeholder="请选择" clearable <el-date-picker v-model="dataForm.poundDate" placeholder="请选择" clearable :style='{"width":"100%"}'
:style='{"width":"100%"}' type="datetime" format="yyyy-MM-dd HH:mm:ss" type="datetime" format="yyyy-MM-dd" value-format="timestamp">
value-format="timestamp">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
@ -339,10 +323,23 @@
trigger: ["blur", "change"] trigger: ["blur", "change"]
}, ], }, ],
}, },
materialCodecolumnOptions:[ {"label":"物料编码","value":"item_code"}, materialCodecolumnOptions: [{
{"label":"物料名称","value":"description"}, "label": "物料编码",
{"label":"库存组织","value":"organization_id"}, "value": "item_code"
{"label":"默认库区","value":"areaname"},], },
{
"label": "物料名称",
"value": "description"
},
{
"label": "库存组织",
"value": "organization_id"
},
{
"label": "默认库区",
"value": "areaname"
},
],
salesNamecolumnOptions: [{ salesNamecolumnOptions: [{
"label": "合同编码", "label": "合同编码",
"value": "contract_code" "value": "contract_code"
@ -358,7 +355,8 @@
{ {
"label": "供应商/客户名称", "label": "供应商/客户名称",
"value": "name" "value": "name"
},], },
],
advanceOptions: [{ advanceOptions: [{
"fullName": "是", "fullName": "是",
"id": "1" "id": "1"
@ -399,7 +397,8 @@
{ {
"label": "创建时间", "label": "创建时间",
"value": "f_creatortime" "value": "f_creatortime"
},], },
],
purchaseNamecolumnOptions: [{ purchaseNamecolumnOptions: [{
"label": "事件等级", "label": "事件等级",
"value": "selectField121" "value": "selectField121"

@ -20,12 +20,16 @@
<div class="JNPF-common-layout-main JNPF-flex-main"> <div class="JNPF-common-layout-main JNPF-flex-main">
<div class="JNPF-common-head"> <div class="JNPF-common-head">
<div> <div>
<el-button type="primary" icon="el-icon-plus" @click="addOrUpdateHandle()"> <el-button type="text" icon="el-icon-plus" @click="addOrUpdateHandle()">
</el-button> </el-button>
<el-button type="text" icon="el-icon-download" @click="exportData()"> <el-button type="text" icon="el-icon-download" @click="exportData()">
</el-button> </el-button>
<el-button type="text" icon="el-icon-delete" @click="handleBatchRemoveDel()"> <el-button type="text" icon="el-icon-delete" @click="handleBatchRemoveDel()">
</el-button> </el-button>
<el-button type="text" icon="el-icon-check" @click="exportData()">
</el-button>
<el-button type="text" icon="el-icon-close" @click="exportData()">
</el-button>
</div> </div>
<div class="JNPF-common-head-right"> <div class="JNPF-common-head-right">
<el-tooltip effect="dark" content="刷新" placement="top"> <el-tooltip effect="dark" content="刷新" placement="top">
@ -35,40 +39,41 @@
<screenfull isContainer /> <screenfull isContainer />
</div> </div>
</div> </div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c <JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c :hasNO="false"
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange" border>
<el-table-column prop="licenseNo" label="车号" width="0" align="left" /> <el-table-column type="index" width="50" label="序号" fixed="left" align="center" />
<el-table-column prop="customerName" label="客户名称" width="0" align="left" /> <el-table-column prop="licenseNo" label="车号" fixed="left" sortable width="120" align="center" />
<el-table-column prop="salesName" label="销售合同" width="0" align="left" /> <el-table-column prop="customerName" label="客户名称" sortable width="150" align="center" />
<el-table-column prop="supplierName" label="供应商名称" width="0" align="left" /> <el-table-column prop="salesName" label="销售合同" sortable width="150" align="center" />
<el-table-column prop="purchaseName" label="采购合同" width="0" align="left" /> <el-table-column prop="supplierName" label="供应商名称" sortable width="150" align="center" />
<el-table-column prop="materialCode" label="物料编码" width="0" align="left" /> <el-table-column prop="purchaseName" label="采购合同" sortable width="150" align="center" />
<el-table-column prop="materialName" label="物料名称" width="0" align="left" /> <el-table-column prop="materialCode" label="物料编码" sortable width="150" align="center" />
<el-table-column label="是否垫资" width="0" prop="advance" algin="left"> <el-table-column prop="materialName" label="物料名称" sortable width="150" align="center" />
<el-table-column prop="advance" label="是否垫资" sortable width="100" align="center" >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.advance | dynamicText(advanceOptions) }} {{ scope.row.advance | dynamicText(advanceOptions) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="单位" width="0" prop="unit" algin="left"> <el-table-column prop="unit" label="单位" sortable width="100" align="center" >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.unit | dynamicText(unitOptions) }} {{ scope.row.unit | dynamicText(unitOptions) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="grossWeight" label="毛重" width="0" align="left" /> <el-table-column prop="grossWeight" sortable label="毛重" width="100" align="center" />
<el-table-column prop="tareWeight" label="皮重" width="0" align="left" /> <el-table-column prop="tareWeight" sortable label="皮重" width="100" align="center" />
<el-table-column prop="buckleWeight" label="扣重" width="0" align="left" /> <el-table-column prop="buckleWeight" sortable label="扣重" width="100" align="center" />
<el-table-column prop="netWeight" label="净重" width="0" align="left" /> <el-table-column prop="netWeight" sortable label="净重" width="100" align="center" />
<el-table-column prop="settlement" label="结算重量" width="0" align="left" /> <el-table-column prop="settlement" sortable label="结算重量" width="100" align="center" />
<el-table-column prop="purchasePrice" label="采购单价" width="0" align="left" /> <el-table-column prop="purchasePrice" sortable label="采购单价" width="100" align="center" />
<el-table-column prop="salesPrice" label="销售价格" width="0" align="left" /> <el-table-column prop="salesPrice" sortable label="销售价格" width="100" align="center" />
<el-table-column prop="inputDate" label="进项票日期" width="0" align="left" /> <el-table-column prop="inputDate" sortable label="进项票日期" width="150" align="center" />
<el-table-column prop="outputDate" label="销项票日期" width="0" align="left" /> <el-table-column prop="outputDate" sortable label="销项票日期" width="150" align="center" />
<el-table-column prop="payDate" label="付款日期" width="0" align="left" /> <el-table-column prop="payDate" sortable label="付款日期" width="150" align="center" />
<el-table-column prop="paymentDate" label="回款日期" width="0" align="left" /> <el-table-column prop="paymentDate" sortable label="回款日期" width="150" align="center" />
<el-table-column prop="poundDate" label="磅单日期" width="0" align="left" /> <el-table-column prop="poundDate" sortable label="磅单日期" width="150" align="center" />
<el-table-column prop="businessName" label="业务员" width="0" align="left" /> <el-table-column prop="businessName" sortable label="业务员" width="150" align="center" />
<el-table-column prop="remark" label="备注" width="0" align="left" /> <el-table-column prop="remark" sortable label="备注" width="150" align="center" />
<el-table-column prop="poundPictures" label="磅单图片" width="0" align="left"> <el-table-column prop="poundPictures" label="磅单图片" width="150" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-for="(item,index) in JSON.parse(scope.row.poundPictures)" :key="index"> <span v-for="(item,index) in JSON.parse(scope.row.poundPictures)" :key="index">
<el-popover placement="bottom" trigger="click" width="1000"> <el-popover placement="bottom" trigger="click" width="1000">
@ -83,7 +88,7 @@
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="vehiclePictures" label="车辆图片" width="0" align="left"> <el-table-column prop="vehiclePictures" label="车辆图片" width="150" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-for="(item,index) in JSON.parse(scope.row.vehiclePictures)" :key="index"> <span v-for="(item,index) in JSON.parse(scope.row.vehiclePictures)" :key="index">
<el-popover placement="bottom" trigger="click" width="1000"> <el-popover placement="bottom" trigger="click" width="1000">
@ -98,7 +103,7 @@
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right" width="100"> <el-table-column label="操作" fixed="right" width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="addOrUpdateHandle(scope.row.id)"> <el-button type="text" @click="addOrUpdateHandle(scope.row.id)">
</el-button> </el-button>
@ -327,6 +332,16 @@
}).then(res => { }).then(res => {
var _list = []; var _list = [];
for (let i = 0; i < res.data.list.length; i++) { for (let i = 0; i < res.data.list.length; i++) {
res.data.list[i].inputDate = res.data.list[i].inputDate ? res.data.list[i].inputDate.substring(0,
10) : '';
res.data.list[i].outputDate = res.data.list[i].outputDate ? res.data.list[i].outputDate
.substring(0, 10) : '';
res.data.list[i].payDate = res.data.list[i].payDate ? res.data.list[i].payDate
.substring(0, 10) : '';
res.data.list[i].paymentDate = res.data.list[i].paymentDate ? res.data.list[i].paymentDate
.substring(0, 10) : '';
res.data.list[i].poundDate = res.data.list[i].poundDate ? res.data.list[i].poundDate
.substring(0, 10) : '';
let _data = res.data.list[i]; let _data = res.data.list[i];
_list.push(_data) _list.push(_data)
} }

@ -48,7 +48,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="入库数量" prop="receiptnum"> <el-form-item label="入库数量" prop="receiptnum">
<el-input v-model="dataForm.receiptnum" placeholder="请输入入库数量" readonly> <el-input v-model="dataForm.receiptnum" placeholder="请输入入库数量" readonly >
</el-input> </el-input>
</el-form-item> </el-form-item>

@ -34,6 +34,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" > <el-col :span="24" >
<<<<<<< HEAD
<el-form-item label="安全库存" prop="safety" :rules="[ <el-form-item label="安全库存" prop="safety" :rules="[
{ {
required: true, required: true,
@ -46,6 +47,13 @@
} }
]" > ]" >
<el-input-number v-model="dataForm.safety" placeholder="数字文本" :step="1" > <el-input-number v-model="dataForm.safety" placeholder="数字文本" :step="1" >
=======
<el-form-item label="安全库存"
prop="safety" >
<el-input-number v-model="dataForm.safety"
placeholder="数字文本" :step="1" >
>>>>>>> ddaf1c11476266e400901543653df705c0f58f87
</el-input-number> </el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>

File diff suppressed because it is too large Load Diff

@ -11,10 +11,8 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="单据状态 "> <el-form-item label="单据状态 ">
<el-select v-model="query.status" placeholder="请选择" <el-select v-model="query.status" placeholder="请选择" clearable>
clearable> <el-option v-for="(item, index) in statusOptions" :key="index" :label="item.fullName" :value="item.id"
<el-option v-for="(item, index) in statusOptions" :key="index"
:label="item.fullName" :value="item.id"
:disabled="item.disabled"></el-option> :disabled="item.disabled"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -30,95 +28,101 @@
<div class="JNPF-common-layout-main JNPF-flex-main"> <div class="JNPF-common-layout-main JNPF-flex-main">
<div class="JNPF-common-head"> <div class="JNPF-common-head">
<div> <div>
<el-button type="primary" icon="el-icon-plus" @click="addOrUpdateHandle()"> <el-button type="text" icon="el-icon-plus" @click="addOrUpdateHandle()">
</el-button> </el-button>
<el-button type="text" icon="el-icon-download" @click="exportData()" > <el-button type="text" icon="el-icon-download" @click="exportData()">
</el-button> </el-button>
<el-button type="text" icon="el-icon-delete" @click="handleBatchRemoveDel()" >批量删除 <el-button type="text" icon="el-icon-delete" @click="handleBatchRemoveDel()">
</el-button>
<el-button type="text" icon="el-icon-check" @click="exportData()">
</el-button>
<el-button type="text" icon="el-icon-close" @click="exportData()">
</el-button>
<el-button type="text" icon="el-icon-check" @click="exportData()">
</el-button>
<el-button type="text" icon="el-icon-close" @click="exportData()">
</el-button>
<el-button type="text" icon="el-icon-check" @click="exportData()">退
</el-button> </el-button>
</div> </div>
<div class="JNPF-common-head-right"> <div class="JNPF-common-head-right">
<el-tooltip effect="dark" content="刷新" placement="top"> <el-tooltip effect="dark" content="刷新" placement="top">
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" <el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" @click="reset()" />
@click="reset()"/>
</el-tooltip> </el-tooltip>
<screenfull isContainer/> <screenfull isContainer />
</div> </div>
</div> </div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c @selection-change="handleSelectionChange"> <JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c :hasNO="false"
<el-table-column prop="documentNo" label="单据编号" width="0" align="left" @selection-change="handleSelectionChange" border>
/> <el-table-column type="index" width="50" label="序号" fixed="left" align="center" />
<el-table-column prop="costomerName" label="客户名称" width="0" align="left" <el-table-column prop="documentNo" label="单据编号" sortable fixed="left" width="200" align="center" />
/> <el-table-column prop="costomerName" label="客户名称" sortable fixed="left" width="150" align="center" />
<el-table-column prop="price" label="金额" width="0" align="left" <el-table-column prop="price" label="金额" sortable width="150" align="center" />
/> <el-table-column prop="num" label="数量" sortable width="150" align="center" />
<el-table-column prop="num" label="数量" width="0" align="left" <el-table-column label="币别" width="100" sortable prop="currency" align="center" >
/>
<el-table-column label="币别" width="0" prop="currency" algin="left"
>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.currency | dynamicText(currencyOptions) }} {{ scope.row.currency | dynamicText(currencyOptions) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="amountCollected" label="已回款金额" width="0" align="left" <el-table-column prop="amountCollected" sortable label="已回款金额" width="150" align="center" />
/> <el-table-column prop="invoiceNum" sortable label="发票数量" width="150" align="center" />
<el-table-column prop="invoiceNum" label="发票数量" width="0" align="left" <el-table-column prop="invoiceAmount" sortable label="发票金额" width="150" align="center" />
/> <el-table-column label="来源系统" width="150" sortable prop="sourceSystem" align="center" >
<el-table-column prop="invoiceAmount" label="发票金额" width="0" align="left"
/>
<el-table-column label="来源系统" width="0" prop="sourceSystem" algin="left"
>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.sourceSystem | dynamicText(sourceSystemOptions) }} {{ scope.row.sourceSystem | dynamicText(sourceSystemOptions) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="单据状态 " width="0" prop="status" algin="left" <el-table-column label="单据状态 " width="150" sortable prop="status" align="center" >
>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.status | dynamicText(statusOptions) }} {{ scope.row.status | dynamicText(statusOptions) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="creatorUserName" label="制单人" width="0" align="left" <el-table-column prop="creatorUserName" label="制单人" sortable width="150" align="center" />
/> <el-table-column label="操作" fixed="right" width="150" align="center" >
<el-table-column label="操作" fixed="right"
width="150" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" <el-button type="text" @click="addOrUpdateHandle(scope.row.id)">
@click="addOrUpdateHandle(scope.row.id)" >编辑
</el-button> </el-button>
<el-button type="text" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)"> <el-button type="text" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)">
</el-button> </el-button>
<el-button type="text" <el-button type="text" @click="goDetail(scope.row.id)">
@click="goDetail(scope.row.id)">详情
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
</JNPF-table> </JNPF-table>
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize" @pagination="initData"/> <pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
@pagination="initData" />
</div> </div>
</div> </div>
<JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh"/> <JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh" />
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download"/> <ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download" />
<Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false"/> <Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false" />
</div> </div>
</template> </template>
<script> <script>
import request from '@/utils/request' import request from '@/utils/request'
import {getDictionaryDataSelector} from '@/api/systemData/dictionary' import {
getDictionaryDataSelector
} from '@/api/systemData/dictionary'
import JNPFForm from './Form' import JNPFForm from './Form'
import ExportBox from './ExportBox' import ExportBox from './ExportBox'
import {getDataInterfaceRes} from '@/api/systemData/dataInterface' import {
getDataInterfaceRes
} from '@/api/systemData/dataInterface'
import Detail from './Detail' import Detail from './Detail'
export default { export default {
components: {JNPFForm, ExportBox,Detail}, components: {
JNPFForm,
ExportBox,
Detail
},
data() { data() {
return { return {
detailVisible: false, detailVisible: false,
query: { query: {
documentNo:undefined, documentNo: undefined,
status:undefined, status: undefined,
}, },
treeProps: { treeProps: {
children: 'children', children: 'children',
@ -127,7 +131,8 @@ width="150" >
}, },
list: [], list: [],
listLoading: true, listLoading: true,
multipleSelection: [], total: 0, multipleSelection: [],
total: 0,
listQuery: { listQuery: {
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
@ -136,25 +141,99 @@ width="150" >
}, },
formVisible: false, formVisible: false,
exportBoxVisible: false, exportBoxVisible: false,
columnList: [ columnList: [{
{prop: 'documentNo', label: '单据编号'}, prop: 'documentNo',
{prop: 'costomerName', label: '客户名称'}, label: '单据编号'
{prop: 'price', label: '金额'}, },
{prop: 'num', label: '数量'}, {
{prop: 'currency', label: '币别'}, prop: 'costomerName',
{prop: 'amountCollected', label: '已回款金额'}, label: '客户名称'
{prop: 'invoiceNum', label: '发票数量'}, },
{prop: 'invoiceAmount', label: '发票金额'}, {
{prop: 'sourceSystem', label: '来源系统'}, prop: 'price',
{prop: 'status', label: '单据状态 '}, label: '金额'
{prop: 'creatorUserName', label: '制单人'}, },
{
prop: 'num',
label: '数量'
},
{
prop: 'currency',
label: '币别'
},
{
prop: 'amountCollected',
label: '已回款金额'
},
{
prop: 'invoiceNum',
label: '发票数量'
},
{
prop: 'invoiceAmount',
label: '发票金额'
},
{
prop: 'sourceSystem',
label: '来源系统'
},
{
prop: 'status',
label: '单据状态 '
},
{
prop: 'creatorUserName',
label: '制单人'
},
], ],
currencyOptions:[{"fullName":"人民币","id":"0"},{"fullName":"美元","id":"1"},{"fullName":"英镑","id":"2"}], currencyOptions: [{
currencyProps:{"label":"fullName","value":"id"}, "fullName": "人民币",
sourceSystemOptions:[{"fullName":"人工创建","id":"0"},{"fullName":"商城平台","id":"1"}], "id": "0"
sourceSystemProps:{"label":"fullName","value":"id"}, }, {
statusOptions:[{"fullName":"已保存","id":"0"},{"fullName":"开票中","id":"1"},{"fullName":"付款申请","id":"2"},{"fullName":"待回款","id":"3"},{"fullName":"回款中","id":"4"},{"fullName":"归档","id":"5"}], "fullName": "美元",
statusProps:{"label":"fullName","value":"id"}, "id": "1"
}, {
"fullName": "英镑",
"id": "2"
}],
currencyProps: {
"label": "fullName",
"value": "id"
},
sourceSystemOptions: [{
"fullName": "人工创建",
"id": "0"
}, {
"fullName": "商城平台",
"id": "1"
}],
sourceSystemProps: {
"label": "fullName",
"value": "id"
},
statusOptions: [{
"fullName": "已保存",
"id": "0"
}, {
"fullName": "开票中",
"id": "1"
}, {
"fullName": "付款申请",
"id": "2"
}, {
"fullName": "待回款",
"id": "3"
}, {
"fullName": "回款中",
"id": "4"
}, {
"fullName": "归档",
"id": "5"
}],
statusProps: {
"label": "fullName",
"value": "id"
},
} }
}, },
computed: { computed: {
@ -166,13 +245,17 @@ width="150" >
this.initData() this.initData()
}, },
methods: { methods: {
goDetail(id){ goDetail(id) {
this.detailVisible = true this.detailVisible = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.Detail.init(id) this.$refs.Detail.init(id)
}) })
}, },
sortChange({column, prop, order}) { sortChange({
column,
prop,
order
}) {
this.listQuery.sort = order == 'ascending' ? 'asc' : 'desc' this.listQuery.sort = order == 'ascending' ? 'asc' : 'desc'
this.listQuery.sidx = !order ? '' : prop this.listQuery.sidx = !order ? '' : prop
this.initData() this.initData()
@ -182,15 +265,15 @@ width="150" >
let _query = { let _query = {
...this.listQuery, ...this.listQuery,
...this.query, ...this.query,
menuId:this.menuId menuId: this.menuId
}; };
request({ request({
url: `/api/saleorder/Saleorder/getList`, url: `/api/saleorder/Saleorder/getList`,
method: 'post', method: 'post',
data: _query data: _query
}).then(res => { }).then(res => {
var _list =[]; var _list = [];
for(let i=0;i<res.data.list.length;i++){ for (let i = 0; i < res.data.list.length; i++) {
let _data = res.data.list[i]; let _data = res.data.list[i];
_list.push(_data) _list.push(_data)
} }
@ -216,8 +299,7 @@ width="150" >
} }
}); });
}) })
}).catch(() => { }).catch(() => {});
});
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
const res = val.map(item => item.id) const res = val.map(item => item.id)
@ -248,8 +330,7 @@ width="150" >
} }
}); });
}) })
}).catch(() => { }).catch(() => {})
})
}, },
addOrUpdateHandle(id, isDetail) { addOrUpdateHandle(id, isDetail) {
this.formVisible = true this.formVisible = true
@ -264,7 +345,12 @@ width="150" >
}) })
}, },
download(data) { download(data) {
let query = {...data, ...this.listQuery, ...this.query,menuId:this.menuId} let query = {
...data,
...this.listQuery,
...this.query,
menuId: this.menuId
}
request({ request({
url: `/api/saleorder/Saleorder/Actions/Export`, url: `/api/saleorder/Saleorder/Actions/Export`,
method: 'GET', method: 'GET',

@ -6,13 +6,6 @@
<el-row :gutter="15" class=""> <el-row :gutter="15" class="">
<el-form ref="elForm" :model="dataForm" size="small" label-width="100px" label-position="right" > <el-form ref="elForm" :model="dataForm" size="small" label-width="100px" label-position="right" >
<template v-if="!loading"> <template v-if="!loading">
<el-col :span="24" >
<el-form-item label-width="0">
<JNPF-Text :style='{"width":"100%"}'
:textStyle='{"color":"#000000","font-weight":"bold","text-decoration":"none","font-size":18,"line-height":32,"font-style":"normal","text-align":"left"}' value="供应商编辑">
</JNPF-Text>
</el-form-item>
</el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="供应商编码" <el-form-item label="供应商编码"
prop="supplierCode" > prop="supplierCode" >
@ -20,33 +13,33 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="供应商名称" <el-form-item label="所属公司"
prop="supplierName" > prop="companyId" >
<p>{{dataForm.supplierName}}</p> <p>{{dataForm.companyId}}</p>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="供应商地点ID" <el-form-item label="供应商名称"
prop="supplierSiteId" > prop="supplierName" >
<p>{{dataForm.supplierSiteId}}</p> <p>{{dataForm.supplierName}}</p>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="供应商地点名称" <el-form-item label="国家"
prop="supplierSiteCode" > prop="country" >
<p>{{dataForm.supplierSiteCode}}</p> <p>{{dataForm.country}}</p>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="公司名称" <el-form-item label="供货指标"
prop="companyId" > prop="supply" >
<p>{{dataForm.companyId}}</p> <p>{{dataForm.supply}}</p>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="地址" <el-form-item label=""
prop="address" > prop="province" >
<p>{{dataForm.address}}</p> <p>{{dataForm.province}}</p>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" > <el-col :span="12" >
@ -55,6 +48,12 @@
<p>{{dataForm.contactName}}</p> <p>{{dataForm.contactName}}</p>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" >
<el-form-item label="供应商等级"
prop="supplierLevel" >
<p>{{ dataForm.supplierLevel | dynamicText(supplierLevelOptions) }} </p>
</el-form-item>
</el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="联系电话" <el-form-item label="联系电话"
prop="contactPhone" > prop="contactPhone" >
@ -62,15 +61,75 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="供应商等级" <el-form-item label="供应商性质"
prop="supplierLevel" > prop="enterprise" >
<p>{{ dataForm.supplierLevel | dynamicText(supplierLevelOptions) }} </p> <p>{{ dataForm.enterprise | dynamicText(enterpriseOptions) }} </p>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="启用" <el-form-item label="地址"
prop="address" >
<p>{{dataForm.address}}</p>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="供应商类型"
prop="classification" >
<p>{{ dataForm.classification | dynamicText(classificationOptions) }} </p>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="开户行"
prop="bank" >
<p>{{dataForm.bank}}</p>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="默认税码"
prop="taxCode" >
<p>{{ dataForm.taxCode | dynamicText(taxCodeOptions) }} </p>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="纳税编号"
prop="vatRegistrationNum" >
<p>{{dataForm.vatRegistrationNum}}</p>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="是否采购"
prop="isPurchase" >
<p>{{ dataForm.isPurchase | dynamicText(isPurchaseOptions) }} </p>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="银行账户"
prop="bankAccount" >
<p>{{dataForm.bankAccount}}</p>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="是否付款"
prop="isPayment" >
<p>{{ dataForm.isPayment | dynamicText(isPaymentOptions) }} </p>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="应付科目"
prop="payable" >
<p>{{dataForm.payable}}</p>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="是否启用"
prop="status" > prop="status" >
<p>{{dataForm.status}}</p> <p>{{ dataForm.status | dynamicText(statusOptions) }} </p>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="预付科目"
prop="prepaid" >
<p>{{dataForm.prepaid}}</p>
</el-form-item> </el-form-item>
</el-col> </el-col>
</template> </template>
@ -97,17 +156,37 @@
dataForm: { dataForm: {
id :'', id :'',
supplierCode : '', supplierCode : '',
companyId : "",
supplierName : '', supplierName : '',
supplierSiteId : '', country : "CHINA",
supplierSiteCode : '', supply : '',
companyId : [], province : [],
address : '',
contactName : '', contactName : '',
contactPhone : '',
supplierLevel : "1", supplierLevel : "1",
status : 1, contactPhone : '',
enterprise : "0",
address : '',
classification : "0",
bank : '',
taxCode : "0",
vatRegistrationNum : '',
isPurchase : "0",
bankAccount : '',
isPayment : "0",
payable : '',
status : "1",
prepaid : '',
supplierSiteCode : '',
creatorTime : "",
lastModifyTime : "",
}, },
supplierLevelOptions:[{"fullName":"一级","id":"1"},{"fullName":"二级","id":"2"},{"fullName":"三级","id":"3"},{"fullName":"四级","id":"4"}], supplierLevelOptions:[{"fullName":"一级","id":"1"},{"fullName":"二级","id":"2"},{"fullName":"三级","id":"3"},{"fullName":"四级","id":"4"}],
enterpriseOptions:[{"fullName":"民营","id":"0"},{"fullName":"私营","id":"1"}],
classificationOptions:[{"fullName":"国内","id":"0"},{"fullName":"国外","id":"1"}],
taxCodeOptions:[{"fullName":"13个点","id":"0"},{"fullName":"9个点","id":"1"},{"fullName":"6个点","id":"2"},{"fullName":"5个点","id":"3"}],
isPurchaseOptions:[{"fullName":"否","id":"0"},{"fullName":"是","id":"1"}],
isPaymentOptions:[{"fullName":"否","id":"0"},{"fullName":"是","id":"1"}],
statusOptions:[{"fullName":"启用","id":"1"},{"fullName":"停用","id":"2"}],
} }
}, },
@ -130,7 +209,7 @@
if(this.dataForm.id){ if(this.dataForm.id){
this.loading = true this.loading = true
request({ request({
url: '/api/supplier/Supplier/detail/'+this.dataForm.id, url: '/api/example/Supplier/detail/'+this.dataForm.id,
method: 'get' method: 'get'
}).then(res => { }).then(res => {
this.dataInfo(res.data) this.dataInfo(res.data)

@ -6,13 +6,6 @@
<el-row :gutter="15" class=""> <el-row :gutter="15" class="">
<el-form ref="elForm" :model="dataForm" :rules="rules" size="small" label-width="100px" label-position="right" > <el-form ref="elForm" :model="dataForm" :rules="rules" size="small" label-width="100px" label-position="right" >
<template v-if="!loading"> <template v-if="!loading">
<el-col :span="24" >
<el-form-item label-width="0">
<JNPF-Text :style='{"width":"100%"}'
:textStyle='{"color":"#000000","font-weight":"bold","text-decoration":"none","font-size":18,"line-height":32,"font-style":"normal","text-align":"left"}' value="供应商编辑">
</JNPF-Text>
</el-form-item>
</el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="供应商编码" <el-form-item label="供应商编码"
prop="supplierCode" > prop="supplierCode" >
@ -22,6 +15,17 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" >
<el-form-item label="所属公司"
prop="companyId" >
<popupSelect v-model="dataForm.companyId"
placeholder="请选择" clearable field="companyId" interfaceId="394016341591396805" :columnOptions="companyIdcolumnOptions" propsValue="F_Id" relationField="F_FullName" popupType="dialog"
popupTitle="选择数据" popupWidth="800px"
>
</popupSelect>
</el-form-item>
</el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="供应商名称" <el-form-item label="供应商名称"
prop="supplierName" > prop="supplierName" >
@ -32,39 +36,30 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="供应商地点ID" <el-form-item label="国家"
prop="supplierSiteId" > prop="country" >
<el-input v-model="dataForm.supplierSiteId" <el-input v-model="dataForm.country"
placeholder="请输入供应商地点ID" clearable :style='{"width":"100%"}'> placeholder="请输入国家" clearable :style='{"width":"100%"}'>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="供应商地点名称" <el-form-item label="供货指标"
prop="supplierSiteCode" > prop="supply" >
<el-input v-model="dataForm.supplierSiteCode" <el-input v-model="dataForm.supply"
placeholder="请输入供应商地点名称" clearable :style='{"width":"100%"}'> placeholder="请输入供货指标" clearable :style='{"width":"100%"}'>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="公司名称" <el-form-item label=""
prop="companyId" > prop="province" >
<com-select v-model="dataForm.companyId" <JNPF-Address v-model="dataForm.province"
placeholder="请选择" clearable > placeholder="请选择省市区" clearable :level=2 >
</com-select> </JNPF-Address>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="地址"
prop="address" >
<el-input v-model="dataForm.address"
placeholder="请输入地址" clearable :style='{"width":"100%"}'>
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" > <el-col :span="12" >
@ -76,6 +71,16 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" >
<el-form-item label="供应商等级"
prop="supplierLevel" >
<el-select v-model="dataForm.supplierLevel"
placeholder="请选择" clearable :style='{"width":"100%"}'>
<el-option v-for="(item, index) in supplierLevelOptions" :key="index" :label="item.fullName" :value="item.id" :disabled="item.disabled" ></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="联系电话" <el-form-item label="联系电话"
prop="contactPhone" > prop="contactPhone" >
@ -86,22 +91,127 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="供应商等级" <el-form-item label="供应商性质"
prop="supplierLevel" > prop="enterprise" >
<el-select v-model="dataForm.supplierLevel" <el-radio-group v-model="dataForm.enterprise"
placeholder="请选择" clearable :style='{"width":"100%"}'> size="small" >
<el-option v-for="(item, index) in supplierLevelOptions" :key="index" :label="item.fullName" :value="item.id" :disabled="item.disabled" ></el-option> <el-radio v-for="(item, index) in enterpriseOptions" :key="index" :label="item.id" :disabled="item.disabled" >
{{item.fullName}}
</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="地址"
prop="address" >
<el-input v-model="dataForm.address"
placeholder="请输入地址" clearable :style='{"width":"100%"}'>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="供应商类型"
prop="classification" >
<el-radio-group v-model="dataForm.classification"
size="small" >
<el-radio v-for="(item, index) in classificationOptions" :key="index" :label="item.id" :disabled="item.disabled" >
{{item.fullName}}
</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="开户行"
prop="bank" >
<el-input v-model="dataForm.bank"
placeholder="请输入开户行" clearable :style='{"width":"100%"}'>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="默认税码"
prop="taxCode" >
<el-select v-model="dataForm.taxCode"
placeholder="请选择税码" clearable :style='{"width":"100%"}'>
<el-option v-for="(item, index) in taxCodeOptions" :key="index" :label="item.fullName" :value="item.id" :disabled="item.disabled" ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" > <el-col :span="12" >
<el-form-item label="启用" <el-form-item label="纳税编号"
prop="vatRegistrationNum" >
<el-input v-model="dataForm.vatRegistrationNum"
placeholder="请输入纳税编号" clearable :style='{"width":"100%"}'>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="是否采购"
prop="isPurchase" >
<el-radio-group v-model="dataForm.isPurchase"
size="small" >
<el-radio v-for="(item, index) in isPurchaseOptions" :key="index" :label="item.id" :disabled="item.disabled" >
{{item.fullName}}
</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="银行账户"
prop="bankAccount" >
<el-input v-model="dataForm.bankAccount"
placeholder="请输入银行账户" clearable :style='{"width":"100%"}'>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="是否付款"
prop="isPayment" >
<el-radio-group v-model="dataForm.isPayment"
size="small" >
<el-radio v-for="(item, index) in isPaymentOptions" :key="index" :label="item.id" :disabled="item.disabled" >
{{item.fullName}}
</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="应付科目"
prop="payable" >
<el-input v-model="dataForm.payable"
placeholder="请输入应付科目" clearable :style='{"width":"100%"}'>
</el-input>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="是否启用"
prop="status" > prop="status" >
<el-switch v-model="dataForm.status" <el-radio-group v-model="dataForm.status"
:active-value="1" :inactive-value="0" > size="small" >
<el-radio v-for="(item, index) in statusOptions" :key="index" :label="item.id" :disabled="item.disabled" >
{{item.fullName}}
</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="12" >
<el-form-item label="预付科目"
prop="prepaid" >
<el-input v-model="dataForm.prepaid"
placeholder="请输入预付科目" clearable :style='{"width":"100%"}'>
</el-switch> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</template> </template>
@ -127,15 +237,29 @@
isDetail: false, isDetail: false,
dataForm: { dataForm: {
supplierCode : '', supplierCode : '',
companyId : "",
supplierName : '', supplierName : '',
supplierSiteId : '', country : "CHINA",
supplierSiteCode : '', supply : '',
companyId : [], province : [],
address : '',
contactName : '', contactName : '',
contactPhone : '',
supplierLevel : "1", supplierLevel : "1",
status : 1, contactPhone : '',
enterprise : "0",
address : '',
classification : "0",
bank : '',
taxCode : "0",
vatRegistrationNum : '',
isPurchase : "0",
bankAccount : '',
isPayment : "0",
payable : '',
status : "1",
prepaid : '',
supplierSiteCode : '',
creatorTime : "",
lastModifyTime : "",
}, },
rules: rules:
{ {
@ -153,8 +277,21 @@
trigger: 'blur' trigger: 'blur'
}, },
], ],
supply: [
],
contactPhone: [
],
bankAccount: [
],
}, },
companyIdcolumnOptions:[ {"label":"公司编码","value":"F_EnCode"}, {"label":"公司名称","value":"F_FullName"},],
supplierLevelOptions:[{"fullName":"一级","id":"1"},{"fullName":"二级","id":"2"},{"fullName":"三级","id":"3"},{"fullName":"四级","id":"4"}], supplierLevelOptions:[{"fullName":"一级","id":"1"},{"fullName":"二级","id":"2"},{"fullName":"三级","id":"3"},{"fullName":"四级","id":"4"}],
enterpriseOptions:[{"fullName":"民营","id":"0"},{"fullName":"私营","id":"1"}],
classificationOptions:[{"fullName":"国内","id":"0"},{"fullName":"国外","id":"1"}],
taxCodeOptions:[{"fullName":"13个点","id":"0"},{"fullName":"9个点","id":"1"},{"fullName":"6个点","id":"2"},{"fullName":"5个点","id":"3"}],
isPurchaseOptions:[{"fullName":"否","id":"0"},{"fullName":"是","id":"1"}],
isPaymentOptions:[{"fullName":"否","id":"0"},{"fullName":"是","id":"1"}],
statusOptions:[{"fullName":"启用","id":"1"},{"fullName":"停用","id":"2"}],
} }
}, },
@ -184,7 +321,7 @@
if(this.dataForm.id){ if(this.dataForm.id){
this.loading = true this.loading = true
request({ request({
url: '/api/supplier/Supplier/'+this.dataForm.id, url: '/api/example/Supplier/'+this.dataForm.id,
method: 'get' method: 'get'
}).then(res => { }).then(res => {
this.dataInfo(res.data) this.dataInfo(res.data)
@ -208,7 +345,7 @@
var _data =this.dataList() var _data =this.dataList()
if (!this.dataForm.id) { if (!this.dataForm.id) {
request({ request({
url: '/api/supplier/Supplier', url: '/api/example/Supplier',
method: 'post', method: 'post',
data: _data data: _data
}).then((res) => { }).then((res) => {
@ -224,7 +361,7 @@
}) })
}else{ }else{
request({ request({
url: '/api/supplier/Supplier/'+this.dataForm.id, url: '/api/example/Supplier/'+this.dataForm.id,
method: 'PUT', method: 'PUT',
data: _data data: _data
}).then((res) => { }).then((res) => {
@ -242,14 +379,12 @@
}, },
dataList(){ dataList(){
var _data = JSON.parse(JSON.stringify(this.dataForm)); var _data = JSON.parse(JSON.stringify(this.dataForm));
_data.companyId = JSON.stringify(_data.companyId) _data.province = JSON.stringify(_data.province)
_data.status = parseInt(_data.status)
return _data; return _data;
}, },
dataInfo(dataAll){ dataInfo(dataAll){
let _dataAll =dataAll let _dataAll =dataAll
_dataAll.companyId = JSON.parse( _dataAll.companyId) _dataAll.province = JSON.parse( _dataAll.province)
_dataAll.status = parseInt( _dataAll.status)
this.dataForm = _dataAll this.dataForm = _dataAll
}, },
}, },

@ -14,10 +14,33 @@
<el-input v-model="query.supplierName" placeholder="请输入" clearable> </el-input> <el-input v-model="query.supplierName" placeholder="请输入" clearable> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-form-item label="联系人">
<el-input v-model="query.contactName" placeholder="请输入" clearable> </el-input>
</el-form-item>
</el-col>
<template v-if="showAll">
<el-col :span="6">
<el-form-item label="联系电话">
<el-input v-model="query.contactPhone" placeholder="请输入" clearable> </el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="供应商地点">
<el-input v-model="query.supplierSiteCode" placeholder="请输入" clearable> </el-input>
</el-form-item>
</el-col>
</template>
<el-col :span="6"> <el-col :span="6">
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="search()"></el-button> <el-button type="primary" icon="el-icon-search" @click="search()"></el-button>
<el-button icon="el-icon-refresh-right" @click="reset()"></el-button> <el-button icon="el-icon-refresh-right" @click="reset()"></el-button>
<el-button type="text" icon="el-icon-arrow-down" @click="showAll=true" v-if="!showAll">
展开
</el-button>
<el-button type="text" icon="el-icon-arrow-up" @click="showAll=false" v-else>
收起
</el-button>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-form> </el-form>
@ -43,17 +66,17 @@
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c @selection-change="handleSelectionChange"> <JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c @selection-change="handleSelectionChange">
<el-table-column prop="supplierCode" label="供应商编码" width="0" align="left" <el-table-column prop="supplierCode" label="供应商编码" width="0" align="left"
sortable="custom" /> sortable="custom" />
<el-table-column prop="supplierName" label="供应商名称" width="0" align="left" <el-table-column prop="companyId" label="所属公司" width="0" align="left"
sortable="custom" />
<el-table-column prop="supplierSiteId" label="供应商地点ID" width="0" align="left"
sortable="custom" /> sortable="custom" />
<el-table-column prop="supplierSiteCode" label="供应商地点名称" width="0" align="left" <el-table-column prop="supplierName" label="供应商名称" width="0" align="left"
sortable="custom" />
<el-table-column prop="companyId" label="公司名称" width="0" align="left"
sortable="custom" /> sortable="custom" />
<el-table-column prop="country" label="国家" width="0" align="left"
/>
<el-table-column prop="supply" label="供货指标" width="0" align="left"
/>
<el-table-column prop="province" label="省" width="0" align="left"
/>
<el-table-column prop="contactName" label="联系人" width="0" align="left" <el-table-column prop="contactName" label="联系人" width="0" align="left"
sortable="custom" />
<el-table-column prop="contactPhone" label="联系电话" width="0" align="left"
sortable="custom" /> sortable="custom" />
<el-table-column label="供应商等级" width="0" prop="supplierLevel" algin="left" <el-table-column label="供应商等级" width="0" prop="supplierLevel" algin="left"
sortable="custom" > sortable="custom" >
@ -61,26 +84,66 @@
{{ scope.row.supplierLevel | dynamicText(supplierLevelOptions) }} {{ scope.row.supplierLevel | dynamicText(supplierLevelOptions) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="contactPhone" label="联系电话" width="0" align="left"
sortable="custom" />
<el-table-column label="供应商性质" width="0" prop="enterprise" algin="left"
>
<template slot-scope="scope">
{{ scope.row.enterprise | dynamicText(enterpriseOptions) }}
</template>
</el-table-column>
<el-table-column prop="address" label="地址" width="0" align="left" <el-table-column prop="address" label="地址" width="0" align="left"
sortable="custom" /> sortable="custom" />
<el-table-column prop="status" label="启用" width="0" align="left" sortable="custom" > <el-table-column label="供应商类型" width="0" prop="classification" algin="left"
>
<template slot-scope="scope">
{{ scope.row.classification | dynamicText(classificationOptions) }}
</template>
</el-table-column>
<el-table-column prop="bank" label="开户行" width="0" align="left"
/>
<el-table-column prop="vatRegistrationNum" label="纳税编号" width="0" align="left"
/>
<el-table-column prop="bankAccount" label="银行账户" width="0" align="left"
/>
<el-table-column label="默认税码" width="0" prop="taxCode" algin="left"
>
<template slot-scope="scope">
{{ scope.row.taxCode | dynamicText(taxCodeOptions) }}
</template>
</el-table-column>
<el-table-column prop="payable" label="应付科目" width="0" align="left"
/>
<el-table-column label="是否采购" width="0" prop="isPurchase" algin="left"
>
<template slot-scope="scope">
{{ scope.row.isPurchase | dynamicText(isPurchaseOptions) }}
</template>
</el-table-column>
<el-table-column prop="prepaid" label="预付科目" width="0" align="left"
/>
<el-table-column label="是否付款" width="0" prop="isPayment" algin="left"
>
<template slot-scope="scope">
{{ scope.row.isPayment | dynamicText(isPaymentOptions) }}
</template>
</el-table-column>
<el-table-column label="是否启用" width="0" prop="status" algin="left"
sortable="custom" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="success" disable-transitions v-if="scope.row.status == '1'"> {{ scope.row.status | dynamicText(statusOptions) }}
</el-tag>
<el-tag type="danger" disable-transitions v-else></el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="supplierSiteCode" label="供应商地点" width="0" align="left"
sortable="custom" />
<el-table-column label="操作" fixed="right" <el-table-column label="操作" fixed="right"
width="150" > width="100" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" <el-button type="text"
@click="addOrUpdateHandle(scope.row.id)" >编辑 @click="addOrUpdateHandle(scope.row.id)" >编辑
</el-button> </el-button>
<el-button type="text" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)"> <el-button type="text" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)">
</el-button> </el-button>
<el-button type="text"
@click="goDetail(scope.row.id)">详情
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</JNPF-table> </JNPF-table>
@ -105,10 +168,14 @@ width="150" >
components: {JNPFForm, ExportBox,Detail}, components: {JNPFForm, ExportBox,Detail},
data() { data() {
return { return {
showAll: false,
detailVisible: false, detailVisible: false,
query: { query: {
supplierCode:undefined, supplierCode:undefined,
supplierName:undefined, supplierName:undefined,
contactName:undefined,
contactPhone:undefined,
supplierSiteCode:undefined,
}, },
treeProps: { treeProps: {
children: 'children', children: 'children',
@ -122,24 +189,48 @@ width="150" >
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
sort: "desc", sort: "desc",
sidx: "supplierCode", sidx: "creatorTime",
}, },
formVisible: false, formVisible: false,
exportBoxVisible: false, exportBoxVisible: false,
columnList: [ columnList: [
{prop: 'supplierCode', label: '供应商编码'}, {prop: 'supplierCode', label: '供应商编码'},
{prop: 'companyId', label: '所属公司'},
{prop: 'supplierName', label: '供应商名称'}, {prop: 'supplierName', label: '供应商名称'},
{prop: 'supplierSiteId', label: '供应商地点ID'}, {prop: 'country', label: '国家'},
{prop: 'supplierSiteCode', label: '供应商地点名称'}, {prop: 'supply', label: '供货指标'},
{prop: 'companyId', label: '公司名称'}, {prop: 'province', label: '省'},
{prop: 'contactName', label: '联系人'}, {prop: 'contactName', label: '联系人'},
{prop: 'contactPhone', label: '联系电话'},
{prop: 'supplierLevel', label: '供应商等级'}, {prop: 'supplierLevel', label: '供应商等级'},
{prop: 'contactPhone', label: '联系电话'},
{prop: 'enterprise', label: '供应商性质'},
{prop: 'address', label: '地址'}, {prop: 'address', label: '地址'},
{prop: 'status', label: '启用'}, {prop: 'classification', label: '供应商类型'},
{prop: 'bank', label: '开户行'},
{prop: 'vatRegistrationNum', label: '纳税编号'},
{prop: 'bankAccount', label: '银行账户'},
{prop: 'taxCode', label: '默认税码'},
{prop: 'payable', label: '应付科目'},
{prop: 'isPurchase', label: '是否采购'},
{prop: 'prepaid', label: '预付科目'},
{prop: 'isPayment', label: '是否付款'},
{prop: 'status', label: '是否启用'},
{prop: 'supplierSiteCode', label: '供应商地点'},
], ],
supplierLevelOptions:[{"fullName":"一级","id":"1"},{"fullName":"二级","id":"2"},{"fullName":"三级","id":"3"},{"fullName":"四级","id":"4"}], supplierLevelOptions:[{"fullName":"一级","id":"1"},{"fullName":"二级","id":"2"},{"fullName":"三级","id":"3"},{"fullName":"四级","id":"4"}],
supplierLevelProps:{"label":"fullName","value":"id"}, supplierLevelProps:{"label":"fullName","value":"id"},
enterpriseOptions:[{"fullName":"民营","id":"0"},{"fullName":"私营","id":"1"}],
enterpriseProps:{"label":"fullName","value":"id"},
classificationOptions:[{"fullName":"国内","id":"0"},{"fullName":"国外","id":"1"}],
classificationProps:{"label":"fullName","value":"id"},
taxCodeOptions:[{"fullName":"13个点","id":"0"},{"fullName":"9个点","id":"1"},{"fullName":"6个点","id":"2"},{"fullName":"5个点","id":"3"}],
taxCodeProps:{"label":"fullName","value":"id"},
isPurchaseOptions:[{"fullName":"否","id":"0"},{"fullName":"是","id":"1"}],
isPurchaseProps:{"label":"fullName","value":"id"},
isPaymentOptions:[{"fullName":"否","id":"0"},{"fullName":"是","id":"1"}],
isPaymentProps:{"label":"fullName","value":"id"},
statusOptions:[{"fullName":"启用","id":"1"},{"fullName":"停用","id":"2"}],
statusProps:{"label":"fullName","value":"id"},
} }
}, },
computed: { computed: {
@ -170,7 +261,7 @@ width="150" >
menuId:this.menuId menuId:this.menuId
}; };
request({ request({
url: `/api/supplier/Supplier/getList`, url: `/api/example/Supplier/getList`,
method: 'post', method: 'post',
data: _query data: _query
}).then(res => { }).then(res => {
@ -190,7 +281,7 @@ width="150" >
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
request({ request({
url: `/api/supplier/Supplier/${id}`, url: `/api/example/Supplier/${id}`,
method: 'DELETE' method: 'DELETE'
}).then(res => { }).then(res => {
this.$message({ this.$message({
@ -222,7 +313,7 @@ width="150" >
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
request({ request({
url: `/api/supplier/Supplier/batchRemove/${ids}`, url: `/api/example/Supplier/batchRemove/${ids}`,
method: 'DELETE' method: 'DELETE'
}).then(res => { }).then(res => {
this.$message({ this.$message({
@ -251,7 +342,7 @@ width="150" >
download(data) { download(data) {
let query = {...data, ...this.listQuery, ...this.query,menuId:this.menuId} let query = {...data, ...this.listQuery, ...this.query,menuId:this.menuId}
request({ request({
url: `/api/supplier/Supplier/Actions/Export`, url: `/api/example/Supplier/Actions/Export`,
method: 'GET', method: 'GET',
data: query data: query
}).then(res => { }).then(res => {
@ -266,7 +357,7 @@ width="150" >
currentPage: 1, currentPage: 1,
pageSize: 20, pageSize: 20,
sort: "desc", sort: "desc",
sidx: "supplierCode", sidx: "creatorTime",
} }
this.initData() this.initData()
}, },

@ -1,6 +1,7 @@
<template> <template>
<div class="JNPF-common-layout"> <div class="JNPF-common-layout">
<<<<<<< HEAD
<div class="JNPF-common-layout-center"> <div class="JNPF-common-layout-center">
<el-row class="JNPF-common-search-box" :gutter="16"> <el-row class="JNPF-common-search-box" :gutter="16">
<el-form @submit.native.prevent> <el-form @submit.native.prevent>
@ -103,6 +104,116 @@ width="150" >
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download"/> <ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download"/>
<Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false"/> <Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false"/>
</div> </div>
=======
<div class="JNPF-common-layout-center">
<el-row class="JNPF-common-search-box" :gutter="16">
<el-form @submit.native.prevent>
<el-col :span="6">
<el-form-item label="物料名称">
<el-input v-model="query.materialName" placeholder="请输入" clearable> </el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="search()"></el-button>
<el-button icon="el-icon-refresh-right" @click="reset()"></el-button>
</el-form-item>
</el-col>
</el-form>
</el-row>
<div class="JNPF-common-layout-main JNPF-flex-main">
<div class="JNPF-common-head">
<div>
<el-button type="text" icon="el-icon-plus" @click="addOrUpdateHandle()">
</el-button>
<el-button type="text" icon="el-icon-download" @click="exportData()">
</el-button>
<el-button type="text" icon="el-icon-delete" @click="handleBatchRemoveDel()">
</el-button>
</div>
<div class="JNPF-common-head-right">
<el-tooltip effect="dark" content="刷新" placement="top">
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false"
@click="reset()" />
</el-tooltip>
<screenfull isContainer />
</div>
</div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c :hasNO="false"
@selection-change="handleSelectionChange" border>
<el-table-column type="index" width="50" label="序号" fixed="left" align="center" />
<el-table-column prop="licenseNo" label="车号" fixed="left" sortable width="120" align="center" />
<el-table-column prop="materialName" label="物料名称" fixed="left" sortable sortable width="150" align="center" />
<el-table-column prop="grossWeight" label="毛重" width="100" sortable align="center" />
<el-table-column prop="tareWeight" label="皮重" width="100" sortable align="center" />
<el-table-column prop="buckleWeight" label="扣重" width="100" sortable align="center" />
<el-table-column prop="netWeight" label="净重" width="100" sortable align="center" />
<el-table-column prop="driverName" label="司机名称" width="120" sortable align="center" />
<el-table-column prop="customerName" label="客户名称" width="150" sortable align="center" />
<el-table-column prop="salesName" label="销售合同" width="150" sortable align="center" />
<el-table-column prop="advance" label="是否垫资" width="120" sortable align="center" >
<template slot-scope="scope">
{{ scope.row.advance | dynamicText(advanceOptions) }}
</template>
</el-table-column>
<el-table-column prop="transportType" label="运输方式" sortable width="100" align="center" >
<template slot-scope="scope">
{{ scope.row.transportType | dynamicText(transportTypeOptions) }}
</template>
</el-table-column>
<el-table-column prop="departmentId" label="运费" sortable width="100" align="center" />
<el-table-column prop="salesPrice" label="销售价格" sortable width="100" align="center" />
<el-table-column prop="creatorusername" label="制单人" sortable width="150" align="center" />
<el-table-column prop="businessName" label="业务员" sortable width="150" align="center" />
<el-table-column prop="remark" label="备注" sortable width="150" align="center" />
<el-table-column prop="poundPictures" label="磅单图片" width="150" align="center">
<template slot-scope="scope">
<span v-for="(item,index) in JSON.parse(scope.row.poundPictures)" :key="index">
<el-popover placement="bottom" trigger="click" width="1000">
<img :src="`/dev${item.url}`" width="100%" />
<img
slot="reference"
:src="`/dev${item.url}`"
:alt="`/dev${item.url}`"
style="max-height: 70px;max-width: 70px; padding: 5px"
/>
</el-popover>
</span>
</template>
</el-table-column>
<el-table-column prop="vehiclePictures" label="车辆图片" width="150" align="center">
<template slot-scope="scope">
<span v-for="(item,index) in JSON.parse(scope.row.vehiclePictures)" :key="index">
<el-popover placement="bottom" trigger="click" width="1000">
<img :src="`/dev${item.url}`" width="100%" />
<img
slot="reference"
:src="`/dev${item.url}`"
:alt="`/dev${item.url}`"
style="max-height: 70px;max-width: 70px; padding: 5px"
/>
</el-popover>
</span>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" width="100" align="center">
<template slot-scope="scope">
<el-button type="text" @click="addOrUpdateHandle(scope.row.id)">
</el-button>
<el-button type="text" class="JNPF-table-delBtn" @click="handleDel(scope.row.id)">
</el-button>
</template>
</el-table-column>
</JNPF-table>
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
@pagination="initData" />
</div>
</div>
<JNPF-Form v-if="formVisible" ref="JNPFForm" @refresh="refresh" />
<ExportBox v-if="exportBoxVisible" ref="ExportBox" @download="download" />
<Detail v-if="detailVisible" ref="Detail" @refresh="detailVisible=false" />
</div>
>>>>>>> ddaf1c11476266e400901543653df705c0f58f87
</template> </template>
<script> <script>

@ -22,8 +22,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="司机" prop="drivername"> <el-form-item label="司机名称" prop="drivername">
<el-input v-model="dataForm.drivername" placeholder="请输入司机" clearable <el-input v-model="dataForm.drivername" placeholder="请输入司机名称" clearable
:style='{"width":"100%"}'> :style='{"width":"100%"}'>
</el-input> </el-input>
@ -89,7 +89,7 @@
isDetail: false, isDetail: false,
dataForm: { dataForm: {
ticketno: '', ticketno: '',
drivername: ' ', drivername: '',
contact: '', contact: '',
vehiclephotos: [{ vehiclephotos: [{
"name": "006-1 (3).jpg", "name": "006-1 (3).jpg",
@ -114,7 +114,11 @@
message: '请输入司机名称', message: '请输入司机名称',
trigger: 'blur' trigger: 'blur'
}, ], }, ],
vehiclephotos: [{
required: true,
message: '请输入车辆照片',
trigger: 'blur'
}, ],
contact: [{ required: true, message: '手机号不能为空' }, contact: [{ required: true, message: '手机号不能为空' },
{ type: 'number', { type: 'number',
@ -129,15 +133,9 @@
} }
} }
}], }],
vehiclephotos: [{
required: true,
message: '请输入车辆图片',
trigger: 'blur'
}, ],
}, },
} }
}, },
computed: {}, computed: {},
@ -231,7 +229,6 @@
_dataAll.vehiclephotos = JSON.parse(_dataAll.vehiclephotos) _dataAll.vehiclephotos = JSON.parse(_dataAll.vehiclephotos)
this.dataForm = _dataAll this.dataForm = _dataAll
}, },
}, },
} }
</script> </script>

@ -41,7 +41,7 @@
</div> </div>
</div> </div>
<JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c <JNPF-table v-loading="listLoading" :data="list" @sort-change='sortChange' has-c
@selection-change="handleSelectionChange"> @selection-change="handleSelectionChange" >
<el-table-column prop="id" label="ID" width="0" align="left" /> <el-table-column prop="id" label="ID" width="0" align="left" />
<el-table-column prop="ticketno" label="车牌号" width="0" align="left" /> <el-table-column prop="ticketno" label="车牌号" width="0" align="left" />
<el-table-column prop="drivername" label="司机" width="0" align="left" /> <el-table-column prop="drivername" label="司机" width="0" align="left" />

Loading…
Cancel
Save