Browse Source

明细-获取物品信息【配置(configuration)】参数功能暂存

dev_web_online
安虹睿 2 years ago
parent
commit
2aef495c6d
  1. 59
      fe/PC/src/mixins/TableMixins.js
  2. 1
      fe/PC/src/views/finishedProductManage/deliver/FISDeliverNote-Query.vue

59
fe/PC/src/mixins/TableMixins.js

@ -101,7 +101,6 @@ export const tableMixins = {
} else {
this.propsData = res
}
console.log(105,this.propsData)
this.inlineDialogCallback()
}).catch(err => {
this.Loading.DrawerLoading = false
@ -199,6 +198,59 @@ export const tableMixins = {
}
}
},
// 明细-获取物品信息【配置(configuration)】参数
// 此方法暂时仅仅支持1000条以内的数据,如果有需要1000以外,需要优化
getConfigByItemHandle_props() {
let _data = {
condition: {filters: []},
Sorting: "",
SkipCount: 0,
MaxResultCount: 1000
}
this.propsData.details.forEach((item)=>{
let _filt = {
logic: 'Or',
column: "code",
action: "==",
value: item.itemCode
}
_data.condition.filters.push(_filt)
})
getPageList(_data, 'basedata/item-basic').then(res => {
console.log(items)
this.propsData.details.forEach(item=>{
let _config = res.items.filters(base=>{
return base.code == item.itemCode
})
console.log(225,_config)
})
this.Loading.DrawerLoading = false
}).catch(err => {
this.Loading.DrawerLoading = false
})
// if(!this.propsData.supplierCode){
// this.Loading.DrawerLoading = false
// return
// }
// if(this.tabsDesTions[i].prop == 'supplierName' || this.tabsDesTions[i].prop == "supplierAddress"){
// let _allSuCode = [this.propsData.supplierCode]
// this.Loading.DrawerLoading = true
// allSupplierByCodes(_allSuCode).then(res => {
// this.Loading.DrawerLoading = false
// if(res.length > 0){
// this.$set(this.propsData,"supplierName", res[0].name)
// this.$set(this.propsData,"supplierAddress", res[0].address)
// this.$set(this.propsData,"supplierShortName", res[0].shortName)
// }
// }).catch(err => {
// console.log(err)
// this.Loading.DrawerLoading = false
// })
// return
// }else{
// this.Loading.DrawerLoading = false
// }
},
// 主列表操作列按钮执行方法
/**
*
@ -254,7 +306,12 @@ export const tableMixins = {
},
// 点击抽屉,获取明细后全局通用操作
inlineDialogCallback(){
// 插入配置数据
if(this.showConfiguration){
// this.getConfigByItemHandle_props()
}else{
this.Loading.DrawerLoading = false
}
// this.getSupplierByCodesHandle_props()
}
}

1
fe/PC/src/views/finishedProductManage/deliver/FISDeliverNote-Query.vue

@ -61,6 +61,7 @@ export default {
],
data () {
return {
// showConfiguration:true,//-Configuration
URL: 'wms/store/deliver-note',
//
currenButtonData: [

Loading…
Cancel
Save