From 44e0016452556be30dc0c898dfe7cacbea7b217b Mon Sep 17 00:00:00 2001
From: wws <18630710203@163.com>
Date: Wed, 6 Dec 2023 15:04:47 +0800
Subject: [PATCH 01/18] =?UTF-8?q?=E5=A4=87=E4=BB=B6=E7=94=B3=E9=A2=86?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/device/upkeepOrder/index.vue | 386 +++++++++++++------------
src/views/device/upkeepPlan/index.vue | 344 ++++++++++++----------
2 files changed, 393 insertions(+), 337 deletions(-)
diff --git a/src/views/device/upkeepOrder/index.vue b/src/views/device/upkeepOrder/index.vue
index 3e7b818..16612eb 100644
--- a/src/views/device/upkeepOrder/index.vue
+++ b/src/views/device/upkeepOrder/index.vue
@@ -692,158 +692,138 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 添加
-
-
-
+
+
+
+
+ 选择备件
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
- 领用数量
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -1200,6 +1180,10 @@ export default {
dicts: ['device_order_status', 'device_loop_type','device_reach_standard','device_upkeep_type','device_inspect_status'],
data() {
return {
+ // 备件选择list
+ spareOnList:[],
+ // 备件选择
+ selectSpareDialog:false,
standardListVo:[],
workDetail:false,
// 初始化VO
@@ -1398,6 +1382,32 @@ export default {
this.getList();
},
methods: {
+ // 获取备件信息
+ setSpareList() {
+ querySpareList(this.spareQuery).then(response => {
+ this.spareTotal = response.total;
+ this.spareList = response.rows;
+ this.spareLoading = false;
+ })
+ },
+ // 备件选择btn
+ choseSpareBtn(){
+ // 清理缓存
+ this.spareOnList = [];
+ // 打开选择备件弹窗
+ this.selectSpareDialog = true;
+ },
+ // 备件数量
+ handleEdit(index, row) {
+ // 库存数量-冻结数量
+ if ((Number(row.amount)-Number(row.storageAmount)) < Number(row.applyNum)) {
+ this.$message({
+ message: '领用最大数量为:'+(Number(row.amount)-Number(row.storageAmount)),
+ type: 'warning'
+ })
+ row.applyNum = (Number(row.amount)-Number(row.storageAmount));
+ }
+ },
// 重置设备搜索
resetEqu() {
this.equipmentQuery = {
@@ -1409,14 +1419,16 @@ export default {
};
this.getEquList();
},
- // 备件数量
- handleEdit(index, row) {
- if (row.amount < Number(row.applyNum)) {
- this.$message({
- message: '超过库存数量!',
- type: 'warning'
- })
- row.applyNum = row.amount;
+ // 删除备件-备件数量
+ delSpareList(e) {
+ for (let i = 0; i < this.chooseSpareList.length; i++){
+ if (this.chooseSpareList[i].materialCode == e.materialCode) {
+ this.chooseSpareList.splice(i,1);
+ this.$message({
+ message: '删除成功!',
+ type: 'success'
+ })
+ }
}
},
// 展示
@@ -1664,17 +1676,48 @@ export default {
this.selOnSpare[i].applyNum = e;
}
},
- // 删除备件-备件数量
- delSpareList(e) {
+ // 选择备件确定按钮
+ confirmSelectSpareBtn() {
+ if (this.spareOnList.length == 0) {
+ this.$message({
+ message: "请勾选要申领的备件!",
+ type: "warning"
+ })
+ return
+ }
+
for (let i = 0; i < this.chooseSpareList.length; i++){
- if (this.chooseSpareList[i].materialCode == e.materialCode) {
- this.chooseSpareList.splice(i,1);
- this.$message({
- message: '删除成功!',
- type: 'success'
- })
+ for (let j = 0; j < this.spareOnList.length; j++) {
+ if (this.chooseSpareList[i].materialCode == this.spareOnList[j].materialCode) {
+ this.$message({
+ message: '不可重复添加!',
+ type: 'warning'
+ })
+ return;
+ }
}
}
+ for (let j = 0; j < this.spareOnList.length; j++) {
+ if (this.spareOnList[j].applyNum == null) {
+ this.spareOnList[j].applyNum=1;
+ }
+ this.chooseSpareList.push(this.spareOnList[j]);
+ }
+
+ this.$message({
+ message: '添加成功!',
+ type: 'success'
+ })
+
+ // 关闭备件选择弹窗
+ this.selectSpareDialog = false;
+ },
+ // 多选备件按钮
+ selectChangeSpare(e) {
+ // 清理缓存
+ this.spareOnList = [];
+ // 置入值
+ this.spareOnList = e;
},
// 选择备件-添加备件
addSpareList(e) {
@@ -1696,13 +1739,6 @@ export default {
// 改变巡检周期事件
changeArray(e) {
},
- // 选择备件确定按钮
- confirmSelectSpareBtn() {
- },
- // 多选备件按钮
- selectChangeSpare(e) {
- this.selOnSpare = e;
- },
// 备件搜索重置按钮
resetSpare() {
this.spareQuery = {
@@ -1713,18 +1749,6 @@ export default {
};
this.setSpareList();
},
- // 获取备件信息
- setSpareList() {
- querySpareList(this.spareQuery).then(response => {
- this.spareTotal = response.total;
- this.spareList = response.rows;
- // 设置库存:总量-冻结数量
- for (let i = 0; i < this.spareList.length; i++) {
- this.spareList[i].amount = Number(this.spareList[i].amount) - Number(this.spareList[i].storageAmount)
- }
- this.spareLoading = false;
- })
- },
// 搜索备件按钮
getSpareList() {
this.setSpareList()
diff --git a/src/views/device/upkeepPlan/index.vue b/src/views/device/upkeepPlan/index.vue
index 8693446..4d7f8dc 100644
--- a/src/views/device/upkeepPlan/index.vue
+++ b/src/views/device/upkeepPlan/index.vue
@@ -675,155 +675,135 @@
width="50%"
append-to-body
>
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 添加
-
-
-
+
+
+
+
+ 选择备件
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
- 领用数量
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -895,13 +875,25 @@ import {
updateUpkeepPlan,
formatEquItem, setSpareList, querySpareList
} from "@/api/device/upkeepPlan";
-import {delPlan, getEquList, getPersonList, getWorkCenter, initUpdatePlanInfo, listPlan} from "@/api/device/plan";
+import {
+ addPlan,
+ delPlan,
+ getEquList,
+ getPersonList,
+ getWorkCenter,
+ initUpdatePlanInfo,
+ listPlan, updatePlan
+} from "@/api/device/plan";
export default {
name: "UpkeepPlan",
dicts: ['device_loop_type', 'sys_normal_disable','device_upkeep_type'],
data() {
return {
+ // 备件选择list
+ spareOnList:[],
+ // 备件选择
+ selectSpareDialog:false,
// 日期范围选择快捷
pickerOptions: {
shortcuts: [{
@@ -1061,14 +1053,22 @@ export default {
this.setWorkCenter();
},
methods: {
+ // 备件选择btn
+ choseSpareBtn(){
+ // 清理缓存
+ this.spareOnList = [];
+ // 打开选择备件弹窗
+ this.selectSpareDialog = true;
+ },
// 备件数量
handleEdit(index, row) {
- if (row.amount < Number(row.applyNum)) {
+ // 库存数量-冻结数量
+ if ((Number(row.amount)-Number(row.storageAmount)) < Number(row.applyNum)) {
this.$message({
- message: '超过库存数量!',
+ message: '领用最大数量为:'+(Number(row.amount)-Number(row.storageAmount)),
type: 'warning'
})
- row.applyNum = row.amount;
+ row.applyNum = (Number(row.amount)-Number(row.storageAmount));
}
},
// 备件选择完成按钮
@@ -1212,10 +1212,46 @@ export default {
},
// 选择备件确定按钮
confirmSelectSpareBtn() {
+ if (this.spareOnList.length == 0) {
+ this.$message({
+ message: "请勾选要申领的备件!",
+ type: "warning"
+ })
+ return
+ }
+
+ for (let i = 0; i < this.chooseSpareList.length; i++){
+ for (let j = 0; j < this.spareOnList.length; j++) {
+ if (this.chooseSpareList[i].materialCode == this.spareOnList[j].materialCode) {
+ this.$message({
+ message: '不可重复添加!',
+ type: 'warning'
+ })
+ return;
+ }
+ }
+ }
+ for (let j = 0; j < this.spareOnList.length; j++) {
+ if (this.spareOnList[j].applyNum == null) {
+ this.spareOnList[j].applyNum=1;
+ }
+ this.chooseSpareList.push(this.spareOnList[j]);
+ }
+
+ this.$message({
+ message: '添加成功!',
+ type: 'success'
+ })
+
+ // 关闭备件选择弹窗
+ this.selectSpareDialog = false;
},
// 多选备件按钮
selectChangeSpare(e) {
- this.selOnSpare = e;
+ // 清理缓存
+ this.spareOnList = [];
+ // 置入值
+ this.spareOnList = e;
},
// 备件搜索重置按钮
resetSpare() {
@@ -1232,10 +1268,6 @@ export default {
querySpareList(this.spareQuery).then(response => {
this.spareTotal = response.total;
this.spareList = response.rows;
- // 设置库存:总量-冻结数量
- for (let i = 0; i < this.spareList.length; i++) {
- this.spareList[i].amount = Number(this.spareList[i].amount) - Number(this.spareList[i].storageAmount)
- }
this.spareLoading = false;
})
},
@@ -1629,7 +1661,7 @@ export default {
this.planLoading = true;
if (this.form.planId != null) {
this.form.personList = this.selectPersonList;
- updateUpkeepPlan(this.form).then(response => {
+ updatePlan(this.form).then(response => {
this.planLoading = false;
this.$modal.msgSuccess("修改成功");
this.open = false;
@@ -1637,7 +1669,7 @@ export default {
});
} else {
this.form.personList = this.selectPersonList;
- addUpkeepPlan(this.form).then(response => {
+ addPlan(this.form).then(response => {
this.planLoading = false;
this.$modal.msgSuccess("新增成功");
this.open = false;
From a2016f72b81c680d515f01b14084df605c1448ac Mon Sep 17 00:00:00 2001
From: zhaoxiaolin
Date: Wed, 6 Dec 2023 16:44:30 +0800
Subject: [PATCH 02/18] =?UTF-8?q?=E8=BF=87=E7=A8=8B=E6=A3=80=E9=AA=8C?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/quality/income.js | 11 +-
src/api/quality/project.js | 10 ++
src/api/quality/qcProduce.js | 12 ++
src/views/quality/checkTypeProject/index.vue | 8 +-
src/views/quality/project/index.vue | 1 -
src/views/quality/qcProduce/index.vue | 61 ++++++--
.../quality/qcProduce/selectWorkOrder.vue | 139 ++++++++++++++++++
7 files changed, 222 insertions(+), 20 deletions(-)
create mode 100644 src/views/quality/qcProduce/selectWorkOrder.vue
diff --git a/src/api/quality/income.js b/src/api/quality/income.js
index d8c9e08..0527800 100644
--- a/src/api/quality/income.js
+++ b/src/api/quality/income.js
@@ -145,7 +145,7 @@ export function getDefectList(defectType) {
});
}
-// 查询人员列表
+// 查询来料单列表
export function getLLWorkOrder(query) {
return request({
url: '/quality/qcIncome/getLLWorkOrder',
@@ -153,3 +153,12 @@ export function getLLWorkOrder(query) {
params: query
});
}
+
+// 查询生产过程-工单列表
+export function getWorkOrder(query) {
+ return request({
+ url: '/quality/qcIncome/getWorkOrder',
+ method: 'get',
+ params: query
+ });
+ }
diff --git a/src/api/quality/project.js b/src/api/quality/project.js
index c23c159..3c56e50 100644
--- a/src/api/quality/project.js
+++ b/src/api/quality/project.js
@@ -9,6 +9,16 @@ export function listProject(query) {
});
}
+// 查询检验项目维护列表
+export function getProjectList(query) {
+ return request({
+ url: '/quality/project/getProjectList',
+ method: 'get',
+ params: query
+ });
+}
+
+
// 查询检验项目维护详细
export function getProject(id) {
return request({
diff --git a/src/api/quality/qcProduce.js b/src/api/quality/qcProduce.js
index 70dc437..b980cec 100644
--- a/src/api/quality/qcProduce.js
+++ b/src/api/quality/qcProduce.js
@@ -77,3 +77,15 @@ export function changeProduceStatus(recordId, status) {
data: data
})
}
+
+//获取批次
+export function getBatchList(workorderCode) {
+ const data = {
+ workorderCode
+ }
+ return request({
+ url: '/quality/qcIncome/getBatchList',
+ method: 'put',
+ data: data
+ });
+}
\ No newline at end of file
diff --git a/src/views/quality/checkTypeProject/index.vue b/src/views/quality/checkTypeProject/index.vue
index c4f68fc..35d6af4 100644
--- a/src/views/quality/checkTypeProject/index.vue
+++ b/src/views/quality/checkTypeProject/index.vue
@@ -166,7 +166,7 @@
-
+
{
- this.checkRuleList = response.rows;
+ getProjectList().then((response) => {
+ this.checkRuleList = response;
});
},
/** 查询物料检验项目维护列表 */
diff --git a/src/views/quality/project/index.vue b/src/views/quality/project/index.vue
index aa8c39b..8d4d886 100644
--- a/src/views/quality/project/index.vue
+++ b/src/views/quality/project/index.vue
@@ -108,7 +108,6 @@
-
diff --git a/src/views/quality/qcProduce/index.vue b/src/views/quality/qcProduce/index.vue
index 9c96725..6d81fac 100644
--- a/src/views/quality/qcProduce/index.vue
+++ b/src/views/quality/qcProduce/index.vue
@@ -162,10 +162,10 @@
-
+
-
+
@@ -256,8 +256,10 @@
-
-
+
+
+
+
@@ -280,13 +282,7 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -372,6 +380,11 @@
取 消
+
+
From b643ea02b0cf53237a28a0ca310b9a25f203e225 Mon Sep 17 00:00:00 2001
From: wws <18630710203@163.com>
Date: Thu, 7 Dec 2023 14:30:43 +0800
Subject: [PATCH 03/18] =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E7=A1=AE?=
=?UTF-8?q?=E5=AE=9A=E6=8C=89=E9=92=AE=E5=88=A0=E9=99=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/device/deviceOrder/index.vue | 3 +--
src/views/device/inspectionWork/index.vue | 3 +--
src/views/device/item/index.vue | 3 ++-
src/views/device/maintenanceWork/index.vue | 3 +--
src/views/device/spotInspectionOrder/index.vue | 3 +--
src/views/device/spotInspectionWork/index.vue | 3 +--
src/views/device/upkeepOrder/index.vue | 3 +--
7 files changed, 8 insertions(+), 13 deletions(-)
diff --git a/src/views/device/deviceOrder/index.vue b/src/views/device/deviceOrder/index.vue
index 48846ae..8cdbc73 100644
--- a/src/views/device/deviceOrder/index.vue
+++ b/src/views/device/deviceOrder/index.vue
@@ -637,8 +637,7 @@
diff --git a/src/views/device/inspectionWork/index.vue b/src/views/device/inspectionWork/index.vue
index 03bff7e..cebbbd5 100644
--- a/src/views/device/inspectionWork/index.vue
+++ b/src/views/device/inspectionWork/index.vue
@@ -512,8 +512,7 @@
diff --git a/src/views/device/item/index.vue b/src/views/device/item/index.vue
index ea3eb90..2c4b78b 100644
--- a/src/views/device/item/index.vue
+++ b/src/views/device/item/index.vue
@@ -20,7 +20,7 @@
@@ -616,6 +616,7 @@ export default {
// 重置日期范围
this.queryParams.createTimeArray = [];
this.queryParams.updateTimeArray = [];
+ this.queryParams.itemTools = null;
this.handleQuery();
},
// 多选框选中数据
diff --git a/src/views/device/maintenanceWork/index.vue b/src/views/device/maintenanceWork/index.vue
index be4ac95..a29fc2e 100644
--- a/src/views/device/maintenanceWork/index.vue
+++ b/src/views/device/maintenanceWork/index.vue
@@ -591,8 +591,7 @@
diff --git a/src/views/device/spotInspectionOrder/index.vue b/src/views/device/spotInspectionOrder/index.vue
index 7ae6832..4cdf526 100644
--- a/src/views/device/spotInspectionOrder/index.vue
+++ b/src/views/device/spotInspectionOrder/index.vue
@@ -628,8 +628,7 @@
diff --git a/src/views/device/spotInspectionWork/index.vue b/src/views/device/spotInspectionWork/index.vue
index d57f23d..74ce124 100644
--- a/src/views/device/spotInspectionWork/index.vue
+++ b/src/views/device/spotInspectionWork/index.vue
@@ -501,8 +501,7 @@
diff --git a/src/views/device/upkeepOrder/index.vue b/src/views/device/upkeepOrder/index.vue
index 16612eb..1df03c0 100644
--- a/src/views/device/upkeepOrder/index.vue
+++ b/src/views/device/upkeepOrder/index.vue
@@ -1155,8 +1155,7 @@
From 1215f67a968f527df9e04fd2904b040ba5e6bc37 Mon Sep 17 00:00:00 2001
From: A0010407
Date: Fri, 8 Dec 2023 14:04:49 +0800
Subject: [PATCH 04/18] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=BB=91=E5=AE=9A?=
=?UTF-8?q?=E8=BE=85=E5=8A=A9=E8=AE=BE=E5=A4=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/wms/equipment/index.vue | 113 ++++++++++----
src/views/wms/equipment/single.vue | 229 +++++++++++++++++++++++------
2 files changed, 262 insertions(+), 80 deletions(-)
diff --git a/src/views/wms/equipment/index.vue b/src/views/wms/equipment/index.vue
index 4e7774e..c3905d7 100644
--- a/src/views/wms/equipment/index.vue
+++ b/src/views/wms/equipment/index.vue
@@ -328,6 +328,7 @@
+
@@ -512,24 +513,23 @@
-
-
-
-
-
+
+
+
+
+
+
+
@@ -617,7 +617,7 @@
-
+
+
+
+
+
+
+
+
+
+
@@ -231,16 +236,17 @@ import {
delCheckTypeProject,
addCheckTypeProject,
updateCheckTypeProject,
- changeStatus
+ changeStatus,
+ submitProjects
} from "@/api/quality/checkTypeProject";
import MaterialGroupAdd from "./MaterialGroupAdd.vue";
import {listCheckType} from "@/api/quality/checkType";
import {getProjectList} from "@/api/quality/project";
-
+import SelectProject from "./selectProject.vue";
export default {
name: "CheckTypeProject",
dicts: ["qc_rule_prop",'unit'],
- components: {MaterialGroupAdd,},
+ components: {MaterialGroupAdd,SelectProject},
data() {
return {
// 遮罩层
@@ -355,6 +361,7 @@ export default {
groupId: null,
materialCode: null,
projectNo: null,
+ projectInfos:[]
};
this.resetForm("form");
},
@@ -414,12 +421,17 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
- this.reset();
- this.open = true;
- this.title = "添加物料检验项目维护";
- this.form.groupId = this.groupId;
- this.form.materialCode = this.materialCode;
- this.form.typeId = this.editableTabsValue;
+
+ if(this.groupId==null||this.materialCode){
+ this.$modal.msgError("请点击左侧节点");
+ return
+ };
+ if(this.queryParams.typeId==null){
+ this.$modal.msgError("请选择头部节点");
+ retrun
+ };
+ this.$refs.child.showFlag = true;
+ this.$refs.child.init(this.groupId,this.materialCode,this.queryParams.typeId);
},
/** 修改按钮操作 */
handleUpdate(row) {
@@ -525,6 +537,25 @@ export default {
row.status = row.status === "0" ? "1" : "0";
});
},
+ //检验项目添加确认
+ onSelectProjects(objs) {
+ let _this = this;
+ objs.forEach(function(item,index,arr){
+ item.projectId = item.id;
+ item.projectNo = item.orderNum;
+ item.unit = item.unitCode;
+ item.standardValue = item.checkStandard;
+ item.typeId = _this.queryParams.typeId;
+ item.groupId = _this.groupId;
+ item.materialCode = _this.materialCode;
+
+ });
+ submitProjects(objs).then(response => {
+ this.$modal.msgSuccess("提交成功");
+ this.open = false;
+ this.getList();
+ });
+ },
},
};
diff --git a/src/views/quality/checkTypeProject/selectProject.vue b/src/views/quality/checkTypeProject/selectProject.vue
new file mode 100644
index 0000000..7a30708
--- /dev/null
+++ b/src/views/quality/checkTypeProject/selectProject.vue
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/quality/project/index.vue b/src/views/quality/project/index.vue
index 8d4d886..3540349 100644
--- a/src/views/quality/project/index.vue
+++ b/src/views/quality/project/index.vue
@@ -92,8 +92,8 @@
-
-
+
+
+
+
+
+
+
+
+
diff --git a/src/views/quality/qcProduce/index.vue b/src/views/quality/qcProduce/index.vue
index 6d81fac..500a5f1 100644
--- a/src/views/quality/qcProduce/index.vue
+++ b/src/views/quality/qcProduce/index.vue
@@ -62,7 +62,7 @@
-
+
-
+
@@ -242,7 +242,6 @@
-
diff --git a/src/views/quality/qcWarehousing/index.vue b/src/views/quality/qcWarehousing/index.vue
index f512092..16415f0 100644
--- a/src/views/quality/qcWarehousing/index.vue
+++ b/src/views/quality/qcWarehousing/index.vue
@@ -9,6 +9,7 @@
@keyup.enter.native="handleQuery"
/>
+
+
+
+
-
+
-
-
+
+
@@ -235,33 +239,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -274,11 +251,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -291,6 +302,17 @@
+
+
+
+
+
+
+
+
@@ -305,16 +327,7 @@
-
-
-
-
-
-
+
@@ -341,6 +354,11 @@
取 消
+
+
import { listWarehousing, getWarehousing, delWarehousing, addWarehousing, updateWarehousing } from "@/api/quality/warehousing";
+import { getBatchList} from "@/api/quality/qcProduce";
import { getCheckTypes } from "@/api/quality/qcProduce";
+import ItemSelectWorkOrder from "./selectWorkOrder.vue";
import ItemSelectMaterial from "../qcIncome/selectMaterial.vue";
import ItemSelectLoc from "./selectLoc.vue";
import ItemSelectUser from "../qcIncome/selectUser.vue";
@@ -374,7 +394,7 @@ import ItemSelectProject from "../qcIncome/checkProjectType.vue";
import moment from 'moment';
export default {
name: "Warehousing",
- components: { ItemSelectMaterial,ItemSelectLoc,ItemSelectUser,ItemSelectProject},
+ components: { ItemSelectMaterial,ItemSelectLoc,ItemSelectUser,ItemSelectProject,ItemSelectWorkOrder},
dicts: ["unit","check_status","check_result"],
data() {
return {
@@ -627,6 +647,22 @@ export default {
});
},
+ /**工单选择弹出框**/
+ handleSelectWorkOrder() {
+ this.$refs.itemSelectWorkOrder.showFlag = true;
+ },
+ //工单选择确认
+ onSelectWorkOrder(obj) {
+ this.form.orderNo = obj.orderNo;
+ this.form.materialName = obj.materialName;
+ this.form.materialCode = obj.materialCode;
+ this.form.quality = obj.quality;
+ this.form.unit = obj.unit;
+ this.form.incomeTime = obj.incomeTime;
+ getBatchList(obj.workorderCode).then(response => {
+ this.batchList = response;
+ });
+ },
/**物料选择弹出框**/
handleSelectMaterial() {
this.$refs.itemSelectMaterial.showFlag = true;
diff --git a/src/views/quality/qcWarehousing/selectWorkOrder.vue b/src/views/quality/qcWarehousing/selectWorkOrder.vue
new file mode 100644
index 0000000..a2270c6
--- /dev/null
+++ b/src/views/quality/qcWarehousing/selectWorkOrder.vue
@@ -0,0 +1,139 @@
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.incomeTime, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/technology/proroute/index.vue b/src/views/technology/proroute/index.vue
index 548e061..035e866 100644
--- a/src/views/technology/proroute/index.vue
+++ b/src/views/technology/proroute/index.vue
@@ -116,7 +116,7 @@
>{{scope.row.routeCode}}
-
+
From c79a9c4d0019a2e464fef3404cf56636464ddf47 Mon Sep 17 00:00:00 2001
From: A0010407
Date: Mon, 11 Dec 2023 14:08:53 +0800
Subject: [PATCH 12/18] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E4=B8=80=E4=B8=AA?=
=?UTF-8?q?=E6=A3=80=E6=9F=A5=E9=A1=B9=E5=A4=9A=E7=85=A7=E7=89=87=E6=8F=90?=
=?UTF-8?q?=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/device/repairOrder/index.vue | 75 ++++++++++++++++----------
1 file changed, 48 insertions(+), 27 deletions(-)
diff --git a/src/views/device/repairOrder/index.vue b/src/views/device/repairOrder/index.vue
index d23430d..df17742 100644
--- a/src/views/device/repairOrder/index.vue
+++ b/src/views/device/repairOrder/index.vue
@@ -799,7 +799,7 @@
@@ -807,10 +807,10 @@
{{
form.workCode
@@ -876,8 +876,8 @@
+
-
+
-
-
-
-
+
@@ -1490,15 +1476,28 @@ export default {
CS: {
"text-align": "center",
},
+ CS1: {
+ "text-align": "center",
+ width: "250px",
+ },
LS: {
"text-align": "center",
width: "225px",
},
+ LS1: {
+ "text-align": "center",
+ width: "250px",
+ },
//图片表格样式
LSP: {
"text-align": "center",
width: "225px",
},
+ //图片表格样式
+ LSP1: {
+ "text-align": "center",
+ width: "250px",
+ },
//检查项表格数据
detailList: [],
//维修前照片
@@ -1818,6 +1817,7 @@ export default {
this.openAdd = true;
this.title = "快速工单";
},
+
/** 填写按钮操作 */
handleWrite(row) {
this.reset();
@@ -1894,7 +1894,18 @@ export default {
standard.repairValue = item.repairValue;
standard.repairReach = item.repairReach;
standard.standardType = item.standardType;
- //检查项图片
+
+ if (item.picturePaths != null) {
+ var newFiles = [];
+ item.picturePaths.forEach((item) => {
+ var newFile = {};
+ newFile.name = item.fileName;
+ newFile.url = item.fileAddress;
+ newFiles.push(newFile);
+ });
+ standard.picturePath = newFiles;
+ }
+ //检查项图片显示
var standardUrlLists = [];
if (item.picturePaths != null) {
item.picturePaths.forEach((item2) => {
@@ -1985,12 +1996,22 @@ export default {
this.form.afterRepairFile
);
}
- this.form.faultType = this.form.faultType.join(",");
+
+ if (this.form.faultType != null) {
+ this.form.faultType = this.form.faultType.join(",");
+ }
+
console.log(this.form.faultType);
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.workId != null) {
this.form.standardList = this.detailList;
+ //每个检查项
+ this.form.standardList.forEach((item) => {
+ if (Array.isArray(item.picturePath)) {
+ item.picturePath = this.listToString(item.picturePath);
+ }
+ });
console.log(this.form.standardList);
writeRepairOrder(this.form).then((response) => {
this.openWrite = false;
From 15080fa7b22cdb09a716044d7b82c049d6b1b375 Mon Sep 17 00:00:00 2001
From: A0010407
Date: Mon, 11 Dec 2023 14:40:36 +0800
Subject: [PATCH 13/18] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E7=BB=86=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/device/repairOrder/index.vue | 81 +++++++++++--------
.../device/repairOrder/selectSpareParts.vue | 5 ++
2 files changed, 53 insertions(+), 33 deletions(-)
diff --git a/src/views/device/repairOrder/index.vue b/src/views/device/repairOrder/index.vue
index df17742..8623238 100644
--- a/src/views/device/repairOrder/index.vue
+++ b/src/views/device/repairOrder/index.vue
@@ -1055,7 +1055,7 @@
-
+
@@ -1069,7 +1069,7 @@
-
+
@@ -1275,6 +1275,7 @@
@@ -1397,7 +1398,7 @@
-
+
@@ -1429,6 +1430,7 @@
:optType="optType"
:workCode="form.workCode"
:equipmentCode="form.equipmentCode"
+ :workStatus="form.workStatus"
v-if="form.workCode != null"
>
@@ -1991,34 +1993,51 @@ export default {
},
/** 提交填写维修记录按钮 */
submitWriteForm() {
- if (Array.isArray(this.form.afterRepairFile)) {
- this.form.afterRepairFile = this.listToString(
- this.form.afterRepairFile
- );
- }
-
- if (this.form.faultType != null) {
- this.form.faultType = this.form.faultType.join(",");
- }
-
- console.log(this.form.faultType);
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.workId != null) {
- this.form.standardList = this.detailList;
- //每个检查项
- this.form.standardList.forEach((item) => {
- if (Array.isArray(item.picturePath)) {
- item.picturePath = this.listToString(item.picturePath);
+ if (this.form.workStatus == null || this.form.workStatus == "") {
+ Message.warning("维修状态不能为空");
+ } else if (
+ this.form.workPerson == null ||
+ this.form.workPerson == ""
+ ) {
+ Message.warning("维修人员不能为空");
+ } else if (
+ this.form.workStartTime == null ||
+ this.form.workStartTime == ""
+ ) {
+ Message.warning("维修开始时间不能为空");
+ } else if (
+ this.form.workEndTime == null ||
+ this.form.workEndTime == ""
+ ) {
+ Message.warning("维修结束时间不能为空");
+ } else {
+ if (Array.isArray(this.form.afterRepairFile)) {
+ this.form.afterRepairFile = this.listToString(
+ this.form.afterRepairFile
+ );
}
- });
- console.log(this.form.standardList);
- writeRepairOrder(this.form).then((response) => {
- this.openWrite = false;
- this.$modal.msgSuccess("填写维修记录成功!");
- this.queryParams.workStatus = null;
- this.getList();
- });
+
+ if (this.form.faultType != null) {
+ this.form.faultType = this.form.faultType.join(",");
+ }
+
+ this.form.standardList = this.detailList;
+ //每个检查项
+ this.form.standardList.forEach((item) => {
+ if (Array.isArray(item.picturePath)) {
+ item.picturePath = this.listToString(item.picturePath);
+ }
+ });
+ writeRepairOrder(this.form).then((response) => {
+ this.openWrite = false;
+ this.$modal.msgSuccess("填写维修记录成功!");
+ this.queryParams.workStatus = null;
+ this.getList();
+ });
+ }
}
}
});
@@ -2139,10 +2158,6 @@ export default {
margin-left: 452px;
}
-.step-body {
- margin-top: 30px;
-}
-
.standardUrl_body {
height: 400px;
overflow-y: auto;
diff --git a/src/views/device/repairOrder/selectSpareParts.vue b/src/views/device/repairOrder/selectSpareParts.vue
index 74d2a4b..0fd786a 100644
--- a/src/views/device/repairOrder/selectSpareParts.vue
+++ b/src/views/device/repairOrder/selectSpareParts.vue
@@ -8,6 +8,7 @@
icon="el-icon-plus"
size="mini"
@click="handleSelectSparePartsLedger"
+ v-if = "this.queryParams.workStatus != '1' "
v-hasPermi="['device:sparePartsApplicationRecord:add']"
>新增
@@ -24,11 +25,13 @@
size="mini"
:disabled="multiple"
@click="handleDelete"
+ v-if = "this.queryParams.workStatus != '1' "
v-hasPermi="['device:sparePartsApplicationRecord:remove']"
>删除
@@ -169,6 +172,7 @@ export default {
pageSize: 10,
workCode: this.workCode,
equipmentCode: this.equipmentCode,
+ workStatus:this.workStatus,
applyType: null,
applyCode: null,
spareCode: null,
@@ -196,6 +200,7 @@ export default {
equipmentCode: undefined,
workCode: undefined,
optType: undefined,
+ workStatus: undefined,
},
created() {
this.getList();
From 06da8fb08cfc5134fe4ceb68babbd1c70e38ea2a Mon Sep 17 00:00:00 2001
From: A0010407
Date: Tue, 12 Dec 2023 16:15:29 +0800
Subject: [PATCH 14/18] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=A4=87=E5=93=81?=
=?UTF-8?q?=E5=A4=87=E4=BB=B6=E5=8F=B0=E8=B4=A6=20=E4=BC=98=E5=8C=96=201.?=
=?UTF-8?q?=E5=8A=A0=E5=85=A5=E5=B1=95=E7=A4=BA=E5=88=97=EF=BC=8C=E9=9A=90?=
=?UTF-8?q?=E8=97=8F=E5=B1=95=E7=A4=BA=E5=88=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/device/sparePartsLedger/index.vue | 107 ++++++++++----------
1 file changed, 52 insertions(+), 55 deletions(-)
diff --git a/src/views/device/sparePartsLedger/index.vue b/src/views/device/sparePartsLedger/index.vue
index 1844df3..96615e7 100644
--- a/src/views/device/sparePartsLedger/index.vue
+++ b/src/views/device/sparePartsLedger/index.vue
@@ -26,7 +26,25 @@
style="width: 150px"
/>
-
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
{{ parseTime(scope.row.gmtCreate, "{y}-{m}-{d}") }}
-
-
+
+
{{ parseTime(scope.row.gmtModified, "{y}-{m}-{d}") }}
@@ -476,6 +471,7 @@ export default {
spareConversionRatio: null,
spareInventoryFloor: null,
spareInventoryUpper: null,
+ ownEquipmentName : null,
},
options: [
{
@@ -648,6 +644,7 @@ export default {
`sparePartsLedger_${new Date().getTime()}.xlsx`
);
},
+
},
};
From c7104b6948d521b027902b612c50d6d9caec0ec2 Mon Sep 17 00:00:00 2001
From: zhaoxiaolin
Date: Wed, 13 Dec 2023 08:43:29 +0800
Subject: [PATCH 15/18] =?UTF-8?q?=E6=8A=A5=E5=B7=A5=E8=AE=B0=E5=BD=95?=
=?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/mes/reportWork/index.vue | 11 ++++++-----
src/views/quality/qcIncome/selectMaterial.vue | 1 -
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/views/mes/reportWork/index.vue b/src/views/mes/reportWork/index.vue
index aafa55b..52d6272 100644
--- a/src/views/mes/reportWork/index.vue
+++ b/src/views/mes/reportWork/index.vue
@@ -34,7 +34,7 @@
@keyup.enter.native="handleQuery"
/>
-
+
{{scope.row.workorderCode}}
+
@@ -161,7 +162,7 @@
-
+
@@ -724,7 +725,7 @@ export default {
var y = dd.getFullYear();
var m = dd.getMonth() + 1;//获取当前月份的日期
var d = dd.getDate();
- return y + "-" + m + "-" + d+" 00:00:00";
+ return y + "-" + m + "-" + d;
},
/** 查询报工报表列表 */
@@ -736,8 +737,8 @@ export default {
}**/
if(this.queryParams.feedbackTimeArray !=null && this.queryParams.feedbackTimeArray.length>0){
- this.queryParams.feedbackTimeStart = moment(this.queryParams.feedbackTimeArray[0]).format('YYYY-MM-DD 00:00:00');
- this.queryParams.feedbackTimeEnd = moment(this.queryParams.feedbackTimeArray[1]).format('YYYY-MM-DD 23:59:59');
+ this.queryParams.feedbackTimeStart = moment(this.queryParams.feedbackTimeArray[0]).format('YYYY-MM-DD');
+ this.queryParams.feedbackTimeEnd = moment(this.queryParams.feedbackTimeArray[1]).format('YYYY-MM-DD');
}
this.loading = true;
listReportWork(this.queryParams).then(response => {
diff --git a/src/views/quality/qcIncome/selectMaterial.vue b/src/views/quality/qcIncome/selectMaterial.vue
index bf9f8db..07aab87 100644
--- a/src/views/quality/qcIncome/selectMaterial.vue
+++ b/src/views/quality/qcIncome/selectMaterial.vue
@@ -150,7 +150,6 @@ export default {
this.selectedRows.name = this.idsName;
this.$emit('onSelected', this.selectedRows);
this.showFlag = false;
- this.queryParams.itemCodeGet = "";
}
}
};
From 58a9afa5926f4006f4dab157b642b985670f2766 Mon Sep 17 00:00:00 2001
From: wws <18630710203@163.com>
Date: Wed, 13 Dec 2023 09:06:00 +0800
Subject: [PATCH 16/18] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=AD=97=E6=AE=B5?=
=?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/device/item/index.vue | 16 ++++++++--------
src/views/device/upkeepOrder/index.vue | 10 ++++++----
2 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/src/views/device/item/index.vue b/src/views/device/item/index.vue
index 2c4b78b..990f93b 100644
--- a/src/views/device/item/index.vue
+++ b/src/views/device/item/index.vue
@@ -310,14 +310,14 @@
-
-
-
+
+
+
diff --git a/src/views/device/upkeepOrder/index.vue b/src/views/device/upkeepOrder/index.vue
index 615f92f..c254d5e 100644
--- a/src/views/device/upkeepOrder/index.vue
+++ b/src/views/device/upkeepOrder/index.vue
@@ -43,7 +43,7 @@
@keyup.enter.native="handleQuery"
/>
-
+
-
+
-
+
-
+
Date: Wed, 13 Dec 2023 10:14:03 +0800
Subject: [PATCH 17/18] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=BB=84=E7=BA=BF/?=
=?UTF-8?q?=E8=BE=85=E5=8A=A9=E8=AE=BE=E5=A4=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/wms/equipment/index.vue | 46 +++++++++++++++++++++++++++++--
1 file changed, 44 insertions(+), 2 deletions(-)
diff --git a/src/views/wms/equipment/index.vue b/src/views/wms/equipment/index.vue
index c3905d7..b245ff6 100644
--- a/src/views/wms/equipment/index.vue
+++ b/src/views/wms/equipment/index.vue
@@ -59,6 +59,22 @@
/>
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -910,7 +952,7 @@ import ItemSelectPerson from "./single.vue";
export default {
name: "Equipment",
- dicts: ["sys_normal_disable", "equ_type", "equipment_status"],
+ dicts: ["sys_normal_disable", "equ_type", "equipment_status","equipment_category"],
components: { EquipmentSpareParts ,ItemSelectPerson},
data() {
return {
From b94f46231633f1f92a8fa4ee22fc91241777664d Mon Sep 17 00:00:00 2001
From: A0010407
Date: Wed, 13 Dec 2023 14:56:39 +0800
Subject: [PATCH 18/18] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=20=E8=AE=BE=E5=A4=87=E7=BB=84=E7=BA=BF?=
=?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/wms/equipment.js | 9 ++
src/views/wms/equipment/index.vue | 113 +++++++++-------
src/views/wms/equipment/itemEquipment.vue | 123 ++++++++++++++++++
.../equipment/{single.vue => itemPerson.vue} | 0
4 files changed, 201 insertions(+), 44 deletions(-)
create mode 100644 src/views/wms/equipment/itemEquipment.vue
rename src/views/wms/equipment/{single.vue => itemPerson.vue} (100%)
diff --git a/src/api/wms/equipment.js b/src/api/wms/equipment.js
index 3030ae8..b746322 100644
--- a/src/api/wms/equipment.js
+++ b/src/api/wms/equipment.js
@@ -105,3 +105,12 @@ export function getPersonList(query) {
params: query
});
}
+
+// 查询设备管理列表
+export function getAuxiliaryEquipmentList(query) {
+ return request({
+ url: '/wms/equipment/getAuxiliaryEquipmentList',
+ method: 'get',
+ params: query
+ });
+}
diff --git a/src/views/wms/equipment/index.vue b/src/views/wms/equipment/index.vue
index b245ff6..028480f 100644
--- a/src/views/wms/equipment/index.vue
+++ b/src/views/wms/equipment/index.vue
@@ -12,7 +12,7 @@
@@ -22,7 +22,7 @@
v-model="queryParams.equipmentName"
placeholder="请输入设备名称"
clearable
- style="width: 180px"
+ style="width: 200px"
@keyup.enter.native="handleQuery"
/>
@@ -33,7 +33,7 @@
@change="$forceUpdate()"
clearable
filterable
- style="width: 180px"
+ style="width: 200px"
@keyup.enter.native="handleQuery"
>
-
+
-
+
-
+
-
+
@@ -556,22 +561,22 @@
-
-
-
-
-
-
+
+
+
+
+
+
@@ -660,7 +665,7 @@
-