Browse Source

【nev-pc】原料直发打印供应商数据

ag_report_nev
安虹睿 9 months ago
parent
commit
2ba6297347
  1. 28
      fe/PC/src/views/rawMaterialManage/materialDirectSend/materialDirectSendNote.vue

28
fe/PC/src/views/rawMaterialManage/materialDirectSend/materialDirectSendNote.vue

@ -45,7 +45,7 @@
</div>
</template>
<script>
import { getPageListWip , sumPrint,getOneCustomerInfoByCode} from '@/api/wms-api'
import { getPageListWip , getPageList,sumPrint,getOneCustomerInfoByCode} from '@/api/wms-api'
import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins"
@ -119,6 +119,32 @@
//
if(val == 'print'){
this.beforePrintHandle(async ()=>{
//
let customer_params = {
condition: {
filters: [
{
logic: "And",
column: "code",
action: "==",
value: this.propsData.customerCode
}
]
},
Sorting: "",
SkipCount: 0,
MaxResultCount: 20
}
let customerInfo = await getPageList(customer_params,"basedata/customer");
//
this.tableDataDetails.details.forEach(item=>{
if(customerInfo && customerInfo.items && customerInfo.items.length > 0){
item.customerFax = customerInfo.items[0].fax
item.customerName = customerInfo.items[0].name
item.customerShortName = customerInfo.items[0].shortName
item.customerPhone = customerInfo.items[0].phone
}
})
let _option = {
details:{
packingCode:"toPackingCode",

Loading…
Cancel
Save