From b84170977daf22007861946cf484ac9856637877 Mon Sep 17 00:00:00 2001
From: guoxing <1369478551@qq.com>
Date: Thu, 18 Jul 2024 15:43:22 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=BB=B4=E4=BF=AE?=
=?UTF-8?q?=E9=A2=86=E6=96=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/maintenanceReceive/index.vue | 176 +++++++++++-------
1 file changed, 108 insertions(+), 68 deletions(-)
diff --git a/yxt-as-ui/src/views/maintenanceReceive/index.vue b/yxt-as-ui/src/views/maintenanceReceive/index.vue
index c60101a82c..5e5f748915 100644
--- a/yxt-as-ui/src/views/maintenanceReceive/index.vue
+++ b/yxt-as-ui/src/views/maintenanceReceive/index.vue
@@ -10,36 +10,60 @@
@@ -138,7 +183,7 @@
divOutInfo,
divReturnInfo,
divConfirmInfo,
- divInfo,
+ divInfo
},
data() {
@@ -184,37 +229,37 @@
size: 10,
total: 0,
params: {
- "repairState": "",
- "billNo": "",
- "billType": "",
- "subject": "",
- "customerName": "",
- "vehMark": "",
- "vinNo": "",
- "createTimeStart": "",
- "createTimeEnd": "",
- "completeState": "0",
+ 'repairState': '',
+ 'billNo': '',
+ 'billType': '',
+ 'subject': '',
+ 'customerName': '',
+ 'vehMark': '',
+ 'vinNo': '',
+ 'createTimeStart': '',
+ 'createTimeEnd': '',
+ 'completeState': '0'
}
},
sids: [],
selectionList: [],
repairTypeList: [{
- name: "维修中",
- sid: "1"
+ name: '维修中',
+ sid: '1'
},
{
- name: "维修完成",
- sid: "2"
+ name: '维修完成',
+ sid: '2'
}
],
completeStateList: [{
- name: "未完成",
- sid: "0"
+ name: '未完成',
+ sid: '0'
},
{
- name: "已完成",
- sid: "1"
+ name: '已完成',
+ sid: '1'
}
],
billTypeList: [],
@@ -246,11 +291,10 @@
this.subjectList = resp.data
}
})
-
},
selectionLineChangeHandle(val) {
- console.log("val", val);
+ console.log('val', val)
this.selectionList = val
const aa = []
@@ -258,7 +302,6 @@
aa.push(element.sid)
})
this.sids = aa
-
},
// 搜索条件效果
clicksearchShow() {
@@ -291,7 +334,7 @@
toOut() {
// this.$refs['divOutInfo'].showAdd('236195bd-2c76-4e39-aacb-e6ed89b4ca3d')
// this.viewState = 2
- if (this.sids.length === 1) {
+ if (this.sids.length == 1) {
this.viewState = 2
this.$refs['divOutInfo'].showAdd(this.sids[0])
} else {
@@ -305,7 +348,7 @@
toReturn() {
// this.$refs['divReturnInfo'].showAdd('4e2b2a7d-d86c-415f-aa69-65e311a73c50')
// this.viewState = 3
- if (this.sids.length === 1) {
+ if (this.sids.length == 1) {
this.viewState = 3
this.$refs['divReturnInfo'].showAdd(this.sids[0])
} else {
@@ -320,9 +363,7 @@
// this.viewState = 4
// this.$refs['divConfirmInfo'].showAdd('4e2b2a7d-d86c-415f-aa69-65e311a73c50')
if (this.sids.length === 1) {
-
- if (this.selectionList[0].repairState == '2') {
-
+ if (this.selectionList[0].repairState == '维修完成') {
this.viewState = 4
this.$refs['divConfirmInfo'].showAdd(this.sids[0])
} else {
@@ -332,7 +373,6 @@
message: '只能选择维修完成的工单'
})
}
-
} else {
this.$message({
showClose: true,
@@ -383,16 +423,16 @@
size: 10,
total: 0,
params: {
- "repairState": "",
- "billNo": "",
- "billType": "",
- "subject": "",
- "customerName": "",
- "vehMark": "",
- "vinNo": "",
- "createTimeStart": "",
- "createTimeEnd": "",
- "completeState": "0",
+ 'repairState': '',
+ 'billNo': '',
+ 'billType': '',
+ 'subject': '',
+ 'customerName': '',
+ 'vehMark': '',
+ 'vinNo': '',
+ 'createTimeStart': '',
+ 'createTimeEnd': '',
+ 'completeState': '0'
}
}
this.loadList()
@@ -404,8 +444,8 @@
showResult(row) {
this.viewState = 5
- this.$refs['divAdd'].showAdd(row.sid)
- },
+ this.$refs['divAdd'].showInfos(row.sid)
+ }
}
}
From 1616735bef22d9ec678711a668c34379cb75a66d Mon Sep 17 00:00:00 2001
From: guoxing <1369478551@qq.com>
Date: Thu, 18 Jul 2024 16:01:55 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=BB=B4=E4=BF=AE?=
=?UTF-8?q?=E9=A2=86=E6=96=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
yxt-as-ui/src/views/maintenanceReceive/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/yxt-as-ui/src/views/maintenanceReceive/index.vue b/yxt-as-ui/src/views/maintenanceReceive/index.vue
index 5e5f748915..299d13399d 100644
--- a/yxt-as-ui/src/views/maintenanceReceive/index.vue
+++ b/yxt-as-ui/src/views/maintenanceReceive/index.vue
@@ -299,7 +299,7 @@
this.selectionList = val
const aa = []
val.forEach(element => {
- aa.push(element.sid)
+ aa.push(element.billSid)
})
this.sids = aa
},