+
@@ -19,10 +19,11 @@
- 申请
+ 申请
+ 关闭
+
@@ -119,10 +122,13 @@ export default {
}
},
dicts: ['mes_safe_flag'],
+ inject: ['closeDialog'],
data() {
return {
// 遮罩层
loading: true,
+ //保存遮罩层
+ submitLoading : false,
// 选中数组
ids: [],
// 非单个禁用
@@ -140,6 +146,7 @@ export default {
// 是否显示弹出层
open: false,
maxPlanAmount: 1,
+ returnFlag: '',
taskType: '',
// 查询参数
queryParams: {
@@ -170,6 +177,10 @@ export default {
},
// 表单参数
form: {},
+ RETURN_FLAG: {//返库标识
+ YES: '1',//是
+ },
+ wmsRawOutstockDetailList:[],
};
},
created() {
@@ -195,9 +206,14 @@ export default {
warehouseFloor: this.defineData?.warehouseFloor,
wmsRawOutstockDetailList: []
}
+
+ alert(JSON.stringify(this.form))
}
if (this.defineData.maxPlanAmount) {
- this.maxPlanAmount = this.defineData?.maxPlanAmount
+ this.maxPlanAmount = this.defineData.maxPlanAmount
+ }
+ if (this.defineData.returnFlag) {
+ this.returnFlag = this.defineData.returnFlag;
}
},
@@ -223,6 +239,7 @@ export default {
// 物料搜索
searchMaterial() {
+ this.loading = true;
if (this.form.warehouseId === null || this.form.warehouseId === undefined
|| this.form.warehouseId === "") {
return;
@@ -233,12 +250,13 @@ export default {
this.queryParams.planDetailCode = this.form.planDetailCode;
getStockTotal(this.queryParams).then(e => {
this.total = e.total;
- this.form.wmsRawOutstockDetailList = e.rows.map(r => {
+ this.wmsRawOutstockDetailList = e.rows.map(r => {
return {
stockTotalId: r.stockTotalId,
materialId: r.materialId,
materialCode: r.materialCode,
materialName: r.materialName,
+ materialSpec: r.materialSpec,
safeFlag: r.safeFlag,
availableAmount: r.totalAmount - r.occupyAmount - r.frozenAmount,
unavailableAmount: r.occupyAmount + r.frozenAmount,
@@ -246,20 +264,11 @@ export default {
planAmount: this.planAmount
}
})
+ this.loading = false;
})
},
- /** 查询物料信息列表 */
- getList() {
- this.loading = true;
- this.queryParams.selectType = this.selectType;
- listMaterialinfo(this.queryParams).then(response => {
- this.materialinfoList = response.rows;
- this.total = response.total;
- this.loading = false;
- });
- },
// 取消按钮
cancel() {
this.open = false;
@@ -302,12 +311,29 @@ export default {
/** 提交按钮 */
submitForm() {
+ let realOutstockDetailList = this.wmsRawOutstockDetailList.filter(detail => detail.planAmount > 0);
+ if (realOutstockDetailList.length <= 0) {
+ this.$modal.msgWarning("请输入领取数量");
+ return;
+ }
+ this.submitloading = true;
+ this.form.wmsRawOutstockDetailList = realOutstockDetailList;
applyRawOutstock(this.form).then(e => {
- this.dialogVisible = false
+ if (this.returnFlag === this.RETURN_FLAG.YES) {
+ this.closeParentDialog()
+ } else {
+ this.searchMaterial();
+ }
this.$modal.msgSuccess("申请成功");
+ }).finally(e => {
+ this.submitloading = false;
})
},
+ closeParentDialog() {
+ this.closeDialog()
+ }
+
}
};
diff --git a/hw-ui/src/views/board/fifthFloor/index.vue b/hw-ui/src/views/board/fifthFloor/index.vue
index 6305b92..87397c2 100644
--- a/hw-ui/src/views/board/fifthFloor/index.vue
+++ b/hw-ui/src/views/board/fifthFloor/index.vue
@@ -563,6 +563,11 @@ export default {
PrintPage
},
dicts: ['wms_raw_return_task_type', 'mes_safe_flag'],
+ provide(){
+ return{
+ closeDialog : this.closeDialog
+ }
+ },
data() {
return {
fileList: [],
@@ -722,10 +727,10 @@ export default {
// this.$modal.msgError("登录工位有误");
// return;
// }
- this.loginStationInfo = e.data;
+ // this.loginStationInfo = e.data;
//TODO
- this.loginStationInfo = {stationId:"1",endStationCode:"ss"}
+ this.loginStationInfo = {stationId:"1",stationCode:"ZP_02"}
this.getProductPlans();
this.getChartData();
});
@@ -1407,15 +1412,16 @@ export default {
applyReason: '',
taskType: this.taskType,
stationId: this.loginStationInfo.stationId,
- endStationCode: this.loginStationInfo.stationCode,
+ stationCode: this.loginStationInfo.stationCode,
warehouseFloor: 5,
wmsRawOutstockDetailList: []
}
-
},
-
+ closeDialog(){
+ this.dialogVisible = false;
+ },
print() {
@@ -1489,11 +1495,11 @@ export default {
},
/** 柜体返库按钮操作 */
- handleRawBack(scope) {
+ handleRawBack() {
this.resetRawBack();
// 获取仓库信息
- if (this.warehouseList == null || this.warehouseList.length == 0) {
- getWarehouses({"warehouseFloor": 5, "returnFlag": 1}).then(e => {
+ if (this.warehouseList == null || this.warehouseList.length === 0) {
+ getWarehouses({warehouseFloor: 5, returnFlag: 1}).then(e => {
this.warehouseList = e.data
this.rawBackForm.warehouseId = this.warehouseList[0]?.warehouseId
})
@@ -1508,6 +1514,7 @@ export default {
submitRawBack() {
this.$refs["rawBackForm"].validate(valid => {
if (valid) {
+ this.rawBackForm.planDetailCode = this.form.planDetailCode;
applyRawBack(this.rawBackForm).then(response => {
this.$modal.msgSuccess("申请成功");
this.cancelRawBack();
diff --git a/hw-ui/src/views/mes/barcode/index.vue b/hw-ui/src/views/mes/barcode/index.vue
index f38a2e9..c607d8d 100644
--- a/hw-ui/src/views/mes/barcode/index.vue
+++ b/hw-ui/src/views/mes/barcode/index.vue
@@ -45,6 +45,17 @@
/>
+
+
+
+
+
+
搜索
@@ -621,6 +632,7 @@ export default {
pageSize: 10,
printTime: null,
printPerson: null,
+ printFlag: null,
batchFlag: null,
barcodeType: "1",
barcodeInfo: null,
diff --git a/hw-ui/src/views/mes/productplan/editProductPlan.vue b/hw-ui/src/views/mes/productplan/editProductPlan.vue
index 8735967..f44fad9 100644
--- a/hw-ui/src/views/mes/productplan/editProductPlan.vue
+++ b/hw-ui/src/views/mes/productplan/editProductPlan.vue
@@ -61,7 +61,8 @@
>
+ v-if="scope.row.firstFlag != null && scope.row.firstFlag === '1'
+ && form.orderStatus!==ORDER_STATUS.FINISHED && form.orderStatus!==ORDER_STATUS.RECALLED && form.orderStatus!==ORDER_STATUS.DELETED">
@@ -138,14 +139,14 @@
+ || scope.row.planStatus=== PLAN_STATUS.FINISHED || form.orderStatus===ORDER_STATUS.FINISHED || form.orderStatus===ORDER_STATUS.RECALLED || form.orderStatus===ORDER_STATUS.DELETED"/>
@@ -166,7 +167,7 @@
+ v-if="scope.row.children == null || scope.row.children === undefined || scope.row.processType === PROCESS_TYPE.AUTO">
投料
@@ -438,7 +441,7 @@ export default {
// 文件大小限制(K)
fileSize: {
type: Number,
- default: 500000,
+ default: 500,
},
// 文件类型, 例如['png', 'jpg', 'jpeg']
fileType: {
diff --git a/hw-ui/src/views/wms/common/applyRawOutstock.vue b/hw-ui/src/views/wms/common/applyRawOutstock.vue
index a12f323..b76edd9 100644
--- a/hw-ui/src/views/wms/common/applyRawOutstock.vue
+++ b/hw-ui/src/views/wms/common/applyRawOutstock.vue
@@ -281,6 +281,10 @@ export default {
})
},
+ closeDialog(){
+
+ }
+
}
};