|
|
@ -62,6 +62,8 @@ import { drawerMixins } from "@/mixins/drawerMixins" |
|
|
|
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins" |
|
|
|
import { mixins } from "@/mixins/mixins" |
|
|
|
import { initPrintAllData } from "@/mixins/printMixin" |
|
|
|
import { getPageList } from '@/api/wms-api' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "materialReturnRequest", |
|
|
|
mixins: [ |
|
|
@ -119,8 +121,36 @@ export default { |
|
|
|
drawerbutton (val) { |
|
|
|
// 打印 |
|
|
|
if(val == 'print'){ |
|
|
|
let data = initPrintAllData(this.propsData,'fsctl.rdlx'); |
|
|
|
this.Print(data) |
|
|
|
// 获取物品信息的配置 |
|
|
|
this.PageListParams.SkipCount = 0 |
|
|
|
this.PageListParams.MaxResultCount= 1000 |
|
|
|
this.PageListParams.condition = {filters: []} |
|
|
|
this.propsData.details.forEach(item=>{ |
|
|
|
this.PageListParams.condition.filters.push({ |
|
|
|
action: '==', |
|
|
|
column: 'code', |
|
|
|
logic: "Or", |
|
|
|
value: item.itemCode, |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.Loading.appMainLoading = true |
|
|
|
getPageList(this.PageListParams, 'basedata/item-basic').then(res => { |
|
|
|
this.Loading.appMainLoading = false |
|
|
|
res.items.forEach(res_item=>{ |
|
|
|
this.propsData.details.forEach(detail=>{ |
|
|
|
if(detail.itemCode == res_item.code){ |
|
|
|
detail.configuration = res_item.configuration |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
let data = initPrintAllData(this.propsData,'fsctl.rdlx'); |
|
|
|
this.Print(data) |
|
|
|
}).catch(err => { |
|
|
|
this.Loading.appMainLoading = false |
|
|
|
this.$message.error('物品信息配置获取失败'); |
|
|
|
let data = initPrintAllData(this.propsData,'fsctl.rdlx'); |
|
|
|
this.Print(data) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
drawerMixins.methods.drawerbutton(val, this) |
|
|
|
} |
|
|
|