7.30宁夏提交
This commit is contained in:
parent
dd420cfd53
commit
4479ab95f8
|
|
@ -734,8 +734,8 @@ const authManage = {
|
||||||
|
|
||||||
const searchProjUsing = {
|
const searchProjUsing = {
|
||||||
async fetchProjUsingList(data = {}, header = {}) {
|
async fetchProjUsingList(data = {}, header = {}) {
|
||||||
return await Http.post(
|
return await Http.get(
|
||||||
HttpConfig.basePath,
|
HttpConfig.materialPath,
|
||||||
HttpConfig.serviceUrl.searchProjUsing.fetchProjUsingList,
|
HttpConfig.serviceUrl.searchProjUsing.fetchProjUsingList,
|
||||||
data,
|
data,
|
||||||
header
|
header
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ class HttpConfig {
|
||||||
subDel: '/appMenu/delMenuById', // 提交删除模块
|
subDel: '/appMenu/delMenuById', // 提交删除模块
|
||||||
},
|
},
|
||||||
searchProjUsing: {
|
searchProjUsing: {
|
||||||
fetchProjUsingList: '/leaseOutDetails/proUseRecord', // 获取工程在用列表
|
fetchProjUsingList: '/projUsingRecord/getProjUsingRecordList', // 获取工程在用列表
|
||||||
},
|
},
|
||||||
searchFetchRecord: {
|
searchFetchRecord: {
|
||||||
fetchRecordList: '/leaseOutDetails/leaseOutRecord', // 获取领用记录列表
|
fetchRecordList: '/leaseOutDetails/leaseOutRecord', // 获取领用记录列表
|
||||||
|
|
@ -166,7 +166,7 @@ class HttpConfig {
|
||||||
},
|
},
|
||||||
preCrashExam: {
|
preCrashExam: {
|
||||||
fetchPreCrashList: '/scrap/getScrapApplyList', //获取预报废审核列表
|
fetchPreCrashList: '/scrap/getScrapApplyList', //获取预报废审核列表
|
||||||
fetchPreCrashDetail: '/scrap/getScrapAuditListApp', //获取预报废审核列表详情
|
fetchPreCrashDetail: '/scrap/getScrapRefuseList', //获取预报废审核列表详情
|
||||||
submitPreExam: '/scrap/forecastWasteAudit', //提交审核
|
submitPreExam: '/scrap/forecastWasteAudit', //提交审核
|
||||||
},
|
},
|
||||||
preCrashList: {
|
preCrashList: {
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
"name" : "智慧仓储",
|
"name" : "智慧仓储",
|
||||||
"appid" : "__UNI__9D122E1",
|
"appid" : "__UNI__9D122E1",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.1.5",
|
"versionName" : "1.1.6",
|
||||||
"versionCode" : 115,
|
"versionCode" : 116,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|
@ -44,7 +44,8 @@
|
||||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||||
]
|
],
|
||||||
|
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
|
||||||
},
|
},
|
||||||
/* ios打包配置 */
|
/* ios打包配置 */
|
||||||
"ios" : {
|
"ios" : {
|
||||||
|
|
|
||||||
13
package.json
13
package.json
|
|
@ -3,5 +3,16 @@
|
||||||
"qs": "^6.11.2",
|
"qs": "^6.11.2",
|
||||||
"uni-read-pages": "^1.0.5",
|
"uni-read-pages": "^1.0.5",
|
||||||
"uni-simple-router": "^2.0.8-beta.4"
|
"uni-simple-router": "^2.0.8-beta.4"
|
||||||
}
|
},
|
||||||
|
"name": "smartstorage",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"main": "main.js",
|
||||||
|
"devDependencies": {},
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -166,27 +166,41 @@ import { basePath } from '../../public';
|
||||||
companyId: item['companyId']
|
companyId: item['companyId']
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log(that.submitList);
|
|
||||||
// 提交退料清单
|
// 提交退料清单
|
||||||
that.$api.exitMaterial.subExitMaterial(that.submitList).then(res => {
|
let setArr = []
|
||||||
console.log(res);
|
that.submitList.backApplyDetails.forEach(list => {
|
||||||
if (res.data.code == 200) {
|
setArr.push(list.companyId)
|
||||||
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);
|
|
||||||
})
|
})
|
||||||
|
let set = new Set(setArr)
|
||||||
|
console.log(set.size);
|
||||||
|
if (set.size == 1) {
|
||||||
|
that.submitList.companyId = that.submitList.backApplyDetails[0].companyId
|
||||||
|
console.log(that.submitList);
|
||||||
|
that.$api.exitMaterial.subExitMaterial(that.submitList).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);
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '无法同时退料机具设备和调试设备!'
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
|
<view class="search-bar">
|
||||||
|
<uni-easyinput suffixIcon="search" v-model="fetchIpt" placeholder="请输入关键字" @iconClick="searchKeyword"></uni-easyinput>
|
||||||
|
</view>
|
||||||
<view
|
<view
|
||||||
class="single-fetch"
|
class="single-fetch"
|
||||||
v-for="(fetch, index) in fetchMaterialList"
|
v-for="(fetch, index) in fetchMaterialList"
|
||||||
|
|
@ -26,6 +29,10 @@
|
||||||
<span>领料申请单位</span>
|
<span>领料申请单位</span>
|
||||||
<h4>{{ fetch.deptName }}</h4>
|
<h4>{{ fetch.deptName }}</h4>
|
||||||
</view>
|
</view>
|
||||||
|
<view>
|
||||||
|
<span>领料单号</span>
|
||||||
|
<h4>{{ fetch.code }}</h4>
|
||||||
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<span>领料申请工程</span>
|
<span>领料申请工程</span>
|
||||||
<h4>{{ fetch.proName }}</h4>
|
<h4>{{ fetch.proName }}</h4>
|
||||||
|
|
@ -232,10 +239,9 @@ import { basePath } from '../../public'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
pageOpt: {
|
fetchIpt: '',
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10
|
pageSize: 10,
|
||||||
},
|
|
||||||
pageTotal: 0,
|
pageTotal: 0,
|
||||||
showLoading: false,
|
showLoading: false,
|
||||||
showSubLoading: false,
|
showSubLoading: false,
|
||||||
|
|
@ -269,6 +275,10 @@ import { basePath } from '../../public'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
searchKeyword () {
|
||||||
|
this.fetchMaterialList = []
|
||||||
|
this.initFetch(this.fetchIpt)
|
||||||
|
},
|
||||||
seeDetail (taskId) {
|
seeDetail (taskId) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/fetchMaterialDetail/fetchMaterialDetail?taskId=${taskId}`
|
url: `/pages/fetchMaterialDetail/fetchMaterialDetail?taskId=${taskId}`
|
||||||
|
|
@ -307,6 +317,7 @@ import { basePath } from '../../public'
|
||||||
},
|
},
|
||||||
toggleOpenModal (info) {
|
toggleOpenModal (info) {
|
||||||
this.modalList = info
|
this.modalList = info
|
||||||
|
console.log(info);
|
||||||
this.$refs.popup.open()
|
this.$refs.popup.open()
|
||||||
},
|
},
|
||||||
modalConfirm () {
|
modalConfirm () {
|
||||||
|
|
@ -327,14 +338,18 @@ import { basePath } from '../../public'
|
||||||
if (that.modalList.leaseApplyInfoList[0].leaseApplyDetails[0].companyId == 101) {
|
if (that.modalList.leaseApplyInfoList[0].leaseApplyDetails[0].companyId == 101) {
|
||||||
this.examList = {
|
this.examList = {
|
||||||
taskId: that.modalList.taskId,
|
taskId: that.modalList.taskId,
|
||||||
|
taskType: that.modalList.taskType,
|
||||||
taskStatus: that.modalList.taskStatus + 1,
|
taskStatus: that.modalList.taskStatus + 1,
|
||||||
|
companyId: that.modalList.leaseApplyInfoList[0].companyId,
|
||||||
code: that.modalList.code,
|
code: that.modalList.code,
|
||||||
leaseApplyInfoList: that.modalList.leaseApplyInfoList
|
leaseApplyInfoList: that.modalList.leaseApplyInfoList
|
||||||
}
|
}
|
||||||
} else if (that.modalList.leaseApplyInfoList[0].leaseApplyDetails[0].companyId == 102) {
|
} else if (that.modalList.leaseApplyInfoList[0].leaseApplyDetails[0].companyId == 102) {
|
||||||
this.examList = {
|
this.examList = {
|
||||||
taskId: that.modalList.taskId,
|
taskId: that.modalList.taskId,
|
||||||
|
taskType: that.modalList.taskType,
|
||||||
taskStatus: that.modalList.taskStatus + 2,
|
taskStatus: that.modalList.taskStatus + 2,
|
||||||
|
companyId: that.modalList.leaseApplyInfoList[0].companyId,
|
||||||
code: that.modalList.code,
|
code: that.modalList.code,
|
||||||
leaseApplyInfoList: that.modalList.leaseApplyInfoList
|
leaseApplyInfoList: that.modalList.leaseApplyInfoList
|
||||||
}
|
}
|
||||||
|
|
@ -342,7 +357,9 @@ import { basePath } from '../../public'
|
||||||
} else {
|
} else {
|
||||||
this.examList = {
|
this.examList = {
|
||||||
taskId: that.modalList.taskId,
|
taskId: that.modalList.taskId,
|
||||||
|
taskType: that.modalList.taskType,
|
||||||
taskStatus: that.modalList.taskStatus + 1,
|
taskStatus: that.modalList.taskStatus + 1,
|
||||||
|
companyId: that.modalList.leaseApplyInfoList[0].companyId,
|
||||||
code: that.modalList.code,
|
code: that.modalList.code,
|
||||||
leaseApplyInfoList: that.modalList.leaseApplyInfoList,
|
leaseApplyInfoList: that.modalList.leaseApplyInfoList,
|
||||||
leaseApplyDetails: that.modalList.leaseApplyInfoList[0].leaseApplyDetails
|
leaseApplyDetails: that.modalList.leaseApplyInfoList[0].leaseApplyDetails
|
||||||
|
|
@ -399,7 +416,9 @@ import { basePath } from '../../public'
|
||||||
}
|
}
|
||||||
this.examList = {
|
this.examList = {
|
||||||
taskId: that.modalList.taskId,
|
taskId: that.modalList.taskId,
|
||||||
|
taskType: that.modalList.taskType,
|
||||||
taskStatus: that.modalList.taskStatus + 1,
|
taskStatus: that.modalList.taskStatus + 1,
|
||||||
|
companyId: that.modalList.leaseApplyInfoList[0].companyId,
|
||||||
leaseApplyInfoList: that.modalList.leaseApplyInfoList,
|
leaseApplyInfoList: that.modalList.leaseApplyInfoList,
|
||||||
leaseApplyDetails: that.modalList.leaseApplyInfoList[0].leaseApplyDetails
|
leaseApplyDetails: that.modalList.leaseApplyInfoList[0].leaseApplyDetails
|
||||||
}
|
}
|
||||||
|
|
@ -508,6 +527,7 @@ import { basePath } from '../../public'
|
||||||
}
|
}
|
||||||
this.examList = {
|
this.examList = {
|
||||||
taskId: info.taskId,
|
taskId: info.taskId,
|
||||||
|
companyId: info.leaseApplyInfoList[0].companyId,
|
||||||
taskStatus: info.taskStatus + 1,
|
taskStatus: info.taskStatus + 1,
|
||||||
leaseApplyInfoList: info.leaseApplyInfoList
|
leaseApplyInfoList: info.leaseApplyInfoList
|
||||||
}
|
}
|
||||||
|
|
@ -662,10 +682,14 @@ import { basePath } from '../../public'
|
||||||
console.log(err);
|
console.log(err);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
initFetch () {
|
initFetch (keyWord) {
|
||||||
let that = this
|
let that = this
|
||||||
that.showLoading = true
|
that.showLoading = true
|
||||||
that.$api.fetchExam.fetchTrueExamList(that.pageOpt).then(res => {
|
that.$api.fetchExam.fetchTrueExamList({
|
||||||
|
keyWord,
|
||||||
|
pageNum: that.pageNum,
|
||||||
|
pageSize: that.pageSize
|
||||||
|
}).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
if (res.data.data.length == 0) {
|
if (res.data.data.length == 0) {
|
||||||
|
|
@ -720,6 +744,7 @@ import { basePath } from '../../public'
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
let that = this
|
let that = this
|
||||||
|
that.fetchIpt = ''
|
||||||
console.log(uni.getStorageSync('userInfo'));
|
console.log(uni.getStorageSync('userInfo'));
|
||||||
console.log(that.roles);
|
console.log(that.roles);
|
||||||
for (let i = 0; i < that.roles.length; i++) {
|
for (let i = 0; i < that.roles.length; i++) {
|
||||||
|
|
@ -741,8 +766,8 @@ import { basePath } from '../../public'
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (this.fetchMaterialList.length >= this.pageTotal) return
|
if (this.fetchMaterialList.length >= this.pageTotal) return
|
||||||
this.pageOpt.pageNum++
|
this.pageNum++
|
||||||
this.initFetch()
|
this.initFetch(this.fetchIpt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -753,6 +778,10 @@ import { basePath } from '../../public'
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding-bottom: 10vh;
|
padding-bottom: 10vh;
|
||||||
}
|
}
|
||||||
|
.search-bar{
|
||||||
|
width: 95%;
|
||||||
|
margin: 20rpx auto;
|
||||||
|
}
|
||||||
.single-fetch{
|
.single-fetch{
|
||||||
width: 95%;
|
width: 95%;
|
||||||
margin: 20rpx auto;
|
margin: 20rpx auto;
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,7 @@
|
||||||
codeVal: '',
|
codeVal: '',
|
||||||
manageType: '',
|
manageType: '',
|
||||||
infoList: '',
|
infoList: '',
|
||||||
multiNum: 0,
|
multiNum: 1,
|
||||||
carCode: '',
|
carCode: '',
|
||||||
subList: {},
|
subList: {},
|
||||||
taskId:null,
|
taskId:null,
|
||||||
|
|
@ -242,7 +242,7 @@
|
||||||
},
|
},
|
||||||
multiOut () {
|
multiOut () {
|
||||||
let that = this
|
let that = this
|
||||||
let posiIntReg = /^\+?[0-9]\d*$/
|
let posiIntReg = /^\+?[1-9]\d*$/
|
||||||
if (!posiIntReg.test(that.multiNum)) {
|
if (!posiIntReg.test(that.multiNum)) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
|
|
||||||
|
|
@ -274,6 +274,7 @@
|
||||||
}
|
}
|
||||||
// 获取通知公告
|
// 获取通知公告
|
||||||
that.$api.index.fetchNotice().then(res => {
|
that.$api.index.fetchNotice().then(res => {
|
||||||
|
console.log(res);
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
if (res.data.data.length != 0) {
|
if (res.data.data.length != 0) {
|
||||||
res.data.data.forEach(item => {
|
res.data.data.forEach(item => {
|
||||||
|
|
|
||||||
|
|
@ -319,7 +319,7 @@ import { basePath } from '../../public';
|
||||||
if (set.size == 1) {
|
if (set.size == 1) {
|
||||||
that.sendData = {
|
that.sendData = {
|
||||||
userId: uni.getStorageSync('userInfo').sysUser.userId,
|
userId: uni.getStorageSync('userInfo').sysUser.userId,
|
||||||
companyId: uni.getStorageSync('userInfo').sysUser.companyId,
|
companyId: that.totalGoods[0].companyId,
|
||||||
createBy: uni.getStorageSync('userInfo').sysUser.userName,
|
createBy: uni.getStorageSync('userInfo').sysUser.userName,
|
||||||
unitId: formData.deptName,
|
unitId: formData.deptName,
|
||||||
projectId: formData.projName,
|
projectId: formData.projName,
|
||||||
|
|
|
||||||
|
|
@ -134,6 +134,9 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageTotal: 0,
|
||||||
imgPrefix: '',
|
imgPrefix: '',
|
||||||
showBtn: '',
|
showBtn: '',
|
||||||
taskId: '',
|
taskId: '',
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,12 @@
|
||||||
<view class="upper-bgd">
|
<view class="upper-bgd">
|
||||||
<h4 style="font-size: 16px; font-weight: normal;">RFID标签绑定</h4>
|
<h4 style="font-size: 16px; font-weight: normal;">RFID标签绑定</h4>
|
||||||
<uni-data-select
|
<uni-data-select
|
||||||
v-model="powerVal"
|
v-model="powerVal"
|
||||||
:localdata="powerRange"
|
:localdata="powerRange"
|
||||||
placeholder="请选择功率"
|
placeholder="请选择功率"
|
||||||
@change="powerChange"
|
@change="powerChange"
|
||||||
:clear="false"
|
:clear="false"
|
||||||
></uni-data-select>
|
></uni-data-select>
|
||||||
</view>
|
</view>
|
||||||
<view class="lower-rfid" v-show="showStats">
|
<view class="lower-rfid" v-show="showStats">
|
||||||
<view class="stat-cont">
|
<view class="stat-cont">
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
<h4>物资状态</h4>
|
<h4>物资状态</h4>
|
||||||
<span>{{ bindStats.sdStatus }}</span>
|
<span>{{ bindStats.sdStatus }}</span>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<!-- <view>
|
||||||
<h4>本次维修时间</h4>
|
<h4>本次维修时间</h4>
|
||||||
<span>5</span>
|
<span>5</span>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
<view>
|
<view>
|
||||||
<h4>领料单位名称</h4>
|
<h4>领料单位名称</h4>
|
||||||
<span>8</span>
|
<span>8</span>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -170,8 +170,7 @@
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
// 初始化rfid识别
|
// 初始化rfid识别
|
||||||
const obj = rfidMod.initUHF()
|
rfidMod.initUHF()
|
||||||
console.log(obj);
|
|
||||||
// 筛入频率
|
// 筛入频率
|
||||||
for (let i = 5; i <= 30; i++) {
|
for (let i = 5; i <= 30; i++) {
|
||||||
this.powerRange.push({
|
this.powerRange.push({
|
||||||
|
|
|
||||||
|
|
@ -10,25 +10,41 @@
|
||||||
:key="index"
|
:key="index"
|
||||||
>
|
>
|
||||||
<h4 style="margin-bottom: 15rpx; font-size: 16px;">{{ record.unitName }}</h4>
|
<h4 style="margin-bottom: 15rpx; font-size: 16px;">{{ record.unitName }}</h4>
|
||||||
|
<view>
|
||||||
|
<h5>协议号</h5>
|
||||||
|
<span>{{ record.agreementCode }}</span>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<h5>往来单位</h5>
|
||||||
|
<span>{{ record.unitName }}</span>
|
||||||
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<h5>工程名称</h5>
|
<h5>工程名称</h5>
|
||||||
<span>{{ record.proName }}</span>
|
<span>{{ record.proName }}</span>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<h5>设备类型</h5>
|
<h5>机具名称</h5>
|
||||||
<span>{{ record.typeName }}</span>
|
<span>{{ record.typeName }}</span>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<h5>规格型号</h5>
|
<h5>规格名称</h5>
|
||||||
<span>{{ record.typeModelName }}</span>
|
<span>{{ record.typeModelName }}</span>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<h5>领用数量</h5>
|
<h5>单位</h5>
|
||||||
<span>{{ record.alNum }}</span>
|
<span>{{ record.unit }}</span>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<h5>租赁数量</h5>
|
||||||
|
<span>{{ record.outNum }}</span>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<h5>归还数量</h5>
|
||||||
|
<span>{{ record.backNum }}</span>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<h5>在用数量</h5>
|
<h5>在用数量</h5>
|
||||||
<span>{{ record.num }}</span>
|
<span>{{ record.usNum }}</span>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -38,6 +54,9 @@
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageTotal: 0,
|
||||||
dateVal: '',
|
dateVal: '',
|
||||||
iptVal: '',
|
iptVal: '',
|
||||||
recordList: []
|
recordList: []
|
||||||
|
|
@ -47,17 +66,21 @@
|
||||||
iconClick () {
|
iconClick () {
|
||||||
let that = this
|
let that = this
|
||||||
console.log(that.iptVal);
|
console.log(that.iptVal);
|
||||||
|
that.recordList = []
|
||||||
this.searchRecord(that.iptVal)
|
this.searchRecord(that.iptVal)
|
||||||
},
|
},
|
||||||
searchRecord (keyWord) {
|
searchRecord (keyWord) {
|
||||||
let that = this
|
let that = this
|
||||||
// 查询工程记录
|
// 查询工程记录
|
||||||
that.$api.searchProjUsing.fetchProjUsingList({
|
that.$api.searchProjUsing.fetchProjUsingList({
|
||||||
keyWord
|
keyWord,
|
||||||
|
pageNum: that.pageNum,
|
||||||
|
pageSize: that.pageSize
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
that.recordList = res.data.data
|
that.pageTotal = res.data.data.total
|
||||||
|
that.recordList = [...that.recordList, ...res.data.data.rows]
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
|
@ -66,7 +89,12 @@
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
let that = this
|
let that = this
|
||||||
that.searchRecord('')
|
that.searchRecord(that.iptVal)
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
if (this.recordList.length >= this.pageTotal) return;
|
||||||
|
this.pageNum++
|
||||||
|
this.searchRecord(this.iptVal)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,10 @@
|
||||||
<checkbox :checked="pre.checked" />
|
<checkbox :checked="pre.checked" />
|
||||||
</checkbox-group> -->
|
</checkbox-group> -->
|
||||||
<view class="upper-lef">
|
<view class="upper-lef">
|
||||||
{{ list.createBy == null ? '' : list.createBy.slice(0, 1) }}
|
{{ list.purchaserName == null ? '' : list.purchaserName.slice(0, 1) }}
|
||||||
</view>
|
</view>
|
||||||
<view class="upper-rig">
|
<view class="upper-rig">
|
||||||
<h4 style="font-size: 16px;">{{ list.createBy }}</h4>
|
<h4 style="font-size: 16px;">{{ list.purchaserName == null ? '' : list.purchaserName }}</h4>
|
||||||
<!-- <h4 style="color: #989898;">{{ list.unitName }}</h4> -->
|
<!-- <h4 style="color: #989898;">{{ list.unitName }}</h4> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue