| | |
| | | <script> |
| | | import { getOpenId,setUserInfo,setToken, getToken} from "./utils/auth"; |
| | | import { |
| | | getOpenId, |
| | | setUserInfo, |
| | | setToken, |
| | | getToken |
| | | } from "./utils/auth"; |
| | | export default { |
| | | onLaunch: function() { |
| | | console.log('App Launch') |
| | |
| | | }, |
| | | onHide: function() { |
| | | console.log('App Hide') |
| | | } |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | /*每个页面公共css */ |
| | | .over{ |
| | | .over { |
| | | color: #888; |
| | | font-size: 28rpx; |
| | | text-align: center; |
| | | padding: 60rpx 0; |
| | | } |
| | | |
| | | |
| | | /* 用于解决picker内部设置 disabled input 时不响应的问题 */ |
| | | .picker-overlay { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: transparent; /* 透明背景 */ |
| | | z-index: 1; /* 确保在 input 上方 */ |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: transparent; |
| | | /* 透明背景 */ |
| | | z-index: 1; |
| | | /* 确保在 input 上方 */ |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | // 开发环境 |
| | | // Vue.prototype.serverUrl = "http://47.96.97.237/API"; |
| | | |
| | | Vue.prototype.$isDev = process.env.NODE_ENV === 'development' |
| | | |
| | | //不显示console.log |
| | | // if (uni.getSystemInfoSync().platform !== "devtools") { |
| | |
| | | <template> |
| | | <view class="content"> |
| | | <view class="mains"> |
| | | <view class="box" v-for="(item,index) in itemData" :key="index" @tap="toUrl(item)"> |
| | | <view class="box" :hidden="item.hidden" v-for="(item,index) in itemData" :key="index" @tap="toUrl(item)"> |
| | | <image :src="item.img" mode=""></image> |
| | | <view class="texts"> |
| | | {{item.text}} |
| | |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | serverUrl: uni.getStorageSync('serverUrl')||'http://47.96.97.237/API', |
| | | itemData:[{ |
| | | img:'../../static/icon/icon_a17.png', |
| | | text:'采购入库暂存列表', |
| | | url:'/pages/caigouruku/table', |
| | | id:1 |
| | | },{ |
| | | img:'../../static/icon/icon_a18.png', |
| | | text:'采购退料暂存列表', |
| | | url:'/pages/caigoutuiliao/table', |
| | | id:2, |
| | | },{ |
| | | img:'../../static/icon/icon_a17.png', |
| | | text:'其他入库暂存列表', |
| | | url:'/pages/qitaruku_v2/table', |
| | | id:3, |
| | | },{ |
| | | img:'../../static/icon/icon_a18.png', |
| | | text:'其他出库暂存列表', |
| | | url:'/pages/qitachuku_v2/table', |
| | | id:4, |
| | | },{ |
| | | img:'../../static/icon/icon_a32.png', |
| | | text:'直接调拨暂存列表', |
| | | url:'', |
| | | id:5, |
| | | },{ |
| | | img:'../../static/icon/icon_a30.png', |
| | | text:'生产领料暂存列表', |
| | | url:'/pages/shengchanlingliaoshengdan/table', |
| | | id:6, |
| | | },{ |
| | | img:'../../static/icon/icon_a31.png', |
| | | text:'生产补料暂存列表', |
| | | url: '/pages/shengchanbuliao/table' , |
| | | // url: '', |
| | | id:7, |
| | | },{ |
| | | img:'../../static/icon/icon_a17.png', |
| | | text:'生产入库暂存列表', |
| | | url:'/pages/shengchanrukushengdan/table', |
| | | // url:'', |
| | | id:8, |
| | | },{ |
| | | img:'../../static/icon/icon_a30.png', |
| | | text:'委外领料暂存列表', |
| | | // url:'', |
| | | url:'/pages/weiwailingliao/table', |
| | | id:9, |
| | | },{ |
| | | img:'../../static/icon/icon_a18.png', |
| | | text:'销售出库暂存列表', |
| | | url:'/pages/xiaoshouchuku/table', |
| | | id:10, |
| | | },{ |
| | | img:'../../static/icon/icon_a20.png', |
| | | text:'销售退货暂存列表', |
| | | url:'/pages/xiaoshoutuihuo/table', |
| | | id:11 |
| | | },{ |
| | | img:'../../static/icon/icon_a30.png', |
| | | text:'生产领料校验暂存列表', |
| | | url:'/pages/shengchanlingliao/table', |
| | | id:12, |
| | | },{ |
| | | img:'../../static/icon/icon_a31.png', |
| | | text:'生产补料校验暂存列表', |
| | | url:'/pages/shengchanbuliaojiaoyan/CacheList', |
| | | id:13, |
| | | },{ |
| | | img:'../../static/icon/icon_a32.png', |
| | | text:'生产调拨校验暂存列表', |
| | | url:'/pages/shengchandiaobo/table', |
| | | id:14, |
| | | },{ |
| | | img:'../../static/icon/icon_a18.png', |
| | | text:'其他出库校验暂存列表', |
| | | url:'/pages/qitachuku/qitachuku', |
| | | id:15, |
| | | },{ |
| | | img:'../../static/icon/icon_a17.png', |
| | | text:'生产入库校验暂存列表', |
| | | url:'/pages/shengchanruku/table', |
| | | id:16, |
| | | },{ |
| | | img:'../../static/icon/icon_a18.png', |
| | | text:'销售出库校验暂存列表', |
| | | url:'/pages/xiaoshouchukujiaoyan/table', |
| | | id:17, |
| | | },{ |
| | | img:'../../static/icon/icon_a30.png', |
| | | text:'委外领料校验暂存列表', |
| | | url:'/pages/weiwailingliaojiaoyan/table', |
| | | id:18, |
| | | },{ |
| | | img:'../../static/icon/icon_a3.png', |
| | | text:'设备保养记录单', |
| | | url:'/pages/baoyangjilu/table', |
| | | id:19, |
| | | },{ |
| | | img:'../../static/icon/icon_a5.png', |
| | | text:'设备点检记录单', |
| | | url:'', |
| | | id:20, |
| | | },{ |
| | | img:'../../static/icon/icon_a6.png', |
| | | text:'设备故障登记表', |
| | | url:'/pages/guzhangdengji/table', |
| | | id:21, |
| | | },{ |
| | | img:'../../static/icon/icon_a7.png', |
| | | text:'设备维修记录单', |
| | | url:'/pages/shebeiweixiu/table', |
| | | id:22, |
| | | },{ |
| | | img:'../../static/icon/icon_a15.png', |
| | | text:'异常反馈单', |
| | | url:'/pages/yichang/table', |
| | | id:23, |
| | | },{ |
| | | img:'../../static/icon/icon_a16.png', |
| | | text:'异常反馈处理单', |
| | | url:'/pages/yichang/list', |
| | | id:24, |
| | | },{ |
| | | img:'../../static/icon/icon_a21.png', |
| | | text:'标签打印', |
| | | url:'/pages/labelPrinter/index', |
| | | id:25, |
| | | },{ |
| | | img:'../../static/icon/icon_a21.png', |
| | | text:'条码拆码', |
| | | url:'/pages/tiaomachaima/tiaomachaima', |
| | | id:26, |
| | | }] |
| | | } |
| | | }, |
| | | onLoad() { |
| | | |
| | | data() { |
| | | return { |
| | | serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API', |
| | | itemData: [{ |
| | | img: '../../static/icon/icon_a17.png', |
| | | text: '采购入库暂存列表', |
| | | url: '/pages/caigouruku/table', |
| | | id: 1 |
| | | }, { |
| | | img: '../../static/icon/icon_a18.png', |
| | | text: '采购退料暂存列表', |
| | | url: '/pages/caigoutuiliao/table', |
| | | id: 2, |
| | | }, { |
| | | img: '../../static/icon/icon_a17.png', |
| | | text: '其他入库暂存列表', |
| | | url: '/pages/qitaruku_v2/table', |
| | | id: 3, |
| | | }, { |
| | | img: '../../static/icon/icon_a18.png', |
| | | text: '其他出库暂存列表', |
| | | url: '/pages/qitachuku_v2/table', |
| | | id: 4, |
| | | }, { |
| | | img: '../../static/icon/icon_a32.png', |
| | | text: '直接调拨暂存列表', |
| | | url: '', |
| | | id: 5, |
| | | }, { |
| | | img: '../../static/icon/icon_a30.png', |
| | | text: '生产领料暂存列表', |
| | | url: '/pages/shengchanlingliaoshengdan/table', |
| | | id: 6, |
| | | }, { |
| | | img: '../../static/icon/icon_a31.png', |
| | | text: '生产补料暂存列表', |
| | | url: this.$isDev ? '/pages/shengchanbuliao/table' : '', |
| | | // url: '', |
| | | id: 7, |
| | | }, { |
| | | img: '../../static/icon/icon_a17.png', |
| | | text: '生产入库暂存列表', |
| | | url: this.$isDev ? '/pages/shengchanrukushengdan/table' : '', |
| | | // url:'', |
| | | id: 8, |
| | | }, { |
| | | img: '../../static/icon/icon_a30.png', |
| | | text: '委外领料暂存列表', |
| | | // url:'', |
| | | url: this.$isDev ? '/pages/weiwailingliao/table' : '', |
| | | id: 9, |
| | | }, { |
| | | img: '../../static/icon/icon_a18.png', |
| | | text: '销售出库暂存列表', |
| | | url: '/pages/xiaoshouchuku/table', |
| | | id: 10, |
| | | }, { |
| | | img: '../../static/icon/icon_a20.png', |
| | | text: '销售退货暂存列表', |
| | | url: '/pages/xiaoshoutuihuo/table', |
| | | id: 11 |
| | | }, { |
| | | img: '../../static/icon/icon_a30.png', |
| | | text: '生产领料校验暂存列表', |
| | | url: '/pages/shengchanlingliao/table', |
| | | id: 12, |
| | | }, { |
| | | img: '../../static/icon/icon_a31.png', |
| | | text: '生产补料校验暂存列表', |
| | | url: '/pages/shengchanbuliaojiaoyan/CacheList', |
| | | id: 13, |
| | | }, { |
| | | img: '../../static/icon/icon_a32.png', |
| | | text: '生产调拨校验暂存列表', |
| | | url: '/pages/shengchandiaobo/table', |
| | | id: 14, |
| | | }, { |
| | | img: '../../static/icon/icon_a18.png', |
| | | text: '其他出库校验暂存列表', |
| | | url: '/pages/qitachukujiaoyan/qitachukujiaoyan', |
| | | id: 15, |
| | | }, { |
| | | img: '../../static/icon/icon_a17.png', |
| | | text: '生产入库校验暂存列表', |
| | | url: '/pages/shengchanruku/table', |
| | | id: 16, |
| | | }, { |
| | | img: '../../static/icon/icon_a18.png', |
| | | text: '销售出库校验暂存列表', |
| | | url: '/pages/xiaoshouchukujiaoyan/table', |
| | | id: 17, |
| | | }, { |
| | | img: '../../static/icon/icon_a30.png', |
| | | text: '委外领料校验暂存列表', |
| | | url: '/pages/weiwailingliaojiaoyan/table', |
| | | id: 18, |
| | | }, { |
| | | hidden: !this.$isDev, |
| | | img: '../../static/icon/icon_a30.png', |
| | | text: '采购入库校验暂存列表', |
| | | url: '/pages/caigourukujiaoyan/table', |
| | | id: 27, |
| | | }, { |
| | | hidden: !this.$isDev, |
| | | img: '../../static/icon/icon_a30.png', |
| | | text: '其他入库校验暂存列表', |
| | | url: '/pages/qitarukujiaoyan/table', |
| | | id: 28, |
| | | }, { |
| | | hidden: !this.$isDev, |
| | | img: '../../static/icon/icon_a30.png', |
| | | text: '委外补料校验暂存列表', |
| | | url: '/pages/weiwaibuliaojiaoyan/table', |
| | | id: 29, |
| | | }, { |
| | | img: '../../static/icon/icon_a3.png', |
| | | text: '设备保养记录单', |
| | | url: '/pages/baoyangjilu/table', |
| | | id: 19, |
| | | }, { |
| | | img: '../../static/icon/icon_a5.png', |
| | | text: '设备点检记录单', |
| | | url: '', |
| | | id: 20, |
| | | }, { |
| | | img: '../../static/icon/icon_a6.png', |
| | | text: '设备故障登记表', |
| | | url: '/pages/guzhangdengji/table', |
| | | id: 21, |
| | | }, { |
| | | img: '../../static/icon/icon_a7.png', |
| | | text: '设备维修记录单', |
| | | url: '/pages/shebeiweixiu/table', |
| | | id: 22, |
| | | }, { |
| | | img: '../../static/icon/icon_a15.png', |
| | | text: '异常反馈单', |
| | | url: '/pages/yichang/table', |
| | | id: 23, |
| | | }, { |
| | | img: '../../static/icon/icon_a16.png', |
| | | text: '异常反馈处理单', |
| | | url: '/pages/yichang/list', |
| | | id: 24, |
| | | }, { |
| | | img: '../../static/icon/icon_a21.png', |
| | | text: '标签打印', |
| | | url: '/pages/labelPrinter/index', |
| | | id: 25, |
| | | }, { |
| | | img: '../../static/icon/icon_a21.png', |
| | | text: '条码拆码', |
| | | url: '/pages/tiaomachaima/tiaomachaima', |
| | | id: 26, |
| | | }] |
| | | } |
| | | }, |
| | | methods: { |
| | | toUrl(item){ |
| | | if(item.url){ |
| | | onLoad() {}, |
| | | methods: { |
| | | toUrl(item) { |
| | | if (item.url) { |
| | | uni.navigateTo({ |
| | | url:item.url |
| | | url: item.url |
| | | }) |
| | | }else{ |
| | | } else { |
| | | uni.showToast({ |
| | | title:'功能开发中。。。', |
| | | icon:'none' |
| | | title: '功能开发中。。。', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .mains{ |
| | | width: 720rpx; |
| | | margin: 0 auto; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | margin-top: 10rpx; |
| | | padding-bottom: 80rpx; |
| | | .box{ |
| | | width: 100%; |
| | | margin: 40rpx 26rpx 0 26rpx; |
| | | padding: 0 0 20rpx 10rpx; |
| | | .mains { |
| | | width: 720rpx; |
| | | margin: 0 auto; |
| | | display: flex; |
| | | align-items: center; |
| | | border-bottom: 1px solid #f0f0f0; |
| | | image{ |
| | | width: 40rpx; |
| | | height: 40rpx; |
| | | flex-wrap: wrap; |
| | | margin-top: 10rpx; |
| | | padding-bottom: 80rpx; |
| | | |
| | | .box { |
| | | width: 100%; |
| | | margin: 40rpx 26rpx 0 26rpx; |
| | | padding: 0 0 20rpx 10rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | border-bottom: 1px solid #f0f0f0; |
| | | |
| | | image { |
| | | width: 40rpx; |
| | | height: 40rpx; |
| | | } |
| | | |
| | | .texts { |
| | | font-size: 30rpx; |
| | | color: #333333; |
| | | margin-left: 30rpx; |
| | | } |
| | | } |
| | | .texts{ |
| | | font-size: 30rpx; |
| | | color: #333333; |
| | | margin-left: 30rpx; |
| | | |
| | | .box[hidden] { |
| | | display: none; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | </uni-card> |
| | | </view> |
| | | </view> |
| | | <template v-if="moulds.length == 0"> |
| | | <view class="over">暂无数据</view> |
| | | </template> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | <view class="form-item" v-show="showHBillNo"> |
| | | <view class="title">单据号:</view> |
| | | <view class="right" style="width: 380rpx;"> |
| | | <input name="HBillNo" v-model="hform.HBillNo" placeholder="请扫描(或输入)条码" |
| | | <input name="HBillNo" v-model="hform.HBillNo" placeholder="请扫描(或输入)单据号" |
| | | @confirm="GetMeesageByBillNo(hform.HBarCode)" /> |
| | | </view> |
| | | <uni-icons type="scan" |
| | |
| | | </view> |
| | | </uni-card> |
| | | </view> |
| | | |
| | | <template v-if="devices.length == 0"> |
| | | <view class="over">暂无数据</view> |
| | | </template> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | <view class="item"> |
| | | <view class="left">条码编号:</view> |
| | | <view class="right"> |
| | | <input name="HBarCode" disabled v-model="barCodeInfoMeta.barCodeNo" placeholder="请扫描设备" |
| | | <input name="HBarCode" disabled v-model="barCodeInfoMeta.barCodeNo" placeholder="请扫描条码" |
| | | @blur="searchbarCodeInfo" /> |
| | | </view> |
| | | <view> |