From b42e9e9ab3a6481a94d809ba0d16dd83d82b3c3d Mon Sep 17 00:00:00 2001 From: hayu <1604366271@qq.com> Date: Thu, 28 Mar 2024 09:29:57 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=85=A5=E5=BA=93=E7=9B=98=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InventoryAndWarehousingController.java | 36 ++++++++ .../material/domain/PutInStorageBean.java | 88 +++++++++++++++++++ .../mapper/InventoryAndWarehousingMapper.java | 23 +++++ .../InventoryAndWarehousingService.java | 21 +++++ .../InventoryAndWarehousingServiceImpl.java | 26 ++++++ .../InventoryAndWarehousingMapper.xml | 25 ++++++ 6 files changed, 219 insertions(+) create mode 100644 sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/InventoryAndWarehousingController.java create mode 100644 sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PutInStorageBean.java create mode 100644 sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/mapper/InventoryAndWarehousingMapper.java create mode 100644 sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/InventoryAndWarehousingService.java create mode 100644 sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/InventoryAndWarehousingServiceImpl.java create mode 100644 sgzb-modules/sgzb-material/src/main/resources/mapper/material/InventoryAndWarehousingMapper.xml diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/InventoryAndWarehousingController.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/InventoryAndWarehousingController.java new file mode 100644 index 00000000..e9111005 --- /dev/null +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/InventoryAndWarehousingController.java @@ -0,0 +1,36 @@ +package com.bonus.sgzb.material.controller; + +import com.bonus.sgzb.common.core.web.controller.BaseController; +import com.bonus.sgzb.common.core.web.page.TableDataInfo; +import com.bonus.sgzb.material.domain.PutInStorageBean; +import com.bonus.sgzb.material.service.InventoryAndWarehousingService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** +* @description 入库盘点 +* @author hay +* @date 2024/3/27 13:28 +*/ +@Api(tags = " 入库盘点") +@RestController +@RequestMapping("/inventoryAndWarehousing") +public class InventoryAndWarehousingController extends BaseController { + @Autowired + private InventoryAndWarehousingService inventoryAndWarehousingService; + + /** + * 查询入库盘点列表 + */ + @ApiOperation(value = "获取入库盘点列表") + @GetMapping("/getList") + public TableDataInfo getList(PutInStorageBean bean) { + startPage(); + List list = inventoryAndWarehousingService.getList(bean); + return getDataTable(list); + } +} diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PutInStorageBean.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PutInStorageBean.java new file mode 100644 index 00000000..b240ee45 --- /dev/null +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/domain/PutInStorageBean.java @@ -0,0 +1,88 @@ +package com.bonus.sgzb.material.domain; + +import com.bonus.sgzb.common.core.web.domain.BaseEntity; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.math.BigDecimal; +import java.util.List; + +/** +* @description 入库盘点 +* @author hay +* @date 2024/3/27 16:30 +*/ +@Data +public class PutInStorageBean extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** id */ + @ApiModelProperty(value = "id") + private Integer id; + + /** 入库形式 */ + @ApiModelProperty(value = "入库形式") + private String putInType; + + /** 入库数量 */ + @ApiModelProperty(value = "入库数量") + private BigDecimal num; + + /** 创建者 */ + @ApiModelProperty(value = "创建者") + private Integer creator; + + /** 入库人 */ + @ApiModelProperty(value = "入库人") + private String userName; + + /** 盘点入库单号 */ + @ApiModelProperty(value = "盘点入库单号") + private String code; + + /** 单位ID */ + @ApiModelProperty(value = "单位ID") + private String unitId; + + /** 单位名称 */ + @ApiModelProperty(value = "单位名称") + private String unitName; + + /** 工程ID */ + @ApiModelProperty(value = "工程ID") + private String projectId; + + /** 工程名称 */ + @ApiModelProperty(value = "工程名称") + private String projectName; + + /** 创建日期 */ + @ApiModelProperty(value = "创建日期") + private String createDate; + + /** 备注 */ + @ApiModelProperty(value = "备注") + private String remarks; + + + /** 主信息 */ + @ApiModelProperty(value = "主信息") + private Integer info; + + /** 库房 */ + @ApiModelProperty(value = "库房") + private Integer ram; + + /** 设备工器具类型 */ + @ApiModelProperty(value = "设备工器具类型") + private Integer type; + + /** 设备工器具类型名称 */ + @ApiModelProperty(value = "设备工器具类型名称") + private String typeName; + + /** 设备主键 */ + @ApiModelProperty(value = "设备主键") + private Integer machine; + +} diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/mapper/InventoryAndWarehousingMapper.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/mapper/InventoryAndWarehousingMapper.java new file mode 100644 index 00000000..1b0a8047 --- /dev/null +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/mapper/InventoryAndWarehousingMapper.java @@ -0,0 +1,23 @@ +package com.bonus.sgzb.material.mapper; + +import com.bonus.sgzb.material.domain.PutInStorageBean; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +/** +* @description 入库盘点 +* @author hay +* @date 2024/3/27 13:33 +*/ +@Mapper +public interface InventoryAndWarehousingMapper { + + /** + * 查询入库盘点列表 + * @param bean + * @return 结果 + */ + List getList(PutInStorageBean bean); + +} diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/InventoryAndWarehousingService.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/InventoryAndWarehousingService.java new file mode 100644 index 00000000..1f4eab8c --- /dev/null +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/InventoryAndWarehousingService.java @@ -0,0 +1,21 @@ +package com.bonus.sgzb.material.service; + + +import com.bonus.sgzb.material.domain.PutInStorageBean; + +import java.util.List; + +/** +* @description 入库盘点 +* @author hay +* @date 2024/3/27 13:31 +*/ +public interface InventoryAndWarehousingService { + + /** + * 查询入库盘点列表 + * @param bean + * @return 结果 + */ + List getList(PutInStorageBean bean); +} diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/InventoryAndWarehousingServiceImpl.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/InventoryAndWarehousingServiceImpl.java new file mode 100644 index 00000000..974a1d22 --- /dev/null +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/InventoryAndWarehousingServiceImpl.java @@ -0,0 +1,26 @@ +package com.bonus.sgzb.material.service.impl; + +import com.bonus.sgzb.material.domain.PutInStorageBean; +import com.bonus.sgzb.material.mapper.InventoryAndWarehousingMapper; +import com.bonus.sgzb.material.service.InventoryAndWarehousingService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** +* @description 入库盘点 +* @author hay +* @date 2024/3/27 13:32 +*/ +@Service +public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousingService { + + @Autowired + private InventoryAndWarehousingMapper inventoryAndWarehousingMapper; + + @Override + public List getList(PutInStorageBean bean) { + return inventoryAndWarehousingMapper.getList(bean); + } +} diff --git a/sgzb-modules/sgzb-material/src/main/resources/mapper/material/InventoryAndWarehousingMapper.xml b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/InventoryAndWarehousingMapper.xml new file mode 100644 index 00000000..3f06814d --- /dev/null +++ b/sgzb-modules/sgzb-material/src/main/resources/mapper/material/InventoryAndWarehousingMapper.xml @@ -0,0 +1,25 @@ + + + + + + \ No newline at end of file From a9110b28d49a5857b4b6d96c164c263a7874726a Mon Sep 17 00:00:00 2001 From: mashuai Date: Thu, 28 Mar 2024 09:43:17 +0800 Subject: [PATCH 2/5] test --- .../main/java/com/bonus/sgzb/app/controller/AppController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/controller/AppController.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/controller/AppController.java index f6a91ac3..92bce39a 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/controller/AppController.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/controller/AppController.java @@ -53,6 +53,7 @@ public class AppController { @Log(title = "获取app版本信息", businessType = BusinessType.QUERY) @GetMapping("/getVersion") public AjaxResult getVersion() { + try { List list = service.getVersion(); return success(list); From 7508ee35d79dcae344a712b49f61b6a5d15c4766 Mon Sep 17 00:00:00 2001 From: mashuai Date: Thu, 28 Mar 2024 09:48:27 +0800 Subject: [PATCH 3/5] test --- .../main/java/com/bonus/sgzb/app/controller/AppController.java | 1 - 1 file changed, 1 deletion(-) diff --git a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/controller/AppController.java b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/controller/AppController.java index 92bce39a..f6a91ac3 100644 --- a/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/controller/AppController.java +++ b/sgzb-modules/sgzb-base/src/main/java/com/bonus/sgzb/app/controller/AppController.java @@ -53,7 +53,6 @@ public class AppController { @Log(title = "获取app版本信息", businessType = BusinessType.QUERY) @GetMapping("/getVersion") public AjaxResult getVersion() { - try { List list = service.getVersion(); return success(list); From 546b65a536aaa3abe7dc339b7dfe7736969d39b5 Mon Sep 17 00:00:00 2001 From: zhouzy062 Date: Thu, 28 Mar 2024 10:02:48 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=8C=E9=A2=86=E6=96=99=E5=87=BA=E5=BA=93?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/api/claimAndRefund/receive.js | 20 +- sgzb-ui/src/utils/dict/Dict.js | 2 +- sgzb-ui/src/utils/globalUrl.js | 6 +- .../claimAndRefund/receive/receiveOut.vue | 474 +++++++++--------- .../secondStore/inStoreBook.vue | 6 +- .../secondStore/outStoreBook.vue | 6 +- .../secondStore/secondStore.vue | 8 +- .../newBuy/newDevices/newDevicesArrival.vue | 4 - sgzb-ui/vue.config.js | 9 +- 9 files changed, 273 insertions(+), 262 deletions(-) diff --git a/sgzb-ui/src/api/claimAndRefund/receive.js b/sgzb-ui/src/api/claimAndRefund/receive.js index e031c340..80a07407 100644 --- a/sgzb-ui/src/api/claimAndRefund/receive.js +++ b/sgzb-ui/src/api/claimAndRefund/receive.js @@ -227,8 +227,24 @@ export function getLeaseApplyAuditListAll(query) { } - - +//领料出库 列表 +export function getLeaseAuditList(query) { + return request({ + url: '/base/tm_task/getLeaseAuditList', + method: 'get', + params: query + }) +} + + +//领料出库 详情 +export function getLeaseAuditListDetail(query) { + return request({ + url: '/base/tm_task/getLeaseAuditListDetail', + method: 'get', + params: query + }) +} diff --git a/sgzb-ui/src/utils/dict/Dict.js b/sgzb-ui/src/utils/dict/Dict.js index 88ec49de..8fb6ca0f 100644 --- a/sgzb-ui/src/utils/dict/Dict.js +++ b/sgzb-ui/src/utils/dict/Dict.js @@ -77,7 +77,7 @@ function loadDict(dict, dictMeta) { dicts.forEach(d => { Vue.set(dict.label[type], d.value, d.label) }) - console.log(dict) + // console.log(dict) return dicts }) } diff --git a/sgzb-ui/src/utils/globalUrl.js b/sgzb-ui/src/utils/globalUrl.js index 2b906e1c..c5a6e866 100644 --- a/sgzb-ui/src/utils/globalUrl.js +++ b/sgzb-ui/src/utils/globalUrl.js @@ -1,8 +1,8 @@ -// const qrUrl = 'http://192.168.0.14:21624/qrCode/qrCodePage?qrCode='; //测试 -const qrUrl = 'http://112.29.103.165:21626/qrCode/qrCodePage?qrCode='; //重庆 +const qrUrl = 'http://192.168.0.14:21624/qrCode/qrCodePage?qrCode='; //测试 +// const qrUrl = 'http://112.29.103.165:21626/qrCode/qrCodePage?qrCode='; //重庆 // const qrUrl = 'http://112.29.103.165:21624/qrCode/qrCodePage?qrCode='; //宁夏 - +// const qrUrl = 'https://z.csgmall.com.cn/gl/qrCode/qrCodePage?qrCode='; //南网 diff --git a/sgzb-ui/src/views/claimAndRefund/receive/receiveOut.vue b/sgzb-ui/src/views/claimAndRefund/receive/receiveOut.vue index 4f14cf60..0d4c7fe4 100644 --- a/sgzb-ui/src/views/claimAndRefund/receive/receiveOut.vue +++ b/sgzb-ui/src/views/claimAndRefund/receive/receiveOut.vue @@ -1,10 +1,10 @@ + + \ No newline at end of file diff --git a/sgzb-ui/src/views/claimAndRefund/return/returnInDetail.vue b/sgzb-ui/src/views/claimAndRefund/return/returnInDetail.vue new file mode 100644 index 00000000..c84a2847 --- /dev/null +++ b/sgzb-ui/src/views/claimAndRefund/return/returnInDetail.vue @@ -0,0 +1,408 @@ + + + + + \ No newline at end of file