bug修改

This commit is contained in:
wlikett 2023-12-24 18:44:01 +08:00
parent 2080b3cc44
commit c5f3459e73
5 changed files with 18 additions and 4 deletions

View File

@ -105,6 +105,13 @@ const fetchMaterialOutStore = {
header
)
},
async fetchInfoByQrCode(data = {}){
return await Http.get(
HttpConfig.basePath,
HttpConfig.serviceUrl.fetchMaterialOutStore.fetchInfoByQrCode,
data
)
}
}
const exitMaterial = {

View File

@ -49,6 +49,7 @@ class HttpConfig {
},
fetchMaterialOutStore: {
fetchInfoByCode: '/leaseOutDetails/getMaMachineByCode', // 根据maId获取机具详情
fetchInfoByQrCode: '/leaseOutDetails/getMaMachineByQrCode ',
subOutStore: '/leaseOutDetails/submitOut', // 领料出库提交
},
exitMaterial: {

View File

@ -107,6 +107,10 @@
},
methods: {
openPopup (list) {
// if(list.outNum && list.o){
// }
this.infoList = list
console.log(this.infoList.manageType, this.infoList);
if (this.infoList.manageType == 0) {

View File

@ -250,7 +250,9 @@ import { basePath } from '../../public';
async formSubmit () {
await this.getgreementId()
if(this.deptFormData.deptName = ''){
return;
}
let that = this
that.$refs.deptForm.validate().then(formData => {
console.log(formData);

View File

@ -99,10 +99,10 @@
this.num = params.num
this.parentId = params.parentId
//
that.$api.fetchMaterialOutStore.fetchInfoByCode({
maCode: params.code
that.$api.fetchMaterialOutStore.fetchInfoByQrCode({
qrCode: params.code
}, null).then(res => {
console.log(res);
console.log('fetchInfoByQrCode =================================',res);
if (res.data.rows.length == 0) {
uni.showToast({
icon: 'none',