8 changed files with 314 additions and 100 deletions
@ -1,93 +1,236 @@ |
|||||
<template> |
<template> |
||||
<div class="page-box" v-loading="Loading.appMainLoading"> |
<div class="page-box" v-loading="Loading.appMainLoading"> |
||||
<tablePagination |
<tablePagination |
||||
:currenButtonData="currenButtonData" |
:currenButtonData="currenButtonData" |
||||
:tableData="tableData" |
:tableData="tableData" |
||||
:tableLoading="Loading.tableLoading" |
:tableLoading="Loading.tableLoading" |
||||
:tableColumns="tableColumns" |
:tableColumns="tableColumns" |
||||
@rowDrop="rowDrop" |
@rowDrop="rowDrop" |
||||
:totalCount="totalCount" |
:totalCount="totalCount" |
||||
:multipleSelection="multipleSelection" |
:multipleSelection="multipleSelection" |
||||
:MaxResultCount="PageListParams.MaxResultCount" |
:MaxResultCount="PageListParams.MaxResultCount" |
||||
@topbutton="topbutton" |
@topbutton="topbutton" |
||||
@inlineDialog="inlineDialog" |
@inlineDialog="inlineDialog" |
||||
@sortChange="sortChange" |
@sortChange="sortChange" |
||||
@alertoldSkipCount="alertoldSkipCount" |
@alertoldSkipCount="alertoldSkipCount" |
||||
@alterResultCount="alterResultCount" |
@alterResultCount="alterResultCount" |
||||
@handleSelectionChange="handleSelectionChange" |
@handleSelectionChange="handleSelectionChange" |
||||
:currentPageProps="oldSkipCount" |
:currentPageProps="oldSkipCount" |
||||
:quicklySearchOption="quicklySearchOption" |
:quicklySearchOption="quicklySearchOption" |
||||
@quicklySearchClick="quicklySearchClick" |
@quicklySearchClick="quicklySearchClick" |
||||
@quicklySearchClear="quicklySearchClear" |
@quicklySearchClear="quicklySearchClear" |
||||
:primarySearchOption="primarySearchOption" |
:primarySearchOption="primarySearchOption" |
||||
@overallSearchFormClick="overallSearchFormClick" |
@overallSearchFormClick="overallSearchFormClick" |
||||
:httpOverallSearchData="httpOverallSearchData" |
:httpOverallSearchData="httpOverallSearchData" |
||||
:setUTableHeight="140" |
:setUTableHeight="140" |
||||
> |
> |
||||
</tablePagination> |
</tablePagination> |
||||
<!-- 新导入 disabledMethod 导入方式禁用 disabledIsAllowPartImport 是否局部导入禁用--> |
<!-- 新导入 disabledMethod 导入方式禁用 disabledIsAllowPartImport 是否局部导入禁用--> |
||||
<!-- methodValue 导入方式默认选项 是否局部导入 默认选项 --> |
<!-- methodValue 导入方式默认选项 是否局部导入 默认选项 --> |
||||
<importFile |
<importFile |
||||
:loading="Loading.importLoading" |
:loading="Loading.importLoading" |
||||
:show="displayDialog.importDialog" |
:show="displayDialog.importDialog" |
||||
:URL="URL" |
:URL="URL" |
||||
:disabledMethod = {method1:false,method2:false,method3:false} |
:disabledMethod = {method1:false,method2:false,method3:false} |
||||
:disabledIsAllowPartImport = {isAllowPartImport1:false,isAllowPartImport2:false} |
:disabledIsAllowPartImport = {isAllowPartImport1:false,isAllowPartImport2:false} |
||||
isAllowPartImportValue="1" |
isAllowPartImportValue="1" |
||||
@importClick="postImportMergeClick(arguments)" |
@importClick="postImportMergeClick(arguments)" |
||||
@postImportDown="importDown" |
@postImportDown="importDown" |
||||
></importFile> |
></importFile> |
||||
<!--抽屉--> |
<!--抽屉--> |
||||
<curren-Drawer |
<curren-Drawer |
||||
:title="tableColumns" |
:title="tableColumns" |
||||
:DrawerLoading="Loading.DrawerLoading" |
:DrawerLoading="Loading.DrawerLoading" |
||||
:drawer="displayDialog.detailsDialog" |
:drawer="displayDialog.detailsDialog" |
||||
:propsData="propsData" |
:propsData="propsData" |
||||
:tabsDesTions="tabsDesTions" |
:tabsDesTions="tabsDesTions" |
||||
:Butttondata="[]" |
:Butttondata="DrawerButtonData" |
||||
@drawerShut="(val) => (displayDialog.detailsDialog = val)" |
@drawerbutton="drawerbutton" |
||||
@handleCommand="drawerHandle" |
@drawerShut="(val) => (displayDialog.detailsDialog = val)" |
||||
@close-value="closeValue" |
@handleCommand="drawerHandle" |
||||
:tableColumns="detailsTableColumns" |
@close-value="closeValue" |
||||
:totalCount="totalCountDetails" |
:tableColumns="detailsTableColumns" |
||||
:MaxResultCount="MaxResultCountDetails" |
:totalCount="totalCountDetails" |
||||
@alterResultCountDetails="alterResultCountDetails" |
:MaxResultCount="MaxResultCountDetails" |
||||
@alertoldSkipCountDetails="alertoldSkipCountDetails" |
@alterResultCountDetails="alterResultCountDetails" |
||||
></curren-Drawer> |
@alertoldSkipCountDetails="alertoldSkipCountDetails" |
||||
</div> |
></curren-Drawer> |
||||
</template> |
<!-- 新增与编辑 --> |
||||
<script> |
<newAndEdiDialog |
||||
import { tableMixins } from "@/mixins/TableMixins"; |
:loading="Loading.newAndEdiLoading" |
||||
import { LoadingMixins } from "@/mixins/LoadingMixins"; |
:active="active" |
||||
import { drawerMixins } from "@/mixins/drawerMixins"; |
:pageStatus="pageStatus" |
||||
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"; |
:formReveal="formReveal" |
||||
import { mixins } from "@/mixins/mixins"; |
:formTitle="formTitle" |
||||
export default { |
:displayDialog="editDialog" |
||||
name: "padTransferLibJob", |
:FormData="formReveal ? CreateFormData : editFormData" |
||||
mixins: [ |
:Form="formReveal ? CreateForm : editForm" |
||||
tableMixins, |
:Options="editOptions" |
||||
LoadingMixins, |
:Handle="editHandle" |
||||
drawerMixins, |
:Rules="formReveal ? editRules.cerateRule : editRules.editRule" |
||||
TableHeaderMixins, |
@FormSubmit="FormSubmitHandle" |
||||
mixins, |
@close="FormClose" |
||||
], |
@goBack="goBack" |
||||
data() { |
> |
||||
return { |
<template> |
||||
URL: "wms/store/kitting-issue-request", |
<curren-descriptions |
||||
//常用按钮数据 |
v-if="this.displayDialog.newDialog" |
||||
currenButtonData: [ |
:border="true" |
||||
// this.defaultImportBtn(),//导入 |
:column="3" |
||||
this.defaultFieldSettingBtn(),//字段设置 |
:direction="'horizontal'" |
||||
this.defaultFreshBtn(),//刷新 |
:colon="false" |
||||
this.defaultFilterBtn(),//筛选 |
:tabsDesTions="detailsTableColumns" |
||||
], |
:propsData="propsData.details[0]" |
||||
}; |
class="drawerDescriptionsFirst" |
||||
|
style="width:100%;padding-top:20px" |
||||
|
> |
||||
|
</curren-descriptions> |
||||
|
</template> |
||||
|
</newAndEdiDialog> |
||||
|
<!-- 搜索按钮——窗体组件 --> |
||||
|
<searchPage |
||||
|
ref="searchTable" |
||||
|
:tableLoading="Loading.autoTableLoading" |
||||
|
:advancedFilter="advancedFilter()" |
||||
|
:filterPageListParams="filterPageListParams" |
||||
|
:formTitle="searchTitle" |
||||
|
:displayDialog="displayDialog.AddNewDialog" |
||||
|
:searchTableData="searchData" |
||||
|
:searchTableColumns="searchColumns" |
||||
|
:searchTotalCount="searchTotalCount" |
||||
|
:supplierItemPage="searchPageListParams" |
||||
|
@handleSelectionChange="prepareFormData" |
||||
|
@SizeChange="searchAlterResultCount($event, searchPageListParams)" |
||||
|
@CurrentChange="searchAlertoldSkipCount($event, searchPageListParams)" |
||||
|
@tableButtonClick="searchSubmit(arguments)" |
||||
|
></searchPage> |
||||
|
</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 { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins" |
||||
|
import { filterSelectMixins } from '@/mixins/filter-Select' |
||||
|
import { transferLibJobHandel } from '@/api/wms-job' |
||||
|
import { getInventoryByPackingCode } from '@/api/wms-api' |
||||
|
import currenDescriptions from "@/components/currenDescriptions" |
||||
|
export default { |
||||
|
name: "padTransferLibJob", |
||||
|
components: { |
||||
|
currenDescriptions, |
||||
|
}, |
||||
|
mixins: [ |
||||
|
tableMixins, |
||||
|
LoadingMixins, |
||||
|
drawerMixins, |
||||
|
TableHeaderMixins, |
||||
|
mixins, |
||||
|
filterSelectMixins, |
||||
|
newAndEdiDialogMixins |
||||
|
], |
||||
|
computed: { |
||||
|
editDialog: { |
||||
|
get: function () { |
||||
|
return this.displayDialog.newDialog || this.displayDialog.editDialog; |
||||
|
}, |
||||
}, |
}, |
||||
mounted() { |
//按钮显示 |
||||
this.paging(); |
hideButton: function () { |
||||
|
return function (val) { |
||||
|
let data = true |
||||
|
val.forEach(key => { |
||||
|
if (this.propsData.jobStatus == key) { |
||||
|
data = false |
||||
|
} |
||||
|
}) |
||||
|
return data |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
URL: "wms/store/transfer-lib-job", |
||||
|
//常用按钮数据 |
||||
|
currenButtonData: [ |
||||
|
// this.defaultImportBtn(),//导入 |
||||
|
this.defaultFieldSettingBtn(),//字段设置 |
||||
|
this.defaultFreshBtn(),//刷新 |
||||
|
this.defaultFilterBtn(),//筛选 |
||||
|
], |
||||
|
DrawerButtonData:[ |
||||
|
{ |
||||
|
type:'success', |
||||
|
label: '完成库移', |
||||
|
name: "handle", |
||||
|
hide: () => { return this.hideButton([1,2,4]) }, |
||||
|
size:"mini" |
||||
|
}, |
||||
|
], |
||||
|
CreateFormData: { |
||||
|
packingCode:"", |
||||
|
fromLocationCode:"", |
||||
|
toLocationCode:"", |
||||
|
}, |
||||
|
CreateForm: [ |
||||
|
{ type: "input", label: "箱码", prop: 'packingCode', colSpan: 12, }, |
||||
|
{ type: "input", label: "来源库位", prop: 'fromLocationCode', colSpan: 12, }, |
||||
|
{ type: "input", label: "目标库位", prop: 'toLocationCode', colSpan: 12, }, |
||||
|
], |
||||
|
editRules: { |
||||
|
cerateRule: { |
||||
|
packingCode: [{ required: true, trigger: "blur", message: "不可为空" }], |
||||
|
fromLocationCode: [{ required: true, trigger: "blur", message: "不可为空" }], |
||||
|
toLocationCode: [{ required: true, trigger: "blur", message: "不可为空" }], |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
}, |
||||
|
mounted() { |
||||
|
this.paging(); |
||||
|
}, |
||||
|
methods:{ |
||||
|
drawerbutton(val){ |
||||
|
// 完成库移 |
||||
|
if(val == "handle"){ |
||||
|
this.formTitle = "完成库移"; |
||||
|
this.formReveal = true |
||||
|
this.theEvent = "newly" |
||||
|
this.displayDialog.newDialog = true; |
||||
|
} |
||||
}, |
}, |
||||
}; |
FormSubmitHandle(val){ |
||||
</script> |
this.Loading.newAndEdiLoading = true |
||||
<style lang="scss" scoped> |
// 先获取库存余额进行部分项赋值 |
||||
@import "@/styles/mainbasicData.scss"; |
getInventoryByPackingCode(this.CreateFormData.packingCode).then(inventory => { |
||||
</style> |
// 目前定的需求为:details中只有一条明细,所以按钮写在最外层,默认赋值第一位 |
||||
|
let _data = this.propsData |
||||
|
_data.details[0].handledFromPackingCode = this.CreateFormData.packingCode |
||||
|
_data.details[0].handledToPackingCode = this.CreateFormData.packingCode |
||||
|
_data.details[0].handledFromLocationCode = this.CreateFormData.fromLocationCode |
||||
|
_data.details[0].handledToLocationCode = this.CreateFormData.toLocationCode |
||||
|
_data.details[0].handledToLot = inventory.lot |
||||
|
_data.details[0].handledFromLot = inventory.lot |
||||
|
_data.details[0].handledFromSupplierBatch = inventory.supplierBatch |
||||
|
_data.details[0].handledToSupplierBatch = inventory.supplierBatch |
||||
|
_data.details[0].handledFromQty = inventory.qty |
||||
|
_data.details[0].handledToQty = inventory.qty |
||||
|
transferLibJobHandel(this.propsData.id, _data).then(res => { |
||||
|
this.Loading.newAndEdiLoading = false |
||||
|
this.FormResult("success") |
||||
|
}).catch(err => { |
||||
|
this.Loading.newAndEdiLoading = false |
||||
|
this.FormResult("error") |
||||
|
}) |
||||
|
}).catch(err => { |
||||
|
this.Loading.newAndEdiLoading = false |
||||
|
}) |
||||
|
} |
||||
|
} |
||||
|
}; |
||||
|
</script> |
||||
|
<style lang="scss" scoped> |
||||
|
@import "@/styles/mainbasicData.scss"; |
||||
|
</style> |
Loading…
Reference in new issue