Browse Source

【nev-pc】打印相关问题修改暂存

ag_report_nev
安虹睿 10 months ago
parent
commit
26d7ba2a7d
  1. 9
      fe/PC/src/api/wms-api.js
  2. 15
      fe/PC/src/views/inventoryManage/customerStorageAllocation/customerStorageAllocationNote.vue

9
fe/PC/src/api/wms-api.js

@ -770,6 +770,15 @@ export function postCompleteRequest(id,url) {
}) })
} }
// 通过库位代码获取库位info
export function getLocationByCode(data) {
return request({
url: baseURL + 'basedata/location/by-code/'+data,
method: 'get',
})
}
// 客户退拆任务-完成 todo // 客户退拆任务-完成 todo
// export async function productionRecycleJobComplete(id) { // export async function productionRecycleJobComplete(id) {
// return request({ // return request({

15
fe/PC/src/views/inventoryManage/customerStorageAllocation/customerStorageAllocationNote.vue

@ -44,7 +44,7 @@
</div> </div>
</template> </template>
<script> <script>
import { getPageListWip } from "@/api/wms-api" import { getPageListWip,getLocationByCode } from "@/api/wms-api"
import { tableMixins } from "@/mixins/TableMixins" import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins" import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins" import { drawerMixins } from "@/mixins/drawerMixins"
@ -102,8 +102,17 @@ export default {
// //
drawerbutton (val) { drawerbutton (val) {
if(val == 'print'){ if(val == 'print'){
let data = initPrintAllData(this.tableDataDetails,'khcwdbd.rdlx'); // toLocationCode
this.Print(data) getLocationByCode(this.tableDataDetails.details[0].toLocationCode)
.then(res=>{
this.tableDataDetails.details.forEach(item=>{item.toLocationName = res.name})
let data = initPrintAllData(this.tableDataDetails,'khcwdbd.rdlx');
this.Print(data)
})
.catch(err=>{
let data = initPrintAllData(this.tableDataDetails,'khcwdbd.rdlx');
this.Print(data)
})
} }
}, },
// //

Loading…
Cancel
Save