| | |
| | | </uni-col> |
| | | |
| | | |
| | | <uni-col :span="12"> |
| | | <uni-col :span="12" v-if="store.user.permissions.includes('createProductStock.search')"> |
| | | <button @click="glassFinishToStore" type="primary" size="mini">成品入库</button> |
| | | </uni-col> |
| | | <uni-col :span="12"> |
| | | <button type="primary" size="mini">成品出库</button> |
| | | <uni-col :span="12" v-if="store.user.permissions.includes('qualityInspectionReview.edit')"> |
| | | <button @click="changePage('warehouseOut')" type="primary" size="mini">成品出库</button> |
| | | </uni-col> |
| | | |
| | | |
| | | <!-- <uni-col :span="24" v-if="store.user.permissions.includes('qualityInspectionReview.edit')"> |
| | | <!-- <uni-col :span="24" v-if="store.user.permissions.includes('finishedProductOut.search')"> |
| | | <navigator url="/pages/ReviewReporitingWork/ReviewReporitingWork" open-type="navigate"> |
| | | <button type="primary" size="mini">质检审核</button> |
| | | </navigator> |
| | | </uni-col> --> |
| | | <!-- <uni-col :span="24"> |
| | | <uni-col :span="24"> |
| | | <uni-data-select |
| | | placeholder="报表" |
| | | v-model="report" |
| | | :localdata="reports" |
| | | @change="changePage" |
| | | @change="changePage('report')" |
| | | ></uni-data-select> |
| | | </uni-col> --> |
| | | </uni-col> |
| | | |
| | | <uni-col :span="12"> |
| | | <uni-data-select |
| | |
| | | </uni-popup> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | |
| | | </template> |
| | | |
| | | <script setup> |
| | | <script setup lang="ts"> |
| | | import userInfo from '@/stores/userInfo' |
| | | import { onLoad } from '@dcloudio/uni-app' |
| | | import request from '@/utils/request' |
| | | import mpaasScan from '@/utils/scanner.js' |
| | | import request from '@/utils/request' |
| | | import mpaasScan from '@/utils/scanner.js' |
| | | import { ref, watch,onUnmounted, warn } from 'vue' |
| | | import { debounce } from 'lodash' |
| | | const store=userInfo() |
| | | const message= ref(null) |
| | | const type=ref('center') |
| | |
| | | |
| | | |
| | | const mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module") |
| | | const scannerGetGlassInfo = () =>{ |
| | | const scannerGetGlassInfo = debounce(() =>{ |
| | | if(uni.getSystemInfoSync().platform==='android'){ |
| | | |
| | | mpaasScan().then(val => { |
| | |
| | | url: `/pages/glassInfo/glassInfo?projectNo=25031302009005` |
| | | }) |
| | | } |
| | | } |
| | | },200) |
| | | |
| | | const scanerCode = () => { |
| | | const scanerCode = debounce(() => { |
| | | if(device.value === null){ |
| | | messageToggle('warn','未选择设备,请选择报工设备!') |
| | | return |
| | |
| | | url: `/pages/reportingWork/reportingWork?processId=NG24111542A012/1` |
| | | }) |
| | | } |
| | | } |
| | | },200) |
| | | |
| | | const glassFinishToStore = () => { |
| | | const glassFinishToStore = debounce(() => { |
| | | mpaasScan().then(val => { |
| | | uni.navigateTo({ |
| | | url: `/pages/glassFinishToStore/glassFinishToStore?processId=${val}` |
| | | }) |
| | | }) |
| | | } |
| | | },200) |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | //打开当班产量 |
| | | const quantityCompletion1 = () => { |
| | | const quantityCompletion1 = debounce(() => { |
| | | uni.navigateTo({ |
| | | url: `/pages/QuantityCompletion/QuantityCompletion` |
| | | }) |
| | | } |
| | | },200) |
| | | |
| | | const changePage = () => { |
| | | uni.navigateTo({ |
| | | url: `/pages/statement/${report.value}` |
| | | }) |
| | | } |
| | | const changePage = debounce((type) => { |
| | | switch (type){ |
| | | case "warehouseOut": |
| | | uni.navigateTo({ |
| | | url: `/pages/warehouseOut/warehouseOut` |
| | | }) |
| | | break |
| | | case "report": |
| | | uni.navigateTo({ |
| | | url: `/pages/statement/${report.value}` |
| | | }) |
| | | break |
| | | } |
| | | |
| | | },200) |
| | | |
| | | </script> |
| | | |