diff --git a/ruoyi-admin/src/main/java/com/ruoyi/receive/stockin/service/impl/ReceiveStockinServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/receive/stockin/service/impl/ReceiveStockinServiceImpl.java
index 68031b2..8a5b120 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/receive/stockin/service/impl/ReceiveStockinServiceImpl.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/receive/stockin/service/impl/ReceiveStockinServiceImpl.java
@@ -229,8 +229,9 @@ public class ReceiveStockinServiceImpl implements IReceiveStockinService
}
}
+ }else {
+ return AjaxResult.error("单据不存在");
}
-
}catch (Exception e){
throw new RuntimeException(e);
}
diff --git a/ruoyi-ui/src/lang/zh.js b/ruoyi-ui/src/lang/zh.js
index 31c84ed..4a81efd 100644
--- a/ruoyi-ui/src/lang/zh.js
+++ b/ruoyi-ui/src/lang/zh.js
@@ -158,9 +158,11 @@ export default {
startTime: '开始时间',
finishTime: '结束时间',
entranceId: '入口ID',
+ entrance: '入口',
exitId: '出口ID',
classId: '班组ID',
warehouseId: '仓库ID',
+ warehouse: '仓库',
faultFlag: '重分标记',
jobDetailId: '子任务ID',
stockId: '库存ID',
diff --git a/ruoyi-ui/src/views/in/job/index.vue b/ruoyi-ui/src/views/in/job/index.vue
index 49b31ee..9369b5f 100644
--- a/ruoyi-ui/src/views/in/job/index.vue
+++ b/ruoyi-ui/src/views/in/job/index.vue
@@ -19,16 +19,6 @@
/>
-
-
-
-
-
-
-
-
-
+
-
-
-
-
// 供应商
// 部门
// 托盘码
- // 巷道ID
// 货位
- // 目标巷道
- // 目标货位
- // 产线ID
- // 车间ID
// 优先级
// 执行阶段
+ // 入口ID
+ // 仓库ID
// 开始时间
{{ parseTime(scope.row.startTime, '{y}-{m}-{d}') }}
@@ -293,10 +185,7 @@
{{ parseTime(scope.row.finishTime, '{y}-{m}-{d}') }}
- // 入口ID
- // 班组ID
- // 仓库ID
- // 重分标记
+
// 任务ID
-
- // 批次号
- // 入库时间
-
- {{ parseTime(scope.row.inDate, '{y}-{m}-{d}') }}
-
-
+
// 单据ID
// 子单据ID
-
// 物料编码
// 物料描述
// 英文描述
@@ -331,15 +213,12 @@
// 净重
// 总净重
// 毛重
-
-
// 入库数量
-
-
-
+ // 入库时间
+
+ {{ parseTime(scope.row.inDate, '{y}-{m}-{d}') }}
+
+
{
+ listWarehouse(this.queryWarehouseParams).then(response => {
this.warehouseOptions = response.rows;
if (this.warehouseOptions.length > 0) {
this.handleQuery();
diff --git a/ruoyi-ui/src/views/in/receive/add/index.vue b/ruoyi-ui/src/views/in/receive/add/index.vue
index 1d15695..13fe077 100644
--- a/ruoyi-ui/src/views/in/receive/add/index.vue
+++ b/ruoyi-ui/src/views/in/receive/add/index.vue
@@ -92,7 +92,7 @@
-
+
{
+ listWarehouse(this.queryWarehouseParams).then(response => {
this.warehouseOptions = response.rows;
});
},
@@ -400,7 +405,7 @@ export default {
return;
}
//校验lotNo productGuid quantity 不能为空
- if (this.productList.some(item => !item.lotNo || !item.productGuid || !item.quantity)) {
+ if (this.productList.some(item => !item.productGuid || !item.quantity)) {
this.$modal.msgError(this.$t('receiveStockinAdd.materialInfoRequired'));
return;
}
diff --git a/ruoyi-ui/src/views/in/receive/index.vue b/ruoyi-ui/src/views/in/receive/index.vue
index 93bec3b..9af6e08 100644
--- a/ruoyi-ui/src/views/in/receive/index.vue
+++ b/ruoyi-ui/src/views/in/receive/index.vue
@@ -132,14 +132,14 @@
@keyup.enter.native="handleQuery"
/>
-
+
-
+
+
+
+
+
@@ -310,7 +314,7 @@
-
+
@@ -396,7 +400,7 @@ import { getDicts } from "@/api/system/dict/data"
export default {
name: "Stockin",
- dicts: ['receive_bill_status'],
+ dicts: ['receive_bill_status','in_bill_type'],
data() {
return {
// 仓库选项列表
@@ -455,6 +459,10 @@ export default {
pageSize: 10,
stockinId: null
},
+ queryWarehouseParams: {
+ pageNum: 1,
+ pageSize: 99,
+ },
// 表单参数
form: {},
// 表单校验
@@ -658,7 +666,7 @@ export default {
},
/** 获取仓库列表 */
getWarehouseList() {
- listWarehouse().then(response => {
+ listWarehouse(this.queryWarehouseParams).then(response => {
this.warehouseOptions = response.rows;
if (this.warehouseOptions.length > 0) {
this.queryParams.warehouseId = this.warehouseOptions[0].warehouseId;
diff --git a/ruoyi-ui/src/views/in/stockIn/index.vue b/ruoyi-ui/src/views/in/stockIn/index.vue
index c1a3370..298437c 100644
--- a/ruoyi-ui/src/views/in/stockIn/index.vue
+++ b/ruoyi-ui/src/views/in/stockIn/index.vue
@@ -17,14 +17,7 @@
@keyup.enter.native="handleQuery"
/>
-
-
-
+
-
+
@@ -404,6 +397,10 @@ export default {
pageSize: 10,
stockinId: null
},
+ queryWarehouseParams:{
+ pageNum: 1,
+ pageSize: 99
+ },
// 表单参数
form: {},
// 表单校验
@@ -430,7 +427,7 @@ export default {
methods: {
/** 获取仓库列表 */
getWarehouseList() {
- listWarehouse().then(response => {
+ listWarehouse(this.queryWarehouseParams).then(response => {
this.warehouseOptions = response.rows;
if (this.warehouseOptions.length > 0) {
this.handleQuery();
diff --git a/ruoyi-ui/src/views/out/outStockoutManage.vue b/ruoyi-ui/src/views/out/outStockoutManage.vue
index b2b5c8a..eb7d1c1 100644
--- a/ruoyi-ui/src/views/out/outStockoutManage.vue
+++ b/ruoyi-ui/src/views/out/outStockoutManage.vue
@@ -296,6 +296,11 @@ export default {
status:null,
stockoutGuid:null
+ },
+ warehouseQueryParams: {
+ pageNum: 1,
+ pageSize: 99,
+
},
// 子表总条数
detailTotal: 0
@@ -308,7 +313,7 @@ export default {
methods: {
/** 获取仓库列表 */
getWarehouseList() {
- listWarehouse().then(response => {
+ listWarehouse(this.warehouseQueryParams).then(response => {
this.warehouseOptions = response.rows;
if (this.warehouseOptions.length > 0) {
this.handleQuery();