12/23出库接收方式新增
This commit is contained in:
parent
77e3ad37fe
commit
d0fb85cb7c
|
|
@ -4,6 +4,7 @@ import {
|
|||
user,
|
||||
fetchMaterial,
|
||||
fetchExam,
|
||||
fetchMaterialOutStore,
|
||||
exitMaterial,
|
||||
fix,
|
||||
exitExam,
|
||||
|
|
@ -16,6 +17,7 @@ export default{
|
|||
user: user,
|
||||
fetchMaterial: fetchMaterial,
|
||||
fetchExam: fetchExam,
|
||||
fetchMaterialOutStore: fetchMaterialOutStore,
|
||||
exitMaterial: exitMaterial,
|
||||
fix: fix,
|
||||
exitExam: exitExam,
|
||||
|
|
|
|||
|
|
@ -88,6 +88,25 @@ const fetchExam = {
|
|||
},
|
||||
}
|
||||
|
||||
const fetchMaterialOutStore = {
|
||||
async fetchInfoByCode (data = {} , header = {}){
|
||||
return await Http.get(
|
||||
HttpConfig.basePath,
|
||||
HttpConfig.serviceUrl.fetchMaterialOutStore.fetchInfoByCode,
|
||||
data,
|
||||
header
|
||||
)
|
||||
},
|
||||
async subOutStore (data = {} , header = {}){
|
||||
return await Http.post(
|
||||
HttpConfig.basePath,
|
||||
HttpConfig.serviceUrl.fetchMaterialOutStore.subOutStore,
|
||||
data,
|
||||
header
|
||||
)
|
||||
},
|
||||
}
|
||||
|
||||
const exitMaterial = {
|
||||
async exitDeptList (data = {} , header = {}){
|
||||
return await Http.post(
|
||||
|
|
@ -242,6 +261,7 @@ export {
|
|||
user,
|
||||
fetchMaterial,
|
||||
fetchExam,
|
||||
fetchMaterialOutStore,
|
||||
exitMaterial,
|
||||
fix,
|
||||
exitExam,
|
||||
|
|
|
|||
22
apis/http.js
22
apis/http.js
|
|
@ -1,10 +1,16 @@
|
|||
class HttpConfig{
|
||||
|
||||
// 演示基地址
|
||||
authPath = 'http://112.29.103.165:21624/auth'
|
||||
/* authPath = 'http://112.29.103.165:21624/auth'
|
||||
systemPath = 'http://112.29.103.165:21624/system'
|
||||
basePath = 'http://112.29.103.165:21624/base'
|
||||
materialPath = 'http://112.29.103.165:21624/material'
|
||||
materialPath = 'http://112.29.103.165:21624/material' */
|
||||
|
||||
// 14服务器
|
||||
authPath = 'http://192.168.0.14:21624/auth'
|
||||
systemPath = 'http://192.168.0.14:21624/system'
|
||||
basePath = 'http://192.168.0.14:21624/base'
|
||||
materialPath = 'http://192.168.0.14:21624/material'
|
||||
|
||||
/*
|
||||
调试ip
|
||||
|
|
@ -12,10 +18,10 @@ class HttpConfig{
|
|||
丁杰:
|
||||
*/
|
||||
//基地址
|
||||
/* authPath = 'http://10.40.92.209:9200'
|
||||
systemPath = 'http://10.40.92.209:9201'
|
||||
basePath = 'http://10.40.92.209:9301'
|
||||
materialPath = 'http://10.40.92.209:9302' */
|
||||
/* authPath = 'http://169.254.91.222:9200'
|
||||
systemPath = 'http://169.254.91.222:9201'
|
||||
basePath = 'http://169.254.91.222:9301'
|
||||
materialPath = 'http://169.254.91.222:9302' */
|
||||
// 短链
|
||||
serviceUrl = {
|
||||
login:{
|
||||
|
|
@ -37,6 +43,10 @@ class HttpConfig{
|
|||
fetchExam: {
|
||||
fetchExamList: '/tm_task/getLeaseAuditList', // 获取领料审批清单
|
||||
},
|
||||
fetchMaterialOutStore: {
|
||||
fetchInfoByCode: '/leaseOutDetails/getMaMachineByCode', // 根据maId获取机具详情
|
||||
subOutStore: '/leaseOutDetails/submitOut', // 领料出库提交
|
||||
},
|
||||
exitMaterial: {
|
||||
exitDeptList: '/back_apply/getbackUnit', // 获取退料单位,工程列表
|
||||
exitMaterialList: '/back_apply/getbackList', // 获取机具退料列表
|
||||
|
|
|
|||
32
pages.json
32
pages.json
|
|
@ -295,6 +295,38 @@
|
|||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/scanOutStore/scanOutStore",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "二维码出库"
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/backMaterialReceiveDetail/backMaterialReceiveDetail",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "退料接收明细"
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/scanReceive/scanReceive",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "二维码接收"
|
||||
}
|
||||
|
||||
}
|
||||
,{
|
||||
"path" : "pages/codeReceive/codeReceive",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "编码接收"
|
||||
}
|
||||
|
||||
}
|
||||
],
|
||||
"tabBar": {
|
||||
"color": "#2c2c2c",
|
||||
|
|
|
|||
|
|
@ -1,66 +1,74 @@
|
|||
<template>
|
||||
<view>
|
||||
<view
|
||||
<view
|
||||
class="single-fetch"
|
||||
v-for="(fetch, index) in fetchMaterialList"
|
||||
:key="index"
|
||||
>
|
||||
<view class="fetch-upper">
|
||||
<!-- {{ fetch.taskStatus }} -->
|
||||
<!-- <checkbox-group
|
||||
v-show="fetch.status == '2'"
|
||||
v-show="fetch.taskStatus != '35'"
|
||||
style="margin-right: 15rpx;"
|
||||
@change="checkClick(fetch)"
|
||||
>
|
||||
<checkbox :checked="fetch.checked" />
|
||||
</checkbox-group> -->
|
||||
<view class="upper-lef">
|
||||
{{ fetch.name.slice(0, 1) }}
|
||||
{{ fetch.createBy.slice(0, 1) }}
|
||||
</view>
|
||||
<view class="upper-rig">
|
||||
<h4 style="font-size: 16px;">{{ fetch.name }}</h4>
|
||||
<h4 style="color: #989898;">{{ fetch.fetchDept }}</h4>
|
||||
<h4 style="font-size: 16px;">{{ fetch.createBy }}</h4>
|
||||
<h4 style="color: #989898;">{{ fetch.phoneNumber }}</h4>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fetch-lower">
|
||||
<view
|
||||
class="fetch-lower"
|
||||
@click="seeDetail(fetch.taskId)"
|
||||
>
|
||||
<view>
|
||||
<span>领料单号</span>
|
||||
<h4>{{ fetch.fetchOrder }}</h4>
|
||||
<span>领料申请单位</span>
|
||||
<h4>{{ fetch.deptName }}</h4>
|
||||
</view>
|
||||
<view>
|
||||
<span>领料工程</span>
|
||||
<h4>{{ fetch.fetchProj }}</h4>
|
||||
<span>领料申请工程</span>
|
||||
<h4>{{ fetch.proName }}</h4>
|
||||
</view>
|
||||
<view>
|
||||
<!-- <view>
|
||||
<span>工机具类型</span>
|
||||
<h4>{{ fetch.fetchType }}</h4>
|
||||
</view> -->
|
||||
<view>
|
||||
<span>申请数量</span>
|
||||
<h4>{{ fetch.preCountNum }}</h4>
|
||||
</view>
|
||||
<view>
|
||||
<span>申请日期</span>
|
||||
<h4>{{ fetch.orderTime }}</h4>
|
||||
</view>
|
||||
<view>
|
||||
<span>管理员</span>
|
||||
<h4>{{ fetch.inCharge }}</h4>
|
||||
<span>申请时间</span>
|
||||
<h4>{{ fetch.createTime }}</h4>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="fetch-btns">
|
||||
<view style="background-color: #3788FF;" @click="seeDetail">
|
||||
<view
|
||||
style="background-color: #3788FF;"
|
||||
@click="seeDetail(fetch.taskId)"
|
||||
v-show="fetch.taskStatus != '33'"
|
||||
>
|
||||
<uni-icons style="color: #fff;" type="eye" size="36"></uni-icons>
|
||||
查看
|
||||
</view>
|
||||
<view
|
||||
style="background-color: #FCA30D;"
|
||||
v-show="fetch.status == '2'"
|
||||
@click="seeExam(fetch.name)"
|
||||
style="background-color: #FCA30D;"
|
||||
v-show="fetch.taskStatus != '33'"
|
||||
@click="seeExam(fetch)"
|
||||
>
|
||||
<uni-icons style="color: #fff;" type="auth" size="36"></uni-icons>
|
||||
审核
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="sticky-area">
|
||||
<image src="/static/passed.png" v-show="fetch.status == '0'" mode=""></image>
|
||||
<image src="/static/noPass.png" v-show="fetch.status == '1'" mode=""></image>
|
||||
<image src="/static/noExam.png" v-show="fetch.status == '2'" mode=""></image>
|
||||
<image src="/static/passed.png" v-show="fetch.taskStatus == '35'" mode=""></image>
|
||||
<!-- <image src="/static/noPass.png" v-show="fetch.status == '1'" mode=""></image> -->
|
||||
<image src="/static/noPass.png" v-show="fetch.taskStatus != '35'" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="btm-sticky">
|
||||
|
|
@ -81,59 +89,21 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { basePath } from '../../public'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
allChecked: false,
|
||||
fetchMaterialList: [
|
||||
{
|
||||
name: '王明涛',
|
||||
fetchDept: '安徽博诺思信息科技有限公司',
|
||||
fetchOrder: 'SDJJ5521',
|
||||
fetchProj: 'XXX工程',
|
||||
fetchType: '机动角磨机、卸扣',
|
||||
orderTime: '2023-12-12 09:40',
|
||||
inCharge: '李老八',
|
||||
status: '0'
|
||||
},
|
||||
{
|
||||
name: '小蓝',
|
||||
fetchDept: '安徽博诺思信息科技有限公司',
|
||||
fetchOrder: 'SDJJ5521',
|
||||
fetchProj: 'X工程',
|
||||
fetchType: '油炸角磨机、卸扣',
|
||||
orderTime: '2023-06-02 12:22',
|
||||
inCharge: '李老八',
|
||||
status: '2'
|
||||
},
|
||||
{
|
||||
name: '小红',
|
||||
fetchDept: '安徽博诺思信息科技有限公司',
|
||||
fetchOrder: 'SDJJ5521',
|
||||
fetchProj: 'XXXX工程',
|
||||
fetchType: '按揭角磨机、卸扣',
|
||||
orderTime: '2023-10-08 18:12',
|
||||
inCharge: '李老八',
|
||||
status: '1'
|
||||
},
|
||||
{
|
||||
name: '小黑',
|
||||
fetchDept: '安徽博诺思信息科技有限公司',
|
||||
fetchOrder: 'SDJJ5521',
|
||||
fetchProj: 'XXXXX工程',
|
||||
fetchType: '膨化角磨机、卸扣',
|
||||
orderTime: '2023-03-17 03:55',
|
||||
inCharge: '李老八',
|
||||
status: '2'
|
||||
}
|
||||
|
||||
],
|
||||
examList: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
seeDetail () {
|
||||
seeDetail (taskId) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/fetchMaterialDetail/fetchMaterialDetail'
|
||||
url: `/pages/backMaterialReceiveDetail/backMaterialReceiveDetail?taskId=${taskId}`
|
||||
})
|
||||
},
|
||||
/* checkAll() {
|
||||
|
|
@ -229,6 +199,21 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
let that = this
|
||||
// 获取领料出库数据
|
||||
that.$api.fetchExam.fetchExamList({}, null).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
that.fetchMaterialList = res.data.data.rows.filter((item) => {
|
||||
return item.taskStatus == 33 || item.taskStatus == 34 || item.taskStatus == 35
|
||||
})
|
||||
}
|
||||
console.log(that.fetchMaterialList);
|
||||
}).catch(err => {
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
@ -302,7 +287,7 @@
|
|||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
/* .fetch-btns{
|
||||
.fetch-btns{
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 15rpx;
|
||||
|
|
@ -319,7 +304,7 @@
|
|||
view:last-child{
|
||||
margin-right: 0;
|
||||
}
|
||||
} */
|
||||
}
|
||||
.sticky-area{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,341 @@
|
|||
<template>
|
||||
<view>
|
||||
<view
|
||||
class="single-fetch"
|
||||
v-for="(fetch, index) in fetchList"
|
||||
:key="index"
|
||||
@click="openPopup(fetch)"
|
||||
>
|
||||
<view>
|
||||
<span>类型名称</span>
|
||||
<h4>{{ fetch.typeName }}</h4>
|
||||
</view>
|
||||
<view>
|
||||
<span>规格型号</span>
|
||||
<h4>{{ fetch.typeModelName }}</h4>
|
||||
</view>
|
||||
<view>
|
||||
<span>待出库数量</span>
|
||||
<h4>{{ fetch.preNum }}</h4>
|
||||
</view>
|
||||
</view>
|
||||
<uni-popup
|
||||
ref="popup1"
|
||||
type="center"
|
||||
:mask-click="false"
|
||||
>
|
||||
<view class="popup1">
|
||||
<view class="pop-top">
|
||||
<h4>退料接收</h4>
|
||||
<uni-icons
|
||||
style="color: #AAAAAA; font-weight: bold;"
|
||||
type="closeempty"
|
||||
size="32"
|
||||
@click="closePopup1"
|
||||
>
|
||||
</uni-icons>
|
||||
</view>
|
||||
<h5 style="width: 85%; margin: 2vh auto; font-weight: normal; text-align: center;">请选择接收方式</h5>
|
||||
<view class="select-area">
|
||||
<view @click="scanCode">二维码</view>
|
||||
<view @click="codeOut">编码接收</view>
|
||||
</view>
|
||||
<!-- <view class="ipt-area">
|
||||
<uni-easyinput v-model="codeVal" placeholder="请输入编码"></uni-easyinput>
|
||||
</view> -->
|
||||
</view>
|
||||
</uni-popup>
|
||||
<uni-popup
|
||||
ref="popup2"
|
||||
type="center"
|
||||
:mask-click="false"
|
||||
>
|
||||
<view class="popup2">
|
||||
<view class="pop-top">
|
||||
<h4>退料接收</h4>
|
||||
<uni-icons
|
||||
style="color: #AAAAAA; font-weight: bold;"
|
||||
type="closeempty"
|
||||
size="32"
|
||||
@click="closePopup2"
|
||||
>
|
||||
</uni-icons>
|
||||
</view>
|
||||
<view class="info-area">
|
||||
<view>
|
||||
<h4>类型名称</h4>
|
||||
<span>{{ infoList.typeName }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>规格型号</h4>
|
||||
<span>{{ infoList.typeModelName }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>待入库数量</h4>
|
||||
<span>{{ infoList.preNum }}</span>
|
||||
</view>
|
||||
<!-- <view style="flex-direction: column;">
|
||||
<h4 style="margin-bottom: 30rpx;">待修状态</h4>
|
||||
<uni-data-checkbox v-model="fixVal" :localdata="fixRange"></uni-data-checkbox>
|
||||
</view> -->
|
||||
<view>
|
||||
<h4>合格数量</h4>
|
||||
<uni-easyinput type="number" v-model="passedNum" placeholder="请输入"></uni-easyinput>
|
||||
</view>
|
||||
<view>
|
||||
<h4>待修数量</h4>
|
||||
<uni-easyinput type="number" v-model="waitRepairNum" placeholder="请输入"></uni-easyinput>
|
||||
</view>
|
||||
<view>
|
||||
<h4>待报废数量</h4>
|
||||
<uni-easyinput type="number" v-model="waitCrashNum" placeholder="请输入"></uni-easyinput>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="sub-btn"
|
||||
@click="multiOut"
|
||||
>
|
||||
退料接收
|
||||
</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
fetchList: [
|
||||
|
||||
],
|
||||
codeVal: '',
|
||||
manageType: '',
|
||||
infoList: '',
|
||||
multiNum: 1,
|
||||
subList: {},
|
||||
fixVal: '',
|
||||
fixRange: [
|
||||
{ text: '合格', value: '0' },
|
||||
{ text: '待修', value: '1' },
|
||||
{ text: '待报废', value: '2' }
|
||||
],
|
||||
passedNum: '',
|
||||
waitRepairNum: '',
|
||||
waitCrashNum: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
openPopup (list) {
|
||||
this.infoList = list
|
||||
console.log(this.infoList.manageType, this.infoList);
|
||||
if (this.infoList.manageType == 0) {
|
||||
this.$refs.popup1.open()
|
||||
} else if (this.infoList.manageType == 1) {
|
||||
this.$refs.popup2.open()
|
||||
}
|
||||
},
|
||||
closePopup1 () {
|
||||
this.$refs.popup1.close()
|
||||
},
|
||||
closePopup2 () {
|
||||
this.$refs.popup2.close()
|
||||
},
|
||||
scanCode () {
|
||||
this.closePopup1()
|
||||
uni.scanCode({
|
||||
success: (res) => {
|
||||
console.log(res);
|
||||
uni.navigateTo({
|
||||
url: `/pages/scanReceive/scanReceive?code=${res.result}&typeId=${this.infoList.typeId}&num=${this.infoList.preNum}&parentId=${this.infoList.parenntId}`
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
codeOut () {
|
||||
this.closePopup1()
|
||||
console.log(this.infoList);
|
||||
uni.navigateTo({
|
||||
url: `/pages/codeReceive/codeReceive?typeId=${this.infoList.typeId}&num=${this.infoList.preNum}&parentId=${this.infoList.parenntId}`
|
||||
})
|
||||
},
|
||||
multiOut () {
|
||||
let that = this
|
||||
this.closePopup2()
|
||||
that.subList = {
|
||||
parentId: that.infoList.parenntId,
|
||||
typeId: that.infoList.typeId,
|
||||
outNum: that.multiNum,
|
||||
companyId: uni.getStorageSync('userInfo').sysUser.companyId
|
||||
}
|
||||
console.log(that.subList);
|
||||
that.$api.fetchMaterialOutStore.subOutStore(that.subList, null).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '退料接收成功!',
|
||||
success: () => {
|
||||
uni.navigateBack()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '退料接收失败!'
|
||||
})
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
},
|
||||
onLoad(params) {
|
||||
let that = this
|
||||
console.log(params.taskId);
|
||||
// 获取详情
|
||||
that.$api.fetchExam.fetchExamList({
|
||||
taskId: params.taskId
|
||||
}, null).then(res => {
|
||||
if (res.data.code == 200) {
|
||||
for (let i = 0; i < res.data.data.rows[0].leaseApplyInfoList.length; i++) {
|
||||
that.fetchList.push(res.data.data.rows[0].leaseApplyInfoList[i].leaseApplyDetails[0])
|
||||
}
|
||||
// that.fetchList[1].manageType = 0
|
||||
console.log(that.fetchList);
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.single-fetch{
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 20rpx 35rpx;
|
||||
border-bottom: 1px solid #DDDDDD;
|
||||
view{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 25rpx;
|
||||
span{
|
||||
color: #A7A7A7;
|
||||
padding-right: 20rpx;
|
||||
}
|
||||
h4{
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
view:last-child{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
.btm-exam{
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 20rpx 40rpx;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
border-top: 2px solid #F6F8FF;
|
||||
.exam{
|
||||
box-sizing: border-box;
|
||||
padding: 10rpx 50rpx;
|
||||
border-radius: 30rpx;
|
||||
background-color: #3788FF;
|
||||
font-size: 14px;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
.popup1{
|
||||
width: 80vw;
|
||||
height: 20vh;
|
||||
background-color: #fff;
|
||||
border-radius: 15rpx;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(#D9E7FE, #fff, #fff, #fff);
|
||||
.pop-top{
|
||||
width: 100%;
|
||||
height: 5vh;
|
||||
box-sizing: border-box;
|
||||
padding: 0 25rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.select-area{
|
||||
width: 85%;
|
||||
margin: 40rpx auto;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
view{
|
||||
box-sizing: border-box;
|
||||
font-size: 14px;
|
||||
padding: 10rpx 20rpx;
|
||||
border: 1px solid #D5D5D4;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
}
|
||||
.ipt-area{
|
||||
width: 85%;
|
||||
margin: 40rpx auto;
|
||||
}
|
||||
}
|
||||
.popup2{
|
||||
width: 80vw;
|
||||
height: 60vh;
|
||||
background-color: #fff;
|
||||
border-radius: 15rpx;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(#D9E7FE, #fff, #fff, #fff);
|
||||
.pop-top{
|
||||
width: 100%;
|
||||
height: 5vh;
|
||||
box-sizing: border-box;
|
||||
padding: 0 25rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.info-area{
|
||||
width: 85%;
|
||||
margin: 30rpx auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
view{
|
||||
margin-bottom: 15rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
h4{
|
||||
font-weight: normal;
|
||||
color: #989898;
|
||||
font-size: 14px;
|
||||
width: 35%;
|
||||
}
|
||||
span{
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.sub-btn{
|
||||
width: 85%;
|
||||
margin: 30rpx auto;
|
||||
background-color: #3788FF;
|
||||
color: #fff;
|
||||
box-sizing: border-box;
|
||||
padding: 15rpx 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 40rpx;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
@ -4,6 +4,44 @@
|
|||
<view class="upper-ipt">
|
||||
<uni-easyinput suffixIcon="search" v-model="codeVal" placeholder="请输入编码" @iconClick="searchCode"></uni-easyinput>
|
||||
</view>
|
||||
<view
|
||||
class="info-area"
|
||||
v-for="(item, index) in infoList"
|
||||
:key="index"
|
||||
v-show="infoList.length != 0"
|
||||
>
|
||||
<view>
|
||||
<h4>物品名称</h4>
|
||||
<span>{{ item.itemType }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>设备名称</h4>
|
||||
<span>{{ item.deviceType }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>设备规格</h4>
|
||||
<span>{{ item.specificationType }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>设备状态</h4>
|
||||
<span>{{ item.maStatusName }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>机具编码</h4>
|
||||
<span>{{ item.maCode }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>出库数量</h4>
|
||||
<span>1</span>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="sub-btn"
|
||||
v-show="infoList.length != 0"
|
||||
@click="outStore"
|
||||
>
|
||||
出库
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
|
@ -12,14 +50,81 @@
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
codeVal: ''
|
||||
codeVal: '',
|
||||
typeId: '',
|
||||
num: '',
|
||||
parentId: '',
|
||||
infoList: '',
|
||||
subList: {}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
searchCode () {
|
||||
let that = this
|
||||
that.infoList = []
|
||||
console.log(that.codeVal);
|
||||
// 根据maId获取设备详情
|
||||
that.$api.fetchMaterialOutStore.fetchInfoByCode({
|
||||
maCode: that.codeVal
|
||||
}, null).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.rows.length == 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '未查询到设备数据!'
|
||||
})
|
||||
} else {
|
||||
that.infoList = res.data.rows
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
})
|
||||
},
|
||||
outStore () {
|
||||
let that = this
|
||||
console.log(that.infoList);
|
||||
/* if (this.infoList.typeId != this.typeId) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '编码与机具类型不匹配!'
|
||||
})
|
||||
} else { */
|
||||
that.subList = {
|
||||
parentId: that.parentId,
|
||||
typeId: that.typeId,
|
||||
maId: that.infoList[0].maId,
|
||||
outNum: 1,
|
||||
companyId: uni.getStorageSync('userInfo').sysUser.companyId
|
||||
}
|
||||
console.log(that.subList);
|
||||
// }
|
||||
// 提交编码出库申请
|
||||
that.$api.fetchMaterialOutStore.subOutStore(that.subList, null).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.data.msg,
|
||||
success: () => {
|
||||
uni.navigateBack()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.data.msg
|
||||
})
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
},
|
||||
onLoad(params) {
|
||||
console.log(params);
|
||||
this.typeId = params.typeId
|
||||
this.num = params.num
|
||||
this.parentId = params.parentId
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
@ -32,6 +137,38 @@
|
|||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.info-area{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
view{
|
||||
margin-bottom: 25rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
h4{
|
||||
width: 35%;
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
color: #989898;
|
||||
}
|
||||
span{
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.sub-btn{
|
||||
width: 80%;
|
||||
margin: 30rpx auto;
|
||||
box-sizing: border-box;
|
||||
padding: 15rpx 0;
|
||||
background-color: #0189FC;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 40rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,184 @@
|
|||
<template>
|
||||
<view>
|
||||
<view class="form-area">
|
||||
<view class="upper-ipt">
|
||||
<uni-easyinput suffixIcon="search" v-model="codeVal" placeholder="请输入编码" @iconClick="searchCode"></uni-easyinput>
|
||||
</view>
|
||||
<view
|
||||
class="info-area"
|
||||
v-for="(item, index) in infoList"
|
||||
:key="index"
|
||||
v-show="infoList.length != 0"
|
||||
>
|
||||
<view>
|
||||
<h4>物品名称</h4>
|
||||
<span>{{ item.itemType }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>设备名称</h4>
|
||||
<span>{{ item.deviceType }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>设备规格</h4>
|
||||
<span>{{ item.specificationType }}</span>
|
||||
</view>
|
||||
<view style="flex-direction: column;">
|
||||
<h4 style="margin-bottom: 30rpx;">待修状态</h4>
|
||||
<uni-data-checkbox v-model="fixVal" :localdata="fixRange"></uni-data-checkbox>
|
||||
</view>
|
||||
<!-- <view>
|
||||
<h4>设备状态</h4>
|
||||
<span>{{ item.maStatusName }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>机具编码</h4>
|
||||
<span>{{ item.maCode }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>出库数量</h4>
|
||||
<span>1</span>
|
||||
</view> -->
|
||||
</view>
|
||||
<view
|
||||
class="sub-btn"
|
||||
v-show="infoList.length != 0"
|
||||
@click="outStore"
|
||||
>
|
||||
接收
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
codeVal: '',
|
||||
typeId: '',
|
||||
num: '',
|
||||
parentId: '',
|
||||
infoList: '',
|
||||
subList: {},
|
||||
fixVal: '',
|
||||
fixRange: [
|
||||
{ text: '合格', value: '0' },
|
||||
{ text: '待修', value: '1' },
|
||||
{ text: '待报废', value: '2' }
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
searchCode () {
|
||||
let that = this
|
||||
that.infoList = []
|
||||
console.log(that.codeVal);
|
||||
// 根据maId获取设备详情
|
||||
that.$api.fetchMaterialOutStore.fetchInfoByCode({
|
||||
maCode: that.codeVal
|
||||
}, null).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.rows.length == 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '未查询到设备数据!'
|
||||
})
|
||||
} else {
|
||||
that.infoList = res.data.rows
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
})
|
||||
},
|
||||
outStore () {
|
||||
let that = this
|
||||
console.log(that.infoList);
|
||||
/* if (this.infoList.typeId != this.typeId) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '编码与机具类型不匹配!'
|
||||
})
|
||||
} else { */
|
||||
that.subList = {
|
||||
parentId: that.parentId,
|
||||
typeId: that.typeId,
|
||||
maId: that.infoList[0].maId,
|
||||
outNum: 1,
|
||||
companyId: uni.getStorageSync('userInfo').sysUser.companyId
|
||||
}
|
||||
console.log(that.subList);
|
||||
// }
|
||||
// 提交编码出库申请
|
||||
that.$api.fetchMaterialOutStore.subOutStore(that.subList, null).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.data.msg,
|
||||
success: () => {
|
||||
uni.navigateBack()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.data.msg
|
||||
})
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
},
|
||||
onLoad(params) {
|
||||
console.log(params);
|
||||
this.typeId = params.typeId
|
||||
this.num = params.num
|
||||
this.parentId = params.parentId
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.form-area{
|
||||
width: 90%;
|
||||
margin: 40rpx auto;
|
||||
.upper-ipt{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.info-area{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
view{
|
||||
margin-bottom: 25rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
h4{
|
||||
width: 35%;
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
color: #989898;
|
||||
}
|
||||
span{
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.sub-btn{
|
||||
width: 80%;
|
||||
margin: 30rpx auto;
|
||||
box-sizing: border-box;
|
||||
padding: 15rpx 0;
|
||||
background-color: #0189FC;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 40rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
@ -274,8 +274,8 @@ import { basePath } from '../../public'
|
|||
companyId: uni.getStorageSync('userInfo').sysUser.companyId
|
||||
// companyId: 1
|
||||
}, null).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
console.log(res);
|
||||
for (let i = 0; i < res.data.data.length; i++) {
|
||||
res.data.data[i].num = res.data.data[i].num.split('.')[0]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -140,6 +140,7 @@ import { basePath } from '../../public';
|
|||
that.cartList = that.list.filter((item) => {
|
||||
return item.checked == true
|
||||
})
|
||||
console.log(this.cartList);
|
||||
if (that.cartList.length == 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
|
|
@ -147,19 +148,24 @@ import { basePath } from '../../public';
|
|||
})
|
||||
} else {
|
||||
let subList = []
|
||||
let typeList = []
|
||||
for (let i = 0; i < that.cartList.length; i++) {
|
||||
subList.push(that.cartList[i].offNum)
|
||||
}
|
||||
for (let i = 0; i < that.cartList.length; i++) {
|
||||
typeList.push(that.cartList[i].typeId)
|
||||
}
|
||||
subList = subList.join(',')
|
||||
console.log(subList, that.typeId);
|
||||
typeList = typeList.join(',')
|
||||
console.log(subList, typeList);
|
||||
// 提交退料清单
|
||||
that.$api.exitMaterial.subExitMaterial({
|
||||
typeId: that.typeId,
|
||||
typeId: typeList,
|
||||
num: subList
|
||||
}, null).then(res => {
|
||||
console.log(res);
|
||||
}).catch(err => {
|
||||
throw err
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
@ -172,17 +178,18 @@ import { basePath } from '../../public';
|
|||
that.$api.exitMaterial.selectMaterial({
|
||||
agreementId: params.agreeId
|
||||
}, null).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
/* for (let i = 0; i < res.data.data.length; i++) {
|
||||
for (let i = 0; i < res.data.data.length; i++) {
|
||||
res.data.data[i].num = Number(res.data.data[i].num.split('.')[0])
|
||||
res.data.data[i].offNum = 1
|
||||
}
|
||||
console.log(res);
|
||||
that.list = res.data.data */
|
||||
console.log(res);
|
||||
that.list = res.data.data
|
||||
}
|
||||
}).catch(err => {
|
||||
throw err
|
||||
// throw err
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -204,6 +204,7 @@ import { basePath } from '../../public'
|
|||
let that = this
|
||||
// 获取领料出库数据
|
||||
that.$api.fetchExam.fetchExamList({}, null).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
that.fetchMaterialList = res.data.data.rows.filter((item) => {
|
||||
return item.taskStatus == 33 || item.taskStatus == 34 || item.taskStatus == 35
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
>
|
||||
<view class="popup2">
|
||||
<view class="pop-top">
|
||||
<h4>领料出库明细</h4>
|
||||
<h4>批量出库</h4>
|
||||
<uni-icons
|
||||
style="color: #AAAAAA; font-weight: bold;"
|
||||
type="closeempty"
|
||||
|
|
@ -67,13 +67,23 @@
|
|||
<span>{{ infoList.typeName }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>规格型号</h4>
|
||||
<h4>设备名称</h4>
|
||||
<span>{{ infoList.typeModelName }}</span>
|
||||
</view>
|
||||
<!-- <view>
|
||||
|
||||
<view>
|
||||
<h4>待出库数量</h4>
|
||||
<span>{{ infoList.preNum }}</span>
|
||||
</view>
|
||||
<view></view> -->
|
||||
<view>
|
||||
<h4>出库数量</h4>
|
||||
<uni-number-box v-model="multiNum" :min="1" :max="infoList.preNum"/>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="sub-btn"
|
||||
@click="multiOut"
|
||||
>
|
||||
批量出库
|
||||
</view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
|
|
@ -89,7 +99,9 @@
|
|||
],
|
||||
codeVal: '',
|
||||
manageType: '',
|
||||
infoList: ''
|
||||
infoList: '',
|
||||
multiNum: 1,
|
||||
subList: {}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
@ -113,13 +125,46 @@
|
|||
uni.scanCode({
|
||||
success: (res) => {
|
||||
console.log(res);
|
||||
uni.navigateTo({
|
||||
url: `/pages/scanOutStore/scanOutStore?code=${res.result}&typeId=${this.infoList.typeId}&num=${this.infoList.preNum}&parentId=${this.infoList.parenntId}`
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
codeOut () {
|
||||
this.closePopup1()
|
||||
console.log(this.infoList);
|
||||
uni.navigateTo({
|
||||
url: '/pages/codeOutStore/codeOutStore'
|
||||
url: `/pages/codeOutStore/codeOutStore?typeId=${this.infoList.typeId}&num=${this.infoList.preNum}&parentId=${this.infoList.parenntId}`
|
||||
})
|
||||
},
|
||||
multiOut () {
|
||||
let that = this
|
||||
that.subList = {
|
||||
parentId: that.infoList.parenntId,
|
||||
typeId: that.infoList.typeId,
|
||||
outNum: that.multiNum,
|
||||
companyId: uni.getStorageSync('userInfo').sysUser.companyId
|
||||
}
|
||||
console.log(that.subList);
|
||||
that.$api.fetchMaterialOutStore.subOutStore(that.subList, null).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.data.msg,
|
||||
success: () => {
|
||||
uni.navigateBack()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.data.msg
|
||||
})
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
@ -135,9 +180,10 @@
|
|||
that.fetchList.push(res.data.data.rows[0].leaseApplyInfoList[i].leaseApplyDetails[0])
|
||||
}
|
||||
console.log(that.fetchList);
|
||||
// that.fetchList[1].manageType = 1
|
||||
}
|
||||
}).catch(err => {
|
||||
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
@ -244,7 +290,6 @@
|
|||
view{
|
||||
margin-bottom: 25rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
h4{
|
||||
font-weight: normal;
|
||||
color: #989898;
|
||||
|
|
@ -256,5 +301,18 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
.sub-btn{
|
||||
width: 85%;
|
||||
margin: 30rpx auto;
|
||||
background-color: #3788FF;
|
||||
color: #fff;
|
||||
box-sizing: border-box;
|
||||
padding: 15rpx 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 40rpx;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ import { authPath, basePath, publicPath, systemPath } from '../../public';
|
|||
let that = this
|
||||
that.noticeList = []
|
||||
// 获取公告内容
|
||||
that.$api.index.noticeCont({}, null).then(res => {
|
||||
that.$api.index.noticeCont().then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
that.noticeList = res.data.data
|
||||
|
|
@ -144,20 +144,22 @@ import { authPath, basePath, publicPath, systemPath } from '../../public';
|
|||
console.log(err);
|
||||
})
|
||||
// 获取待办事项
|
||||
that.$api.index.waitDo({}, null).then(res => {
|
||||
that.$api.index.waitDo().then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
that.waitList = res.data.data
|
||||
}
|
||||
}).catch(err => {
|
||||
throw err
|
||||
console.log(err);
|
||||
})
|
||||
// 获取关键数据
|
||||
that.$api.index.keyData({}, null).then(res => {
|
||||
that.$api.index.keyData().then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
that.todayDatas = res.data.data
|
||||
}
|
||||
}).catch(err => {
|
||||
throw err
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,154 @@
|
|||
<template>
|
||||
<view>
|
||||
<view
|
||||
class="info-area"
|
||||
v-for="(item, index) in infoList"
|
||||
:key="index"
|
||||
v-show="infoList.length != 0"
|
||||
>
|
||||
<view>
|
||||
<h4>物品名称</h4>
|
||||
<span>{{ item.itemType }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>设备名称</h4>
|
||||
<span>{{ item.deviceType }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>设备规格</h4>
|
||||
<span>{{ item.specificationType }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>设备状态</h4>
|
||||
<span>{{ item.maStatusName }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>机具编码</h4>
|
||||
<span>{{ item.maCode }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>出库数量</h4>
|
||||
<span>1</span>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="sub-btn"
|
||||
v-show="infoList.length != 0"
|
||||
@click="outStore"
|
||||
>
|
||||
出库
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
typeId: '',
|
||||
num: '',
|
||||
parentId: '',
|
||||
infoList: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
outStore () {
|
||||
let that = this
|
||||
console.log(that.infoList);
|
||||
/* if (this.infoList.typeId != this.typeId) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '编码与机具类型不匹配!'
|
||||
})
|
||||
} else { */
|
||||
that.subList = {
|
||||
parentId: that.parentId,
|
||||
typeId: that.typeId,
|
||||
maId: that.infoList[0].maId,
|
||||
outNum: 1,
|
||||
companyId: uni.getStorageSync('userInfo').sysUser.companyId
|
||||
}
|
||||
console.log(that.subList);
|
||||
// }
|
||||
// 提交编码出库申请
|
||||
that.$api.fetchMaterialOutStore.subOutStore(that.subList, null).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.data.msg,
|
||||
success: () => {
|
||||
uni.navigateBack()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.data.msg
|
||||
})
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
},
|
||||
onLoad(params) {
|
||||
let that = this
|
||||
console.log(params);
|
||||
this.typeId = params.typeId
|
||||
this.num = params.num
|
||||
this.parentId = params.parentId
|
||||
// 根据扫出的编码查询设备
|
||||
that.$api.fetchMaterialOutStore.fetchInfoByCode({
|
||||
maCode: params.code
|
||||
}, null).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.rows.length == 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '未查询到设备数据!'
|
||||
})
|
||||
} else {
|
||||
that.infoList = res.data.rows
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.info-area{
|
||||
width: 90%;
|
||||
margin: 40rpx auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
view{
|
||||
margin-bottom: 25rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
h4{
|
||||
width: 35%;
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
color: #989898;
|
||||
}
|
||||
span{
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.sub-btn{
|
||||
width: 80%;
|
||||
margin: 30rpx auto;
|
||||
box-sizing: border-box;
|
||||
padding: 15rpx 0;
|
||||
background-color: #0189FC;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 40rpx;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -0,0 +1,164 @@
|
|||
<template>
|
||||
<view>
|
||||
<view
|
||||
class="info-area"
|
||||
v-for="(item, index) in infoList"
|
||||
:key="index"
|
||||
v-show="infoList.length != 0"
|
||||
>
|
||||
<view>
|
||||
<h4>物品名称</h4>
|
||||
<span>{{ item.itemType }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>设备名称</h4>
|
||||
<span>{{ item.deviceType }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>设备规格</h4>
|
||||
<span>{{ item.specificationType }}</span>
|
||||
</view>
|
||||
<view style="flex-direction: column;">
|
||||
<h4 style="margin-bottom: 30rpx;">待修状态</h4>
|
||||
<uni-data-checkbox v-model="fixVal" :localdata="fixRange"></uni-data-checkbox>
|
||||
</view>
|
||||
<!-- <view>
|
||||
<h4>设备状态</h4>
|
||||
<span>{{ item.maStatusName }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>机具编码</h4>
|
||||
<span>{{ item.maCode }}</span>
|
||||
</view>
|
||||
<view>
|
||||
<h4>出库数量</h4>
|
||||
<span>1</span>
|
||||
</view> -->
|
||||
</view>
|
||||
<view
|
||||
class="sub-btn"
|
||||
v-show="infoList.length != 0"
|
||||
@click="outStore"
|
||||
>
|
||||
接收
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
typeId: '',
|
||||
num: '',
|
||||
parentId: '',
|
||||
infoList: '',
|
||||
fixVal: '',
|
||||
fixRange: [
|
||||
{ text: '合格', value: '0' },
|
||||
{ text: '待修', value: '1' },
|
||||
{ text: '待报废', value: '2' }
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
outStore () {
|
||||
let that = this
|
||||
console.log(that.infoList);
|
||||
/* if (this.infoList.typeId != this.typeId) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '编码与机具类型不匹配!'
|
||||
})
|
||||
} else { */
|
||||
that.subList = {
|
||||
parentId: that.parentId,
|
||||
typeId: that.typeId,
|
||||
maId: that.infoList[0].maId,
|
||||
outNum: 1,
|
||||
companyId: uni.getStorageSync('userInfo').sysUser.companyId
|
||||
}
|
||||
console.log(that.subList);
|
||||
// }
|
||||
// 提交编码出库申请
|
||||
that.$api.fetchMaterialOutStore.subOutStore(that.subList, null).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.code == 200) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.data.msg,
|
||||
success: () => {
|
||||
uni.navigateBack()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.data.msg
|
||||
})
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
},
|
||||
onLoad(params) {
|
||||
let that = this
|
||||
console.log(params);
|
||||
this.typeId = params.typeId
|
||||
this.num = params.num
|
||||
this.parentId = params.parentId
|
||||
// 根据扫出的编码查询设备
|
||||
that.$api.fetchMaterialOutStore.fetchInfoByCode({
|
||||
maCode: params.code
|
||||
}, null).then(res => {
|
||||
console.log(res);
|
||||
if (res.data.rows.length == 0) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '未查询到设备数据!'
|
||||
})
|
||||
} else {
|
||||
that.infoList = res.data.rows
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.info-area{
|
||||
width: 90%;
|
||||
margin: 40rpx auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
view{
|
||||
margin-bottom: 25rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
h4{
|
||||
width: 35%;
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
color: #989898;
|
||||
}
|
||||
span{
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.sub-btn{
|
||||
width: 80%;
|
||||
margin: 30rpx auto;
|
||||
box-sizing: border-box;
|
||||
padding: 15rpx 0;
|
||||
background-color: #0189FC;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 40rpx;
|
||||
}
|
||||
</style>
|
||||
28
router.js
28
router.js
|
|
@ -237,6 +237,34 @@ const router = createRouter({
|
|||
"meta": {
|
||||
"needAuth": "true"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "/pages/scanOutStore/scanOutStore",
|
||||
"name": 'scanOutStore',
|
||||
"meta": {
|
||||
"needAuth": "true"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "/pages/backMaterialReceiveDetail/backMaterialReceiveDetail",
|
||||
"name": 'backMaterialReceiveDetail',
|
||||
"meta": {
|
||||
"needAuth": "true"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "/pages/scanReceive/scanReceive",
|
||||
"name": 'scanReceive',
|
||||
"meta": {
|
||||
"needAuth": "true"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "/pages/codeReceive/codeReceive",
|
||||
"name": 'codeReceive',
|
||||
"meta": {
|
||||
"needAuth": "true"
|
||||
}
|
||||
}
|
||||
]
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
var isReady=false;var onReadyCallbacks=[];
|
||||
var isServiceReady=false;var onServiceReadyCallbacks=[];
|
||||
var __uniConfig = {"pages":["pages/index/index","pages/user/user","pages/workSpace/workSpace","pages/login/login","pages/fetchMaterial/fetchMaterial","pages/exitMaterial/exitMaterial","pages/workFetchMaterial/workFetchMaterial","pages/workExitMaterial/workExitMaterial","pages/deviceDetail/deviceDetail","pages/orderCart/orderCart","pages/fetchExam/fetchExam","pages/exitMaterialDetail/exitMaterialDetail","pages/fetchMaterialDetail/fetchMaterialDetail","pages/exitExam/exitExam","pages/newInStore/newInStore","pages/newBuyDetail/newBuyDetail","pages/newInAfterScan/newInAfterScan","pages/fix/fix","pages/fixDetail/fixDetail","pages/innerFix/innerFix","pages/returnFix/returnFix","pages/waitCrash/waitCrash","pages/backMaterialInStore/backMaterialInStore","pages/backMaterialInStoreDetail/backMaterialInStoreDetail","pages/repairTestInStore/repairTestInStore","pages/fetchMaterialOutStore/fetchMaterialOutStore","pages/backMaterialReceive/backMaterialReceive","pages/repairTestInStoreDetail/repairTestInStoreDetail","pages/exitMaterialSelect/exitMaterialSelect","pages/exitExamDetail/exitExamDetail","pages/crashExam/crashExam","pages/testExam/testExam","pages/fetchMaterialOutStoreDetail/fetchMaterialOutStoreDetail","pages/codeOutStore/codeOutStore"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"tabBar":{"color":"#2c2c2c","selectedColor":"#1296db","borderStyle":"black","backgroundColor":"#FFFFFF","iconWidth":"24px","list":[{"pagePath":"pages/index/index","iconPath":"static/home.png","selectedIconPath":"static/homeSelected.png","text":"首页"},{"pagePath":"pages/workSpace/workSpace","iconPath":"static/workSpace.png","selectedIconPath":"static/workSpaceSelected.png","text":"工作台"},{"pagePath":"pages/user/user","iconPath":"static/my.png","selectedIconPath":"static/mySelected.png","text":"个人中心"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"SmartStorage","compilerVersion":"3.8.7","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
|
||||
var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"首页"}},{"path":"/pages/user/user","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"个人中心"}},{"path":"/pages/workSpace/workSpace","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"工作台"}},{"path":"/pages/login/login","meta":{},"window":{"navigationBarTitleText":"登录"}},{"path":"/pages/fetchMaterial/fetchMaterial","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/exitMaterial/exitMaterial","meta":{},"window":{"navigationBarTitleText":"退料申请","titleNView":{"buttons":[{"float":"right","text":"新增","fontSize":"16px","onclick":"Function"}]}}},{"path":"/pages/workFetchMaterial/workFetchMaterial","meta":{},"window":{"navigationBarTitleText":"工器具领料申请"}},{"path":"/pages/workExitMaterial/workExitMaterial","meta":{},"window":{"navigationBarTitleText":"工器具退料申请"}},{"path":"/pages/deviceDetail/deviceDetail","meta":{},"window":{"navigationBarTitleText":"机具详情"}},{"path":"/pages/orderCart/orderCart","meta":{},"window":{"navigationBarTitleText":"预约车","titleNView":{"buttons":[{"float":"right","text":"删除","fontSize":"16px","onclick":"Function"}]}}},{"path":"/pages/fetchExam/fetchExam","meta":{},"window":{"navigationBarTitleText":"领料审批"}},{"path":"/pages/exitMaterialDetail/exitMaterialDetail","meta":{},"window":{"navigationBarTitleText":"退料申请明细"}},{"path":"/pages/fetchMaterialDetail/fetchMaterialDetail","meta":{},"window":{"navigationBarTitleText":"领料明细"}},{"path":"/pages/exitExam/exitExam","meta":{},"window":{"navigationBarTitleText":"退料审批"}},{"path":"/pages/newInStore/newInStore","meta":{},"window":{"navigationBarTitleText":"新购入库"}},{"path":"/pages/newBuyDetail/newBuyDetail","meta":{},"window":{"navigationBarTitleText":"新购明细"}},{"path":"/pages/newInAfterScan/newInAfterScan","meta":{},"window":{"navigationBarTitleText":"新购机具详情"}},{"path":"/pages/fix/fix","meta":{},"window":{"navigationBarTitleText":"维修"}},{"path":"/pages/fixDetail/fixDetail","meta":{},"window":{"navigationBarTitleText":"维修明细"}},{"path":"/pages/innerFix/innerFix","meta":{},"window":{"navigationBarTitleText":"内部维修"}},{"path":"/pages/returnFix/returnFix","meta":{},"window":{"navigationBarTitleText":"返厂维修"}},{"path":"/pages/waitCrash/waitCrash","meta":{},"window":{"navigationBarTitleText":"待报废"}},{"path":"/pages/backMaterialInStore/backMaterialInStore","meta":{},"window":{"navigationBarTitleText":"退料入库"}},{"path":"/pages/backMaterialInStoreDetail/backMaterialInStoreDetail","meta":{},"window":{"navigationBarTitleText":"退料入库明细"}},{"path":"/pages/repairTestInStore/repairTestInStore","meta":{},"window":{"navigationBarTitleText":"修试入库"}},{"path":"/pages/fetchMaterialOutStore/fetchMaterialOutStore","meta":{},"window":{"navigationBarTitleText":"领料出库"}},{"path":"/pages/backMaterialReceive/backMaterialReceive","meta":{},"window":{"navigationBarTitleText":"退料接收"}},{"path":"/pages/repairTestInStoreDetail/repairTestInStoreDetail","meta":{},"window":{"navigationBarTitleText":"修试入库明细"}},{"path":"/pages/exitMaterialSelect/exitMaterialSelect","meta":{},"window":{"navigationBarTitleText":"退料物料选择"}},{"path":"/pages/exitExamDetail/exitExamDetail","meta":{},"window":{"navigationBarTitleText":"退料明细"}},{"path":"/pages/crashExam/crashExam","meta":{},"window":{"navigationBarTitleText":"报废审核"}},{"path":"/pages/testExam/testExam","meta":{},"window":{"navigationBarTitleText":"试验检验审核"}},{"path":"/pages/fetchMaterialOutStoreDetail/fetchMaterialOutStoreDetail","meta":{},"window":{"navigationBarTitleText":"领料出库明细"}},{"path":"/pages/codeOutStore/codeOutStore","meta":{},"window":{"navigationBarTitleText":"编码出库"}}];
|
||||
var __uniConfig = {"pages":["pages/index/index","pages/user/user","pages/workSpace/workSpace","pages/login/login","pages/fetchMaterial/fetchMaterial","pages/exitMaterial/exitMaterial","pages/workFetchMaterial/workFetchMaterial","pages/workExitMaterial/workExitMaterial","pages/deviceDetail/deviceDetail","pages/orderCart/orderCart","pages/fetchExam/fetchExam","pages/exitMaterialDetail/exitMaterialDetail","pages/fetchMaterialDetail/fetchMaterialDetail","pages/exitExam/exitExam","pages/newInStore/newInStore","pages/newBuyDetail/newBuyDetail","pages/newInAfterScan/newInAfterScan","pages/fix/fix","pages/fixDetail/fixDetail","pages/innerFix/innerFix","pages/returnFix/returnFix","pages/waitCrash/waitCrash","pages/backMaterialInStore/backMaterialInStore","pages/backMaterialInStoreDetail/backMaterialInStoreDetail","pages/repairTestInStore/repairTestInStore","pages/fetchMaterialOutStore/fetchMaterialOutStore","pages/backMaterialReceive/backMaterialReceive","pages/repairTestInStoreDetail/repairTestInStoreDetail","pages/exitMaterialSelect/exitMaterialSelect","pages/exitExamDetail/exitExamDetail","pages/crashExam/crashExam","pages/testExam/testExam","pages/fetchMaterialOutStoreDetail/fetchMaterialOutStoreDetail","pages/codeOutStore/codeOutStore","pages/scanOutStore/scanOutStore","pages/backMaterialReceiveDetail/backMaterialReceiveDetail","pages/scanReceive/scanReceive","pages/codeReceive/codeReceive"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"uni-app","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"tabBar":{"color":"#2c2c2c","selectedColor":"#1296db","borderStyle":"black","backgroundColor":"#FFFFFF","iconWidth":"24px","list":[{"pagePath":"pages/index/index","iconPath":"static/home.png","selectedIconPath":"static/homeSelected.png","text":"首页"},{"pagePath":"pages/workSpace/workSpace","iconPath":"static/workSpace.png","selectedIconPath":"static/workSpaceSelected.png","text":"工作台"},{"pagePath":"pages/user/user","iconPath":"static/my.png","selectedIconPath":"static/mySelected.png","text":"个人中心"}]},"darkmode":false,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":false},"appname":"SmartStorage","compilerVersion":"3.8.7","entryPagePath":"pages/index/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
|
||||
var __uniRoutes = [{"path":"/pages/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"首页"}},{"path":"/pages/user/user","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"个人中心"}},{"path":"/pages/workSpace/workSpace","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"工作台"}},{"path":"/pages/login/login","meta":{},"window":{"navigationBarTitleText":"登录"}},{"path":"/pages/fetchMaterial/fetchMaterial","meta":{},"window":{"navigationStyle":"custom"}},{"path":"/pages/exitMaterial/exitMaterial","meta":{},"window":{"navigationBarTitleText":"退料申请","titleNView":{"buttons":[{"float":"right","text":"新增","fontSize":"16px","onclick":"Function"}]}}},{"path":"/pages/workFetchMaterial/workFetchMaterial","meta":{},"window":{"navigationBarTitleText":"工器具领料申请"}},{"path":"/pages/workExitMaterial/workExitMaterial","meta":{},"window":{"navigationBarTitleText":"工器具退料申请"}},{"path":"/pages/deviceDetail/deviceDetail","meta":{},"window":{"navigationBarTitleText":"机具详情"}},{"path":"/pages/orderCart/orderCart","meta":{},"window":{"navigationBarTitleText":"预约车","titleNView":{"buttons":[{"float":"right","text":"删除","fontSize":"16px","onclick":"Function"}]}}},{"path":"/pages/fetchExam/fetchExam","meta":{},"window":{"navigationBarTitleText":"领料审批"}},{"path":"/pages/exitMaterialDetail/exitMaterialDetail","meta":{},"window":{"navigationBarTitleText":"退料申请明细"}},{"path":"/pages/fetchMaterialDetail/fetchMaterialDetail","meta":{},"window":{"navigationBarTitleText":"领料明细"}},{"path":"/pages/exitExam/exitExam","meta":{},"window":{"navigationBarTitleText":"退料审批"}},{"path":"/pages/newInStore/newInStore","meta":{},"window":{"navigationBarTitleText":"新购入库"}},{"path":"/pages/newBuyDetail/newBuyDetail","meta":{},"window":{"navigationBarTitleText":"新购明细"}},{"path":"/pages/newInAfterScan/newInAfterScan","meta":{},"window":{"navigationBarTitleText":"新购机具详情"}},{"path":"/pages/fix/fix","meta":{},"window":{"navigationBarTitleText":"维修"}},{"path":"/pages/fixDetail/fixDetail","meta":{},"window":{"navigationBarTitleText":"维修明细"}},{"path":"/pages/innerFix/innerFix","meta":{},"window":{"navigationBarTitleText":"内部维修"}},{"path":"/pages/returnFix/returnFix","meta":{},"window":{"navigationBarTitleText":"返厂维修"}},{"path":"/pages/waitCrash/waitCrash","meta":{},"window":{"navigationBarTitleText":"待报废"}},{"path":"/pages/backMaterialInStore/backMaterialInStore","meta":{},"window":{"navigationBarTitleText":"退料入库"}},{"path":"/pages/backMaterialInStoreDetail/backMaterialInStoreDetail","meta":{},"window":{"navigationBarTitleText":"退料入库明细"}},{"path":"/pages/repairTestInStore/repairTestInStore","meta":{},"window":{"navigationBarTitleText":"修试入库"}},{"path":"/pages/fetchMaterialOutStore/fetchMaterialOutStore","meta":{},"window":{"navigationBarTitleText":"领料出库"}},{"path":"/pages/backMaterialReceive/backMaterialReceive","meta":{},"window":{"navigationBarTitleText":"退料接收"}},{"path":"/pages/repairTestInStoreDetail/repairTestInStoreDetail","meta":{},"window":{"navigationBarTitleText":"修试入库明细"}},{"path":"/pages/exitMaterialSelect/exitMaterialSelect","meta":{},"window":{"navigationBarTitleText":"退料物料选择"}},{"path":"/pages/exitExamDetail/exitExamDetail","meta":{},"window":{"navigationBarTitleText":"退料明细"}},{"path":"/pages/crashExam/crashExam","meta":{},"window":{"navigationBarTitleText":"报废审核"}},{"path":"/pages/testExam/testExam","meta":{},"window":{"navigationBarTitleText":"试验检验审核"}},{"path":"/pages/fetchMaterialOutStoreDetail/fetchMaterialOutStoreDetail","meta":{},"window":{"navigationBarTitleText":"领料出库明细"}},{"path":"/pages/codeOutStore/codeOutStore","meta":{},"window":{"navigationBarTitleText":"编码出库"}},{"path":"/pages/scanOutStore/scanOutStore","meta":{},"window":{"navigationBarTitleText":"二维码出库"}},{"path":"/pages/backMaterialReceiveDetail/backMaterialReceiveDetail","meta":{},"window":{"navigationBarTitleText":"退料接收明细"}},{"path":"/pages/scanReceive/scanReceive","meta":{},"window":{"navigationBarTitleText":"二维码接收"}},{"path":"/pages/codeReceive/codeReceive","meta":{},"window":{"navigationBarTitleText":"编码接收"}}];
|
||||
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
|
||||
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
|
||||
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue