|
|
@ -44,7 +44,7 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { getPageListWip } from "@/api/wms-api" |
|
|
|
import { getPageListWip,getLocationByCode } from "@/api/wms-api" |
|
|
|
import { tableMixins } from "@/mixins/TableMixins" |
|
|
|
import { LoadingMixins } from "@/mixins/LoadingMixins" |
|
|
|
import { drawerMixins } from "@/mixins/drawerMixins" |
|
|
@ -102,8 +102,17 @@ export default { |
|
|
|
//抽屉常用按钮 |
|
|
|
drawerbutton (val) { |
|
|
|
if(val == 'print'){ |
|
|
|
let data = initPrintAllData(this.tableDataDetails,'khcwdbd.rdlx'); |
|
|
|
this.Print(data) |
|
|
|
// 获取库位描述,默认所有明细的toLocationCode为同一个 |
|
|
|
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) |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
//渲染数据 |
|
|
|