| | |
| | | 生产报工 |
| | | </view> |
| | | <view class="tab-item" :class="{ active: currentTab === 1 }" @click="changeTab(1)"> |
| | | 开工完工 |
| | | </view> |
| | | 开工完工 |
| | | </view> |
| | | <view class="tab-item" :class="{ active: currentTab === 5 }" @click="changeTab(5)"> |
| | | e-SOP |
| | | </view> |
| | |
| | | 设备点检 |
| | | </view> |
| | | <!-- <view class="tab-item" :class="{ active: currentTab === 8 }" @click="changeTab(8)"> |
| | | 打印机设置 |
| | | </view> --> |
| | | 打印机设置 |
| | | </view> --> |
| | | |
| | | </view> |
| | | <view class="font"></view> |
| | |
| | | <h4>一台机台只能选择一条工单(多选默认为最后一条)</h4> |
| | | </view> |
| | | <view class="section top-section"> |
| | | <!--显示当前机台--> |
| | | <view class="form-row"> |
| | | <view> |
| | | <!-- <label style="float: left;font-family: fantasy;font-size: 33px;margin-top: 20px">第一步选择机台:</label> --> |
| | | <!-- <superwei-combox :candidates="machineList" placeholder="请选择" v-model="machineName" |
| | | @select="onMachineChange" class="picker"></superwei-combox> --> |
| | | <input v-model="machineName" disabled="true" type="text" style="float: left;font-family: fantasy;font-size: 33px;margin-top: 20px" /> |
| | | <input v-model="machineName" |
| | | disabled="true" |
| | | type="text" |
| | | class="machine-name-box" /> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | |
| | | <view> |
| | | <!--<text style="color: red;"> |
| | | 说明:只能同时开工一个工单。选择完成,点击保存选择。系统保留选中的工单。 |
| | | 如果要重选,点击清空重选功能。 |
| | | </text>--> |
| | | 说明:只能同时开工一个工单。选择完成,点击保存选择。系统保留选中的工单。 |
| | | 如果要重选,点击清空重选功能。 |
| | | </text>--> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | |
| | | <view class="section card"> |
| | | <uni-table ref="table" type="selection" border stripe emptyText="暂无更多数据" |
| | | @selection-change="selectionChange"> |
| | | class="large-selection-table" @selection-change="selectionChange"> |
| | | <uni-tr> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF">工序</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF">工单号</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF">产品编码</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF">产品名称</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF">规格</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">已生产数量</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">未生产数量</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">派工数量</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">工单数量</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">工单状态</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF;width: 100px;">报工人</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF; width: 100px;">工序</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF; width: 120px;">工单号</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF; width: 120px;">产品编码</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF; width: 260px;">产品名称</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF; width: 260px;">规格</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF; width: 80px;">已生产数量</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF; width: 80px;">未生产数量</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF; width: 80px;">派工数量</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF; width: 80px;">工单数量</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF; width: 100px;">工单状态</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF; width: 100px;">报工人</uni-th> |
| | | <uni-th align="center" class="th" style="color: #FFFFFF; width: 100px;">选择</uni-th> |
| | | </uni-tr> |
| | | <uni-tr v-for="(item, index) in tableData" :key="index"> |
| | | <uni-tr v-for="(item, index) in tableData" |
| | | :key="index" |
| | | :class="{'row-selected': selectedIndexs.includes(index)}" |
| | | @click="onRowClick(index)" |
| | | style="cursor: pointer;"> |
| | | <uni-td align="center"> |
| | | <input class="form-input" disabled="true" type="text" v-model="item.procName" /><!--工序--> |
| | | </uni-td> |
| | |
| | | this.refresh(); |
| | | }, |
| | | methods: { |
| | | onRowClick(index) { |
| | | this.selectedIndexs = [index]; // 单选 |
| | | // 手动触发 selectionChange 以同步复选框 |
| | | this.selectionChange({ detail: { index } }); |
| | | }, |
| | | checkForUpdate() { |
| | | this.$post({ |
| | | url: "/DevMachine/getAppUpgradeInfo", |
| | |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | |
| | | :deep(.checkbox), |
| | | :deep(.checkbox__inner) { |
| | | padding: 10px !important; |
| | | width: 44px !important; |
| | | min-width: 44px !important; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .row-selected { |
| | | background-color: #e0f3ff !important; |
| | | } |
| | | |
| | | .font { |
| | | background-color: #666666; |
| | | height: 30px; |
| | |
| | | align-items: center; |
| | | } |
| | | |
| | | .popup { |
| | | background-color: #fff; |
| | | padding: 2vh; |
| | | border: 1px solid #ccc; |
| | | box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); |
| | | width: 90vw; |
| | | height: 70vh; |
| | | font-size: 1.6vw; |
| | | /* Increased font size within popups */ |
| | | } |
| | | .popup { |
| | | background-color: #fff; |
| | | padding: 2vh; |
| | | border: 1px solid #ccc; |
| | | box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); |
| | | width: 90vw; |
| | | height: 85vh; /* 原70vh,调高 */ |
| | | font-size: 1.6vw; |
| | | } |
| | | |
| | | .print-btn { |
| | | float: left; |
| | |
| | | cursor: pointer; |
| | | border-radius: 0.8vw; |
| | | } |
| | | |
| | | .machine-name-box { |
| | | border: 2px solid #e53935; /* 红色边框 */ |
| | | border-radius: 8px; |
| | | font-family: fantasy; |
| | | font-size: 33px; |
| | | margin-top: 20px; |
| | | padding: 15px 48px; /* 上下20px,左右48px,增加内边距 */ |
| | | width: 500px; /* 更宽,保证内容完整显示 */ |
| | | height: 70px; /* 增加高度 */ |
| | | box-sizing: border-box; |
| | | background: #fff; |
| | | color: #222; |
| | | font-weight: bold; |
| | | text-align: left; |
| | | display: block; |
| | | } |
| | | |
| | | /* //v-deep .checkbox { |
| | | // padding: 10 10px; |
| | | // width: 26px; |
| | | // padding-left: 12px; |
| | | // display: table-cell; |
| | | // vertical-align: middle; |
| | | // color: #333; |
| | | // font-weight: 500; |
| | | // border-bottom: 1px #ebeef5 solid; |
| | | // font-size: 14px; |
| | | //}*/ |
| | | |
| | | @media screen and (max-width: 1920px) { |
| | | .tab-item { |
| | |
| | | } |
| | | } |
| | | |
| | | /* 放大 uni-table 的多选框(checkbox) */ |
| | | :deep(.uni-table .uni-checkbox-wrapper), |
| | | :deep(.uni-table .uni-checkbox-input) { |
| | | width: 48px !important; |
| | | height: 48px !important; |
| | | min-width: 48px !important; |
| | | min-height: 48px !important; |
| | | display: flex !important; |
| | | align-items: center !important; |
| | | justify-content: center !important; |
| | | box-sizing: border-box !important; |
| | | .uni-td, .uni-th, td, th { |
| | | word-break: break-all; |
| | | white-space: normal; |
| | | /* 可选:设置最大宽度,防止撑破表格 */ |
| | | max-width: 180px; |
| | | overflow-wrap: break-word; |
| | | } |
| | | |
| | | /* 只对 input[type=checkbox] 放大,不要加 :deep() */ |
| | | .uni-table .uni-checkbox-input input[type="checkbox"] { |
| | | transform: scale(2.2) !important; |
| | | accent-color: #007aff !important; |
| | | cursor: pointer !important; |
| | | } |
| | | |
| | | /* 放大 uni-table 的多选框列宽 */ |
| | | :deep(.uni-table .uni-table-selection), |
| | | :deep(.uni-table th.is-selection), |
| | | :deep(.uni-table td.is-selection) { |
| | | width: 100px !important; |
| | | min-width: 100px !important; |
| | | max-width: 120px !important; |
| | | // 放大弹窗内表格字体(表头和内容) |
| | | .popup .large-selection-table, |
| | | .popup .large-selection-table .uni-th, |
| | | .popup .large-selection-table .uni-td, |
| | | .popup .large-selection-table input.form-input { |
| | | font-size: 2.2vw !important; // 可根据实际需求调整 |
| | | } |
| | | |
| | | /* 针对1280x800的平板使用媒体查询进行适配 */ |