bug修复

This commit is contained in:
xiaofajia 2024-11-21 15:01:23 +08:00
parent 1e11e109d4
commit 23913ea958
2 changed files with 5 additions and 36 deletions

View File

@ -1,9 +1,9 @@
// 应用全局配置
module.exports = {
baseUrl: 'https://www.nuoyunr.com',
// baseUrl: 'https://www.nuoyunr.com',
// baseUrl: 'http://124.222.105.7:48080',
// baseUrl: 'http://192.168.1.4:48080',
// baseUrl: "http://localhost:48080",
baseUrl: "http://localhost:48080",
imagesUrl: 'http://shequ.0315e.com/static/images/pages/',
baseImageUrl: 'https://www.nuoyunr.com/minio/',
shareUrl: 'https://www.lighting-it.cn/share?inviteId=',

View File

@ -193,7 +193,6 @@ export default {
},
getUnitName(id) {
if (this.unitList && this.unitList.length > 0) {
console.log("我第一次就拿到了")
const index = this.unitList.findIndex(item => item.value === id)
if (index !== -1) {
return this.unitList[index].label
@ -201,7 +200,6 @@ export default {
return "请选择"
}
}
console.log("我是重新去拿的")
this.listUnit()
return "请选择"
},
@ -394,10 +392,10 @@ export default {
method: 'get'
}).then(res => {
this.partList = Object.entries(res.data)
this.partList = this.partList.filter(([key, value]) => {
const newValue = value.filter(item => item.inCount !== item.goodsCount)
return newValue && newValue.length > 0
this.partList = this.partList.map(([key, value]) => {
return [key, value.filter(item => (!item.inCount && item.inCount !== item.goodsCount))]
})
this.partList = this.partList.filter(([key, value]) => value.length > 0)
this.partList.forEach(([key, value]) => {
value.forEach(item => {
item.goodsCount = item.goodsCount - item?.inCount | 0
@ -419,35 +417,6 @@ export default {
})
}
})
// request({
// url: '/admin-api/repair/so/get',
// method: 'get',
// params: {
// id: this.soId
// }
// }).then((res) => { // `.then`
// // console.log(res)
// res.data.goodsList.forEach(item => {
// this.soiIds.push(item.id)
// })
// console.log('', res.data)
//
// request({
// url: '/admin-api/repair/soi/get',
// method: 'get',
// params: {
// ids: this.soiIds.join(',')
// }
// }).then((res) => { //
// console.log('', res.data)
// res.data.map(item => {
// item.wares = item.repairWares
// item.waresCount = 0
// })
// this.wares = res.data
// this.init()
// })
// })
},
/**
* 入库