设备管理

This commit is contained in:
2023-11-03 11:07:48 +08:00
parent 4c35c51481
commit d818978776
7 changed files with 24 additions and 24 deletions

View File

@@ -519,7 +519,7 @@ export const devicemaintenancemstByuser = (page, size) => post('api/devicemainte
}) })
// 1.2保养明细 // 1.2保养明细
export const devicemaintenancemstGetDtl = (id) => post('api/devicemaintenancemst/getDtl', { export const devicemaintenancemstGetDtl = (id) => post('api/devicemaintenancemst/getDtl', {
repair_id: id maint_id: id
}) })
/** /**
@@ -532,7 +532,7 @@ export const devicesportcheckmstByuser = (page, size) => post('api/devicesportch
}) })
// 1.2点检单明细 // 1.2点检单明细
export const devicesportcheckmstGetDtl = (id) => post('api/devicesportcheckmst/getDtl', { export const devicesportcheckmstGetDtl = (id) => post('api/devicesportcheckmst/getDtl', {
repair_id: id maint_id: id
}) })
/** /**
@@ -545,5 +545,5 @@ export const devicelubricatemstByuser = (page, size) => post('api/devicelubricat
}) })
// 1.2点检单明细 // 1.2点检单明细
export const devicelubricatemstGetDtl = (id) => post('api/devicelubricatemst/getDtl', { export const devicelubricatemstGetDtl = (id) => post('api/devicelubricatemst/getDtl', {
repair_id: id maint_id: id
}) })

View File

@@ -27,8 +27,8 @@
<tbody> <tbody>
<tr v-for="(e, i) in dataList" :key="i"> <tr v-for="(e, i) in dataList" :key="i">
<td>{{ i + 1 }}</td> <td>{{ i + 1 }}</td>
<td>{{ e.repair_item_code }}</td> <td>{{ e.maint_item_code }}</td>
<td>{{e.repair_item_name}}</td> <td>{{e.maint_item_name}}</td>
<td>{{e.requirement}}</td> <td>{{e.requirement}}</td>
<td>{{e.dtl_remark}}</td> <td>{{e.dtl_remark}}</td>
</tr> </tr>

View File

@@ -24,10 +24,10 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="(e, i) in dataList" :key="i" :class="{'selected_icon': pkId === e.repair_id}" @click="toRadio(e)"> <tr v-for="(e, i) in dataList" :key="i" :class="{'selected_icon': pkId === e.maint_id}" @click="toRadio(e)">
<td>{{ i+1 }}</td> <td>{{ i+1 }}</td>
<td>{{e.device_code}}</td> <td>{{e.device_code}}</td>
<td>{{e.repair_code}}</td> <td>{{e.maint_code}}</td>
<td>{{ e.invstatus === '99' ? '完毕' : ['生成', '提交', '开始', '结束'][Number(e.invstatus) - 1] }}</td> <td>{{ e.invstatus === '99' ? '完毕' : ['生成', '提交', '开始', '结束'][Number(e.invstatus) - 1] }}</td>
<td>{{e.plan_start_date}}</td> <td>{{e.plan_start_date}}</td>
<td>{{ ['计划', '临时'][Number(e.maintenancecycle) - 1] }}</td> <td>{{ ['计划', '临时'][Number(e.maintenancecycle) - 1] }}</td>
@@ -99,13 +99,13 @@ export default {
if (this.pkId) { if (this.pkId) {
this.$router.push({ this.$router.push({
path: '/checkorderdetail', path: '/checkorderdetail',
query: {id: this.pkId, code: this.pkObj.repair_code} query: {id: this.pkId, code: this.pkObj.maint_code}
}) })
} }
}, },
toRadio (e) { toRadio (e) {
this.pkId = this.pkId === e.repair_id ? '' : e.repair_id this.pkId = this.pkId === e.maint_id ? '' : e.maint_id
this.pkObj = this.pkId === e.repair_id ? e : {} this.pkObj = this.pkId === e.maint_id ? e : {}
} }
} }
} }

View File

@@ -27,8 +27,8 @@
<tbody> <tbody>
<tr v-for="(e, i) in dataList" :key="i"> <tr v-for="(e, i) in dataList" :key="i">
<td>{{ i + 1 }}</td> <td>{{ i + 1 }}</td>
<td>{{ e.repair_item_code }}</td> <td>{{ e.maint_item_code }}</td>
<td>{{e.repair_item_name}}</td> <td>{{e.maint_item_name}}</td>
<td>{{e.requirement}}</td> <td>{{e.requirement}}</td>
<td>{{e.dtl_remark}}</td> <td>{{e.dtl_remark}}</td>
</tr> </tr>

View File

@@ -24,10 +24,10 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="(e, i) in dataList" :key="i" :class="{'selected_icon': pkId === e.repair_id}" @click="toRadio(e)"> <tr v-for="(e, i) in dataList" :key="i" :class="{'selected_icon': pkId === e.maint_id}" @click="toRadio(e)">
<td>{{ i+1 }}</td> <td>{{ i+1 }}</td>
<td>{{e.device_code}}</td> <td>{{e.device_code}}</td>
<td>{{e.repair_code}}</td> <td>{{e.maint_code}}</td>
<td>{{ e.invstatus === '99' ? '完毕' : ['生成', '提交', '开始', '结束'][Number(e.invstatus) - 1] }}</td> <td>{{ e.invstatus === '99' ? '完毕' : ['生成', '提交', '开始', '结束'][Number(e.invstatus) - 1] }}</td>
<td>{{e.plan_start_date}}</td> <td>{{e.plan_start_date}}</td>
<td>{{ ['计划', '临时'][Number(e.maintenancecycle) - 1] }}</td> <td>{{ ['计划', '临时'][Number(e.maintenancecycle) - 1] }}</td>
@@ -99,13 +99,13 @@ export default {
if (this.pkId) { if (this.pkId) {
this.$router.push({ this.$router.push({
path: '/lubricorderdetail', path: '/lubricorderdetail',
query: {id: this.pkId, code: this.pkObj.repair_code} query: {id: this.pkId, code: this.pkObj.maint_code}
}) })
} }
}, },
toRadio (e) { toRadio (e) {
this.pkId = this.pkId === e.repair_id ? '' : e.repair_id this.pkId = this.pkId === e.maint_id ? '' : e.maint_id
this.pkObj = this.pkId === e.repair_id ? e : {} this.pkObj = this.pkId === e.maint_id ? e : {}
} }
} }
} }

View File

@@ -27,8 +27,8 @@
<tbody> <tbody>
<tr v-for="(e, i) in dataList" :key="i"> <tr v-for="(e, i) in dataList" :key="i">
<td>{{ i + 1 }}</td> <td>{{ i + 1 }}</td>
<td>{{ e.repair_item_code }}</td> <td>{{ e.maint_item_code }}</td>
<td>{{e.repair_item_name}}</td> <td>{{e.maint_item_name}}</td>
<td>{{e.requirement}}</td> <td>{{e.requirement}}</td>
<td>{{e.dtl_remark}}</td> <td>{{e.dtl_remark}}</td>
</tr> </tr>

View File

@@ -24,10 +24,10 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="(e, i) in dataList" :key="i" :class="{'selected_icon': pkId === e.repair_id}" @click="toRadio(e)"> <tr v-for="(e, i) in dataList" :key="i" :class="{'selected_icon': pkId === e.maint_id}" @click="toRadio(e)">
<td>{{ i+1 }}</td> <td>{{ i+1 }}</td>
<td>{{e.device_code}}</td> <td>{{e.device_code}}</td>
<td>{{e.repair_code}}</td> <td>{{e.maint_code}}</td>
<td>{{ e.invstatus === '99' ? '完毕' : ['生成', '提交', '开始', '结束'][Number(e.invstatus) - 1] }}</td> <td>{{ e.invstatus === '99' ? '完毕' : ['生成', '提交', '开始', '结束'][Number(e.invstatus) - 1] }}</td>
<td>{{e.plan_start_date}}</td> <td>{{e.plan_start_date}}</td>
<td>{{ ['计划', '临时'][Number(e.maintenancecycle) - 1] }}</td> <td>{{ ['计划', '临时'][Number(e.maintenancecycle) - 1] }}</td>
@@ -99,13 +99,13 @@ export default {
if (this.pkId) { if (this.pkId) {
this.$router.push({ this.$router.push({
path: '/maintainorderdetail', path: '/maintainorderdetail',
query: {id: this.pkId, code: this.pkObj.repair_code} query: {id: this.pkId, code: this.pkObj.maint_code}
}) })
} }
}, },
toRadio (e) { toRadio (e) {
this.pkId = this.pkId === e.repair_id ? '' : e.repair_id this.pkId = this.pkId === e.maint_id ? '' : e.maint_id
this.pkObj = this.pkId === e.repair_id ? e : {} this.pkObj = this.pkId === e.maint_id ? e : {}
} }
} }
} }