This commit is contained in:
13218645326 2023-12-24 19:12:38 +08:00
commit 073e3ef0ef
5 changed files with 18 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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

View File

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