| | |
| | | <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> |
| | | |
| | |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: transparent; /* 透明背景 */ |
| | | z-index: 1; /* 确保在 input 上方 */ |
| | | background-color: transparent; |
| | | /* 透明背景 */ |
| | | z-index: 1; |
| | | /* 确保在 input 上方 */ |
| | | } |
| | | </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}} |
| | |
| | | },{ |
| | | img:'../../static/icon/icon_a31.png', |
| | | text:'生产补料暂存列表', |
| | | url: '/pages/shengchanbuliao/table' , |
| | | url: this.$isDev ? '/pages/shengchanbuliao/table' : '', |
| | | // url: '', |
| | | id:7, |
| | | },{ |
| | | img:'../../static/icon/icon_a17.png', |
| | | text:'生产入库暂存列表', |
| | | url:'/pages/shengchanrukushengdan/table', |
| | | url: this.$isDev ? '/pages/shengchanrukushengdan/table' : '', |
| | | // url:'', |
| | | id:8, |
| | | },{ |
| | | img:'../../static/icon/icon_a30.png', |
| | | text:'委外领料暂存列表', |
| | | // url:'', |
| | | url:'/pages/weiwailingliao/table', |
| | | url: this.$isDev ? '/pages/weiwailingliao/table' : '', |
| | | id:9, |
| | | },{ |
| | | img:'../../static/icon/icon_a18.png', |
| | |
| | | },{ |
| | | img:'../../static/icon/icon_a18.png', |
| | | text:'其他出库校验暂存列表', |
| | | url:'/pages/qitachuku/qitachuku', |
| | | url: '/pages/qitachukujiaoyan/qitachukujiaoyan', |
| | | id:15, |
| | | },{ |
| | | img:'../../static/icon/icon_a17.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:'设备保养记录单', |
| | |
| | | }] |
| | | } |
| | | }, |
| | | onLoad() { |
| | | |
| | | }, |
| | | onLoad() {}, |
| | | methods: { |
| | | toUrl(item){ |
| | | if(item.url){ |
| | |
| | | flex-wrap: wrap; |
| | | margin-top: 10rpx; |
| | | padding-bottom: 80rpx; |
| | | |
| | | .box{ |
| | | width: 100%; |
| | | margin: 40rpx 26rpx 0 26rpx; |
| | |
| | | display: flex; |
| | | align-items: center; |
| | | border-bottom: 1px solid #f0f0f0; |
| | | |
| | | image{ |
| | | width: 40rpx; |
| | | height: 40rpx; |
| | | } |
| | | |
| | | .texts{ |
| | | font-size: 30rpx; |
| | | color: #333333; |
| | | margin-left: 30rpx; |
| | | } |
| | | } |
| | | |
| | | .box[hidden] { |
| | | display: none; |
| | | } |
| | | } |
| | | </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> |