修改
This commit is contained in:
@@ -96,6 +96,7 @@ export default {
|
||||
let res = await repairOpeate(this.pkObj, type)
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
this._queryRepairs(this.val1)
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
|
||||
@@ -74,7 +74,11 @@ export default {
|
||||
}
|
||||
next()
|
||||
},
|
||||
activated () {},
|
||||
activated () {
|
||||
if (this.val1) {
|
||||
this._queryRepairs(this.val1)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleChange1 (e, type) {
|
||||
if (type) {
|
||||
@@ -95,6 +99,7 @@ export default {
|
||||
let res = await repairOpeate(this.pkObj, type)
|
||||
if (res.code === '1') {
|
||||
this.toast(res.desc)
|
||||
this._queryRepairs(this.val1)
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
|
||||
@@ -18,24 +18,24 @@
|
||||
<div class="bottom-filter-tip">
|
||||
<div class="filter-label txtjustify">生产负责人</div>
|
||||
<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 class="grid-wraper">
|
||||
<div class="left_fixed">
|
||||
<div class="left_fixed pdb140">
|
||||
<table class="layout-t left_layout_t">
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
</tr>
|
||||
<tr v-for="e in dataList" :key="e.repair_dtl_id">
|
||||
<td>
|
||||
{{parseInt(i) + 1}}
|
||||
{{e.indexId}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="slide">
|
||||
<div class="slide pdb140">
|
||||
<table class="layout-t">
|
||||
<tr>
|
||||
<th>是否完成</th>
|
||||
@@ -95,7 +95,10 @@ export default {
|
||||
async _queryRepairDtl () {
|
||||
let res = await queryRepairDtl(this.$store.getters.materObj)
|
||||
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 {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
@@ -136,3 +139,10 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.filter-label
|
||||
width 1.6rem
|
||||
.pdb140
|
||||
padding-bottom 1.4rem
|
||||
</style>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid-wraper">
|
||||
<div class="left_fixed">
|
||||
<div class="left_fixed pdb140">
|
||||
<table class="layout-t left_layout_t">
|
||||
<tr>
|
||||
<th>是否完成</th>
|
||||
@@ -33,7 +33,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="slide">
|
||||
<div class="slide pdb140">
|
||||
<table class="layout-t">
|
||||
<tr>
|
||||
<th>保养项目名称</th>
|
||||
@@ -144,6 +144,6 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.mgb140
|
||||
margin-bottom 1.4rem
|
||||
.pdb140
|
||||
padding-bottom 1.4rem
|
||||
</style>
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
<tr>
|
||||
<th>顺序号</th>
|
||||
</tr>
|
||||
<tr v-for="(e, i) in dataList" :key="e.bucketunique">
|
||||
<td>{{i + 1}}</td>
|
||||
<tr v-for="e in dataList" :key="e.bucketunique">
|
||||
<td>{{e.indexId}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -105,6 +105,9 @@ export default {
|
||||
}
|
||||
let res = await unUsualQuery(e, this.val1)
|
||||
if (res.code === '1') {
|
||||
res.rows.map((e, i) => {
|
||||
this.$set(e, 'indexId', parseInt(i) + 1)
|
||||
})
|
||||
this.dataList = [...res.rows]
|
||||
} else {
|
||||
this.toast(res.desc)
|
||||
|
||||
Reference in New Issue
Block a user