|
|
@ -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", |
|
|
|