| | |
| | | <view class="form-row"> |
| | | <view style="display: flex; align-items: center;"> |
| | | <label style="float: left;margin-top: 18px;">点击按钮筛选工单状态:</label> |
| | | <select v-model="engineeringNo" class="picker" style="padding: 7px 46px;width: 300px;"> |
| | | <option v-for="item in engineeringNoMapList" :key="item.label" :value="item.label">{{ item.label }}</option> |
| | | </select> |
| | | <select v-if="engineeringNo === '其他'" v-model="engineeringNoSub" class="picker" style="padding: 7px 46px;width: 300px;"> |
| | | <option v-for="sub in engineeringNoMapList.find(i=>i.label==='其他').children" :key="sub" :value="sub">{{ sub }}</option> |
| | | </select> |
| | | <superwei-combox :candidates="engineeringNoMapList" placeholder="请选择" v-model="engineeringNo" |
| | | @select="onEngineeringNoChange" class="picker" |
| | | style="padding: 7px 46px;width: 650px;"></superwei-combox> |
| | | <span style="margin-left: 20px; color: #ff6600; font-size: 18px;">多选时只保留最后一条工单</span> |
| | | </view> |
| | | </view> |
| | |
| | | machine: [], |
| | | |
| | | engineeringNoList: [], |
| | | engineeringNoMapList: [ |
| | | { label: '其他', children: ['待开工', '未开工', '开工', '暂停'] }, |
| | | { label: '完工', children: [] } |
| | | ], |
| | | engineeringNo: '', // 当前选中项 |
| | | engineeringNoSub: '', // 选中的“其他”子项 |
| | | engineeringNoMapList: [], |
| | | engineeringNo: '', |
| | | |
| | | machineNo: '', |
| | | machineName: '', |
| | |
| | | getPrintInfo() { |
| | | var mac = ""; |
| | | |
| | | //mac = "74:24:ca:4f:b7:9b"; |
| | | //this.$post({ |
| | | // url: "/DevMachine/GetDevMachineByPdaMac", |
| | | // data: { |
| | | // pdaMac: mac, |
| | | // } |
| | | //}).then(res => { |
| | | // let devMachine = res.data.tbBillList; |
| | | // this.machineNo = devMachine.machineNo; |
| | | // this.machineName = "调试模式:" + this.machineNo + "号齿轮机" |
| | | mac = "74:24:ca:4f:b7:9b"; |
| | | this.$post({ |
| | | url: "/DevMachine/GetDevMachineByPdaMac", |
| | | data: { |
| | | pdaMac: mac, |
| | | } |
| | | }).then(res => { |
| | | let devMachine = res.data.tbBillList; |
| | | this.machineNo = devMachine.machineNo; |
| | | this.machineName = "调试模式:" + this.machineNo + "号齿轮机" |
| | | |
| | | // uni.setStorageSync('machineNo', this.machineNo); |
| | | // uni.setStorageSync('printMac', devMachine.printMac); |
| | | uni.setStorageSync('machineNo', this.machineNo); |
| | | uni.setStorageSync('printMac', devMachine.printMac); |
| | | |
| | | // console.log(devMachine.printMac); |
| | | console.log(devMachine.printMac); |
| | | |
| | | // this.getWomdaaIsShow(); |
| | | //}); |
| | | //return; |
| | | this.getWomdaaIsShow(); |
| | | }); |
| | | return; |
| | | |
| | | |
| | | if (plus.os.name == "Android") { |
| | |
| | | } |
| | | |
| | | this.isShow = true; |
| | | this.engineeringNo = '其他'; |
| | | this.engineeringNoSub = '待开工'; |
| | | // 默认选中“待开工” |
| | | this.engineeringNo = '待开工、未开工、暂停'; |
| | | this.tableData = []; |
| | | // 下拉框只显示合并后的状态和其它状态 |
| | | this.engineeringNoMapList = [ |
| | | '待开工、未开工、暂停', |
| | | '开工', |
| | | '完工' |
| | | ]; |
| | | // 默认显示“待开工”工单 |
| | | this.getWomdaaByStatus(); |
| | | }, |
| | | // 下拉框选中后,按状态筛选工单 |
| | |
| | | // 按工单状态筛选工单 |
| | | getWomdaaByStatus() { |
| | | let editDate = this.formatDate(new Date()); |
| | | let status = this.engineeringNo === '其他' ? this.engineeringNoSub : this.engineeringNo; |
| | | let statusArr = []; |
| | | if (this.engineeringNo === '待开工、未开工、暂停') { |
| | | statusArr = ['待开工', '未开工', '暂停']; |
| | | } else { |
| | | statusArr = [this.engineeringNo]; |
| | | } |
| | | this.$post({ |
| | | url: "/Womdaa/GetWomdaasByEngineeringNo", |
| | | data: { |
| | | machineNo: this.machineNo, |
| | | orderStatus: [status], // 只传选中的状态 |
| | | orderStatus: statusArr, |
| | | editDate: editDate |
| | | } |
| | | }).then(res => { |
| | |
| | | } |
| | | } |
| | | |
| | | /* 放大 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; |
| | | } |
| | | |
| | | /* 只对 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; |
| | | } |
| | | |
| | | /* 针对1280x800的平板使用媒体查询进行适配 */ |
| | | @media screen and (min-width: 1280px) and (max-width: 1920px) { |
| | | .right-side { |