Commit 05df9d55d80f99b2afaddf0163b4beea92131c8a

Authored by 肖超群
1 parent 6e3918a5

新增一种快速出库

ant-design-vue-jeecg/src/api/api.js
... ... @@ -310,6 +310,8 @@ export const addInventoryDetail = (params) => postAction('/inventory/inventoryDe
310 310 export const reduceInventoryDetail = (params) => postAction('/inventory/inventoryDetail/reduceInventoryDetail', params);
311 311 // 根据库位编码查询库存详情
312 312 export const getInventoryDetailByLocationCode = (params) => getAction('/inventory/inventoryDetail/list', params);
  313 +//快速出库
  314 +export const quickShipment = (params) => postAction("/task/taskHeader/quickShipment", params);
313 315  
314 316 // 中转HTTP请求
315 317 export const transitRESTful = {
... ...
ant-design-vue-jeecg/src/components/jeecgbiz/JSelectMultiSomeContainer.vue
... ... @@ -27,17 +27,18 @@ export default {
27 27 },
28 28 data() {
29 29 return {
30   - url: {list: '/inventory/inventoryDetail/queryPageListList'},
  30 + url: {list: '/inventory/inventoryDetail/querySomeInventory'},
31 31 columns: [
32 32 {title: '容器编码', align: 'center', dataIndex: 'containerCode'},
33 33 {title: '库位编码', align: 'center', width: '15%', dataIndex: 'locationCode'},
34   - {
35   - title: '库区', align: 'center', width: '15%', dataIndex: 'zoneCode', key: 'zoneCode',
36   - scopedSlots: {customRender: 'zoneCode'}
37   - },
  34 + // {
  35 + // title: '库区', align: 'center', width: '15%', dataIndex: 'zoneCode', key: 'zoneCode',
  36 + // scopedSlots: {customRender: 'zoneCode'}
  37 + // },
38 38 {title: '物料编码', align: 'center', width: '15%', dataIndex: 'materialCode'},
39 39 {title: '物料名称', align: 'center', width: '15%', dataIndex: 'materialName'},
40 40 {title: '物料数量', align: 'center', width: '15%', dataIndex: 'qty'},
  41 + {title: '托盘填充度', align: 'center', width: '15%', dataIndex: 'fillDensity'},
41 42 ],
42 43 // 定义在这里的参数都是可以在外部传递覆盖的,可以更灵活的定制化使用的组件
43 44 default: {
... ...
ant-design-vue-jeecg/src/views/system/modules/UserModal.vue
... ... @@ -191,15 +191,15 @@ export default {
191 191 {required: true, message: '请选择角色!', trigger: "change" , validator: 'click'}
192 192 ],
193 193 password: [
194   - {validator: this.validateToNextPassword, trigger: 'change'}],
  194 + {required: true, message: '请选择仓库!',validator: this.validateToNextPassword, trigger: 'change'}],
195 195 confirmpassword: [{required: true, message: '请重新输入登录密码!',},
196 196 {validator: this.compareToFirstPassword,}],
197 197 realname: [{required: true, message: '请输入用户名称!'}],
198   - phone: [{required: true, message: '请输入手机号!'}, {validator: this.validatePhone}],
199   - email: [{validator: this.validateEmail}],
  198 + // phone: [{required: true, message: '请输入手机号!'}, {validator: this.validatePhone}],
  199 + // email: [{validator: this.validateEmail}],
200 200 roles: {},
201   - workNo: [{required: true, message: '请输入工号'},
202   - {validator: this.validateWorkNo}],
  201 + // workNo: [{required: true, message: '请输入工号'},
  202 + // {validator: this.validateWorkNo}],
203 203 telephone: [{pattern: /^0\d{2,3}-[1-9]\d{6,7}$/, message: '请输入正确的座机号码'},],
204 204 },
205 205 departIdShow: false,
... ...
ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue
... ... @@ -31,6 +31,7 @@
31 31 </a-select>
32 32 </a-form-item>
33 33 </a-col>
  34 + <template v-if="toggleSearchStatus">
34 35 <a-col :xl="6" :lg="7" :md="8" :sm="24">
35 36 <a-form-item label="入库单类型">
36 37 <a-select
... ... @@ -74,7 +75,6 @@
74 75 </a-select>
75 76 </a-form-item>
76 77 </a-col>
77   - <template v-show="toggleSearchStatus">
78 78 <a-col :xl="12" :lg="14" :md="16" :sm="24">
79 79 <a-form-item label="创建日期">
80 80 <j-date :show-date="true" date-format="YYYY-MM-DD" placeholder="请选择开始时间"
... ...
ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue
... ... @@ -37,6 +37,7 @@
37 37 </a-select>
38 38 </a-form-item>
39 39 </a-col>
  40 + <template v-if="toggleSearchStatus">
40 41 <a-col :xl="6" :lg="7" :md="8" :sm="24">
41 42 <a-form-item label="出库单类型">
42 43 <a-select
... ... @@ -80,7 +81,6 @@
80 81 </a-select>
81 82 </a-form-item>
82 83 </a-col>
83   - <template v-if="toggleSearchStatus">
84 84 <a-col :xl="6" :lg="7" :md="8" :sm="24">
85 85 <a-form-item label="出库单备注">
86 86 <a-input placeholder="请输入出库单备注" v-model="queryParam.remark"></a-input>
... ...
ant-design-vue-jeecg/src/views/system/task/ShipmentTaskHeaderList.vue
... ... @@ -46,7 +46,7 @@
46 46 </a-form-item>
47 47 </a-col>
48 48 <template v-if="toggleSearchStatus">
49   - <a-col :xl="6" :lg="7" :md="8" :sm="24">
  49 + <a-col :xl="6" :lg="7" :md="8" :sm="24">
50 50 <a-form-item label="起始出入口">
51 51 <a-input placeholder="请输入起始出入口" v-model="queryParam.fromPortCode"></a-input>
52 52 </a-form-item>
... ... @@ -92,6 +92,7 @@
92 92 <a-button @click="batchCreateEmptyOut()" v-has="'taskHeader:manyEmptyOut'" type="primary">批量空托出库</a-button>
93 93 <a-button @click="createManyEmptyOut()" v-has="'taskHeader:manyEmptyOut'" type="primary">空托组出库</a-button>
94 94 <a-button v-has="'taskHeader:callShipmentBox'" @click="callShipmentBox()" type="primary" >呼叫出库托盘</a-button>
  95 + <a-button v-has="'taskHeader:quickShipment'" @click="quickShipment()" type="primary">快速出库</a-button>
95 96 <j-super-query :fieldList="superFieldList" v-has="'taskHeader:superQuery'" @handleSuperQuery="handleSuperQuery"/>
96 97 <a-button v-has="'taskHeader:export'" type="primary" icon="download" @click="handleExportXls('任务表')">导出</a-button>
97 98 </div>
... ... @@ -188,6 +189,7 @@
188 189 <many-empty-out-task-modal ref="manyEmptyOutModal" @ok="modalFormOk"></many-empty-out-task-modal>
189 190 <update-priority ref="updatePriority" @ok="modalFormOk"></update-priority>
190 191 <call-shipment-box-modal ref="modalForm5" @ok="modalFormOk"></call-shipment-box-modal>
  192 + <shipment-material-modal ref="shipmentMaterialModal" @ok="modalFormOk"></shipment-material-modal>
191 193  
192 194 </a-card>
193 195 </template>
... ... @@ -201,18 +203,20 @@ import TaskDetailList from &#39;./TaskDetailList&#39;
201 203 import {initDictOptions, filterMultiDictText} from '@/components/dict/JDictSelectUtil'
202 204 import '@/assets/less/TableExpand.less'
203 205 import {completeTaskByWMS, cancelTask, batchCreateEmptyOut} from '@/api/api'
204   -import {execute} from '@/api/api'
  206 +import {execute, quickShipment} from '@/api/api'
205 207 import {getZoneList, handleEmptyOut, handlePickupError, handleDoubleIn, switchTask} from '@/api/api'
206 208 import EmptyOutTaskModal from './modules/EmptyOutTaskModal'
207 209 import BatchEmptyOutTaskModal from './modules/BatchEmptyOutTaskModal'
208 210 import ManyEmptyOutTaskModal from "./modules/ManyEmptyOutTaskModal";
209 211 import CallShipmentBoxModal from "@views/system/task/modules/CallShipmentBoxModal";
210 212 import UpdatePriority from "@views/system/task/modules/UpdatePriority.vue";
  213 +import ShipmentMaterialModal from "@views/system/task/modules/ShipmentMaterialModal.vue";
211 214  
212 215 export default {
213 216 name: "ShipmentTaskHeaderList",
214 217 mixins: [JeecgListMixin],
215 218 components: {
  219 + ShipmentMaterialModal,
216 220 CallShipmentBoxModal,
217 221 ManyEmptyOutTaskModal,
218 222 EmptyOutTaskModal,
... ... @@ -469,6 +473,10 @@ export default {
469 473 this.$refs.modalForm5.edit();
470 474 this.$refs.modalForm5.title = "呼叫出库托盘";
471 475 },
  476 + quickShipment(){
  477 + this.$refs.shipmentMaterialModal.edit();
  478 + this.$refs.shipmentMaterialModal.title = "快速出库";
  479 + },
472 480 loadFrom() {
473 481 getZoneList().then((res) => {
474 482 if (res.success) {
... ...
ant-design-vue-jeecg/src/views/system/task/modules/CallShipmentBoxModal.vue
... ... @@ -68,8 +68,8 @@ export default {
68 68 containerCode: [
69 69 {required: true, message: '请输入容器编码!'},
70 70 ],
71   - toPortCode: [
72   - {required: true, message: '请选择入库口!'},
  71 + port: [
  72 + {required: true, message: '请选择出库口!'},
73 73 ],
74 74 },
75 75 url: {
... ...