diff --git a/ant-design-vue-jeecg/src/views/system/config/AddressList.vue b/ant-design-vue-jeecg/src/views/system/config/AddressList.vue index 7dfa9bb..cb2cf97 100644 --- a/ant-design-vue-jeecg/src/views/system/config/AddressList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/AddressList.vue @@ -32,9 +32,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'address:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/AgvPortList.vue b/ant-design-vue-jeecg/src/views/system/config/AgvPortList.vue index 19cfdeb..3beaed3 100644 --- a/ant-design-vue-jeecg/src/views/system/config/AgvPortList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/AgvPortList.vue @@ -36,8 +36,6 @@ <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay"> <a-menu-item key="1" v-has="'agvPort:delete'" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> diff --git a/ant-design-vue-jeecg/src/views/system/config/BomHeaderList.vue b/ant-design-vue-jeecg/src/views/system/config/BomHeaderList.vue index 8d46560..64bee65 100644 --- a/ant-design-vue-jeecg/src/views/system/config/BomHeaderList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/BomHeaderList.vue @@ -37,9 +37,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> </div> <!-- table区域-begin --> diff --git a/ant-design-vue-jeecg/src/views/system/config/CarrierList.vue b/ant-design-vue-jeecg/src/views/system/config/CarrierList.vue index 58090f5..6b789dc 100644 --- a/ant-design-vue-jeecg/src/views/system/config/CarrierList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/CarrierList.vue @@ -17,9 +17,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'carrier:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/CompanyList.vue b/ant-design-vue-jeecg/src/views/system/config/CompanyList.vue index baa00d7..70d13f4 100644 --- a/ant-design-vue-jeecg/src/views/system/config/CompanyList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/CompanyList.vue @@ -37,9 +37,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'company:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/ContainerCapacityList.vue b/ant-design-vue-jeecg/src/views/system/config/ContainerCapacityList.vue index deb2eab..4c53a3d 100644 --- a/ant-design-vue-jeecg/src/views/system/config/ContainerCapacityList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/ContainerCapacityList.vue @@ -44,9 +44,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'containerCapacity:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/ContainerList.vue b/ant-design-vue-jeecg/src/views/system/config/ContainerList.vue index a40a850..16feec1 100644 --- a/ant-design-vue-jeecg/src/views/system/config/ContainerList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/ContainerList.vue @@ -60,9 +60,6 @@ <a-button type="primary" icon="import">导入</a-button> <a-button v-has="'container:print'" @click="batchPrint()" type="primary">打印</a-button> </a-upload> - <!-- 高级查询区域 --> -<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal"--> -<!-- @handleSuperQuery="handleSuperQuery"></j-super-query>--> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'container:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/ContainerTypeList.vue b/ant-design-vue-jeecg/src/views/system/config/ContainerTypeList.vue index 855db98..44b1df5 100644 --- a/ant-design-vue-jeecg/src/views/system/config/ContainerTypeList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/ContainerTypeList.vue @@ -37,9 +37,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'containerType:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/CustomerList.vue b/ant-design-vue-jeecg/src/views/system/config/CustomerList.vue index 9238484..69c6f4f 100644 --- a/ant-design-vue-jeecg/src/views/system/config/CustomerList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/CustomerList.vue @@ -17,9 +17,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'customer:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/CycleCountPreferenceList.vue b/ant-design-vue-jeecg/src/views/system/config/CycleCountPreferenceList.vue index ca7d43f..63180ec 100644 --- a/ant-design-vue-jeecg/src/views/system/config/CycleCountPreferenceList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/CycleCountPreferenceList.vue @@ -17,9 +17,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'cycleCountPreference:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/LocationHighList.vue b/ant-design-vue-jeecg/src/views/system/config/LocationHighList.vue index 81fd863..7d69b48 100644 --- a/ant-design-vue-jeecg/src/views/system/config/LocationHighList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/LocationHighList.vue @@ -37,9 +37,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'locationHigh:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/LocationList.vue b/ant-design-vue-jeecg/src/views/system/config/LocationList.vue index 4b7586c..020f13e 100644 --- a/ant-design-vue-jeecg/src/views/system/config/LocationList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/LocationList.vue @@ -113,9 +113,6 @@ <a-button type="primary" icon="import">导入</a-button> <a-button v-has="'material:print'" @click="batchPrint()" type="primary">打印</a-button> </a-upload> - <!-- 高级查询区域 --> -<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal"--> -<!-- @handleSuperQuery="handleSuperQuery"></j-super-query>--> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'location:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/LocationTypeList.vue b/ant-design-vue-jeecg/src/views/system/config/LocationTypeList.vue index 69e80c2..e916e15 100644 --- a/ant-design-vue-jeecg/src/views/system/config/LocationTypeList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/LocationTypeList.vue @@ -37,9 +37,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'locationType:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/MaterialAreaList.vue b/ant-design-vue-jeecg/src/views/system/config/MaterialAreaList.vue index b4139ba..665729e 100644 --- a/ant-design-vue-jeecg/src/views/system/config/MaterialAreaList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/MaterialAreaList.vue @@ -17,9 +17,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'materialArea:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/MaterialList.vue b/ant-design-vue-jeecg/src/views/system/config/MaterialList.vue index 955ca1d..6c9340c 100644 --- a/ant-design-vue-jeecg/src/views/system/config/MaterialList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/MaterialList.vue @@ -45,9 +45,6 @@ <a-button type="primary" icon="import">导入</a-button> <a-button v-has="'material:print'" @click="batchPrint()" type="primary">打印</a-button> </a-upload> - <!-- 高级查询区域 --> -<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal"--> -<!-- @handleSuperQuery="handleSuperQuery"></j-super-query>--> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'material:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/MaterialMultipleList.vue b/ant-design-vue-jeecg/src/views/system/config/MaterialMultipleList.vue index f75eae2..38f7aed 100644 --- a/ant-design-vue-jeecg/src/views/system/config/MaterialMultipleList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/MaterialMultipleList.vue @@ -17,9 +17,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'materialMultiple:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/MaterialTypeList.vue b/ant-design-vue-jeecg/src/views/system/config/MaterialTypeList.vue index 37b58f5..e9cea3f 100644 --- a/ant-design-vue-jeecg/src/views/system/config/MaterialTypeList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/MaterialTypeList.vue @@ -37,9 +37,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'materialType:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/MaterialUnitList.vue b/ant-design-vue-jeecg/src/views/system/config/MaterialUnitList.vue index cca3c90..e733fde 100644 --- a/ant-design-vue-jeecg/src/views/system/config/MaterialUnitList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/MaterialUnitList.vue @@ -44,9 +44,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'materialUnit:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/MaterialWarningList.vue b/ant-design-vue-jeecg/src/views/system/config/MaterialWarningList.vue index 573ad14..053d2f5 100644 --- a/ant-design-vue-jeecg/src/views/system/config/MaterialWarningList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/MaterialWarningList.vue @@ -37,9 +37,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'materialWarning:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/ParameterConfigurationList.vue b/ant-design-vue-jeecg/src/views/system/config/ParameterConfigurationList.vue index 170e204..0164d87 100644 --- a/ant-design-vue-jeecg/src/views/system/config/ParameterConfigurationList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/ParameterConfigurationList.vue @@ -44,9 +44,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'ParameterConfiguration:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/PortList.vue b/ant-design-vue-jeecg/src/views/system/config/PortList.vue index c73b971..81b6dce 100644 --- a/ant-design-vue-jeecg/src/views/system/config/PortList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/PortList.vue @@ -44,9 +44,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'port:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/ReceiptTypeList.vue b/ant-design-vue-jeecg/src/views/system/config/ReceiptTypeList.vue index f2fda80..7b5139c 100644 --- a/ant-design-vue-jeecg/src/views/system/config/ReceiptTypeList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/ReceiptTypeList.vue @@ -37,9 +37,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'receiptType:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/ShipmentTypeList.vue b/ant-design-vue-jeecg/src/views/system/config/ShipmentTypeList.vue index c5d4d11..f0be1e7 100644 --- a/ant-design-vue-jeecg/src/views/system/config/ShipmentTypeList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/ShipmentTypeList.vue @@ -37,9 +37,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'shipmentType:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/SupplierList.vue b/ant-design-vue-jeecg/src/views/system/config/SupplierList.vue index f41da86..252fc55 100644 --- a/ant-design-vue-jeecg/src/views/system/config/SupplierList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/SupplierList.vue @@ -44,9 +44,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'supplier:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/SysUserWarehouseList.vue b/ant-design-vue-jeecg/src/views/system/config/SysUserWarehouseList.vue index 080491d..36ecaf3 100644 --- a/ant-design-vue-jeecg/src/views/system/config/SysUserWarehouseList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/SysUserWarehouseList.vue @@ -17,9 +17,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'sysUserWarehouse:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/config/WarehouseList.vue b/ant-design-vue-jeecg/src/views/system/config/WarehouseList.vue index ba67ded..ee0a56f 100644 --- a/ant-design-vue-jeecg/src/views/system/config/WarehouseList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/WarehouseList.vue @@ -44,9 +44,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <!-- <a-dropdown v-if="selectedRowKeys.length > 0">--> <!-- <a-menu slot="overlay">--> <!-- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>--> diff --git a/ant-design-vue-jeecg/src/views/system/config/ZoneList.vue b/ant-design-vue-jeecg/src/views/system/config/ZoneList.vue index 3445ba4..d9ef739 100644 --- a/ant-design-vue-jeecg/src/views/system/config/ZoneList.vue +++ b/ant-design-vue-jeecg/src/views/system/config/ZoneList.vue @@ -37,9 +37,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'zone:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/inventory/InventoryHeaderList.vue b/ant-design-vue-jeecg/src/views/system/inventory/InventoryHeaderList.vue index de152b8..3a8be8e 100644 --- a/ant-design-vue-jeecg/src/views/system/inventory/InventoryHeaderList.vue +++ b/ant-design-vue-jeecg/src/views/system/inventory/InventoryHeaderList.vue @@ -64,18 +64,15 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> </div> <!-- table区域-begin --> <div> - <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> - <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a - style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 - <a style="margin-left: 24px" @click="onClearSelected">清空</a> - </div> +<!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">--> +<!-- <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a--> +<!-- style="font-weight: 600">{{ selectedRowKeys.length }}</a>项--> +<!-- <a style="margin-left: 24px" @click="onClearSelected">清空</a>--> +<!-- </div>--> <a-table ref="table" diff --git a/ant-design-vue-jeecg/src/views/system/inventory/InventoryMaterialSummaryList.vue b/ant-design-vue-jeecg/src/views/system/inventory/InventoryMaterialSummaryList.vue index 7183764..abc9bd2 100644 --- a/ant-design-vue-jeecg/src/views/system/inventory/InventoryMaterialSummaryList.vue +++ b/ant-design-vue-jeecg/src/views/system/inventory/InventoryMaterialSummaryList.vue @@ -16,16 +16,14 @@ <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> </div> <!-- table区域-begin --> <div> - <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> - <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 - <a style="margin-left: 24px" @click="onClearSelected">清空</a> - </div> +<!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">--> +<!-- <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项--> +<!-- <a style="margin-left: 24px" @click="onClearSelected">清空</a>--> +<!-- </div>--> <a-table ref="table" diff --git a/ant-design-vue-jeecg/src/views/system/inventory/InventoryTransactionList.vue b/ant-design-vue-jeecg/src/views/system/inventory/InventoryTransactionList.vue index 78ddffa..b7453f0 100644 --- a/ant-design-vue-jeecg/src/views/system/inventory/InventoryTransactionList.vue +++ b/ant-design-vue-jeecg/src/views/system/inventory/InventoryTransactionList.vue @@ -104,9 +104,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'inventoryTransaction:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/monitor/ApiLogList.vue b/ant-design-vue-jeecg/src/views/system/monitor/ApiLogList.vue index 824cb7f..0e4971f 100644 --- a/ant-design-vue-jeecg/src/views/system/monitor/ApiLogList.vue +++ b/ant-design-vue-jeecg/src/views/system/monitor/ApiLogList.vue @@ -78,9 +78,6 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay" v-has="'apiLog:deleteBatch'"> <a-menu-item key="1" @click="batchDel"> diff --git a/ant-design-vue-jeecg/src/views/system/receipt/ReceiptContainerHeaderList.vue b/ant-design-vue-jeecg/src/views/system/receipt/ReceiptContainerHeaderList.vue index 45abc4d..0d634ee 100644 --- a/ant-design-vue-jeecg/src/views/system/receipt/ReceiptContainerHeaderList.vue +++ b/ant-design-vue-jeecg/src/views/system/receipt/ReceiptContainerHeaderList.vue @@ -20,7 +20,6 @@ </a-form-item> </a-col> <template v-if="toggleSearchStatus"> - <a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-form-item label="起始库位"> <a-input placeholder="请输入起始库位" v-model="queryParam.fromLocationCode"></a-input> </a-form-item> @@ -67,9 +66,6 @@ <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> -<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal"--> -<!-- @handleSuperQuery="handleSuperQuery"></j-super-query>--> </div> <!-- table区域-begin --> @@ -105,19 +101,27 @@ type="primary" icon="download" size="small" - @click="downloadFile(text)">下载 + @click="downloadFile(text)"> + 下载 </a-button> </template> - <span slot="action" slot-scope="text, record"> + <span slot="action" slot-scope="text, record"> <a v-if="record.status == 0 && record.taskType == 200" @click="selectPort(record)">生成任务</a> <a v-else-if="record.status == 0" @click="createTask(record)">生成任务</a> <a-divider type="vertical"/> <a-popconfirm v-if="record.status == 0" v-has="'receiptContainerHeader:delete'" title="确定取消配盘吗?" @confirm="() => handleDelete(record.id)"> - <a>取消配盘</a> + <a>取消配盘</a> </a-popconfirm> <a-divider type="vertical"/> - <a v-has="'receiptContainerHeader:edit'" @click="handleEdit(record)">编辑</a> + <a-dropdown> + <a class="ant-dropdown-link">更多 <a-icon type="down"/></a> + <a-menu slot="overlay"> + <a-menu-item> + <a v-has="'receiptContainerHeader:edit'" @click="handleEdit(record)">编辑</a> + </a-menu-item> + </a-menu> + </a-dropdown> </span> </a-table> diff --git a/ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderHistoryList.vue b/ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderHistoryList.vue index 2bee0b2..d54156a 100644 --- a/ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderHistoryList.vue +++ b/ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderHistoryList.vue @@ -107,9 +107,6 @@ @change='handleImportExcel'> <!-- <a-button type="primary" icon="import">导入</a-button>--> </a-upload> - <!-- 高级查询区域 --> -<!-- <j-super-query :fieldList='superFieldList' ref='superQueryModal'--> -<!-- @handleSuperQuery='handleSuperQuery'></j-super-query>--> </div> <!-- table区域-begin --> diff --git a/ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue b/ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue index 835491d..fca423a 100644 --- a/ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue +++ b/ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue @@ -106,9 +106,6 @@ <a-button type="primary" icon="import">导入</a-button> <a-button v-has="'receiptHeader:print'" @click="batchPrint()" type="primary">打印</a-button> </a-upload> - <!-- 高级查询区域 --> -<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal"--> -<!-- @handleSuperQuery="handleSuperQuery"></j-super-query>--> </div> <!-- table区域-begin --> diff --git a/ant-design-vue-jeecg/src/views/system/shipment/ShipmentContainerHeaderList.vue b/ant-design-vue-jeecg/src/views/system/shipment/ShipmentContainerHeaderList.vue index e23ff96..898ef6c 100644 --- a/ant-design-vue-jeecg/src/views/system/shipment/ShipmentContainerHeaderList.vue +++ b/ant-design-vue-jeecg/src/views/system/shipment/ShipmentContainerHeaderList.vue @@ -74,18 +74,15 @@ @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> </div> <!-- table区域-begin --> <div> - <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> - <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a - style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 - <a style="margin-left: 24px" @click="onClearSelected">清空</a> - </div> +<!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">--> +<!-- <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a--> +<!-- style="font-weight: 600">{{ selectedRowKeys.length }}</a>项--> +<!-- <a style="margin-left: 24px" @click="onClearSelected">清空</a>--> +<!-- </div>--> <a-table ref="table" @@ -124,17 +121,17 @@ </template> <span slot="action" slot-scope="text, record"> - <a v-has="'shipmentContainerHeader:edit'" @click="handleEdit(record)">编辑</a> - <a-divider type="vertical"/> <a v-if="record.status == 0" @click="selectPort(record)">生成任务</a> <a-divider type="vertical"/> + <a-popconfirm v-if="record.status == 0" v-has="'shipmentContainerHeader:delete'" title="确定取消配盘吗?" @confirm="() => handleDelete(record.id)"> + <a>取消配盘</a> + </a-popconfirm> + <a-divider type="vertical"/> <a-dropdown> <a class="ant-dropdown-link">更多 <a-icon type="down"/></a> - <a-menu slot="overlay" v-has="'shipmentContainerHeader:delete'"> + <a-menu slot="overlay" > <a-menu-item> - <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> - <a>删除</a> - </a-popconfirm> + <a v-has="'receiptContainerHeader:edit'" @click="handleEdit(record)">编辑</a> </a-menu-item> </a-menu> </a-dropdown> diff --git a/ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderHistoryList.vue b/ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderHistoryList.vue index 6f94a0e..850f1fd 100644 --- a/ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderHistoryList.vue +++ b/ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderHistoryList.vue @@ -109,9 +109,6 @@ @change="handleImportExcel"> <!-- <a-button type="primary" icon="import">导入</a-button>--> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" - @handleSuperQuery="handleSuperQuery"></j-super-query> </div> <!-- table区域-begin --> diff --git a/ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue b/ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue index 32645b3..cdeecfd 100644 --- a/ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue +++ b/ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue @@ -121,11 +121,11 @@ <!-- table区域-begin --> <div> - <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> - <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a - style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 - <a style="margin-left: 24px" @click="onClearSelected">清空</a> - </div> +<!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">--> +<!-- <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a--> +<!-- style="font-weight: 600">{{ selectedRowKeys.length }}</a>项--> +<!-- <a style="margin-left: 24px" @click="onClearSelected">清空</a>--> +<!-- </div>--> <a-table ref="table" diff --git a/ant-design-vue-jeecg/src/views/system/stocktaking/CycleCountHeaderList.vue b/ant-design-vue-jeecg/src/views/system/stocktaking/CycleCountHeaderList.vue index 9e8bdec..a94720c 100644 --- a/ant-design-vue-jeecg/src/views/system/stocktaking/CycleCountHeaderList.vue +++ b/ant-design-vue-jeecg/src/views/system/stocktaking/CycleCountHeaderList.vue @@ -16,8 +16,6 @@ <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> <a-dropdown v-if="selectedRowKeys.length > 0"> <a-menu slot="overlay"> <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> diff --git a/ant-design-vue-jeecg/src/views/system/task/AgvTaskList.vue b/ant-design-vue-jeecg/src/views/system/task/AgvTaskList.vue index 16ca404..a4eca56 100644 --- a/ant-design-vue-jeecg/src/views/system/task/AgvTaskList.vue +++ b/ant-design-vue-jeecg/src/views/system/task/AgvTaskList.vue @@ -53,8 +53,6 @@ <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> <a-button type="primary" icon="import">导入</a-button> </a-upload> - <!-- 高级查询区域 --> - <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> <!-- <a-dropdown v-if="selectedRowKeys.length > 0">--> <!-- <a-menu slot="overlay">--> <!-- <a-menu-item key="1" v-has="'agvTask:delete'" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>--> diff --git a/huaheng-wms-core/pom.xml b/huaheng-wms-core/pom.xml index a87c481..aef757b 100644 --- a/huaheng-wms-core/pom.xml +++ b/huaheng-wms-core/pom.xml @@ -1,6 +1,6 @@ <?xml version="1.0"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" - xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <parent> @@ -79,6 +79,12 @@ <artifactId>jimureport-spring-boot-starter</artifactId> <version>1.4.32</version> </dependency> + + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-validation</artifactId> + </dependency> + </dependencies> <build> diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/material/service/impl/MaterialServiceImpl.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/material/service/impl/MaterialServiceImpl.java index 3c49482..ab6fbeb 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/material/service/impl/MaterialServiceImpl.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/material/service/impl/MaterialServiceImpl.java @@ -1,19 +1,18 @@ package org.jeecg.modules.wms.config.material.service.impl; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.toolkit.Wrappers; -import org.jeecg.common.api.vo.Result; +import java.util.List; + import org.jeecg.modules.wms.config.material.entity.Material; import org.jeecg.modules.wms.config.material.mapper.MaterialMapper; import org.jeecg.modules.wms.config.material.service.IMaterialService; import org.jeecg.utils.StringUtils; +import org.jeecg.utils.constant.QuantityConstant; import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import javax.annotation.Resource; -import java.util.List; - /** * @Description: 物料管理 * @Author: jeecg-boot @@ -29,7 +28,7 @@ public class MaterialServiceImpl extends ServiceImpl<MaterialMapper, Material> i return null; } LambdaQueryWrapper<Material> materialLambdaQueryWrapper = Wrappers.lambdaQuery(); - materialLambdaQueryWrapper.eq(Material::getCode, code); + materialLambdaQueryWrapper.eq(Material::getCode, code).eq(Material::getEnable, QuantityConstant.STATUS_DISABLE); Material material = this.getOne(materialLambdaQueryWrapper); return material; } diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptContainerHeader/service/impl/ReceiptContainerHeaderServiceImpl.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptContainerHeader/service/impl/ReceiptContainerHeaderServiceImpl.java index e6607cd..0c5a8f6 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptContainerHeader/service/impl/ReceiptContainerHeaderServiceImpl.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptContainerHeader/service/impl/ReceiptContainerHeaderServiceImpl.java @@ -338,12 +338,13 @@ public class ReceiptContainerHeaderServiceImpl extends ServiceImpl<ReceiptContai List<ReceiptContainerDetail> receiptContainerDetailList = receiptContainerDetailService.getReceiptContainerDetailListByHeaderId(id); for (ReceiptContainerDetail receiptContainerDetail : receiptContainerDetailList) { ReceiptDetail receiptDetail = receiptDetailService.getById(receiptContainerDetail.getReceiptDetailId()); - if (receiptDetail != null) { - receiptDetail.setStatus(QuantityConstant.RECEIPT_HEADER_BUILD); - receiptDetail.setTaskQty(receiptDetail.getTaskQty().subtract(receiptContainerDetail.getQty())); - if (!receiptDetailService.updateById(receiptDetail)) { - throw new ServiceException("取消组盘失败, 更新入库明细失败id是" + receiptContainerDetail.getReceiptDetailId()); - } + if (receiptDetail == null) { + throw new ServiceException("取消组盘失败, 没有找到入库组盘详情id是" + receiptContainerDetail.getReceiptDetailId()); + } + receiptDetail.setStatus(QuantityConstant.RECEIPT_HEADER_BUILD); + receiptDetail.setTaskQty(receiptDetail.getTaskQty().subtract(receiptContainerDetail.getQty())); + if (!receiptDetailService.updateById(receiptDetail)) { + throw new ServiceException("取消组盘失败, 更新入库明细失败id是" + receiptContainerDetail.getReceiptDetailId()); } if (!receiptContainerDetailService.removeById(receiptContainerDetail.getId())) { throw new ServiceException("取消组盘失败, 删除入库组盘明细表失败id是" + receiptContainerDetail.getId()); diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/controller/ReceiptHeaderController.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/controller/ReceiptHeaderController.java index 4923638..068110a 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/controller/ReceiptHeaderController.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/controller/ReceiptHeaderController.java @@ -45,8 +45,7 @@ import org.springframework.web.multipart.MultipartHttpServletRequest; import org.springframework.web.servlet.ModelAndView; import com.alibaba.fastjson.JSON; -import com.aliyun.oss.ServiceException; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.aliyun.oss.ServiceException;import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.Wrappers; diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/entity/ReceiptDetail.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/entity/ReceiptDetail.java index 6182138..47dda70 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/entity/ReceiptDetail.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/entity/ReceiptDetail.java @@ -1,18 +1,18 @@ package org.jeecg.modules.wms.receipt.receiptHeader.entity; import java.io.Serializable; +import java.util.Date; + +import org.jeecg.common.aspect.annotation.Dict; +import org.jeecgframework.poi.excel.annotation.Excel; + import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; -import org.jeecg.common.aspect.annotation.Dict; -import lombok.Data; -import com.fasterxml.jackson.annotation.JsonFormat; -import org.springframework.format.annotation.DateTimeFormat; -import org.jeecgframework.poi.excel.annotation.Excel; -import java.util.Date; + import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.io.UnsupportedEncodingException; +import lombok.Data; /** * @Description: 入库单详情 diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/service/IReceiptDetailService.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/service/IReceiptDetailService.java index ba908fd..7f575a7 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/service/IReceiptDetailService.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/service/IReceiptDetailService.java @@ -1,11 +1,11 @@ package org.jeecg.modules.wms.receipt.receiptHeader.service; -import com.baomidou.mybatisplus.extension.service.IService; +import java.util.List; + import org.jeecg.common.api.vo.Result; import org.jeecg.modules.wms.receipt.receiptHeader.entity.ReceiptDetail; -import org.jeecg.modules.wms.receipt.receiptHeader.entity.ReceiptHeader; -import java.util.List; +import com.baomidou.mybatisplus.extension.service.IService; /** * @Description: 入库单详情 @@ -18,4 +18,8 @@ public interface IReceiptDetailService extends IService<ReceiptDetail> { public List<ReceiptDetail> selectByMainId(String mainId); public Result saveReceiptDetail(ReceiptDetail receiptDetail); + + public Result removeDetailById(String id); + + public Result removeDetailListById(List<String> idList); } diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/service/impl/ReceiptDetailServiceImpl.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/service/impl/ReceiptDetailServiceImpl.java index c83beb2..5022b50 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/service/impl/ReceiptDetailServiceImpl.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/service/impl/ReceiptDetailServiceImpl.java @@ -1,7 +1,11 @@ package org.jeecg.modules.wms.receipt.receiptHeader.service.impl; -import com.alibaba.fastjson.JSON; -import com.aliyun.oss.ServiceException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import javax.annotation.Resource; + import org.jeecg.common.api.vo.Result; import org.jeecg.modules.wms.config.material.entity.Material; import org.jeecg.modules.wms.config.material.service.IMaterialService; @@ -13,20 +17,23 @@ import org.jeecg.modules.wms.receipt.receiptHeader.service.IReceiptHeaderService import org.jeecg.utils.HuahengJwtUtil; import org.jeecg.utils.StringUtils; import org.jeecg.utils.constant.QuantityConstant; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; import java.util.ArrayList; +import java.util.List; +import java.util.ArrayList; import java.util.Collections; import java.util.List; + +import com.alibaba.fastjson.JSON; +import com.aliyun.oss.ServiceException; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import cn.monitor4all.logRecord.annotation.OperationLog; import cn.monitor4all.logRecord.context.LogRecordContext; -import org.springframework.beans.factory.annotation.Autowired; - -import javax.annotation.Resource; - /** * @Description: 入库单详情 * @Author: jeecg-boot @@ -50,9 +57,16 @@ public class ReceiptDetailServiceImpl extends ServiceImpl<ReceiptDetailMapper, R return receiptDetailMapper.selectByMainId(mainId); } + @Override + public boolean save(ReceiptDetail entity) { + BigDecimal qty = entity.getQty(); + if (qty.compareTo(BigDecimal.ZERO) < 0) { + throw new ServiceException("单据数量不能小于0"); + } + return super.save(entity); + } @Override - @OperationLog(bizId = "''", bizType = "'入库单追踪'", tag = "'入库详情添加'", extra = "#extraJsonString", msg = "''", recordReturnValue = true) - public Result saveReceiptDetail(ReceiptDetail receiptDetail) { + @OperationLog(bizId = "''", bizType = "'入库单追踪'", tag = "'入库详情添加'", extra = "#extraJsonString", msg = "''", operatorId = "#username", recordReturnValue = true) public Result saveReceiptDetail(ReceiptDetail receiptDetail) { ReceiptHeader receiptHeader = receiptHeaderService.getById(receiptDetail.getReceiptId()); if (receiptHeader == null) { return Result.error("添加失败,没有找到入库单头"); @@ -92,4 +106,43 @@ public class ReceiptDetailServiceImpl extends ServiceImpl<ReceiptDetailMapper, R LogRecordContext.putVariable("extraJsonString", JSON.toJSONString(Collections.singletonList(receiptDetail)));// 操作日志收集 return Result.OK("添加成功!"); } + + @Override + @Transactional(rollbackFor = ServiceException.class) + public Result removeDetailById(String id) { + ReceiptDetail receiptDetail = receiptDetailService.getById(id); + if (receiptDetail == null) { + return Result.error("删除失败, 没有找到入库单详情"); + } + BigDecimal taskQty = receiptDetail.getTaskQty(); + if (taskQty.compareTo(BigDecimal.ZERO) != 0) { + return Result.error("删除失败, 收货数量不为0"); + } + ReceiptHeader receiptHeader = receiptHeaderService.getById(receiptDetail.getReceiptId()); + if (receiptHeader == null) { + return Result.error("删除失败, 没有找到入库单"); + } + if (receiptHeader.getFirstStatus().intValue() != QuantityConstant.RECEIPT_HEADER_BUILD) { + return Result.error("删除失败, 入库单必须是新建状态才能删除详情"); + } + boolean success = receiptDetailService.removeById(id); + if (!success) { + throw new ServiceException("删除详情失败"); + } + success = receiptHeaderService.updateReceiptHeader(receiptDetail.getReceiptId()); + if (!success) { + throw new ServiceException("更新入库单头数量失败"); + } + return Result.OK("删除成功!"); + } + + @Override + @Transactional(rollbackFor = ServiceException.class) + public Result removeDetailListById(List<String> idList) { + Result result = null; + for (String id : idList) { + result = removeDetailById(id); + } + return result; + } } diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerHeader/controller/ShipmentContainerHeaderController.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerHeader/controller/ShipmentContainerHeaderController.java index 0401ec7..6386211 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerHeader/controller/ShipmentContainerHeaderController.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerHeader/controller/ShipmentContainerHeaderController.java @@ -1,40 +1,44 @@ package org.jeecg.modules.wms.shipment.shipmentContainerHeader.controller; -import org.apache.shiro.authz.annotation.RequiresPermissions; -import org.jeecg.common.system.query.QueryGenerator; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import lombok.extern.slf4j.Slf4j; -import org.jeecg.common.system.base.controller.JeecgController; -import org.jeecg.common.api.vo.Result; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import org.springframework.web.servlet.ModelAndView; -import java.util.Arrays; + +import org.apache.shiro.SecurityUtils; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.jeecg.common.system.base.controller.JeecgController; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.system.vo.LoginUser; import org.jeecg.common.util.oConvertUtils; import org.jeecg.modules.wms.shipment.shipmentContainerHeader.entity.ShipmentContainerDetail; import org.jeecg.modules.wms.shipment.shipmentContainerHeader.entity.ShipmentContainerHeader; -import org.jeecg.modules.wms.shipment.shipmentContainerHeader.service.IShipmentContainerHeaderService; import org.jeecg.modules.wms.shipment.shipmentContainerHeader.service.IShipmentContainerDetailService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import org.jeecg.common.aspect.annotation.AutoLog; -import org.apache.shiro.SecurityUtils; -import org.jeecg.common.system.vo.LoginUser; +import org.jeecg.modules.wms.shipment.shipmentContainerHeader.service.IShipmentContainerHeaderService; import org.jeecgframework.poi.excel.ExcelImportUtil; import org.jeecgframework.poi.excel.def.NormalExcelConstants; import org.jeecgframework.poi.excel.entity.ExportParams; import org.jeecgframework.poi.excel.entity.ImportParams; import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartHttpServletRequest; -import java.io.IOException; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; +import org.springframework.web.servlet.ModelAndView; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; /** * @Description: 出库组盘 @@ -114,8 +118,8 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC @RequiresPermissions("shipmentContainerHeader:delete") @DeleteMapping(value = "/delete") public Result<String> delete(@RequestParam(name = "id", required = true) String id) { - shipmentContainerHeaderService.delMain(id); - return Result.OK("删除成功!"); + Result result = shipmentContainerHeaderService.cancelCombine(Integer.parseInt(id)); + return result; } /** @@ -128,8 +132,10 @@ public class ShipmentContainerHeaderController extends JeecgController<ShipmentC @RequiresPermissions("shipmentContainerHeader:deleteBatch") @DeleteMapping(value = "/deleteBatch") public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) { - this.shipmentContainerHeaderService.delBatchMain(Arrays.asList(ids.split(","))); - return Result.OK("批量删除成功!"); + List<String> idList = Arrays.asList(ids.split(",")); + List<Integer> idInterList = idList.stream().map(Integer::parseInt).collect(Collectors.toList()); + Result result = shipmentContainerHeaderService.cancelCombine(idInterList); + return result; } /** diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerHeader/service/IShipmentContainerHeaderService.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerHeader/service/IShipmentContainerHeaderService.java index 6094e9f..e72b994 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerHeader/service/IShipmentContainerHeaderService.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerHeader/service/IShipmentContainerHeaderService.java @@ -1,13 +1,14 @@ package org.jeecg.modules.wms.shipment.shipmentContainerHeader.service; -import org.jeecg.modules.wms.shipment.shipmentContainerHeader.entity.ShipmentContainerDetail; -import org.jeecg.modules.wms.shipment.shipmentContainerHeader.entity.ShipmentContainerHeader; -import com.baomidou.mybatisplus.extension.service.IService; -import org.springframework.beans.factory.annotation.Autowired; import java.io.Serializable; import java.util.Collection; import java.util.List; +import org.jeecg.common.api.vo.Result; +import org.jeecg.modules.wms.shipment.shipmentContainerHeader.entity.ShipmentContainerHeader; + +import com.baomidou.mybatisplus.extension.service.IService; + /** * @Description: 出库组盘 * @Author: jeecg-boot @@ -41,4 +42,16 @@ public interface IShipmentContainerHeaderService extends IService<ShipmentContai * @return */ boolean cancelShipmentTask(Integer shipmentContainerHeaderId); + + /** + * 取消配盘 + * @return + */ + Result cancelCombine(Integer id); + + /** + * 取消配盘 + * @return + */ + Result cancelCombine(List<Integer> ids); } diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerHeader/service/impl/ShipmentContainerHeaderServiceImpl.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerHeader/service/impl/ShipmentContainerHeaderServiceImpl.java index 90a6619..d54fbae 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerHeader/service/impl/ShipmentContainerHeaderServiceImpl.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerHeader/service/impl/ShipmentContainerHeaderServiceImpl.java @@ -1,33 +1,34 @@ package org.jeecg.modules.wms.shipment.shipmentContainerHeader.service.impl; -import com.aliyun.oss.ServiceException; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.toolkit.Wrappers; -import org.jeecg.modules.wms.receipt.receiptContainerHeader.entity.ReceiptContainerDetail; -import org.jeecg.modules.wms.receipt.receiptHeader.entity.ReceiptDetail; -import org.jeecg.modules.wms.receipt.receiptHeader.entity.ReceiptHeader; -import org.jeecg.modules.wms.shipment.shipmentContainerHeader.entity.ShipmentContainerHeader; +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.stream.Collectors; + +import javax.annotation.Resource; + +import org.jeecg.common.api.vo.Result; +import org.jeecg.modules.wms.inventory.inventoryHeader.entity.InventoryDetail; +import org.jeecg.modules.wms.inventory.inventoryHeader.service.IInventoryDetailService; import org.jeecg.modules.wms.shipment.shipmentContainerHeader.entity.ShipmentContainerDetail; +import org.jeecg.modules.wms.shipment.shipmentContainerHeader.entity.ShipmentContainerHeader; import org.jeecg.modules.wms.shipment.shipmentContainerHeader.mapper.ShipmentContainerDetailMapper; import org.jeecg.modules.wms.shipment.shipmentContainerHeader.mapper.ShipmentContainerHeaderMapper; import org.jeecg.modules.wms.shipment.shipmentContainerHeader.service.IShipmentContainerDetailService; import org.jeecg.modules.wms.shipment.shipmentContainerHeader.service.IShipmentContainerHeaderService; import org.jeecg.modules.wms.shipment.shipmentHeader.entity.ShipmentDetail; -import org.jeecg.modules.wms.shipment.shipmentHeader.entity.ShipmentHeader; import org.jeecg.modules.wms.shipment.shipmentHeader.service.IShipmentDetailService; import org.jeecg.modules.wms.shipment.shipmentHeader.service.IShipmentHeaderService; import org.jeecg.utils.constant.QuantityConstant; -import org.springframework.stereotype.Service; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import javax.annotation.Resource; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; -import java.util.Collection; -import java.util.stream.Collectors; +import com.aliyun.oss.ServiceException; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; /** * @Description: 出库组盘 @@ -49,6 +50,8 @@ public class ShipmentContainerHeaderServiceImpl extends ServiceImpl<ShipmentCont private IShipmentHeaderService shipmentHeaderService; @Resource private IShipmentContainerDetailService shipmentContainerDetailService; + @Resource + private IInventoryDetailService inventoryDetailService; @Override @Transactional @@ -164,4 +167,53 @@ public class ShipmentContainerHeaderServiceImpl extends ServiceImpl<ShipmentCont return true; } + @Override + @Transactional(rollbackFor = ServiceException.class) + public Result cancelCombine(Integer id) { + ShipmentContainerHeader shipmentContainerHeader = this.getById(id); + if (shipmentContainerHeader == null) { + return Result.error("取消出库配盘失败, 没有找到出库组盘头id是" + id); + } + int status = shipmentContainerHeader.getStatus(); + if (status >= QuantityConstant.SHIPMENT_CONTAINER_TASK) { + return Result.error("取消出库配盘失败,已经生成出库任务"); + } + List<ShipmentContainerDetail> shipmentContainerDetailList = shipmentContainerDetailService.getShipmentContainerDetailListByHeaderId(id); + for (ShipmentContainerDetail shipmentContainerDetail : shipmentContainerDetailList) { + ShipmentDetail shipmentDetail = shipmentDetailService.getById(shipmentContainerDetail.getShipmentDetailId()); + if (shipmentDetail == null) { + throw new ServiceException("取消出库配盘失败, 没有找到出库单详情id是" + shipmentContainerDetail.getShipmentDetailId()); + } + shipmentDetail.setStatus(QuantityConstant.SHIPMENT_HEADER_BUILD); + shipmentDetail.setTaskQty(shipmentDetail.getTaskQty().subtract(shipmentContainerDetail.getQty())); + if (!shipmentDetailService.updateById(shipmentDetail)) { + throw new ServiceException("取消出库配盘失败, 更新出库明细失败id是" + shipmentContainerDetail.getShipmentDetailId()); + } + if (!shipmentContainerDetailService.removeById(shipmentContainerDetail.getId())) { + throw new ServiceException("取消出库配盘失败, 删除出库组盘明细表失败id是" + shipmentContainerDetail.getId()); + } + if (!shipmentHeaderService.updateShipmentHeaderStatus(shipmentDetail.getShipmentId())) { + throw new ServiceException("取消出库配盘失败, 更新出库单头失败"); + } + InventoryDetail inventoryDetail = inventoryDetailService.getById(shipmentContainerDetail.getInventoryDetailId()); + inventoryDetail.setTaskQty(inventoryDetail.getTaskQty().subtract(shipmentContainerDetail.getQty())); + if (!inventoryDetailService.updateById(inventoryDetail)) { + throw new ServiceException("取消出库配盘失败, 解锁库存详情失败"); + } + } + if (!this.removeById(id)) { + throw new ServiceException("取消出库配盘失败, 删除出库组盘头表失败id是" + id); + } + return Result.ok("取消配盘成功"); + } + + @Override + public Result cancelCombine(List<Integer> ids) { + Result result = null; + for (Integer id : ids) { + result = cancelCombine(id); + } + return result; + } + } diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/entity/TaskHeader.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/entity/TaskHeader.java index 031a0b9..226c0e3 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/entity/TaskHeader.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/entity/TaskHeader.java @@ -3,6 +3,8 @@ package org.jeecg.modules.wms.task.taskHeader.entity; import java.io.Serializable; import java.util.Date; +import javax.validation.constraints.NotEmpty; + import org.jeecg.common.aspect.annotation.Dict; import org.jeecgframework.poi.excel.annotation.Excel; @@ -45,6 +47,7 @@ public class TaskHeader implements Serializable { /** 仓库 */ @Excel(name = "仓库", width = 15) @ApiModelProperty(value = "仓库") + @NotEmpty(message = "仓库编码不能为空") private String warehouseCode; /** 货主 */ @Excel(name = "货主", width = 15) diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/service/impl/TaskHeaderServiceImpl.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/service/impl/TaskHeaderServiceImpl.java index fb9311c..bf3bc07 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/service/impl/TaskHeaderServiceImpl.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/service/impl/TaskHeaderServiceImpl.java @@ -6,16 +6,13 @@ import java.util.ArrayList; import java.util.Collection; import java.util.Date; import java.util.List; -import java.util.concurrent.CopyOnWriteArrayList; import java.util.stream.Collectors; import javax.annotation.Resource; -import org.apache.poi.hpsf.Decimal; import org.apache.shiro.SecurityUtils; import org.jeecg.common.api.vo.Result; import org.jeecg.common.system.vo.LoginUser; -import org.jeecg.modules.system.entity.SysDepartRolePermission; import org.jeecg.modules.wms.api.wcs.service.LocationAllocationService; import org.jeecg.modules.wms.api.wcs.service.WcsService; import org.jeecg.modules.wms.config.container.entity.Container; @@ -26,7 +23,6 @@ import org.jeecg.modules.wms.config.locationHigh.entity.LocationHigh; import org.jeecg.modules.wms.config.locationHigh.service.ILocationHighService; import org.jeecg.modules.wms.config.locationType.entity.LocationType; import org.jeecg.modules.wms.config.locationType.service.ILocationTypeService; -import org.jeecg.modules.wms.config.material.service.IMaterialService; import org.jeecg.modules.wms.config.parameterConfiguration.service.IParameterConfigurationService; import org.jeecg.modules.wms.config.port.entity.Port; import org.jeecg.modules.wms.config.port.service.IPortService; @@ -63,7 +59,6 @@ import org.jeecg.modules.wms.task.taskHeader.mapper.TaskDetailMapper; import org.jeecg.modules.wms.task.taskHeader.mapper.TaskHeaderMapper; import org.jeecg.modules.wms.task.taskHeader.service.ITaskDetailService; import org.jeecg.modules.wms.task.taskHeader.service.ITaskHeaderService; -import org.jeecg.utils.HuahengJwtUtil; import org.jeecg.utils.StringUtils; import org.jeecg.utils.constant.QuantityConstant; import org.springframework.beans.factory.annotation.Autowired; @@ -1395,7 +1390,7 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea if (!success) { throw new ServiceException("完成分拣出库任务,更新目标库位失败"); } - success = containerService.updateLocationCodeAndStatus(containerCode, toLocationCode, containerStatus, warehouseCode); + success = containerService.updateStatus(containerCode, containerStatus, warehouseCode); if (!success) { throw new ServiceException("完成分拣出库任务,更新容器失败"); } @@ -1515,73 +1510,62 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea return Result.OK("完成空托盘入库成功"); } - - - /** * 盘点完成 - *盘点有差异完成时状态为105 - * @param taskHeader + * 盘点有差异完成时状态为105 + * @param taskHeader * @return */ @Transactional(rollbackFor = Exception.class) public Result completeCycleCountTask(TaskHeader taskHeader) { - /*盘点完成,传入任务主单,查出任务明细,通过任务明细查找盘点的明细单, - 完成任务同时,修改盘点细单和主单的状态,完成后库存锁复位*/ + /* + * 盘点完成,传入任务主单,查出任务明细,通过任务明细查找盘点的明细单, + * 完成任务同时,修改盘点细单和主单的状态,完成后库存锁复位 + */ - LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + LoginUser sysUser = (LoginUser)SecurityUtils.getSubject().getPrincipal(); taskHeader.setStatus(QuantityConstant.TASK_STATUS_COMPLETED); - //更新用户 + // 更新用户 taskHeader.setUpdateBy(sysUser.getUsername()); - //更新时间 + // 更新时间 taskHeader.setUpdateTime(new Date()); - - //1.先拿到盘点单主单据 + // 1.先拿到盘点单主单据 CycleCountDetail cycleCountDetail = cycleCountDetailService.getById(taskHeader.getShipmentContainerHeaderId()); - if ((cycleCountDetail.getCountedQty().add(cycleCountDetail.getGapQty())).compareTo(BigDecimal.ZERO)==0) - { - return Result.error("盘点单据系统实盘数量跟差异数量0,不能完成 单据号" +cycleCountDetail.getCycleCountHeadCode()); + if ((cycleCountDetail.getCountedQty().add(cycleCountDetail.getGapQty())).compareTo(BigDecimal.ZERO) == 0) { + return Result.error("盘点单据系统实盘数量跟差异数量0,不能完成 单据号" + cycleCountDetail.getCycleCountHeadCode()); } - //2.盘点单主单据查明细单据list + // 2.盘点单主单据查明细单据list LambdaQueryWrapper<CycleCountDetailChild> childLambdaQueryWrapper = new LambdaQueryWrapper<CycleCountDetailChild>(); - childLambdaQueryWrapper.eq(CycleCountDetailChild::getCycleCountDetailid,cycleCountDetail.getId()); + childLambdaQueryWrapper.eq(CycleCountDetailChild::getCycleCountDetailid, cycleCountDetail.getId()); List<CycleCountDetailChild> children = cycleCountDetailChildService.list(childLambdaQueryWrapper); - //3.单据list如果差异数量+生成入库单,差异数-生成出库单进行回传类型其他出库单 - + // 3.单据list如果差异数量+生成入库单,差异数-生成出库单进行回传类型其他出库单 InventoryHeader inventoryHeader = inventoryHeaderService.getById(cycleCountDetail.getInventoryHeaderId()); - int outboundOrderId=0; - String outboundOrderCode=null; - int warehousingOrderId=0; - String warehousingOrderCode=null; + int outboundOrderId = 0; + String outboundOrderCode = null; + int warehousingOrderId = 0; + String warehousingOrderCode = null; - - for (CycleCountDetailChild child : children) - { - if (!child.getChildStatus().equals(QuantityConstant.CYCLECOUNT_STATUS_REGISTERED)) - { + for (CycleCountDetailChild child : children) { + if (!child.getChildStatus().equals(QuantityConstant.CYCLECOUNT_STATUS_REGISTERED)) { throw new ServiceException("当前任务里面还有没有进行登记的数据,不能完成任务"); } - - if (child.getInventoryDetaiId()!=null) - { + if (child.getInventoryDetaiId() != null) { InventoryDetail inventoryDetail = inventoryDetailService.getById(child.getInventoryDetaiId()); - if (inventoryDetail==null) - { + if (inventoryDetail == null) { throw new ServiceException("盘点还没完成 库存明细单据就不存在了 可能出现了问题或者所容器没成功"); } inventoryHeader.setTotalQty(inventoryHeader.getTotalQty().add(child.getGapQty())); inventoryDetail.setQty(child.getCountedQty()); inventoryDetailService.updateById(inventoryDetail); - }else - { - InventoryDetail inventoryDetail=new InventoryDetail(); + } else { + InventoryDetail inventoryDetail = new InventoryDetail(); inventoryDetail.setInventoryHeaderId(inventoryHeader.getId()); inventoryDetail.setWarehouseCode(inventoryHeader.getWarehouseCode()); inventoryDetail.setCompanyCode(inventoryHeader.getCompanyCode()); @@ -1600,30 +1584,27 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea child.setInventoryDetaiId(inventoryDetail.getId()); } - child.setChildStatus(QuantityConstant.CYCLECOUNT_STATUS_COMPLETED); - if (child.getGapQty().compareTo(BigDecimal.ZERO) == 1) - { - if (warehousingOrderId==0) { + if (child.getGapQty().compareTo(BigDecimal.ZERO) == 1) { + if (warehousingOrderId == 0) { ReceiptHeader receiptHeader = new ReceiptHeader(); receiptHeader.setWarehouseCode(taskHeader.getWarehouseCode()); receiptHeader.setCompanyCode(taskHeader.getCompanyCode()); receiptHeader.setType(QuantityConstant.RECEIPT_BILL_TYPE_OR); - receiptHeader.setRemark("盘盈 单号"+cycleCountDetail.getCycleCountHeadCode()); + receiptHeader.setRemark("盘盈 单号" + cycleCountDetail.getCycleCountHeadCode()); Result result = receiptHeaderService.saveReceiptHeader(receiptHeader); - if (result.getCode() != 200) - { + if (result.getCode() != 200) { return result; } receiptHeader.setFirstStatus(QuantityConstant.RECEIPT_HEADER_COMPLETED); receiptHeader.setLastStatus(QuantityConstant.RECEIPT_HEADER_COMPLETED); receiptHeaderService.updateById(receiptHeader); - //生成入库单并且赋值给warehousingOrderId - warehousingOrderId=receiptHeader.getId(); - warehousingOrderCode=receiptHeader.getCode(); + // 生成入库单并且赋值给warehousingOrderId + warehousingOrderId = receiptHeader.getId(); + warehousingOrderCode = receiptHeader.getCode(); } - //生成明细 + // 生成明细 ReceiptDetail receiptDetail = new ReceiptDetail(); receiptDetail.setReceiptId(warehousingOrderId); receiptDetail.setReceiptCode(warehousingOrderCode); @@ -1641,8 +1622,8 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea receiptDetail.setStatus(QuantityConstant.RECEIPT_HEADER_COMPLETED); receiptDetailService.save(receiptDetail); - //增加库存交易记录 - InventoryTransaction inventoryTransaction=new InventoryTransaction(); + // 增加库存交易记录 + InventoryTransaction inventoryTransaction = new InventoryTransaction(); inventoryTransaction.setWarehouseCode(taskHeader.getWarehouseCode()); inventoryTransaction.setCompanyCode(taskHeader.getCompanyCode()); inventoryTransaction.setContainerCode(child.getContainerCode()); @@ -1662,38 +1643,31 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea } + if (child.getGapQty().compareTo(BigDecimal.ZERO) == -1) { - - if (child.getGapQty().compareTo(BigDecimal.ZERO) == -1) - { - - if (child.getGapQty().abs().compareTo(child.getSystemQty()) > -1) - { + if (child.getGapQty().abs().compareTo(child.getSystemQty()) > -1) { inventoryDetailService.removeById(child.getInventoryDetaiId()); } - - if (outboundOrderId==0) - { + if (outboundOrderId == 0) { ShipmentHeader shipmentHeader = new ShipmentHeader(); shipmentHeader.setWarehouseCode(taskHeader.getWarehouseCode()); shipmentHeader.setCompanyCode(taskHeader.getCompanyCode()); shipmentHeader.setType(QuantityConstant.SHIPMENT_BILL_TYPE_OS); - shipmentHeader.setRemark("盘亏 单号"+cycleCountDetail.getCycleCountHeadCode()); + shipmentHeader.setRemark("盘亏 单号" + cycleCountDetail.getCycleCountHeadCode()); Result result = shipmentHeaderService.saveShipmentHeader(shipmentHeader); - if (result.getCode() != 200) - { + if (result.getCode() != 200) { return result; } shipmentHeader.setFirstStatus(QuantityConstant.RECEIPT_HEADER_COMPLETED); shipmentHeader.setLastStatus(QuantityConstant.RECEIPT_HEADER_COMPLETED); shipmentHeaderService.updateById(shipmentHeader); - //生成出库单并且赋值给outboundOrderId - outboundOrderId=shipmentHeader.getId(); - outboundOrderCode=shipmentHeader.getCode(); + // 生成出库单并且赋值给outboundOrderId + outboundOrderId = shipmentHeader.getId(); + outboundOrderCode = shipmentHeader.getCode(); } - //生成明细 + // 生成明细 ShipmentDetail shipmentDetail = new ShipmentDetail(); shipmentDetail.setShipmentId(outboundOrderId); shipmentDetail.setShipmentCode(outboundOrderCode); @@ -1711,7 +1685,7 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea shipmentDetail.setStatus(QuantityConstant.RECEIPT_HEADER_COMPLETED); shipmentDetailService.save(shipmentDetail); - InventoryTransaction inventoryTransaction=new InventoryTransaction(); + InventoryTransaction inventoryTransaction = new InventoryTransaction(); inventoryTransaction.setWarehouseCode(taskHeader.getWarehouseCode()); inventoryTransaction.setCompanyCode(taskHeader.getCompanyCode()); inventoryTransaction.setContainerCode(child.getContainerCode()); @@ -1732,45 +1706,33 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea cycleCountDetailChildService.updateById(child); } - - if (inventoryHeader.getTotalQty().compareTo(BigDecimal.ZERO)<1) - { + if (inventoryHeader.getTotalQty().compareTo(BigDecimal.ZERO) < 1) { inventoryHeaderService.removeById(inventoryHeader); } inventoryHeaderService.updateById(inventoryHeader); - //4.完成当前任务 + // 4.完成当前任务 if (!taskHeaderService.saveOrUpdate(taskHeader)) { throw new ServiceException("盘点任务单据状态更新失败!"); } - //盘点明细状态 + // 盘点明细状态 cycleCountDetail.setEnableStatus(QuantityConstant.CYCLECOUNT_STATUS_COMPLETED); cycleCountDetail.setCompletedBy(sysUser.getUsername()); cycleCountDetail.setCompletedAt(new Date()); cycleCountDetailService.updateById(cycleCountDetail); - //更新主单状态 + // 更新主单状态 cycleCountHeaderService.updataHeaderStatus(cycleCountDetail.getCycleCountHeadCode()); + // 释放库位 + locationService.updateStatus(cycleCountDetail.getLocationCode(), QuantityConstant.STATUS_LOCATION_EMPTY, taskHeader.getWarehouseCode()); - //释放库位 - locationService.updateStatus(cycleCountDetail.getLocationCode(), - QuantityConstant.STATUS_LOCATION_EMPTY, taskHeader.getWarehouseCode()); - - - //还原容器状态 - containerService.restoreContainer(cycleCountDetail.getContainerCode(),taskHeader.getWarehouseCode()); + // 还原容器状态 + containerService.restoreContainer(cycleCountDetail.getContainerCode(), taskHeader.getWarehouseCode()); return Result.OK("完成盘点任务成功"); } - - - - - - - /** * 完成空托盘出库任务 * @param taskHeader 任务 diff --git a/huaheng-wms-core/src/main/java/org/jeecg/utils/constant/QuantityConstant.java b/huaheng-wms-core/src/main/java/org/jeecg/utils/constant/QuantityConstant.java index 599ccd0..7146578 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/utils/constant/QuantityConstant.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/utils/constant/QuantityConstant.java @@ -1,27 +1,27 @@ package org.jeecg.utils.constant; /** - * 数字自定义常量 - * 1、入库单状态 - * 2、出库单状态 - * 3、单据上传状态 - * 4、入库组盘状态 - * 5、出库组盘状态 - * 6、任务类型 - * 7、任务状态 - * 8、波次状态 - * 9、质检状态 - * 10、盘点状态 - * 11、INVENTORY_TRANSACTION_RECEIPT - * 12、调整单状态 - * 13、任务内部类型 - * 14、质检单类型 + * 数字自定义常量 + * 1、入库单状态 + * 2、出库单状态 + * 3、单据上传状态 + * 4、入库组盘状态 + * 5、出库组盘状态 + * 6、任务类型 + * 7、任务状态 + * 8、波次状态 + * 9、质检状态 + * 10、盘点状态 + * 11、INVENTORY_TRANSACTION_RECEIPT + * 12、调整单状态 + * 13、任务内部类型 + * 14、质检单类型 * 16、请求类型 * @author ricard */ public class QuantityConstant { /** - + */ // 1、入库单状态 @@ -544,7 +544,9 @@ public class QuantityConstant { public static final String BILL_TYPE_NAME_RN = "退货通知单"; public static final String BILL_TYPE_NAME_SO = "出库申请单"; + /* 可用 */ public static final int STATUS_ENABLE = 1; + /* 不可用 */ public static final int STATUS_DISABLE = 0; public static final int HTTP_OK = 200; diff --git a/huaheng-wms-core/src/main/java/org/jeecg/utils/interceptor/HuahengBatisInterceptor.java b/huaheng-wms-core/src/main/java/org/jeecg/utils/interceptor/HuahengBatisInterceptor.java index 282297e..13dbcd0 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/utils/interceptor/HuahengBatisInterceptor.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/utils/interceptor/HuahengBatisInterceptor.java @@ -12,6 +12,7 @@ import org.apache.ibatis.plugin.*; import org.apache.shiro.SecurityUtils; import org.jeecg.common.system.vo.LoginUser; import org.jeecg.common.util.oConvertUtils; +import org.jeecg.utils.HuahengJwtUtil; import org.springframework.stereotype.Component; import lombok.extern.slf4j.Slf4j; @@ -113,7 +114,7 @@ public class HuahengBatisInterceptor implements Interceptor { if (sysUser != null) { // 登录账号 field.setAccessible(true); - field.set(parameter, sysUser.getRealname()); + field.set(parameter, HuahengJwtUtil.getCurrentOperator()); field.setAccessible(false); } }