7 changed files with 701 additions and 22 deletions
@ -0,0 +1,206 @@ |
|||
<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> |
|||
<!-- 新导入 disabledMethod 导入方式禁用 disabledIsAllowPartImport 是否局部导入禁用--> |
|||
<!-- methodValue 导入方式默认选项 是否局部导入 默认选项 --> |
|||
<importFile |
|||
:loading="Loading.importLoading" |
|||
:show="displayDialog.importDialog" |
|||
:URL="URL" |
|||
:disabledMethod = {method1:false,method2:false,method3:false} |
|||
:disabledIsAllowPartImport = {isAllowPartImport1:false,isAllowPartImport2:false} |
|||
isAllowPartImportValue="1" |
|||
@importClick="postImportMergeClick(arguments)" |
|||
@postImportDown="importDown" |
|||
></importFile> |
|||
<!--抽屉--> |
|||
<curren-Drawer |
|||
:title="tableColumns" |
|||
:DrawerLoading="Loading.DrawerLoading" |
|||
:drawer="displayDialog.detailsDialog" |
|||
:propsData="propsData" |
|||
:tabsDesTions="tabsDesTions" |
|||
:Butttondata="DrawerButtonData" |
|||
@drawerShut="(val) => (displayDialog.detailsDialog = val)" |
|||
@handleCommand="drawerHandle" |
|||
@drawerbutton="drawerbuttonHandle" |
|||
@close-value="closeValue" |
|||
:tableColumns="detailsTableColumns" |
|||
:totalCount="totalCountDetails" |
|||
:MaxResultCount="MaxResultCountDetails" |
|||
@alterResultCountDetails="alterResultCountDetails" |
|||
@alertoldSkipCountDetails="alertoldSkipCountDetails" |
|||
@currenTabsChange="currenTabsChange" |
|||
:selectionTable="true" |
|||
@handleSelectionChange="handleSelectionChangeDrawer" |
|||
> |
|||
<template> |
|||
<el-table-column |
|||
fixed="right" |
|||
label="操作" |
|||
align="center" |
|||
width="120" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<span class="drawerRowButtton" @click="buttonClick(scope.row)">打印</span> |
|||
</template> |
|||
</el-table-column> |
|||
</template> |
|||
</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 { initPrintPackingCodeData,initPrintPackingCodeManyData } from "@/mixins/printMixin" |
|||
export default { |
|||
name: "integrationPackingNote", |
|||
mixins: [ |
|||
tableMixins, |
|||
LoadingMixins, |
|||
drawerMixins, |
|||
TableHeaderMixins, |
|||
mixins, |
|||
], |
|||
computed: { |
|||
hideButton: function () { |
|||
return function (val) { |
|||
console.log(this.currentTagName) |
|||
return this.currentTagName != 'mx' |
|||
} |
|||
}, |
|||
}, |
|||
data() { |
|||
return { |
|||
URL: "wms/store/integration-packing-note", |
|||
// tab标签值 |
|||
currentTagName:'xq', |
|||
//常用按钮数据 |
|||
currenButtonData: [ |
|||
// this.defaultImportBtn(),//导入 |
|||
this.defaultExportBtn(),//导出 |
|||
this.defaultFieldSettingBtn(),//字段设置 |
|||
this.defaultFreshBtn(),//刷新 |
|||
this.defaultFilterBtn(),//筛选 |
|||
], |
|||
DrawerButtonData: [ |
|||
{ |
|||
type: 'success', |
|||
icon: 'el-icon-printer', |
|||
label: '打印新箱码', |
|||
hide: false, |
|||
name: "print_new", |
|||
size: 'mini' |
|||
}, |
|||
{ |
|||
type: 'warning', |
|||
icon: 'el-icon-finished', |
|||
label: '批量打印', |
|||
hide: () => { return this.hideButton() }, |
|||
name: "print_many", |
|||
size: 'mini' |
|||
}, |
|||
], |
|||
// 明细已选 |
|||
selectedForMx:[], |
|||
}; |
|||
}, |
|||
mounted() { |
|||
this.paging(); |
|||
}, |
|||
methods:{ |
|||
currenTabsChange(row){ |
|||
this.currentTagName = row.name |
|||
}, |
|||
//抽屉下拉按钮操作 |
|||
async drawerbuttonHandle(val) { |
|||
// 打印新箱码 |
|||
if (val == 'print_new') { |
|||
let _option = { |
|||
specifications:"configuration", |
|||
poNumber:"purchaseInfo_PoNumber", |
|||
asnNumber:"purchaseInfo_AsnNumber", |
|||
} |
|||
let _propsData = JSON.parse(JSON.stringify(this.propsData)) |
|||
delete _propsData.details |
|||
_propsData.details = [JSON.stringify(_propsData)] |
|||
|
|||
// _propsData.title = "新箱码" |
|||
let data = await initPrintPackingCodeData(_propsData,_option); |
|||
this.Print(data) |
|||
} |
|||
// 批量打印 |
|||
else if(val == 'print_many'){ |
|||
if(!this.selectedForMx || this.selectedForMx.length <= 0){ |
|||
return this.$warningMsg("请先选择要打印的明细") |
|||
} |
|||
let _propsData = {details:[]} |
|||
_propsData.details = JSON.parse(JSON.stringify(this.selectedForMx)) |
|||
let _option = { |
|||
specifications:"configuration", |
|||
poNumber:"purchaseInfo_PoNumber", |
|||
asnNumber:"purchaseInfo_AsnNumber", |
|||
} |
|||
|
|||
let _data = await initPrintPackingCodeManyData(_propsData,_option); |
|||
this.Print(_data) |
|||
} |
|||
}, |
|||
// 明细单条打印 |
|||
async buttonClick(row){ |
|||
let _propsData = JSON.parse(JSON.stringify(row)) |
|||
_propsData.details = [] |
|||
_propsData.details.push(row) |
|||
let _option = { |
|||
specifications:"configuration", |
|||
poNumber:"purchaseInfo_PoNumber", |
|||
asnNumber:"purchaseInfo_AsnNumber", |
|||
} |
|||
let data = await initPrintPackingCodeData(_propsData,_option); |
|||
this.Print(data) |
|||
}, |
|||
// 明细多选 |
|||
handleSelectionChangeDrawer(data){ |
|||
console.log(data) |
|||
this.selectedForMx = data |
|||
} |
|||
} |
|||
}; |
|||
</script> |
|||
<style lang="scss" scoped> |
|||
@import "../../styles/mainbasicData.scss"; |
|||
.drawerRowButtton{ |
|||
color:#409eff; |
|||
cursor: pointer; |
|||
&:hover{ |
|||
color:#a0cfff |
|||
} |
|||
} |
|||
</style> |
@ -0,0 +1,206 @@ |
|||
<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> |
|||
<!-- 新导入 disabledMethod 导入方式禁用 disabledIsAllowPartImport 是否局部导入禁用--> |
|||
<!-- methodValue 导入方式默认选项 是否局部导入 默认选项 --> |
|||
<importFile |
|||
:loading="Loading.importLoading" |
|||
:show="displayDialog.importDialog" |
|||
:URL="URL" |
|||
:disabledMethod = {method1:false,method2:false,method3:false} |
|||
:disabledIsAllowPartImport = {isAllowPartImport1:false,isAllowPartImport2:false} |
|||
isAllowPartImportValue="1" |
|||
@importClick="postImportMergeClick(arguments)" |
|||
@postImportDown="importDown" |
|||
></importFile> |
|||
<!--抽屉--> |
|||
<curren-Drawer |
|||
:title="tableColumns" |
|||
:DrawerLoading="Loading.DrawerLoading" |
|||
:drawer="displayDialog.detailsDialog" |
|||
:propsData="propsData" |
|||
:tabsDesTions="tabsDesTions" |
|||
:Butttondata="DrawerButtonData" |
|||
@drawerShut="(val) => (displayDialog.detailsDialog = val)" |
|||
@handleCommand="drawerHandle" |
|||
@drawerbutton="drawerbuttonHandle" |
|||
@close-value="closeValue" |
|||
:tableColumns="detailsTableColumns" |
|||
:totalCount="totalCountDetails" |
|||
:MaxResultCount="MaxResultCountDetails" |
|||
@alterResultCountDetails="alterResultCountDetails" |
|||
@alertoldSkipCountDetails="alertoldSkipCountDetails" |
|||
@currenTabsChange="currenTabsChange" |
|||
:selectionTable="true" |
|||
@handleSelectionChange="handleSelectionChangeDrawer" |
|||
> |
|||
<template> |
|||
<el-table-column |
|||
fixed="right" |
|||
label="操作" |
|||
align="center" |
|||
width="120" |
|||
> |
|||
<template slot-scope="scope"> |
|||
<span class="drawerRowButtton" @click="buttonClick(scope.row)">打印</span> |
|||
</template> |
|||
</el-table-column> |
|||
</template> |
|||
</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 { initPrintPackingCodeData,initPrintPackingCodeManyData } from "@/mixins/printMixin" |
|||
export default { |
|||
name: "separationPackingNote", |
|||
mixins: [ |
|||
tableMixins, |
|||
LoadingMixins, |
|||
drawerMixins, |
|||
TableHeaderMixins, |
|||
mixins, |
|||
], |
|||
computed: { |
|||
hideButton: function () { |
|||
return function (val) { |
|||
console.log(this.currentTagName) |
|||
return this.currentTagName != 'mx' |
|||
} |
|||
}, |
|||
}, |
|||
data() { |
|||
return { |
|||
URL: "wms/store/separation-packing-note", |
|||
// tab标签值 |
|||
currentTagName:'xq', |
|||
//常用按钮数据 |
|||
currenButtonData: [ |
|||
// this.defaultImportBtn(),//导入 |
|||
this.defaultExportBtn(),//导出 |
|||
this.defaultFieldSettingBtn(),//字段设置 |
|||
this.defaultFreshBtn(),//刷新 |
|||
this.defaultFilterBtn(),//筛选 |
|||
], |
|||
DrawerButtonData: [ |
|||
{ |
|||
type: 'success', |
|||
icon: 'el-icon-printer', |
|||
label: '打印原箱码', |
|||
hide: false, |
|||
name: "print_old", |
|||
size: 'mini' |
|||
}, |
|||
{ |
|||
type: 'warning', |
|||
icon: 'el-icon-finished', |
|||
label: '批量打印', |
|||
hide: () => { return this.hideButton() }, |
|||
name: "print_many", |
|||
size: 'mini' |
|||
}, |
|||
], |
|||
// 明细已选 |
|||
selectedForMx:[], |
|||
}; |
|||
}, |
|||
mounted() { |
|||
this.paging(); |
|||
}, |
|||
methods:{ |
|||
currenTabsChange(row){ |
|||
this.currentTagName = row.name |
|||
}, |
|||
//抽屉下拉按钮操作 |
|||
async drawerbuttonHandle(val) { |
|||
// 打印原箱码 |
|||
if (val == 'print_old') { |
|||
let _option = { |
|||
specifications:"configuration", |
|||
poNumber:"purchaseInfo_PoNumber", |
|||
asnNumber:"purchaseInfo_AsnNumber", |
|||
} |
|||
let _propsData = JSON.parse(JSON.stringify(this.propsData)) |
|||
delete _propsData.details |
|||
_propsData.details = [JSON.stringify(_propsData)] |
|||
|
|||
// _propsData.title = "原箱码" |
|||
let data = await initPrintPackingCodeData(_propsData,_option); |
|||
this.Print(data) |
|||
} |
|||
// 批量打印 |
|||
else if(val == 'print_many'){ |
|||
if(!this.selectedForMx || this.selectedForMx.length <= 0){ |
|||
return this.$warningMsg("请先选择要打印的明细") |
|||
} |
|||
let _propsData = {details:[]} |
|||
_propsData.details = JSON.parse(JSON.stringify(this.selectedForMx)) |
|||
let _option = { |
|||
specifications:"configuration", |
|||
poNumber:"purchaseInfo_PoNumber", |
|||
asnNumber:"purchaseInfo_AsnNumber", |
|||
} |
|||
|
|||
let _data = await initPrintPackingCodeManyData(_propsData,_option); |
|||
this.Print(_data) |
|||
} |
|||
}, |
|||
// 明细单条打印 |
|||
async buttonClick(row){ |
|||
let _propsData = JSON.parse(JSON.stringify(row)) |
|||
_propsData.details = [] |
|||
_propsData.details.push(row) |
|||
let _option = { |
|||
specifications:"configuration", |
|||
poNumber:"purchaseInfo_PoNumber", |
|||
asnNumber:"purchaseInfo_AsnNumber", |
|||
} |
|||
let data = await initPrintPackingCodeData(_propsData,_option); |
|||
this.Print(data) |
|||
}, |
|||
// 明细多选 |
|||
handleSelectionChangeDrawer(data){ |
|||
console.log(data) |
|||
this.selectedForMx = data |
|||
} |
|||
} |
|||
}; |
|||
</script> |
|||
<style lang="scss" scoped> |
|||
@import "../../styles/mainbasicData.scss"; |
|||
.drawerRowButtton{ |
|||
color:#409eff; |
|||
cursor: pointer; |
|||
&:hover{ |
|||
color:#a0cfff |
|||
} |
|||
} |
|||
</style> |
Loading…
Reference in new issue