| | |
| | | YFD("YFD","YFD","应付详情编号"), |
| | | YSD("YSD","YSD","应收详情编号"), |
| | | OF("OF","OF","其他账单编号"), |
| | | CUST("CUST","CUST","客户编号"), |
| | | ZXH("ZXH","ZXH","装卸货点"), |
| | | |
| | | |
| | | |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.enums.SystemDataNoEnum; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.system.service.ISystemDataNoService; |
| | | import com.ruoyi.tms.domain.TmsCustomerInfo; |
| | | import com.ruoyi.tms.mapper.TmsCustomerInfoMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.scheduling.annotation.Async; |
| | |
| | | |
| | | @Resource |
| | | private TmsCustomerInfoMapper tmsCustomerInfoMapper; |
| | | @Autowired |
| | | ISystemDataNoService systemDataNoService; |
| | | |
| | | |
| | | /** |
| | |
| | | @Override |
| | | public int insertTmsConsignor(TmsConsignor tmsConsignor) |
| | | { |
| | | tmsConsignor.setConsignorCode(systemDataNoService.getNoByKey(SystemDataNoEnum.ZXH)); |
| | | tmsConsignor.setCreateBy(SecurityUtils.getUsername()); |
| | | tmsConsignor.setCreateTime(DateUtils.getNowDate()); |
| | | return tmsConsignorMapper.insertTmsConsignor(tmsConsignor); |
| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.enums.SystemDataNoEnum; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.ruoyi.system.service.ISystemDataNoService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.scheduling.annotation.Async; |
| | |
| | | protected final Logger logger = LoggerFactory.getLogger(getClass()); |
| | | @Resource |
| | | private TmsCustomerInfoMapper tmsCustomerInfoMapper; |
| | | |
| | | @Autowired |
| | | ISystemDataNoService systemDataNoService; |
| | | |
| | | /** |
| | | * 查询客户信息 |
| | |
| | | @Override |
| | | public int insertTmsCustomerInfo(TmsCustomerInfo tmsCustomerInfo) |
| | | { |
| | | tmsCustomerInfo.setCustomerCode(systemDataNoService.getNoByKey(SystemDataNoEnum.CUST)); |
| | | tmsCustomerInfo.setCreateTime(DateUtils.getNowDate()); |
| | | return tmsCustomerInfoMapper.insertTmsCustomerInfo(tmsCustomerInfo); |
| | | } |
| | |
| | | accept:'string',dataType: 'string', |
| | | type: 'upload', |
| | | action: '/common/upload2', |
| | | propsHttp:{ |
| | | url: 'url', |
| | | name: 'name', |
| | | res: 'data', |
| | | }, |
| | | |
| | | }, |
| | | feeCreateTime: { |
| | | label: '费用创建时间',minWidth: 180, |
| | |
| | | accept:'string',dataType: 'string', |
| | | type: 'upload', |
| | | action: '/common/upload2', |
| | | propsHttp:{ |
| | | url: 'url', |
| | | name: 'name', |
| | | res: 'data', |
| | | }, |
| | | |
| | | }, |
| | | feeCreateTime: { |
| | | label: '费用创建时间',minWidth: 180, |
| | |
| | | accept:'string',dataType: 'string', |
| | | type: 'upload', |
| | | action: '/common/upload2', |
| | | propsHttp:{ |
| | | url: 'url', |
| | | name: 'name', |
| | | res: 'data', |
| | | }, |
| | | |
| | | }, |
| | | feeCreateTime: { |
| | | label: '费用创建时间',minWidth: 180, |
| | |
| | | prop: 'jcxx', |
| | | column:{ |
| | | consignorCode: { |
| | | label: '收发货人编码',minWidth: 150, |
| | | addDisplay: true, |
| | | label: '装卸货点编码',minWidth: 150, |
| | | addDisplay: false, disabled: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | hide: false, |
| | |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "收发货人编码不能为空", trigger: "blur" |
| | | message: "装卸货点编码不能为空", trigger: "blur" |
| | | } |
| | | ], |
| | | }, |
| | | consignorName: { |
| | | label: '收发货人名称',minWidth: 150, |
| | | label: '装卸货点名称',minWidth: 150, |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "收发货人名称不能为空", trigger: "blur" |
| | | message: "装卸货点名称不能为空", trigger: "blur" |
| | | } |
| | | ], |
| | | }, |
| | |
| | | ], |
| | | }, |
| | | consignorType: { |
| | | label: '收发货人类型',minWidth: 150, |
| | | label: '装卸货点类型',minWidth: 150, |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/consignor_type', |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "收发货人类型不能为空", trigger: "change" |
| | | message: "装卸货点类型不能为空", trigger: "change" |
| | | } |
| | | ], |
| | | }, |
| | |
| | | column: { |
| | | |
| | | consignorCode: { |
| | | label: '收发货人编码',minWidth: 150, |
| | | label: '装卸货点编码',minWidth: 150, |
| | | display: false, |
| | | hide: false, |
| | | search: true, |
| | | }, |
| | | consignorName: { |
| | | label: '收发货人名称',minWidth: 150, |
| | | label: '装卸货点名称',minWidth: 150, |
| | | display: false, |
| | | hide: false, |
| | | search: true, |
| | |
| | | disabled: true, |
| | | }, |
| | | consignorType: { |
| | | label: '收发货人类型',minWidth: 150, |
| | | label: '装卸货点类型',minWidth: 150, |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/consignor_type', |
| | | display: false, |
| | | hide: false, |
| | |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/contract_status', |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | viewDisplay: true,value: '0', |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | } |
| | | ], |
| | | }, |
| | | paymentMethod: { |
| | | label: '付款方式', |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/payment_method', |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "付款方式不能为空", trigger: "change" |
| | | } |
| | | ], |
| | | }, |
| | | // paymentMethod: { |
| | | // label: '付款方式', |
| | | // type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/payment_method', |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "付款方式不能为空", trigger: "change" |
| | | // } |
| | | // ], |
| | | // }, |
| | | paymentCycle: { |
| | | label: '付款周期', |
| | | addDisplay: true, |
| | |
| | | // viewDisplay: true, |
| | | // }, |
| | | attachmentPath: { |
| | | label: '附件路径', |
| | | label: '附件', |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true,span: 24, |
| | |
| | | home:'url', |
| | | name:'newFileName', |
| | | }, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请上传附件", trigger: "change" |
| | | } |
| | | ], |
| | | }, |
| | | // uploadedBy: { |
| | | // label: '上传人', |
| | |
| | | hide: false,minWidth:150, |
| | | search: false, |
| | | }, |
| | | paymentMethod: { |
| | | label: '付款方式', |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/payment_method', |
| | | display: false, |
| | | hide: false,minWidth:150, |
| | | search: true, |
| | | }, |
| | | // paymentMethod: { |
| | | // label: '付款方式', |
| | | // type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/payment_method', |
| | | // display: false, |
| | | // hide: false,minWidth:150, |
| | | // search: true, |
| | | // }, |
| | | |
| | | invoiceStatus: { |
| | | label: '发票状态', |
| | |
| | | label: '基本信息', |
| | | prop: 'jbxx', |
| | | column:{ |
| | | customerCode: { |
| | | label: '客户编号', |
| | | addDisplay: false, minWidth: 120, |
| | | editDisplay: true,disabled: true, |
| | | viewDisplay: true, |
| | | hide: false, |
| | | search: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "客户编号不能为空", trigger: "blur" |
| | | } |
| | | ], |
| | | }, |
| | | customerType: { |
| | | label: '客户类型', minWidth: 120, |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/customer_type', |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | editDisplay: true,value: '1', |
| | | viewDisplay: true, |
| | | hide: false, |
| | | search: true, |
| | |
| | | { |
| | | required: true, |
| | | message: "客户简称不能为空", trigger: "blur" |
| | | } |
| | | ], |
| | | }, |
| | | customerCode: { |
| | | label: '客户编号', |
| | | addDisplay: true, minWidth: 120, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | hide: false, |
| | | search: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "客户编号不能为空", trigger: "blur" |
| | | } |
| | | ], |
| | | }, |
| | |
| | | } |
| | | }, |
| | | { |
| | | label: '收发货人信息', |
| | | label: '收装货点信息', |
| | | prop: 'shffxrxx', |
| | | column: { |
| | | shipperId: { |
| | | label: '发货人',dataType:'string', |
| | | label: '装货点',dataType:'string', |
| | | display: true, |
| | | change: (val: any) => { |
| | | const table = crudRef.value?.getPropRef?.('shipperId')?.$refs?.temp; |
| | |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "发货人不能为空", trigger: "change" |
| | | message: "装货点不能为空", trigger: "change" |
| | | } |
| | | ], |
| | | type: 'table', suffixIcon: 'search', |
| | |
| | | searchMenuSpan: 5, |
| | | column: { |
| | | consignorCode: { |
| | | label: '收发货人编码', minWidth: 130, |
| | | label: '收装货点编码', minWidth: 130, |
| | | search: true, |
| | | }, |
| | | consignorName: { |
| | | label: '收发货人名称', minWidth: 130, |
| | | label: '收装货点名称', minWidth: 130, |
| | | search: true, |
| | | }, |
| | | consignorType: { |
| | | label: '收发货人类型', minWidth: 80, |
| | | label: '收装货点类型', minWidth: 80, |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/consignor_type', |
| | | display: false, |
| | | hide: false, |
| | |
| | | |
| | | }, |
| | | shipperRegionLabel: { |
| | | label: '发货人行政区域', |
| | | label: '装货点行政区域', |
| | | display: true, disabled: true |
| | | |
| | | }, |
| | | shipperAddress: { |
| | | label: '发货人详细地址', |
| | | label: '装货点详细地址', |
| | | display: true, disabled: true |
| | | }, |
| | | shipperMobile: { |
| | | label: '发货人联系方式', |
| | | label: '装货点联系方式', |
| | | display: true, disabled: true |
| | | }, |
| | | receiverId: { |
| | | label: '收货人', |
| | | label: '卸货点', |
| | | display: true, dataType:'string', |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "收货人不能为空", trigger: "change" |
| | | message: "卸货点不能为空", trigger: "change" |
| | | } |
| | | ], |
| | | change: (val: any) => { |
| | |
| | | searchMenuSpan: 5, |
| | | column: { |
| | | consignorCode: { |
| | | label: '收发货人编码', minWidth: 130, |
| | | label: '收装货点编码', minWidth: 130, |
| | | search: true, |
| | | }, |
| | | consignorName: { |
| | | label: '收发货人名称', minWidth: 130, |
| | | label: '收装货点名称', minWidth: 130, |
| | | search: true, |
| | | }, |
| | | consignorType: { |
| | | label: '收发货人类型', minWidth: 80, |
| | | label: '收装货点类型', minWidth: 80, |
| | | type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/consignor_type', |
| | | display: false, |
| | | hide: false, |
| | |
| | | |
| | | }, |
| | | receiverRegionLabel: { |
| | | label: '收货人行政区域', |
| | | label: '卸货点行政区域', |
| | | display: true, disabled: true |
| | | }, |
| | | receiverAddress: { |
| | | label: '收货人详细地址', |
| | | label: '卸货点详细地址', |
| | | display: true, disabled: true |
| | | }, |
| | | receiverMobile: { |
| | | label: '收货人联系方式', |
| | | label: '卸货点联系方式', |
| | | display: true, disabled: true |
| | | }, |
| | | transportLine: { |
| | |
| | | }, |
| | | |
| | | shipperName: { |
| | | label: '发货人名称', |
| | | label: '装货点名称', |
| | | display: false, minWidth: 120, |
| | | search: true, |
| | | }, |
| | | receiverName: { |
| | | label: '收货人名称', minWidth: 120, |
| | | label: '卸货点名称', minWidth: 120, |
| | | display: false, |
| | | search: true, |
| | | }, |
| | |
| | | voucherUrl: { |
| | | label: '行程凭证', |
| | | display: true, |
| | | span: 24, |
| | | accept:'string',dataType: 'string', |
| | | span: 24,dataType: 'string', |
| | | type: 'upload', |
| | | action: '/common/upload2', |
| | | propsHttp:{ |
| | | url: 'url', |
| | | name: 'name', |
| | | res: 'data', |
| | | }, |
| | | |
| | | }, |
| | | dataSource: { |
| | | label: '数据来源', |
| | |
| | | span: 24,dataType: 'string', |
| | | type: 'upload', |
| | | action: '/common/upload2', |
| | | propsHttp:{ |
| | | url: 'url', |
| | | name: 'name', |
| | | res: 'data', |
| | | }, |
| | | |
| | | }, |
| | | |
| | | } |
| | |
| | | accept:'string',dataType: 'string', |
| | | type: 'upload', |
| | | action: '/common/upload2', |
| | | propsHttp:{ |
| | | url: 'url', |
| | | name: 'name', |
| | | res: 'data', |
| | | }, |
| | | |
| | | }, |
| | | dataSource: { |
| | | label: '数据来源', |
| | |
| | | accept:'string',dataType: 'object', |
| | | type: 'upload', |
| | | action: '/common/upload2', |
| | | propsHttp:{ |
| | | url: 'url', |
| | | name: 'name', |
| | | res: 'data', |
| | | }, |
| | | |
| | | }, |
| | | |
| | | } |
| | |
| | | display: false, |
| | | }, |
| | | shipperName: { |
| | | label: '发货人名称', |
| | | label: '装货点名称', |
| | | display: false, minWidth: 120, |
| | | }, |
| | | receiverName: { |
| | | label: '收货人名称', minWidth: 120, |
| | | label: '卸货点名称', minWidth: 120, |
| | | display: false, |
| | | }, |
| | | transportLine: { |