This commit is contained in:
2022-07-20 16:42:13 +08:00
5 changed files with 31 additions and 12 deletions

View File

@@ -96,6 +96,7 @@ export default {
let res = await repairOpeate(this.pkObj, type) let res = await repairOpeate(this.pkObj, type)
if (res.code === '1') { if (res.code === '1') {
this.toast(res.desc) this.toast(res.desc)
this._queryRepairs(this.val1)
} else { } else {
this.Dialog(res.desc) this.Dialog(res.desc)
} }

View File

@@ -74,7 +74,11 @@ export default {
} }
next() next()
}, },
activated () {}, activated () {
if (this.val1) {
this._queryRepairs(this.val1)
}
},
methods: { methods: {
handleChange1 (e, type) { handleChange1 (e, type) {
if (type) { if (type) {
@@ -95,6 +99,7 @@ export default {
let res = await repairOpeate(this.pkObj, type) let res = await repairOpeate(this.pkObj, type)
if (res.code === '1') { if (res.code === '1') {
this.toast(res.desc) this.toast(res.desc)
this._queryRepairs(this.val1)
} else { } else {
this.Dialog(res.desc) this.Dialog(res.desc)
} }

View File

@@ -18,24 +18,24 @@
<div class="bottom-filter-tip"> <div class="bottom-filter-tip">
<div class="filter-label txtjustify">生产负责人</div> <div class="filter-label txtjustify">生产负责人</div>
<div class="fxcol mgl20"> <div class="fxcol mgl20">
<input type="text" class="filter-input filter-scan-input" disabled v-model="val3"> <input type="text" class="filter-input filter-scan-input" v-model="val3">
</div> </div>
</div> </div>
</div> </div>
<div class="grid-wraper"> <div class="grid-wraper">
<div class="left_fixed"> <div class="left_fixed pdb140">
<table class="layout-t left_layout_t"> <table class="layout-t left_layout_t">
<tr> <tr>
<th>序号</th> <th>序号</th>
</tr> </tr>
<tr v-for="e in dataList" :key="e.repair_dtl_id"> <tr v-for="e in dataList" :key="e.repair_dtl_id">
<td> <td>
{{parseInt(i) + 1}} {{e.indexId}}
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
<div class="slide"> <div class="slide pdb140">
<table class="layout-t"> <table class="layout-t">
<tr> <tr>
<th>是否完成</th> <th>是否完成</th>
@@ -95,7 +95,10 @@ export default {
async _queryRepairDtl () { async _queryRepairDtl () {
let res = await queryRepairDtl(this.$store.getters.materObj) let res = await queryRepairDtl(this.$store.getters.materObj)
if (res.code === '1') { if (res.code === '1') {
this.dataList = [...res.content.rows] res.rows.map((e, i) => {
this.$set(e, 'indexId', parseInt(i) + 1)
})
this.dataList = [...res.rows]
} else { } else {
this.Dialog(res.desc) this.Dialog(res.desc)
} }
@@ -136,3 +139,10 @@ export default {
} }
} }
</script> </script>
<style lang="stylus" scoped>
.filter-label
width 1.6rem
.pdb140
padding-bottom 1.4rem
</style>

View File

@@ -17,7 +17,7 @@
</div> </div>
</div> </div>
<div class="grid-wraper"> <div class="grid-wraper">
<div class="left_fixed"> <div class="left_fixed pdb140">
<table class="layout-t left_layout_t"> <table class="layout-t left_layout_t">
<tr> <tr>
<th>是否完成</th> <th>是否完成</th>
@@ -33,7 +33,7 @@
</tr> </tr>
</table> </table>
</div> </div>
<div class="slide"> <div class="slide pdb140">
<table class="layout-t"> <table class="layout-t">
<tr> <tr>
<th>保养项目名称</th> <th>保养项目名称</th>
@@ -144,6 +144,6 @@ export default {
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
.mgb140 .pdb140
margin-bottom 1.4rem padding-bottom 1.4rem
</style> </style>

View File

@@ -21,8 +21,8 @@
<tr> <tr>
<th>顺序号</th> <th>顺序号</th>
</tr> </tr>
<tr v-for="(e, i) in dataList" :key="e.bucketunique"> <tr v-for="e in dataList" :key="e.bucketunique">
<td>{{i + 1}}</td> <td>{{e.indexId}}</td>
</tr> </tr>
</table> </table>
</div> </div>
@@ -105,6 +105,9 @@ export default {
} }
let res = await unUsualQuery(e, this.val1) let res = await unUsualQuery(e, this.val1)
if (res.code === '1') { if (res.code === '1') {
res.rows.map((e, i) => {
this.$set(e, 'indexId', parseInt(i) + 1)
})
this.dataList = [...res.rows] this.dataList = [...res.rows]
} else { } else {
this.toast(res.desc) this.toast(res.desc)