bug修复
This commit is contained in:
parent
00c37c94bf
commit
eadf6e799a
|
|
@ -816,7 +816,7 @@ const indexScan = {
|
||||||
|
|
||||||
const preCrashExam = {
|
const preCrashExam = {
|
||||||
async fetchPreCrashList(data = {}, header = {}) {
|
async fetchPreCrashList(data = {}, header = {}) {
|
||||||
return await Http.post(
|
return await Http.get(
|
||||||
HttpConfig.materialPath,
|
HttpConfig.materialPath,
|
||||||
HttpConfig.serviceUrl.preCrashExam.fetchPreCrashList,
|
HttpConfig.serviceUrl.preCrashExam.fetchPreCrashList,
|
||||||
data,
|
data,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
class HttpConfig {
|
class HttpConfig {
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
baseUrl = "/api";
|
// baseUrl = "/api";
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// baseUrl = "http://192.168.0.56:21624";
|
// baseUrl = "http://192.168.0.56:21624";
|
||||||
|
|
|
||||||
|
|
@ -244,7 +244,7 @@ import { basePath } from '../../public'
|
||||||
// 获取退料接收列表
|
// 获取退料接收列表
|
||||||
that.$api.backMaterialReceive.backMaterialReceiveList({
|
that.$api.backMaterialReceive.backMaterialReceiveList({
|
||||||
companyId: uni.getStorageSync('userInfo').sysUser.companyId,
|
companyId: uni.getStorageSync('userInfo').sysUser.companyId,
|
||||||
flag: 1,
|
flag: 0,
|
||||||
keyWord,
|
keyWord,
|
||||||
backSource: 2,
|
backSource: 2,
|
||||||
pageNum: that.pageNum,
|
pageNum: that.pageNum,
|
||||||
|
|
@ -258,10 +258,11 @@ import { basePath } from '../../public'
|
||||||
title: '未查询到相关数据!'
|
title: '未查询到相关数据!'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
that.pageTotal = res.data.data.total
|
that.fetchMaterialList = res.data.data
|
||||||
that.fetchMaterialList = [...that.fetchMaterialList, ...res.data.data.rows]
|
// that.pageTotal = res.data.data.total
|
||||||
console.log("fetchMaterialList",that.fetchMaterialList)
|
// that.fetchMaterialList = [...that.fetchMaterialList, ...res.data.data.rows]
|
||||||
}
|
console.log('🚀 ~ getList ~ that.fetchMaterialList:', that.fetchMaterialList)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ import { basePath } from '../../public';
|
||||||
leftNum: '',
|
leftNum: '',
|
||||||
companyId: '',
|
companyId: '',
|
||||||
status: '',
|
status: '',
|
||||||
baseUrl: 'http://112.29.103.165:21624/dev-api/system'
|
baseUrl: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -157,6 +157,7 @@ import { basePath } from '../../public';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(params) {
|
onLoad(params) {
|
||||||
|
this.baseUrl = this.$api.url
|
||||||
let that = this
|
let that = this
|
||||||
console.log(params);
|
console.log(params);
|
||||||
that.deviceName = params.name
|
that.deviceName = params.name
|
||||||
|
|
@ -170,7 +171,9 @@ import { basePath } from '../../public';
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
that.companyId = res.data.data[0].companyId
|
that.companyId = res.data.data[0].companyId
|
||||||
for (let i = 0; i < res.data.data.length; i++) {
|
for (let i = 0; i < res.data.data.length; i++) {
|
||||||
that.bgList.push(res.data.data[i].photoUrl)
|
if (res.data.data[i].photoUrl) {
|
||||||
|
that.bgList.push(res.data.data[i].photoUrl)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
that.specRange = res.data.data.map((item,index) => {
|
that.specRange = res.data.data.map((item,index) => {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -332,6 +332,10 @@ import { basePath } from '../../public'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
}).catch(err => {
|
||||||
|
console.log(err);
|
||||||
|
that.showLoading = false
|
||||||
|
that.btnDisabled = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
seeDetail (id, typeId) {
|
seeDetail (id, typeId) {
|
||||||
|
|
|
||||||
|
|
@ -17,17 +17,17 @@
|
||||||
<checkbox :checked="fetch.checked" />
|
<checkbox :checked="fetch.checked" />
|
||||||
</checkbox-group> -->
|
</checkbox-group> -->
|
||||||
<view class="upper-lef">
|
<view class="upper-lef">
|
||||||
{{ fetch.createBy.slice(0, 1) }}
|
{{ (fetch.applyFor || '-').slice(0, 1) }}
|
||||||
</view>
|
</view>
|
||||||
<view class="upper-rig">
|
<view class="upper-rig">
|
||||||
<h4 style="font-size: 16px;">{{ fetch.createBy }}</h4>
|
<h4 style="font-size: 16px;">{{ fetch.applyFor }}</h4>
|
||||||
<h4 style="color: #989898;">{{ fetch.phoneNumber }}</h4>
|
<h4 style="color: #989898;">{{ fetch.phoneNumber }}</h4>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="fetch-lower">
|
<view class="fetch-lower">
|
||||||
<view>
|
<view>
|
||||||
<span>领料申请单位</span>
|
<span>领料申请单位</span>
|
||||||
<h4>{{ fetch.deptName }}</h4>
|
<h4>{{ fetch.unitName }}</h4>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<span>领料单号</span>
|
<span>领料单号</span>
|
||||||
|
|
|
||||||
|
|
@ -176,6 +176,7 @@
|
||||||
onShow() {
|
onShow() {
|
||||||
let that = this
|
let that = this
|
||||||
that.photoUrl = that.$api.url
|
that.photoUrl = that.$api.url
|
||||||
|
console.log('🚀 ~ onShow ~ that.photoUrl:', that.photoUrl)
|
||||||
console.log(that.photoUrl);
|
console.log(that.photoUrl);
|
||||||
/* if (uni.getStorageSync('goodList').length == 0 || !uni.getStorageSync('goodList')) {
|
/* if (uni.getStorageSync('goodList').length == 0 || !uni.getStorageSync('goodList')) {
|
||||||
uni.setStorageSync('goodList', [])
|
uni.setStorageSync('goodList', [])
|
||||||
|
|
|
||||||
|
|
@ -79,24 +79,30 @@
|
||||||
</uni-icons>
|
</uni-icons>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-area">
|
<view class="info-area">
|
||||||
<view>
|
<view class="view">
|
||||||
<h4>类型名称</h4>
|
<h4>类型名称</h4>
|
||||||
<span>{{ infoList.typeName }}</span>
|
<span>{{ infoList.typeName }}</span>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view class="view">
|
||||||
<h4>设备名称</h4>
|
<h4>设备名称</h4>
|
||||||
<span>{{ infoList.typeModelName }}</span>
|
<span>{{ infoList.typeModelName }}</span>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view class="view">
|
||||||
<h4>待出库数量</h4>
|
<h4>待出库数量</h4>
|
||||||
<span>{{ infoList.outNum }}</span>
|
<span>{{ infoList.outNum }}</span>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view class="view">
|
||||||
<h4><span style="color: red;">*</span>车牌号</h4>
|
<h4>是否有车牌号</h4>
|
||||||
|
<u-switch v-model="isCarCode" size="22" @change="() => isCarCode ? carCode = '' : carCode = '无车牌'"></u-switch>
|
||||||
|
</view>
|
||||||
|
<view class="view">
|
||||||
|
<h4><span v-if="isCarCode" style="color: red;">*</span>车牌号</h4>
|
||||||
<!-- <uni-number-box v-model="multiNum" @change="multiNumChange" :min="0" :max="infoList.outNum"/> -->
|
<!-- <uni-number-box v-model="multiNum" @change="multiNumChange" :min="0" :max="infoList.outNum"/> -->
|
||||||
<uni-easyinput
|
<uni-easyinput
|
||||||
placeholder="请输入车牌号"
|
placeholder="请输入车牌号"
|
||||||
v-model="carCode"
|
v-model="carCode"
|
||||||
|
:disabled="!isCarCode"
|
||||||
|
@blur="checkCarCode"
|
||||||
>
|
>
|
||||||
</uni-easyinput>
|
</uni-easyinput>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -143,6 +149,7 @@
|
||||||
infoList: '',
|
infoList: '',
|
||||||
multiNum: 1,
|
multiNum: 1,
|
||||||
carCode: '',
|
carCode: '',
|
||||||
|
isCarCode: true,
|
||||||
subList: {},
|
subList: {},
|
||||||
taskId:null,
|
taskId:null,
|
||||||
taskStatus: '',
|
taskStatus: '',
|
||||||
|
|
@ -161,6 +168,9 @@
|
||||||
this.infoList = list
|
this.infoList = list
|
||||||
this.rfidNum = list.outNum
|
this.rfidNum = list.outNum
|
||||||
this.typeId = list.typeId
|
this.typeId = list.typeId
|
||||||
|
this.isCarCode = true
|
||||||
|
this.carCode = ''
|
||||||
|
this.multiNum = 1
|
||||||
// this.transMaCode = list.maCode
|
// this.transMaCode = list.maCode
|
||||||
console.log(this.infoList.manageType, this.infoList);
|
console.log(this.infoList.manageType, this.infoList);
|
||||||
if (this.taskStatus == 33 || this.taskStatus == 34) {
|
if (this.taskStatus == 33 || this.taskStatus == 34) {
|
||||||
|
|
@ -240,11 +250,23 @@
|
||||||
url: `/pages/rfidOutStore/rfidOutStore?waitOut=${this.rfidNum}&typeId=${this.typeId}&parentId=${this.infoList.parentId}`
|
url: `/pages/rfidOutStore/rfidOutStore?waitOut=${this.rfidNum}&typeId=${this.typeId}&parentId=${this.infoList.parentId}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 检查车牌号
|
||||||
|
checkCarCode () {
|
||||||
|
if (this.carCode) {
|
||||||
|
const reg = /^[\u4E00-\u9FA5]{1}[A-Z]{1}[A-Z0-9]{5,6}$/
|
||||||
|
if (!reg.test(this.carCode)) {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '车牌号格式不正确!'
|
||||||
|
})
|
||||||
|
this.carCode = this.$set(this, 'carCode', '')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
multiOut () {
|
multiOut () {
|
||||||
let that = this
|
let that = this
|
||||||
let posiIntReg = /^\+?[1-9]\d*$/
|
let posiIntReg = /^\+?[1-9]\d*$/
|
||||||
// carCode 车牌号必填
|
if (!that.carCode && that.isCarCode) {
|
||||||
if (!that.carCode) {
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: '请输入车牌号!'
|
title: '请输入车牌号!'
|
||||||
|
|
@ -498,9 +520,10 @@
|
||||||
margin: 30rpx auto;
|
margin: 30rpx auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
view{
|
.view{
|
||||||
margin-bottom: 15rpx;
|
margin-bottom: 15rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
h4{
|
h4{
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
color: #989898;
|
color: #989898;
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<checkbox :checked="fetch.checked" />
|
<checkbox :checked="fetch.checked" />
|
||||||
</checkbox-group>
|
</checkbox-group>
|
||||||
<view class="upper-lef">
|
<view class="upper-lef">
|
||||||
{{ fetch.createName.slice(0, 1) }}
|
{{ (fetch.createName || '-').slice(0, 1) }}
|
||||||
</view>
|
</view>
|
||||||
<view class="upper-rig">
|
<view class="upper-rig">
|
||||||
<h4 style="font-size: 16px;">{{ fetch.createName }}</h4>
|
<h4 style="font-size: 16px;">{{ fetch.createName }}</h4>
|
||||||
|
|
|
||||||
|
|
@ -368,8 +368,8 @@
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log("新购明细----", res);
|
console.log("新购明细----", res);
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
that.pageTotal = res.data.total;
|
that.pageTotal = res.data.data.total;
|
||||||
res.data.rows.forEach((item) => {
|
res.data.data.rows.forEach((item) => {
|
||||||
if (item.status == "3" || item.status == "0")
|
if (item.status == "3" || item.status == "0")
|
||||||
item.checked = false;
|
item.checked = false;
|
||||||
switch (item.status) {
|
switch (item.status) {
|
||||||
|
|
@ -384,7 +384,7 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
that.list = [...that.list, ...res.data.rows];
|
that.list = [...that.list, ...res.data.data.rows];
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: "none",
|
icon: "none",
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@
|
||||||
<checkbox :checked="item.checked" />
|
<checkbox :checked="item.checked" />
|
||||||
</checkbox-group>
|
</checkbox-group>
|
||||||
<view class="details">
|
<view class="details">
|
||||||
<view class="img">
|
<!-- <view class="img">
|
||||||
<image :src="item.photoUrl"></image>
|
<image :src="item.photoUrl"></image>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="text">
|
<view class="text">
|
||||||
<text>{{item.parentName}}</text>
|
<text>{{item.parentName}}</text>
|
||||||
<text>规格:{{item.typeName}}</text>
|
<text>规格:{{item.typeName}}</text>
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
res.data.rows.forEach(item => {
|
res.data.data.rows.forEach(item => {
|
||||||
switch (item.status) {
|
switch (item.status) {
|
||||||
case '0':
|
case '0':
|
||||||
item.taskMark = '待审核'
|
item.taskMark = '待审核'
|
||||||
|
|
@ -100,7 +100,7 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
that.detailList = res.data.rows
|
that.detailList = res.data.data.rows
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
|
|
||||||
|
|
@ -73,16 +73,16 @@
|
||||||
"*:*:*",
|
"*:*:*",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
name: "退料审批",
|
// name: "退料审批",
|
||||||
pic: "/static/exitExam.png",
|
// pic: "/static/exitExam.png",
|
||||||
url: "exitExam",
|
// url: "exitExam",
|
||||||
isShow: [
|
// isShow: [
|
||||||
"return:auditing:auditing",
|
// "return:auditing:auditing",
|
||||||
"return:auditing:auditing:batch",
|
// "return:auditing:auditing:batch",
|
||||||
"*:*:*",
|
// "*:*:*",
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
name: "RFID绑定",
|
name: "RFID绑定",
|
||||||
pic: "/static/rfidBinding.png",
|
pic: "/static/rfidBinding.png",
|
||||||
|
|
@ -206,6 +206,7 @@
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
console.log('🚀 ~ jumpUrl ~ else:')
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/${path}/${path}`,
|
url: `/pages/${path}/${path}`,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue