bug修复

This commit is contained in:
hongchao 2025-03-18 16:56:04 +08:00
parent e591c13c60
commit 300ff032e5
4 changed files with 41 additions and 12 deletions

View File

@ -561,5 +561,15 @@
"navigationBarTitleText": "uni-app", "navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#dcf4ff", "navigationBarBackgroundColor": "#dcf4ff",
"backgroundColor": "#f8f8f8" "backgroundColor": "#f8f8f8"
},
"condition" : { //
"current": 0, //(list )
"list": [
{
"name": "", //
"path": "", //
"query": "" //onLoad
}
]
} }
} }

View File

@ -295,7 +295,7 @@ const getUnitOut = () => {
} }
getUnitList(obj) getUnitList(obj)
.then((res) => { .then((res) => {
console.log(res) console.log("xxxxxxxxxx",res)
unitListOut.value = res.data unitListOut.value = res.data
// getAgreement() // getAgreement()
if (formDataOut.value.unitId && formDataOut.value.projectId) { if (formDataOut.value.unitId && formDataOut.value.projectId) {
@ -487,7 +487,10 @@ onReady((opt) => {
console.log('🚀 ~ opt:', opt) console.log('🚀 ~ opt:', opt)
onLoad((options) => { onLoad((options) => {
console.log("uuuuuuuuuuuuu",options)
if(options && options.params){
opt = JSON.parse(options.params) opt = JSON.parse(options.params)
}
if (opt.type == 'edit') { if (opt.type == 'edit') {
isEdit.value = true isEdit.value = true
getDetails() getDetails()

View File

@ -391,6 +391,22 @@ const getMaCode = () => {
// //
const selectMaCode = (e) => { const selectMaCode = (e) => {
console.log(e) console.log(e)
// typeList typeId
const exists = typeList.value.some(existingItem => existingItem.typeId === e);
if (exists) {
let name = ''
maCodeSelectList.value.forEach(item => {
if (item.typeId === e) {
name = item.typeName
}
})
uni.showToast({
title: `${name} 已添加到列表中`,
icon: 'none',
duration: 1000
})
return
}
maCodeSelectList.value.forEach(item=>{ maCodeSelectList.value.forEach(item=>{
console.log(item) console.log(item)
if(item.typeId==e){ if(item.typeId==e){

View File

@ -184,11 +184,11 @@ const pickingList = ref([
url: '', url: '',
iconSrc: '../../static/workbench/backCreate.png', iconSrc: '../../static/workbench/backCreate.png',
}, },
{ // {
title: '退料接收', // title: '退',
url: '/pages/back/index', // url: '/pages/back/index',
iconSrc: '../../static/workbench/backCreate.png', // iconSrc: '../../static/workbench/backCreate.png',
}, // },
{ {
title: '修试入库', title: '修试入库',
url: '/pages/repair/testedInBound/index', url: '/pages/repair/testedInBound/index',
@ -208,11 +208,11 @@ const partList = ref([
url: '', url: '',
iconSrc: '../../static/workbench/partIn.png', iconSrc: '../../static/workbench/partIn.png',
}, },
{ // {
title: '配件领用申请', // title: '',
url: '', // url: '',
iconSrc: '../../static/workbench/partApprove.png', // iconSrc: '../../static/workbench/partApprove.png',
} // }
]) ])
// //