@@ -395,7 +395,7 @@
达标
-
+
@@ -523,6 +523,7 @@ export default {
orderStart: null,
orderEnd: null,
equipmentCode: null,
+ equipmentName: null,
orderStatus: null,
orderCost: null,
planPerson: null,
@@ -537,7 +538,6 @@ export default {
createTime: null,
updateBy: null,
updateTime: null,
- equ: {equipmentName: null},
},
// 表单参数
form: {
@@ -602,6 +602,7 @@ export default {
orderStart: null,
orderEnd: null,
equipmentCode: null,
+ equipmentName: null,
orderStatus: null,
orderCost: null,
planPerson: null,
diff --git a/src/views/device/upkeepPlan/index.vue b/src/views/device/upkeepPlan/index.vue
index 38fc6aa..801e50d 100644
--- a/src/views/device/upkeepPlan/index.vue
+++ b/src/views/device/upkeepPlan/index.vue
@@ -18,12 +18,14 @@
/>
-
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
搜索
重置
@@ -268,8 +306,8 @@
-
-
+
+
@@ -446,7 +484,7 @@
内部
- 外部
+ 委外
@@ -484,6 +522,11 @@
label="保养项"
width="300">
+
+
+
+
+
-
+
@@ -975,6 +1021,8 @@ export default {
updateTime: null,
createTimeArray: [],
updateTimeArray: [],
+ loopEndArray: [],
+ loopStartArray: [],
},
// 表单参数
form: {
@@ -996,8 +1044,20 @@ export default {
},
created() {
this.getList();
+ this.setWorkCenter();
},
methods: {
+ // 备件数量
+ handleEdit(index, row) {
+ console.log('row:',index, row);
+ if (row.amount < Number(row.applyNum)) {
+ this.$message({
+ message: '超过库存数量!',
+ type: 'warning'
+ })
+ row.applyNum = row.amount;
+ }
+ },
// 备件选择完成按钮
spareChangeCom() {
console.log("点击了完成按钮")
@@ -1036,7 +1096,7 @@ export default {
},
// 选择备件-添加备件
addSpareList(e) {
- console.log("选择备件")
+ console.log("选择备件123")
console.log(e)
for (let i = 0; i < this.chooseSpareList.length; i++){
if (this.chooseSpareList[i].materialCode == e.materialCode) {
@@ -1189,7 +1249,7 @@ export default {
},
// 选择备件按钮操作
selectSpareBtn(e) {
- console.log("点击了选择备件按钮!")
+ console.log("点击了选择备件按钮!321")
console.log(e)
this.setSpareList();
if (e.spareList == null) {
@@ -1406,6 +1466,8 @@ export default {
workOutsourcingUnit: null,
workConnection: null,
workReason: null,
+ loopEndArray: [],
+ loopStartArray: [],
};
this.resetForm("form");
},
@@ -1431,6 +1493,9 @@ export default {
// 重置日期范围
this.queryParams.createTimeArray = [];
this.queryParams.updateTimeArray = [];
+ this.queryParams.loopEndArray = [];
+ this.queryParams.loopStartArray = [];
+ this.queryParams.upkeep = null;
this.handleQuery();
},
// 多选框选中数据
From d06d2f76b25a975b872e99361ca6db18f5980bc4 Mon Sep 17 00:00:00 2001
From: wws <18630710203@163.com>
Date: Fri, 17 Nov 2023 11:53:17 +0800
Subject: [PATCH 02/12] =?UTF-8?q?=E5=A1=AB=E5=86=99=E8=AE=B0=E5=BD=95?=
=?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/device/deviceOrder/index.vue | 126 ++++++++---------
.../device/spotInspectionOrder/index.vue | 128 ++++++++----------
src/views/device/upkeepOrder/index.vue | 125 ++++++++---------
3 files changed, 172 insertions(+), 207 deletions(-)
diff --git a/src/views/device/deviceOrder/index.vue b/src/views/device/deviceOrder/index.vue
index c487ca9..18e9be6 100644
--- a/src/views/device/deviceOrder/index.vue
+++ b/src/views/device/deviceOrder/index.vue
@@ -359,73 +359,54 @@
-
-
-
-
- {{ this.form.equipmentName }}
-
-
-
-
-
-
-
-
- {{ detail.itemName }}
-
-
-
-
-
-
-
-
-
- {{ standard.standardName }}
-
-
-
-
- 未达标
- 达标
-
-
-
-
-
-
-
-
-
- {{ standard.standardName }}
-
-
-
-
- {{ standard.detailUpLimit }}
-
-
-
-
- {{ standard.detailDownLimit }}
-
-
-
-
- {{ standard.detailUnit }}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -475,9 +456,11 @@ import {
export default {
name: "DeviceOrder",
- dicts: ['device_order_status', 'device_loop_type'],
+ dicts: ['device_order_status', 'device_loop_type','device_reach_standard'],
data() {
return {
+ // 记录
+ recordList: [],
// 遮罩层
loading: true,
// 选中数组
@@ -614,11 +597,18 @@ export default {
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
+ this.recordList = [];
const orderCode = row.orderCode || this.ids
getDeviceOrder(orderCode).then(response => {
this.form = response.data;
console.log("这里是回显信息")
console.log(response.data)
+ for (let i = 0; i < this.form.detailList.length; i++) {
+ for (let j = 0; j < this.form.detailList[i].standardList.length; j++) {
+ this.form.detailList[i].standardList[j].itemName = this.form.detailList[i].itemName;
+ this.recordList.push(this.form.detailList[i].standardList[j]);
+ }
+ }
this.open = true;
this.title = "填写记录";
});
diff --git a/src/views/device/spotInspectionOrder/index.vue b/src/views/device/spotInspectionOrder/index.vue
index 0018fbb..b18de08 100644
--- a/src/views/device/spotInspectionOrder/index.vue
+++ b/src/views/device/spotInspectionOrder/index.vue
@@ -363,76 +363,54 @@
-
-
-
-
- {{ this.form.equipmentName }}
-
-
-
-
-
-
-
-
- {{ detail.itemName }}
-
-
-
-
-
-
-
-
-
- {{ standard.standardName }}
-
-
-
-
- 未达标
- 达标
-
-
-
-
-
-
-
-
-
-
-
-
- {{ standard.standardName }}
-
-
-
-
- {{ standard.detailUpLimit }}
-
-
-
-
- {{ standard.detailDownLimit }}
-
-
-
-
- {{ standard.detailUnit }}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -478,11 +456,13 @@ import {getWorkCenter} from "@/api/device/plan";
export default {
name: "SpotInspectionOrder",
- dicts: ['device_order_status', 'device_loop_type'],
+ dicts: ['device_order_status', 'device_loop_type','device_reach_standard'],
data() {
return {
dialogImageUrl: '',
dialogVisible: false,
+ // 记录
+ recordList: [],
disabled: false,
// 上传图片弹出层
imgDialog: false,
@@ -654,6 +634,12 @@ export default {
if (response.data.timeArray[0] == null) {
response.data.timeArray = [];
}
+ for (let i = 0; i < this.form.detailList.length; i++) {
+ for (let j = 0; j < this.form.detailList[i].standardList.length; j++) {
+ this.form.detailList[i].standardList[j].itemName = this.form.detailList[i].itemName;
+ this.recordList.push(this.form.detailList[i].standardList[j]);
+ }
+ }
this.open = true;
this.title = "填写记录";
});
diff --git a/src/views/device/upkeepOrder/index.vue b/src/views/device/upkeepOrder/index.vue
index 4131878..fd925a5 100644
--- a/src/views/device/upkeepOrder/index.vue
+++ b/src/views/device/upkeepOrder/index.vue
@@ -745,73 +745,54 @@
-
-
-
-
- {{ this.form.equipmentName }}
-
-
-
-
-
-
-
-
- {{ detail.itemName }}
-
-
-
-
-
-
-
-
-
- {{ standard.standardName }}
-
-
-
-
- 未达标
- 达标
-
-
-
-
-
-
-
-
-
- {{ standard.standardName }}
-
-
-
-
- {{ standard.detailUpLimit }}
-
-
-
-
- {{ standard.detailDownLimit }}
-
-
-
-
- {{ standard.detailUnit }}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Date: Fri, 17 Nov 2023 15:03:53 +0800
Subject: [PATCH 03/12] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/device/faultReport/index.vue | 831 +++++++-----------
src/views/device/repairOrder/index.vue | 687 +++++++--------
.../device/repairOrder/selectSinglePerson.vue | 49 +-
src/views/device/repairOrderReport/index.vue | 15 +-
4 files changed, 635 insertions(+), 947 deletions(-)
diff --git a/src/views/device/faultReport/index.vue b/src/views/device/faultReport/index.vue
index 43b8f25..4ab5447 100644
--- a/src/views/device/faultReport/index.vue
+++ b/src/views/device/faultReport/index.vue
@@ -308,164 +308,62 @@
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ {{
+ form.equipmentCode
+ }}
+ {{
+ form.orderBreakdownTime
+ }}
+ {{
+ form.orderSource
+ }}
+ {{
+ form.orderTime
+ }}
+ {{
+ form.orderRepairmanName
+ }}
+ {{
+ form.orderConnection
+ }}
+ {{
+ form.orderDesc
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -474,7 +372,7 @@
计划性维修
不维修
委外维修
- 立即维修
@@ -484,10 +382,21 @@
-
+
+
+
@@ -552,10 +461,21 @@
-
+
+
+
@@ -564,7 +484,7 @@
clearable
v-model="form.workPlanTime"
type="datetime"
- placeholder=""
+ disabled
>
@@ -670,330 +590,162 @@
append-to-body
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ {{
+ form.equipmentCode
+ }}
+ {{
+ form.equipmentName
+ }}
+ {{
+ form.equipmentTypeName
+ }}
+ {{
+ form.equipmentSpec
+ }}
+ {{
+ form.department
+ }}
+ {{
+ form.equipmentLocation
+ }}
+ {{
+ form.orderBreakdownTime
+ }}
+ {{
+ form.orderSource
+ }}
+ {{
+ form.orderTime
+ }}
+ {{
+ form.orderRepairmanName
+ }}
+ {{
+ form.orderConnection
+ }}
+ {{
+ form.orderDesc
+ }}
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ {{
+ form.repairDestination
+ }}
+ {{
+ form.workTeam
+ }}
+ {{
+ form.workPlanTime
+ }}
+ {{
+ form.workDownMachine
+ }}
+ {{
+ form.workPlanDownTime
+ }}
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 报修信息审核
-
-
-
-
- 计划性维修
- 不维修
- 委外维修
- 立即维修
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 是
- 否
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 是
- 否
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ {{
+ form.repairDestination
+ }}
+ {{
+ form.workTeam
+ }}
+ {{
+ form.workPlanTime
+ }}
+ {{
+ form.workDownMachine
+ }}
+ {{
+ form.workPlanDownTime
+ }}
+
+
+
+ {{
+ form.repairDestination
+ }}
+
+
+
+ {{
+ form.repairDestination
+ }}
+ {{
+ form.workOutsourcingUnit
+ }}
+ {{
+ form.outSourcePerson
+ }}
+ {{
+ form.workConnection
+ }}
+
+
+ {{
+ form.outSourceReason
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+