|
|
|
<template>
|
|
|
|
<div class="page-box" v-loading="Loading.appMainLoading">
|
|
|
|
<tablePagination
|
|
|
|
:currenButtonData="currenButtonData"
|
|
|
|
:tableData="tableData"
|
|
|
|
:tableLoading="Loading.tableLoading"
|
|
|
|
:tableColumns="tableColumns"
|
|
|
|
@rowDrop="rowDrop"
|
|
|
|
:totalCount="totalCount"
|
|
|
|
:multipleSelection="multipleSelection"
|
|
|
|
:MaxResultCount="PageListParams.MaxResultCount"
|
|
|
|
@topbutton="topbutton"
|
|
|
|
@inlineDialog="inlineDialog"
|
|
|
|
@sortChange="sortChange"
|
|
|
|
@alertoldSkipCount="alertoldSkipCount"
|
|
|
|
@alterResultCount="alterResultCount"
|
|
|
|
@handleSelectionChange="handleSelectionChange"
|
|
|
|
:currentPageProps="oldSkipCount"
|
|
|
|
:quicklySearchOption="quicklySearchOption"
|
|
|
|
@quicklySearchClick="quicklySearchClick"
|
|
|
|
@quicklySearchClear="quicklySearchClear"
|
|
|
|
:primarySearchOption="primarySearchOption"
|
|
|
|
@overallSearchFormClick="overallSearchFormClick"
|
|
|
|
:httpOverallSearchData="httpOverallSearchData"
|
|
|
|
>
|
|
|
|
</tablePagination>
|
|
|
|
<curren-Drawer
|
|
|
|
:title="tableColumns"
|
|
|
|
:DrawerLoading="Loading.DrawerLoading"
|
|
|
|
:drawer="displayDialog.detailsDialog"
|
|
|
|
:propsData="propsData"
|
|
|
|
:Butttondata="DrawerButtonData"
|
|
|
|
:tabsDesTions="tabsDesTions"
|
|
|
|
@drawerShut="(val) => (displayDialog.detailsDialog = val)"
|
|
|
|
@drawerbutton="drawerbutton"
|
|
|
|
@handleCommand="drawerHandle"
|
|
|
|
@close-value="closeValue"
|
|
|
|
:tableColumns="detailsTableColumns"
|
|
|
|
:totalCount="totalCountDetails"
|
|
|
|
:MaxResultCount="MaxResultCountDetails"
|
|
|
|
@alterResultCountDetails="alterResultCountDetails"
|
|
|
|
@alertoldSkipCountDetails="alertoldSkipCountDetails"
|
|
|
|
></curren-Drawer>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import { tableMixins } from "@/mixins/TableMixins";
|
|
|
|
import { LoadingMixins } from "@/mixins/LoadingMixins";
|
|
|
|
import { drawerMixins } from "@/mixins/drawerMixins";
|
|
|
|
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins";
|
|
|
|
import { mixins } from "@/mixins/mixins";
|
|
|
|
import {initPrintAllData} from "@/mixins/printMixin"
|
|
|
|
export default {
|
|
|
|
name: "materialsAdjustment",
|
|
|
|
mixins: [
|
|
|
|
tableMixins,
|
|
|
|
LoadingMixins,
|
|
|
|
drawerMixins,
|
|
|
|
TableHeaderMixins,
|
|
|
|
mixins,
|
|
|
|
],
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
URL: "wms/store/item-transform-note",
|
|
|
|
//常用按钮数据
|
|
|
|
currenButtonData: [
|
|
|
|
this.defaultExportBtn(),//导出
|
|
|
|
this.defaultFieldSettingBtn(),//字段设置
|
|
|
|
this.defaultFreshBtn(),//刷新
|
|
|
|
this.defaultFilterBtn(),//筛选
|
|
|
|
],
|
|
|
|
// todo:打印单据更改
|
|
|
|
DrawerButtonData: [
|
|
|
|
// {
|
|
|
|
// type: 'info',
|
|
|
|
// icon: 'el-icon-printer',
|
|
|
|
// label: '打印',
|
|
|
|
// hide: false,
|
|
|
|
// name: "print",
|
|
|
|
// size: 'mini'
|
|
|
|
// },
|
|
|
|
]
|
|
|
|
};
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.paging();
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
//抽屉常用按钮
|
|
|
|
drawerbutton (val) {
|
|
|
|
// 打印
|
|
|
|
if(val == 'print'){
|
|
|
|
// 特殊字段处理
|
|
|
|
// todo:打印单据更改
|
|
|
|
// let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails))
|
|
|
|
// _propsData.details.forEach(item=>{
|
|
|
|
// item.recommendLot = item.recommendLot + " "
|
|
|
|
// })
|
|
|
|
// let _option = {
|
|
|
|
// details:{
|
|
|
|
// fromLocationCode:"recommendLocationCode",
|
|
|
|
// qty:"handledQty",
|
|
|
|
// uom:"recommendUom",
|
|
|
|
// fromLot:"recommendLot",
|
|
|
|
// toLocationErpCode:"locationErpCode",
|
|
|
|
// fromLocationErpCode:"recommendLocationErpCode",
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// let data = initPrintAllData(_propsData,'tzd.rdlx','AdjustmentReason',_option);
|
|
|
|
let data = initPrintAllData(this.tableDataDetails,'tzd.rdlx','AdjustmentReason');
|
|
|
|
this.Print(data)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import "../../../styles/basicData.scss";
|
|
|
|
</style>
|