This commit is contained in:
2026-01-13 18:26:22 +08:00
parent 6138ee3d95
commit 1c8a003abd
3 changed files with 12 additions and 12 deletions

View File

@@ -30,7 +30,7 @@
</tr>
</thead>
<tbody>
<tr v-for="(e, i) in dataList" :key="i" @click="toCheck(e)" :class="{'checked': e.task_id === pkId}">
<tr v-for="(e, i) in dataList" :key="i" @click="toCheck(e)" :class="{'checked': e.task_code === pkId}">
<td>{{e.vehicle_code}}</td>
<td>{{e.point_code1}}</td>
<td>{{e.point_code2}}</td>
@@ -46,7 +46,7 @@
</view>
</view>
<view class="zd-row submit-bar">
<button class="zd-col-8 button-primary" :class="{'button-info': !pkId}" :disabled="disabled1" @tap="_taskOperation">重新下发</button>
<button class="zd-col-8 button-primary" :class="{'button-info': !pkId}" :disabled="disabled1" @tap="_againSendTask">重新下发</button>
<button class="zd-col-8 button-primary" :class="{'button-info': !pkId}" :disabled="disabled2" @tap="_forceConfirmTask">强制完成</button>
<button class="zd-col-6 button-primary" @tap="toJump('ls-search?title=历史查询')">历史查询</button>
</view>
@@ -56,7 +56,7 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {queryTask, taskOperation, forceConfirmTask} from '@/utils/getData3.js'
import {queryTask, againSendTask, forceConfirmTask} from '@/utils/getData3.js'
export default {
components: {
NavBar,
@@ -99,14 +99,14 @@
this.dataList = []
}
},
async _taskOperation () {
async _againSendTask () {
this.disabled1 = true
if (!this.pkId) {
this.disabled1 = false
return
}
try {
let res = await taskOperation(this.pkObj)
let res = await againSendTask(this.pkObj)
if (res) {
this._queryTask()
uni.showToast({
@@ -152,8 +152,8 @@
}
},
toCheck (e) {
this.pkId = this.pkId === e.task_id ? '' : e.task_id
this.pkObj = this.pkId === e.task_id ? e : {}
this.pkId = this.pkId === e.task_code ? '' : e.task_code
this.pkObj = this.pkId === e.task_code ? e : {}
}
}
}