分切呼叫送轴修改,add分切下料2

This commit is contained in:
2025-03-14 09:18:00 +08:00
parent e00c1636b0
commit 237bd238a0
6 changed files with 231 additions and 5 deletions

View File

@@ -43,27 +43,60 @@
</view>
</view>
</view>
<view class="zd_wrapper grid-wraper">
<view class="slide_new">
<table>
<thead>
<tr>
<th>序号</th>
<th class="th_2">设备</th>
<th>位置</th>
<th>尺寸</th>
<th>状态</th>
<th>代数</th>
<th>呼叫时间</th>
</tr>
</thead>
<tbody>
<tr v-for="(e, i) in dataList" :key="i">
<td>{{Number(i) + 1}}</td>
<td class="td_2">{{e.resource_name}}</td>
<td>{{['上轴', '下轴'][Number(e.up_or_down) - 1]}}</td>
<td>{{e.qzz_size}}</td>
<td>{{getStatusText(e.status)}}</td>
<td>{{e.qzz_generation}}</td>
<td>{{e.start_time}}</td>
</tr>
</tbody>
</table>
</view>
</view>
</view>
<view class="zd-row submitbar">
<button class="zd-col-6 btn-submit btn-default letter-30" @tap="clearUp">清空</button>
<button class="zd-col-15 btn-submit btn-success letter-30" :class="{'btn-info': !index2 || (!upL && !upR && !lowL && !lowR)}" :disabled="disabled" @tap="_forcedFeedShaft">送轴</button>
<button class="zd-col-5 btn-submit btn-default letter-30" @tap="clearUp">清空</button>
<button class="zd-col-8 btn-submit btn-success letter-30" :class="{'btn-info': !index2 || (!upL && !upR && !lowL && !lowR)}" :disabled="disabled" @tap="_forcedFeedShaft">送轴</button>
<button class="zd-col-8 btn-submit btn-success" @tap="_showManualView">刷新</button>
</view>
<up-top ref="UT" :scrollTop="top"></up-top>
</view>
</template>
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {queryProductArea, queryDeviceByarea} from '@/utils/getData2.js'
import UpTop from '@/components/upTop.vue'
import {queryProductArea, queryDeviceByarea, showManualView} from '@/utils/getData2.js'
import {paperQueryPaperMaterial, forcedFeedShaft} from '@/utils/getData3.js'
export default {
components: {
NavBar,
SearchBox
SearchBox,
UpTop
},
data() {
return {
title: '',
top: 0,
options1: [],
index1: '',
options2: [],
@@ -77,13 +110,18 @@
upR: '',
lowL: '',
lowR: '',
disabled: false
disabled: false,
dataList: []
};
},
onLoad (options) {
this.title = options.title
this._queryProductArea()
this._paperQueryPaperMaterial()
this._showManualView()
},
onPageScroll(e) {
this.$refs.UT.topData(e.scrollTop)
},
methods: {
/** 生产区域下拉框查询 */
@@ -215,6 +253,20 @@
},
showSelector4 () {
this.newaxis4 = this.axis
},
getStatusText(status) {
const statusMap = {
'01': '准备套轴',
'02': '正在配送',
'03': '配送完成'
}
return statusMap[status] || '已完成'
},
async _showManualView () {
let res = await showManualView()
if (res) {
this.dataList = [...res.data]
}
}
}
}