This commit is contained in:
2023-11-03 10:49:56 +08:00
parent e2dca2d06b
commit 4c35c51481
9 changed files with 17 additions and 9 deletions

View File

@@ -500,7 +500,7 @@ export const devicerepairmstByuser = (page, size) => post('api/devicerepairmst/b
}) })
// export const devicerepairmstByuser = (page, size) => { // export const devicerepairmstByuser = (page, size) => {
// let res = { // let res = {
// content: [{repair_id: '31', repair_code: '1', device_code: 'dfdfdf', invstatus: '01'}] // content: [{repair_id: '3dffdff1', repair_code: '1', device_code: 'dfdfdf', invstatus: '01'}]
// } // }
// return res // return res
// } // }

View File

@@ -44,7 +44,7 @@ export default {
name: 'checkorderdetail', name: 'checkorderdetail',
data () { data () {
return { return {
code: this.$route.query.id, code: this.$route.query.code,
dataList: [] dataList: []
} }
}, },

View File

@@ -50,6 +50,7 @@ export default {
return { return {
dataList: [], dataList: [],
pkId: '', pkId: '',
pkObj: {},
page: 1, page: 1,
size: '30', size: '30',
busy: false, busy: false,
@@ -98,12 +99,13 @@ export default {
if (this.pkId) { if (this.pkId) {
this.$router.push({ this.$router.push({
path: '/checkorderdetail', path: '/checkorderdetail',
query: {id: this.pkId} query: {id: this.pkId, code: this.pkObj.repair_code}
}) })
} }
}, },
toRadio (e) { toRadio (e) {
this.pkId = this.pkId === e.repair_id ? '' : e.repair_id this.pkId = this.pkId === e.repair_id ? '' : e.repair_id
this.pkObj = this.pkId === e.repair_id ? e : {}
} }
} }
} }

View File

@@ -44,7 +44,7 @@ export default {
name: 'lubricorderdetail', name: 'lubricorderdetail',
data () { data () {
return { return {
code: this.$route.query.id, code: this.$route.query.code,
dataList: [] dataList: []
} }
}, },

View File

@@ -50,6 +50,7 @@ export default {
return { return {
dataList: [], dataList: [],
pkId: '', pkId: '',
pkObj: {},
page: 1, page: 1,
size: '30', size: '30',
busy: false, busy: false,
@@ -98,12 +99,13 @@ export default {
if (this.pkId) { if (this.pkId) {
this.$router.push({ this.$router.push({
path: '/lubricorderdetail', path: '/lubricorderdetail',
query: {id: this.pkId} query: {id: this.pkId, code: this.pkObj.repair_code}
}) })
} }
}, },
toRadio (e) { toRadio (e) {
this.pkId = this.pkId === e.repair_id ? '' : e.repair_id this.pkId = this.pkId === e.repair_id ? '' : e.repair_id
this.pkObj = this.pkId === e.repair_id ? e : {}
} }
} }
} }

View File

@@ -44,7 +44,7 @@ export default {
name: 'maintainorderdetail', name: 'maintainorderdetail',
data () { data () {
return { return {
code: this.$route.query.id, code: this.$route.query.code,
dataList: [] dataList: []
} }
}, },

View File

@@ -50,6 +50,7 @@ export default {
return { return {
dataList: [], dataList: [],
pkId: '', pkId: '',
pkObj: {},
page: 1, page: 1,
size: '30', size: '30',
busy: false, busy: false,
@@ -98,12 +99,13 @@ export default {
if (this.pkId) { if (this.pkId) {
this.$router.push({ this.$router.push({
path: '/maintainorderdetail', path: '/maintainorderdetail',
query: {id: this.pkId} query: {id: this.pkId, code: this.pkObj.repair_code}
}) })
} }
}, },
toRadio (e) { toRadio (e) {
this.pkId = this.pkId === e.repair_id ? '' : e.repair_id this.pkId = this.pkId === e.repair_id ? '' : e.repair_id
this.pkObj = this.pkId === e.repair_id ? e : {}
} }
} }
} }

View File

@@ -44,7 +44,7 @@ export default {
name: 'repairorderdetail', name: 'repairorderdetail',
data () { data () {
return { return {
code: this.$route.query.id, code: this.$route.query.code,
dataList: [] dataList: []
} }
}, },

View File

@@ -50,6 +50,7 @@ export default {
return { return {
dataList: [], dataList: [],
pkId: '', pkId: '',
pkObj: {},
page: 1, page: 1,
size: '30', size: '30',
busy: false, busy: false,
@@ -98,12 +99,13 @@ export default {
if (this.pkId) { if (this.pkId) {
this.$router.push({ this.$router.push({
path: '/repairorderdetail', path: '/repairorderdetail',
query: {id: this.pkId} query: {id: this.pkId, code: this.pkObj.repair_code}
}) })
} }
}, },
toRadio (e) { toRadio (e) {
this.pkId = this.pkId === e.repair_id ? '' : e.repair_id this.pkId = this.pkId === e.repair_id ? '' : e.repair_id
this.pkObj = this.pkId === e.repair_id ? e : {}
} }
} }
} }