分切呼叫送轴
This commit is contained in:
@@ -54,6 +54,7 @@
|
||||
<th><view style="width: 220rpx;">tube</view></th>
|
||||
<th>状态</th>
|
||||
<th>呼叫时间</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -64,6 +65,11 @@
|
||||
<td class="wrap">{{e.tube}}</td>
|
||||
<td>{{getStatusText(e.status)}}</td>
|
||||
<td>{{e.start_time}}</td>
|
||||
<td>
|
||||
<view style="display: flex; align-items: center;">
|
||||
<button v-show="e.status === '01'" class="mini-btn" size="mini" type="primary" :disabled="disabled" @tap="_urgentPlan(e)">加急</button>
|
||||
</view>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -84,7 +90,7 @@
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import UpTop from '@/components/upTop.vue'
|
||||
import {queryProductArea, queryDeviceByarea, showManualView} from '@/utils/getData2.js'
|
||||
import {paperQueryPaperMaterial, forcedFeedShaft} from '@/utils/getData3.js'
|
||||
import {paperQueryPaperMaterial, forcedFeedShaft, urgentPlan} from '@/utils/getData3.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -265,6 +271,22 @@
|
||||
if (res) {
|
||||
this.dataList = [...res]
|
||||
}
|
||||
},
|
||||
async _urgentPlan (e) {
|
||||
try {
|
||||
this.disabled = true
|
||||
let res = await urgentPlan(e)
|
||||
if (res) {
|
||||
this._showManualView()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
this.disabled = false
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user