diff --git a/apis/apis.js b/apis/apis.js
index 7983a4e..e1b0da8 100644
--- a/apis/apis.js
+++ b/apis/apis.js
@@ -816,7 +816,7 @@ const indexScan = {
const preCrashExam = {
async fetchPreCrashList(data = {}, header = {}) {
- return await Http.post(
+ return await Http.get(
HttpConfig.materialPath,
HttpConfig.serviceUrl.preCrashExam.fetchPreCrashList,
data,
diff --git a/apis/http.js b/apis/http.js
index 626e23b..e047f60 100644
--- a/apis/http.js
+++ b/apis/http.js
@@ -1,6 +1,6 @@
class HttpConfig {
// #ifdef H5
- baseUrl = "/api";
+ // baseUrl = "/api";
// #endif
// #ifdef APP-PLUS
// baseUrl = "http://192.168.0.56:21624";
diff --git a/pages/backMaterialReceive/backMaterialReceive.vue b/pages/backMaterialReceive/backMaterialReceive.vue
index ba17fcb..3959268 100644
--- a/pages/backMaterialReceive/backMaterialReceive.vue
+++ b/pages/backMaterialReceive/backMaterialReceive.vue
@@ -244,7 +244,7 @@ import { basePath } from '../../public'
// 获取退料接收列表
that.$api.backMaterialReceive.backMaterialReceiveList({
companyId: uni.getStorageSync('userInfo').sysUser.companyId,
- flag: 1,
+ flag: 0,
keyWord,
backSource: 2,
pageNum: that.pageNum,
@@ -258,10 +258,11 @@ import { basePath } from '../../public'
title: '未查询到相关数据!'
})
} else {
- that.pageTotal = res.data.data.total
- that.fetchMaterialList = [...that.fetchMaterialList, ...res.data.data.rows]
- console.log("fetchMaterialList",that.fetchMaterialList)
- }
+ that.fetchMaterialList = res.data.data
+ // that.pageTotal = res.data.data.total
+ // that.fetchMaterialList = [...that.fetchMaterialList, ...res.data.data.rows]
+ console.log('🚀 ~ getList ~ that.fetchMaterialList:', that.fetchMaterialList)
+ }
} else {
uni.showToast({
icon: 'none',
diff --git a/pages/deviceDetail/deviceDetail.vue b/pages/deviceDetail/deviceDetail.vue
index 3af54c6..00550ac 100644
--- a/pages/deviceDetail/deviceDetail.vue
+++ b/pages/deviceDetail/deviceDetail.vue
@@ -60,7 +60,7 @@ import { basePath } from '../../public';
leftNum: '',
companyId: '',
status: '',
- baseUrl: 'http://112.29.103.165:21624/dev-api/system'
+ baseUrl: ''
}
},
methods: {
@@ -157,6 +157,7 @@ import { basePath } from '../../public';
}
},
onLoad(params) {
+ this.baseUrl = this.$api.url
let that = this
console.log(params);
that.deviceName = params.name
@@ -170,7 +171,9 @@ import { basePath } from '../../public';
if (res.data.code == 200) {
that.companyId = res.data.data[0].companyId
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) => {
return {
diff --git a/pages/exitMaterial/exitMaterial.vue b/pages/exitMaterial/exitMaterial.vue
index f2e44ca..993fbb9 100644
--- a/pages/exitMaterial/exitMaterial.vue
+++ b/pages/exitMaterial/exitMaterial.vue
@@ -332,6 +332,10 @@ import { basePath } from '../../public'
}
})
})
+ }).catch(err => {
+ console.log(err);
+ that.showLoading = false
+ that.btnDisabled = false
})
},
seeDetail (id, typeId) {
diff --git a/pages/fetchExam/fetchExam.vue b/pages/fetchExam/fetchExam.vue
index 6ba2df7..36d1b49 100644
--- a/pages/fetchExam/fetchExam.vue
+++ b/pages/fetchExam/fetchExam.vue
@@ -17,17 +17,17 @@
-->
- {{ fetch.createBy.slice(0, 1) }}
+ {{ (fetch.applyFor || '-').slice(0, 1) }}
- {{ fetch.createBy }}
+ {{ fetch.applyFor }}
{{ fetch.phoneNumber }}
领料申请单位
- {{ fetch.deptName }}
+ {{ fetch.unitName }}
领料单号
diff --git a/pages/fetchMaterial/fetchMaterial.vue b/pages/fetchMaterial/fetchMaterial.vue
index d7c612e..c13fb3f 100644
--- a/pages/fetchMaterial/fetchMaterial.vue
+++ b/pages/fetchMaterial/fetchMaterial.vue
@@ -176,6 +176,7 @@
onShow() {
let that = this
that.photoUrl = that.$api.url
+ console.log('🚀 ~ onShow ~ that.photoUrl:', that.photoUrl)
console.log(that.photoUrl);
/* if (uni.getStorageSync('goodList').length == 0 || !uni.getStorageSync('goodList')) {
uni.setStorageSync('goodList', [])
diff --git a/pages/fetchMaterialOutStoreDetail/fetchMaterialOutStoreDetail.vue b/pages/fetchMaterialOutStoreDetail/fetchMaterialOutStoreDetail.vue
index fdb346d..d6fb488 100644
--- a/pages/fetchMaterialOutStoreDetail/fetchMaterialOutStoreDetail.vue
+++ b/pages/fetchMaterialOutStoreDetail/fetchMaterialOutStoreDetail.vue
@@ -79,24 +79,30 @@
-
+
类型名称
{{ infoList.typeName }}
-
+
设备名称
{{ infoList.typeModelName }}
-
+
待出库数量
{{ infoList.outNum }}
-
- *车牌号
+
+ 是否有车牌号
+ isCarCode ? carCode = '' : carCode = '无车牌'">
+
+
+ *车牌号
@@ -143,6 +149,7 @@
infoList: '',
multiNum: 1,
carCode: '',
+ isCarCode: true,
subList: {},
taskId:null,
taskStatus: '',
@@ -161,6 +168,9 @@
this.infoList = list
this.rfidNum = list.outNum
this.typeId = list.typeId
+ this.isCarCode = true
+ this.carCode = ''
+ this.multiNum = 1
// this.transMaCode = list.maCode
console.log(this.infoList.manageType, this.infoList);
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}`
})
},
+ // 检查车牌号
+ 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 () {
let that = this
let posiIntReg = /^\+?[1-9]\d*$/
- // carCode 车牌号必填
- if (!that.carCode) {
+ if (!that.carCode && that.isCarCode) {
uni.showToast({
icon: 'none',
title: '请输入车牌号!'
@@ -498,9 +520,10 @@
margin: 30rpx auto;
display: flex;
flex-direction: column;
- view{
+ .view{
margin-bottom: 15rpx;
display: flex;
+ align-items: center;
h4{
font-weight: normal;
color: #989898;
diff --git a/pages/fix/fix.vue b/pages/fix/fix.vue
index 27ab516..c0cf064 100644
--- a/pages/fix/fix.vue
+++ b/pages/fix/fix.vue
@@ -14,7 +14,7 @@
- {{ fetch.createName.slice(0, 1) }}
+ {{ (fetch.createName || '-').slice(0, 1) }}
{{ fetch.createName }}
diff --git a/pages/newBuyDetail/newBuyDetail.vue b/pages/newBuyDetail/newBuyDetail.vue
index b53df65..78dac30 100644
--- a/pages/newBuyDetail/newBuyDetail.vue
+++ b/pages/newBuyDetail/newBuyDetail.vue
@@ -368,8 +368,8 @@
.then((res) => {
console.log("新购明细----", res);
if (res.data.code == 200) {
- that.pageTotal = res.data.total;
- res.data.rows.forEach((item) => {
+ that.pageTotal = res.data.data.total;
+ res.data.data.rows.forEach((item) => {
if (item.status == "3" || item.status == "0")
item.checked = false;
switch (item.status) {
@@ -384,7 +384,7 @@
break;
}
});
- that.list = [...that.list, ...res.data.rows];
+ that.list = [...that.list, ...res.data.data.rows];
} else {
uni.showToast({
icon: "none",
diff --git a/pages/orderCart/orderCart.vue b/pages/orderCart/orderCart.vue
index ac1bea2..184a4fc 100644
--- a/pages/orderCart/orderCart.vue
+++ b/pages/orderCart/orderCart.vue
@@ -6,9 +6,9 @@
-
+
{{item.parentName}}
规格:{{item.typeName}}
diff --git a/pages/serviceCenterExamDetail/serviceCenterExamDetail.vue b/pages/serviceCenterExamDetail/serviceCenterExamDetail.vue
index 9951a6c..4ea3a6e 100644
--- a/pages/serviceCenterExamDetail/serviceCenterExamDetail.vue
+++ b/pages/serviceCenterExamDetail/serviceCenterExamDetail.vue
@@ -81,7 +81,7 @@
}).then(res => {
console.log(res);
if (res.data.code == 200) {
- res.data.rows.forEach(item => {
+ res.data.data.rows.forEach(item => {
switch (item.status) {
case '0':
item.taskMark = '待审核'
@@ -100,7 +100,7 @@
break;
}
})
- that.detailList = res.data.rows
+ that.detailList = res.data.data.rows
}
}).catch(err => {
console.log(err);
diff --git a/pages/workSpace/workSpace.vue b/pages/workSpace/workSpace.vue
index 4ad31aa..88ba58b 100644
--- a/pages/workSpace/workSpace.vue
+++ b/pages/workSpace/workSpace.vue
@@ -73,16 +73,16 @@
"*:*:*",
],
},
- {
- name: "退料审批",
- pic: "/static/exitExam.png",
- url: "exitExam",
- isShow: [
- "return:auditing:auditing",
- "return:auditing:auditing:batch",
- "*:*:*",
- ],
- },
+ // {
+ // name: "退料审批",
+ // pic: "/static/exitExam.png",
+ // url: "exitExam",
+ // isShow: [
+ // "return:auditing:auditing",
+ // "return:auditing:auditing:batch",
+ // "*:*:*",
+ // ],
+ // },
{
name: "RFID绑定",
pic: "/static/rfidBinding.png",
@@ -206,6 +206,7 @@
},
});
} else {
+ console.log('🚀 ~ jumpUrl ~ else:')
uni.navigateTo({
url: `/pages/${path}/${path}`,
});