Commit f082fe8e876a14f7d94b0dd6153a8fbfbbcbd523

Authored by 谭毅彬
2 parents 0bc24559 aaf6ef5f

Merge branch 'develop' of http://www.huahengrobot.com:90/wms/wms4.git into develop

ant-design-vue-jeecg/src/views/system/inventory/InventoryHeaderList.vue
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 <j-multi-select-tag 10 <j-multi-select-tag
11 v-model="queryParam.zoneCode" 11 v-model="queryParam.zoneCode"
12 :options="zoneOptions" 12 :options="zoneOptions"
13 - placeholder="请选择"> 13 + placeholder="请选择库区">
14 </j-multi-select-tag> 14 </j-multi-select-tag>
15 </a-form-model-item> 15 </a-form-model-item>
16 </a-form-item> 16 </a-form-item>
ant-design-vue-jeecg/src/views/system/inventory/InventoryMaterialSummaryList.vue
@@ -6,16 +6,13 @@ @@ -6,16 +6,13 @@
6 <a-row :gutter="24"> 6 <a-row :gutter="24">
7 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 7 <a-col :xl="6" :lg="7" :md="8" :sm="24">
8 <a-form-item label="库区"> 8 <a-form-item label="库区">
9 - <a-select  
10 - show-search  
11 - placeholder="请选择库区"  
12 - option-filter-prop="children"  
13 - v-model="queryParam.zoneCode"  
14 - >  
15 - <a-select-option v-for="item in zoneList" :key="item.name" :value="item.code">  
16 - {{ item.name }}  
17 - </a-select-option>  
18 - </a-select> 9 + <a-form-model-item prop="zoneOptions">
  10 + <j-multi-select-tag
  11 + v-model="queryParam.zoneCode"
  12 + :options="zoneOptions"
  13 + placeholder="请选择库区">
  14 + </j-multi-select-tag>
  15 + </a-form-model-item>
19 </a-form-item> 16 </a-form-item>
20 </a-col> 17 </a-col>
21 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 18 <a-col :xl="6" :lg="7" :md="8" :sm="24">
@@ -139,6 +136,7 @@ export default { @@ -139,6 +136,7 @@ export default {
139 data() { 136 data() {
140 return { 137 return {
141 zoneList: [], 138 zoneList: [],
  139 + zoneOptions:[],
142 companyList: [], 140 companyList: [],
143 selectedMainId: '', 141 selectedMainId: '',
144 description: '物料汇总主表管理页面', 142 description: '物料汇总主表管理页面',
@@ -237,11 +235,19 @@ export default { @@ -237,11 +235,19 @@ export default {
237 return actions.join('') 235 return actions.join('')
238 }, 236 },
239 loadFrom() { 237 loadFrom() {
240 - getZoneList().then(res => { 238 + getZoneList().then((res) => {
241 if (res.success) { 239 if (res.success) {
242 this.zoneList = res.result 240 this.zoneList = res.result
  241 + //延迟半秒执行,避免组件未加载完,数据已经加载完
  242 + setTimeout(()=>{
  243 + //slice可以在数组的任何位置进行删除/添加操作
  244 + this.zoneOptions.splice(0, 1);
  245 + for (let i = 0; i < res.result.length; i++) {
  246 + this.zoneOptions.push({value:res.result[i].code,text:res.result[i].name})
  247 + }
  248 + },500)
243 } 249 }
244 - }) 250 + });
245 ajaxGetDictItems('box_type').then(res => { 251 ajaxGetDictItems('box_type').then(res => {
246 if (res.success) { 252 if (res.success) {
247 this.boxTypeList = res.result 253 this.boxTypeList = res.result
ant-design-vue-jeecg/src/views/system/inventory/InventoryTransactionList.vue
@@ -5,6 +5,17 @@ @@ -5,6 +5,17 @@
5 <a-form layout="inline" @keyup.enter.native="searchQuery"> 5 <a-form layout="inline" @keyup.enter.native="searchQuery">
6 <a-row :gutter="24"> 6 <a-row :gutter="24">
7 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 7 <a-col :xl="6" :lg="7" :md="8" :sm="24">
  8 + <a-form-item label="库区">
  9 + <a-form-model-item prop="zoneOptions">
  10 + <j-multi-select-tag
  11 + v-model="queryParam.zoneCode"
  12 + :options="zoneOptions"
  13 + placeholder="请选择库区">
  14 + </j-multi-select-tag>
  15 + </a-form-model-item>
  16 + </a-form-item>
  17 + </a-col>
  18 + <a-col :xl="6" :lg="7" :md="8" :sm="24">
8 <a-form-item label="货主"> 19 <a-form-item label="货主">
9 <a-select 20 <a-select
10 show-search 21 show-search
@@ -152,6 +163,13 @@ @@ -152,6 +163,13 @@
152 </a-tag> 163 </a-tag>
153 </span> 164 </span>
154 165
  166 + <span slot="zoneCode" slot-scope="zoneCode">
  167 + <a-tag :key="zoneCode" color="blue">
  168 + {{ solutionZoneCode(zoneCode) }}
  169 + </a-tag>
  170 + </span>
  171 + </a-table>
  172 +
155 <template slot="htmlSlot" slot-scope="text"> 173 <template slot="htmlSlot" slot-scope="text">
156 <div v-html="text"></div> 174 <div v-html="text"></div>
157 </template> 175 </template>
@@ -204,7 +222,7 @@ import {mixinDevice} from &#39;@/utils/mixin&#39; @@ -204,7 +222,7 @@ import {mixinDevice} from &#39;@/utils/mixin&#39;
204 import {JeecgListMixin} from '@/mixins/JeecgListMixin' 222 import {JeecgListMixin} from '@/mixins/JeecgListMixin'
205 import InventoryTransactionModal from './modules/InventoryTransactionModal' 223 import InventoryTransactionModal from './modules/InventoryTransactionModal'
206 import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' 224 import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
207 -import {getCompanyList} from '@/api/api' 225 +import {getCompanyList, getZoneList} from '@/api/api'
208 226
209 export default { 227 export default {
210 name: 'InventoryTransactionList', 228 name: 'InventoryTransactionList',
@@ -216,6 +234,8 @@ export default { @@ -216,6 +234,8 @@ export default {
216 return { 234 return {
217 description: '库存交易记录管理页面', 235 description: '库存交易记录管理页面',
218 companyList: [], 236 companyList: [],
  237 + zoneList: [],
  238 + zoneOptions:[],
219 // 表头 239 // 表头
220 columns: [ 240 columns: [
221 { 241 {
@@ -224,12 +244,19 @@ export default { @@ -224,12 +244,19 @@ export default {
224 dataIndex: 'id' 244 dataIndex: 'id'
225 }, 245 },
226 { 246 {
227 - title: '货主',  
228 - align: "center",  
229 - dataIndex: 'companyCode',  
230 - key: 'companyCode',  
231 - scopedSlots: {customRender: 'companyCode'} 247 + title: '库区',
  248 + align: 'center',
  249 + dataIndex: 'zoneCode',
  250 + key: 'zoneCode',
  251 + scopedSlots: { customRender: 'zoneCode' }
232 }, 252 },
  253 + // {
  254 + // title: '货主',
  255 + // align: "center",
  256 + // dataIndex: 'companyCode',
  257 + // key: 'companyCode',
  258 + // scopedSlots: {customRender: 'companyCode'}
  259 + // },
233 { 260 {
234 title: '容器编码', 261 title: '容器编码',
235 align: "center", 262 align: "center",
@@ -292,6 +319,16 @@ export default { @@ -292,6 +319,16 @@ export default {
292 dataIndex: 'batch' 319 dataIndex: 'batch'
293 }, 320 },
294 { 321 {
  322 + title: '入库单编码',
  323 + align: "center",
  324 + dataIndex: 'receiptCode'
  325 + },
  326 + {
  327 + title: '出库单编码',
  328 + align: "center",
  329 + dataIndex: 'shipmentCode'
  330 + },
  331 + {
295 title: '创建人', 332 title: '创建人',
296 align: "center", 333 align: "center",
297 dataIndex: 'createBy' 334 dataIndex: 'createBy'
@@ -355,13 +392,35 @@ export default { @@ -355,13 +392,35 @@ export default {
355 initDictConfig() { 392 initDictConfig() {
356 }, 393 },
357 loadFrom() { 394 loadFrom() {
358 - console.log("loadFrom 11"); 395 + getZoneList().then((res) => {
  396 + if (res.success) {
  397 + this.zoneList = res.result
  398 + //延迟半秒执行,避免组件未加载完,数据已经加载完
  399 + setTimeout(()=>{
  400 + //slice可以在数组的任何位置进行删除/添加操作
  401 + this.zoneOptions.splice(0, 1);
  402 + for (let i = 0; i < res.result.length; i++) {
  403 + this.zoneOptions.push({value:res.result[i].code,text:res.result[i].name})
  404 + }
  405 + },500)
  406 + }
  407 + });
359 getCompanyList().then((res) => { 408 getCompanyList().then((res) => {
360 if (res.success) { 409 if (res.success) {
361 this.companyList = res.result 410 this.companyList = res.result
362 } 411 }
363 }); 412 });
364 }, 413 },
  414 + solutionZoneCode(value) {
  415 + var actions = []
  416 + Object.keys(this.zoneList).some(key => {
  417 + if (this.zoneList[key].code === '' + value) {
  418 + actions.push(this.zoneList[key].name)
  419 + return true
  420 + }
  421 + })
  422 + return actions.join('')
  423 + },
365 solutionCompany(value) { 424 solutionCompany(value) {
366 var actions = [] 425 var actions = []
367 Object.keys(this.companyList).some((key) => { 426 Object.keys(this.companyList).some((key) => {
ant-design-vue-jeecg/src/views/system/inventory/SimpleInventoryDetailList.vue
@@ -5,6 +5,17 @@ @@ -5,6 +5,17 @@
5 <a-form layout="inline" @keyup.enter.native="searchQuery"> 5 <a-form layout="inline" @keyup.enter.native="searchQuery">
6 <a-row :gutter="24"> 6 <a-row :gutter="24">
7 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 7 <a-col :xl="6" :lg="7" :md="8" :sm="24">
  8 + <a-form-item label="库区">
  9 + <a-form-model-item prop="zoneOptions">
  10 + <j-multi-select-tag
  11 + v-model="queryParam.zoneCode"
  12 + :options="zoneOptions"
  13 + placeholder="请选择库区">
  14 + </j-multi-select-tag>
  15 + </a-form-model-item>
  16 + </a-form-item>
  17 + </a-col>
  18 + <a-col :xl="6" :lg="7" :md="8" :sm="24">
8 <a-form-item label="货主"> 19 <a-form-item label="货主">
9 <a-select 20 <a-select
10 show-search 21 show-search
@@ -19,19 +30,6 @@ @@ -19,19 +30,6 @@
19 </a-form-item> 30 </a-form-item>
20 </a-col> 31 </a-col>
21 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 32 <a-col :xl="6" :lg="7" :md="8" :sm="24">
22 - <a-form-item label="库区">  
23 - <a-select  
24 - show-search  
25 - placeholder="请选择库区"  
26 - option-filter-prop="children"  
27 - v-model="queryParam.zoneCode">  
28 - <a-select-option v-for="item in zoneList" :key="item.name" :value="item.code">  
29 - {{item.name}}  
30 - </a-select-option>  
31 - </a-select>  
32 - </a-form-item>  
33 - </a-col>  
34 - <a-col :xl="6" :lg="7" :md="8" :sm="24">  
35 <a-form-item label="库位编码"> 33 <a-form-item label="库位编码">
36 <a-input placeholder="请输入库位编码" v-model="queryParam.locationCode"></a-input> 34 <a-input placeholder="请输入库位编码" v-model="queryParam.locationCode"></a-input>
37 </a-form-item> 35 </a-form-item>
@@ -232,6 +230,7 @@ export default { @@ -232,6 +230,7 @@ export default {
232 data() { 230 data() {
233 return { 231 return {
234 zoneList: [], 232 zoneList: [],
  233 + zoneOptions:[],
235 companyList: [], 234 companyList: [],
236 description: '库存详情管理页面', 235 description: '库存详情管理页面',
237 // 表头 236 // 表头
@@ -398,6 +397,14 @@ export default { @@ -398,6 +397,14 @@ export default {
398 getZoneList().then((res) => { 397 getZoneList().then((res) => {
399 if (res.success) { 398 if (res.success) {
400 this.zoneList = res.result 399 this.zoneList = res.result
  400 + //延迟半秒执行,避免组件未加载完,数据已经加载完
  401 + setTimeout(()=>{
  402 + //slice可以在数组的任何位置进行删除/添加操作
  403 + this.zoneOptions.splice(0, 1);
  404 + for (let i = 0; i < res.result.length; i++) {
  405 + this.zoneOptions.push({value:res.result[i].code,text:res.result[i].name})
  406 + }
  407 + },500)
401 } 408 }
402 }); 409 });
403 getCompanyList().then(res => { 410 getCompanyList().then(res => {
ant-design-vue-jeecg/src/views/system/task/CircleTaskHeaderList.vue
@@ -5,6 +5,17 @@ @@ -5,6 +5,17 @@
5 <a-form layout="inline" @keyup.enter.native="searchQuery"> 5 <a-form layout="inline" @keyup.enter.native="searchQuery">
6 <a-row :gutter="24"> 6 <a-row :gutter="24">
7 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 7 <a-col :xl="6" :lg="7" :md="8" :sm="24">
  8 + <a-form-item label="库区">
  9 + <a-form-model-item prop="zoneOptions">
  10 + <j-multi-select-tag
  11 + v-model="queryParam.zoneCode"
  12 + :options="zoneOptions"
  13 + placeholder="请选择">
  14 + </j-multi-select-tag>
  15 + </a-form-model-item>
  16 + </a-form-item>
  17 + </a-col>
  18 + <a-col :xl="6" :lg="7" :md="8" :sm="24">
8 <a-form-item label="任务ID"> 19 <a-form-item label="任务ID">
9 <a-input placeholder="请输入任务ID" v-model="queryParam.id"></a-input> 20 <a-input placeholder="请输入任务ID" v-model="queryParam.id"></a-input>
10 </a-form-item> 21 </a-form-item>
@@ -20,20 +31,6 @@ @@ -20,20 +31,6 @@
20 </a-form-item> 31 </a-form-item>
21 </a-col> 32 </a-col>
22 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 33 <a-col :xl="6" :lg="7" :md="8" :sm="24">
23 - <a-form-item label="库区">  
24 - <a-select  
25 - show-search  
26 - placeholder="请选择库区"  
27 - option-filter-prop="children"  
28 -  
29 - v-model="queryParam.zoneCode">  
30 - <a-select-option v-for="item in zoneList" :key="item.name" :value="item.code">  
31 - {{item.name}}  
32 - </a-select-option>  
33 - </a-select>  
34 - </a-form-item>  
35 - </a-col>  
36 - <a-col :xl="6" :lg="7" :md="8" :sm="24">  
37 <a-form-item label="起始库位"> 34 <a-form-item label="起始库位">
38 <a-input placeholder="请输入起始库位" v-model="queryParam.fromLocationCode"></a-input> 35 <a-input placeholder="请输入起始库位" v-model="queryParam.fromLocationCode"></a-input>
39 </a-form-item> 36 </a-form-item>
@@ -207,6 +204,7 @@ export default { @@ -207,6 +204,7 @@ export default {
207 return { 204 return {
208 description: '任务表管理页面', 205 description: '任务表管理页面',
209 zoneList: [], 206 zoneList: [],
  207 + zoneOptions:[],
210 isorter: { 208 isorter: {
211 column: 'status', 209 column: 'status',
212 order: 'asc', 210 order: 'asc',
@@ -410,6 +408,14 @@ export default { @@ -410,6 +408,14 @@ export default {
410 getZoneList().then((res) => { 408 getZoneList().then((res) => {
411 if (res.success) { 409 if (res.success) {
412 this.zoneList = res.result 410 this.zoneList = res.result
  411 + //延迟半秒执行,避免组件未加载完,数据已经加载完
  412 + setTimeout(()=>{
  413 + //slice可以在数组的任何位置进行删除/添加操作
  414 + this.zoneOptions.splice(0, 1);
  415 + for (let i = 0; i < res.result.length; i++) {
  416 + this.zoneOptions.push({value:res.result[i].code,text:res.result[i].name})
  417 + }
  418 + },500)
413 } 419 }
414 }); 420 });
415 }, 421 },
ant-design-vue-jeecg/src/views/system/task/ReceiptTaskHeaderList.vue
@@ -5,6 +5,17 @@ @@ -5,6 +5,17 @@
5 <a-form layout="inline" @keyup.enter.native="searchQuery"> 5 <a-form layout="inline" @keyup.enter.native="searchQuery">
6 <a-row :gutter="24"> 6 <a-row :gutter="24">
7 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 7 <a-col :xl="6" :lg="7" :md="8" :sm="24">
  8 + <a-form-item label="库区">
  9 + <a-form-model-item prop="zoneOptions">
  10 + <j-multi-select-tag
  11 + v-model="queryParam.zoneCode"
  12 + :options="zoneOptions"
  13 + placeholder="请选择">
  14 + </j-multi-select-tag>
  15 + </a-form-model-item>
  16 + </a-form-item>
  17 + </a-col>
  18 + <a-col :xl="6" :lg="7" :md="8" :sm="24">
8 <a-form-item label="任务ID"> 19 <a-form-item label="任务ID">
9 <a-input placeholder="请输入任务ID" v-model="queryParam.id"></a-input> 20 <a-input placeholder="请输入任务ID" v-model="queryParam.id"></a-input>
10 </a-form-item> 21 </a-form-item>
@@ -20,19 +31,6 @@ @@ -20,19 +31,6 @@
20 </a-form-item> 31 </a-form-item>
21 </a-col> 32 </a-col>
22 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 33 <a-col :xl="6" :lg="7" :md="8" :sm="24">
23 - <a-form-item label="库区">  
24 - <a-select  
25 - show-search  
26 - placeholder="请选择库区"  
27 - option-filter-prop="children"  
28 - v-model="queryParam.zoneCode">  
29 - <a-select-option v-for="item in zoneList" :key="item.name" :value="item.code">  
30 - {{item.name}}  
31 - </a-select-option>  
32 - </a-select>  
33 - </a-form-item>  
34 - </a-col>  
35 - <a-col :xl="6" :lg="7" :md="8" :sm="24">  
36 <a-form-item label="起始库位"> 34 <a-form-item label="起始库位">
37 <a-input placeholder="请输入起始库位" v-model="queryParam.fromLocationCode"></a-input> 35 <a-input placeholder="请输入起始库位" v-model="queryParam.fromLocationCode"></a-input>
38 </a-form-item> 36 </a-form-item>
@@ -201,6 +199,7 @@ export default { @@ -201,6 +199,7 @@ export default {
201 return { 199 return {
202 description: '任务表管理页面', 200 description: '任务表管理页面',
203 zoneList: [], 201 zoneList: [],
  202 + zoneOptions:[],
204 isorter: { 203 isorter: {
205 column: 'status', 204 column: 'status',
206 order: 'asc', 205 order: 'asc',
@@ -405,6 +404,14 @@ export default { @@ -405,6 +404,14 @@ export default {
405 getZoneList().then((res) => { 404 getZoneList().then((res) => {
406 if (res.success) { 405 if (res.success) {
407 this.zoneList = res.result 406 this.zoneList = res.result
  407 + //延迟半秒执行,避免组件未加载完,数据已经加载完
  408 + setTimeout(()=>{
  409 + //slice可以在数组的任何位置进行删除/添加操作
  410 + this.zoneOptions.splice(0, 1);
  411 + for (let i = 0; i < res.result.length; i++) {
  412 + this.zoneOptions.push({value:res.result[i].code,text:res.result[i].name})
  413 + }
  414 + },500)
408 } 415 }
409 }); 416 });
410 }, 417 },
ant-design-vue-jeecg/src/views/system/task/ShipmentTaskHeaderList.vue
@@ -5,6 +5,17 @@ @@ -5,6 +5,17 @@
5 <a-form layout="inline" @keyup.enter.native="searchQuery"> 5 <a-form layout="inline" @keyup.enter.native="searchQuery">
6 <a-row :gutter="24"> 6 <a-row :gutter="24">
7 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 7 <a-col :xl="6" :lg="7" :md="8" :sm="24">
  8 + <a-form-item label="库区">
  9 + <a-form-model-item prop="zoneOptions">
  10 + <j-multi-select-tag
  11 + v-model="queryParam.zoneCode"
  12 + :options="zoneOptions"
  13 + placeholder="请选择">
  14 + </j-multi-select-tag>
  15 + </a-form-model-item>
  16 + </a-form-item>
  17 + </a-col>
  18 + <a-col :xl="6" :lg="7" :md="8" :sm="24">
8 <a-form-item label="任务ID"> 19 <a-form-item label="任务ID">
9 <a-input placeholder="请输入任务ID" v-model="queryParam.id"></a-input> 20 <a-input placeholder="请输入任务ID" v-model="queryParam.id"></a-input>
10 </a-form-item> 21 </a-form-item>
@@ -20,19 +31,6 @@ @@ -20,19 +31,6 @@
20 </a-form-item> 31 </a-form-item>
21 </a-col> 32 </a-col>
22 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 33 <a-col :xl="6" :lg="7" :md="8" :sm="24">
23 - <a-form-item label="库区">  
24 - <a-select  
25 - show-search  
26 - placeholder="请选择库区"  
27 - option-filter-prop="children"  
28 - v-model="queryParam.zoneCode">  
29 - <a-select-option v-for="item in zoneList" :key="item.name" :value="item.code">  
30 - {{item.name}}  
31 - </a-select-option>  
32 - </a-select>  
33 - </a-form-item>  
34 - </a-col>  
35 - <a-col :xl="6" :lg="7" :md="8" :sm="24">  
36 <a-form-item label="起始库位"> 34 <a-form-item label="起始库位">
37 <a-input placeholder="请输入起始库位" v-model="queryParam.fromLocationCode"></a-input> 35 <a-input placeholder="请输入起始库位" v-model="queryParam.fromLocationCode"></a-input>
38 </a-form-item> 36 </a-form-item>
@@ -201,10 +199,12 @@ export default { @@ -201,10 +199,12 @@ export default {
201 data() { 199 data() {
202 return { 200 return {
203 description: '任务表管理页面', 201 description: '任务表管理页面',
  202 + zoneList: [],
204 isorter: { 203 isorter: {
205 column: 'status', 204 column: 'status',
206 order: 'asc', 205 order: 'asc',
207 }, 206 },
  207 + zoneOptions:[],
208 // 表头 208 // 表头
209 columns: [ 209 columns: [
210 { 210 {
@@ -380,6 +380,14 @@ export default { @@ -380,6 +380,14 @@ export default {
380 getZoneList().then((res) => { 380 getZoneList().then((res) => {
381 if (res.success) { 381 if (res.success) {
382 this.zoneList = res.result 382 this.zoneList = res.result
  383 + //延迟半秒执行,避免组件未加载完,数据已经加载完
  384 + setTimeout(()=>{
  385 + //slice可以在数组的任何位置进行删除/添加操作
  386 + this.zoneOptions.splice(0, 1);
  387 + for (let i = 0; i < res.result.length; i++) {
  388 + this.zoneOptions.push({value:res.result[i].code,text:res.result[i].name})
  389 + }
  390 + },500)
383 } 391 }
384 }); 392 });
385 }, 393 },
ant-design-vue-jeecg/src/views/system/task/TransferTaskHeaderList.vue
@@ -5,6 +5,17 @@ @@ -5,6 +5,17 @@
5 <a-form layout="inline" @keyup.enter.native="searchQuery"> 5 <a-form layout="inline" @keyup.enter.native="searchQuery">
6 <a-row :gutter="24"> 6 <a-row :gutter="24">
7 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 7 <a-col :xl="6" :lg="7" :md="8" :sm="24">
  8 + <a-form-item label="库区">
  9 + <a-form-model-item prop="zoneOptions">
  10 + <j-multi-select-tag
  11 + v-model="queryParam.zoneCode"
  12 + :options="zoneOptions"
  13 + placeholder="请选择">
  14 + </j-multi-select-tag>
  15 + </a-form-model-item>
  16 + </a-form-item>
  17 + </a-col>
  18 + <a-col :xl="6" :lg="7" :md="8" :sm="24">
8 <a-form-item label="任务ID"> 19 <a-form-item label="任务ID">
9 <a-input placeholder="请输入任务ID" v-model="queryParam.id"></a-input> 20 <a-input placeholder="请输入任务ID" v-model="queryParam.id"></a-input>
10 </a-form-item> 21 </a-form-item>
@@ -20,19 +31,6 @@ @@ -20,19 +31,6 @@
20 </a-form-item> 31 </a-form-item>
21 </a-col> 32 </a-col>
22 <a-col :xl="6" :lg="7" :md="8" :sm="24"> 33 <a-col :xl="6" :lg="7" :md="8" :sm="24">
23 - <a-form-item label="库区">  
24 - <a-select  
25 - show-search  
26 - placeholder="请选择库区"  
27 - option-filter-prop="children"  
28 - v-model="queryParam.zoneCode">  
29 - <a-select-option v-for="item in zoneList" :key="item.name" :value="item.code">  
30 - {{item.name}}  
31 - </a-select-option>  
32 - </a-select>  
33 - </a-form-item>  
34 - </a-col>  
35 - <a-col :xl="6" :lg="7" :md="8" :sm="24">  
36 <a-form-item label="起始库位"> 34 <a-form-item label="起始库位">
37 <a-input placeholder="请输入起始库位" v-model="queryParam.fromLocationCode"></a-input> 35 <a-input placeholder="请输入起始库位" v-model="queryParam.fromLocationCode"></a-input>
38 </a-form-item> 36 </a-form-item>
@@ -205,6 +203,7 @@ export default { @@ -205,6 +203,7 @@ export default {
205 return { 203 return {
206 description: '任务表管理页面', 204 description: '任务表管理页面',
207 zoneList: [], 205 zoneList: [],
  206 + zoneOptions:[],
208 isorter: { 207 isorter: {
209 column: 'status', 208 column: 'status',
210 order: 'asc', 209 order: 'asc',
@@ -412,6 +411,14 @@ export default { @@ -412,6 +411,14 @@ export default {
412 getZoneList().then((res) => { 411 getZoneList().then((res) => {
413 if (res.success) { 412 if (res.success) {
414 this.zoneList = res.result 413 this.zoneList = res.result
  414 + //延迟半秒执行,避免组件未加载完,数据已经加载完
  415 + setTimeout(()=>{
  416 + //slice可以在数组的任何位置进行删除/添加操作
  417 + this.zoneOptions.splice(0, 1);
  418 + for (let i = 0; i < res.result.length; i++) {
  419 + this.zoneOptions.push({value:res.result[i].code,text:res.result[i].name})
  420 + }
  421 + },500)
415 } 422 }
416 }); 423 });
417 }, 424 },
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/wcs/service/LocationAllocationServiceImpl.java
@@ -15,6 +15,7 @@ import org.jeecg.modules.wms.config.containerType.entity.ContainerType; @@ -15,6 +15,7 @@ import org.jeecg.modules.wms.config.containerType.entity.ContainerType;
15 import org.jeecg.modules.wms.config.containerType.service.IContainerTypeService; 15 import org.jeecg.modules.wms.config.containerType.service.IContainerTypeService;
16 import org.jeecg.modules.wms.config.location.entity.Location; 16 import org.jeecg.modules.wms.config.location.entity.Location;
17 import org.jeecg.modules.wms.config.location.service.ILocationService; 17 import org.jeecg.modules.wms.config.location.service.ILocationService;
  18 +import org.jeecg.modules.wms.config.locationHigh.service.ILocationHighService;
18 import org.jeecg.modules.wms.config.locationType.entity.LocationType; 19 import org.jeecg.modules.wms.config.locationType.entity.LocationType;
19 import org.jeecg.modules.wms.config.locationType.service.ILocationTypeService; 20 import org.jeecg.modules.wms.config.locationType.service.ILocationTypeService;
20 import org.jeecg.modules.wms.config.parameterConfiguration.service.IParameterConfigurationService; 21 import org.jeecg.modules.wms.config.parameterConfiguration.service.IParameterConfigurationService;
@@ -48,6 +49,8 @@ public class LocationAllocationServiceImpl implements LocationAllocationService @@ -48,6 +49,8 @@ public class LocationAllocationServiceImpl implements LocationAllocationService
48 @Resource 49 @Resource
49 private IZoneService zoneService; 50 private IZoneService zoneService;
50 @Resource 51 @Resource
  52 + private ILocationHighService locationHighService;
  53 + @Resource
51 private IParameterConfigurationService parameterConfigurationService; 54 private IParameterConfigurationService parameterConfigurationService;
52 @Resource 55 @Resource
53 private LocationAllocationService locationAllocationService; 56 private LocationAllocationService locationAllocationService;
@@ -121,7 +124,7 @@ public class LocationAllocationServiceImpl implements LocationAllocationService @@ -121,7 +124,7 @@ public class LocationAllocationServiceImpl implements LocationAllocationService
121 } 124 }
122 roadWays.removeAll(removeRoadWays); 125 roadWays.removeAll(removeRoadWays);
123 if (roadWays == null || roadWays.size() == 0) { 126 if (roadWays == null || roadWays.size() == 0) {
124 - throw new JeecgBootException("分配库位时, 巷道为空"); 127 + throw new JeecgBootException("分配库位时, 可用巷道为空");
125 } 128 }
126 Collections.shuffle(roadWays); 129 Collections.shuffle(roadWays);
127 Integer roadWay = locationAllocationService.getRoadWay(roadWays, warehouseCode); 130 Integer roadWay = locationAllocationService.getRoadWay(roadWays, warehouseCode);
@@ -178,7 +181,7 @@ public class LocationAllocationServiceImpl implements LocationAllocationService @@ -178,7 +181,7 @@ public class LocationAllocationServiceImpl implements LocationAllocationService
178 } 181 }
179 String lastString = "ORDER BY high asc, layer asc, id asc limit 1"; 182 String lastString = "ORDER BY high asc, layer asc, id asc limit 1";
180 if (roadWays == null || roadWays.size() == 0) { 183 if (roadWays == null || roadWays.size() == 0) {
181 - throw new JeecgBootException("分配库位时, 巷道为空"); 184 + throw new JeecgBootException("分配库位时, 可用巷道为空");
182 } 185 }
183 Collections.shuffle(roadWays); 186 Collections.shuffle(roadWays);
184 Integer roadWay = locationAllocationService.getRoadWay(roadWays, warehouseCode); 187 Integer roadWay = locationAllocationService.getRoadWay(roadWays, warehouseCode);
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/wcs/service/WcsServiceImpl.java
@@ -173,7 +173,7 @@ public class WcsServiceImpl implements WcsService { @@ -173,7 +173,7 @@ public class WcsServiceImpl implements WcsService {
173 locationHighLambdaQueryWrapper.eq(LocationHigh::getHighLevel, highHeight).in(LocationHigh::getLocationTypeCode, locationTypeCodeList); 173 locationHighLambdaQueryWrapper.eq(LocationHigh::getHighLevel, highHeight).in(LocationHigh::getLocationTypeCode, locationTypeCodeList);
174 LocationHigh locationHigh = locationHighService.getOne(locationHighLambdaQueryWrapper); 174 LocationHigh locationHigh = locationHighService.getOne(locationHighLambdaQueryWrapper);
175 if (locationHigh == null) { 175 if (locationHigh == null) {
176 - return Result.error("分配库位时,没有找到库位高度"); 176 + return Result.error("分配库位时,高度不匹配,WCS给的高度值" + highHeight + "不在WMS系统配置范围内");
177 } 177 }
178 int high = locationHigh.getHigh(); 178 int high = locationHigh.getHigh();
179 String value = parameterConfigurationService.getValueByCode(QuantityConstant.RULE_ALLOCATION); 179 String value = parameterConfigurationService.getValueByCode(QuantityConstant.RULE_ALLOCATION);
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptContainerHeader/controller/ReceiptContainerHeaderController.java
@@ -2,7 +2,6 @@ package org.jeecg.modules.wms.receipt.receiptContainerHeader.controller; @@ -2,7 +2,6 @@ package org.jeecg.modules.wms.receipt.receiptContainerHeader.controller;
2 2
3 import java.io.IOException; 3 import java.io.IOException;
4 import java.util.Arrays; 4 import java.util.Arrays;
5 -import java.util.Date;  
6 import java.util.List; 5 import java.util.List;
7 import java.util.Map; 6 import java.util.Map;
8 import java.util.stream.Collectors; 7 import java.util.stream.Collectors;
@@ -209,7 +208,6 @@ public class ReceiptContainerHeaderController extends JeecgController&lt;ReceiptCon @@ -209,7 +208,6 @@ public class ReceiptContainerHeaderController extends JeecgController&lt;ReceiptCon
209 @PostMapping(value = "/addReceiptContainerDetail") 208 @PostMapping(value = "/addReceiptContainerDetail")
210 @RequiresPermissions("receiptContainerDetail:add") 209 @RequiresPermissions("receiptContainerDetail:add")
211 public Result<String> addReceiptContainerDetail(@RequestBody ReceiptContainerDetail receiptContainerDetail) { 210 public Result<String> addReceiptContainerDetail(@RequestBody ReceiptContainerDetail receiptContainerDetail) {
212 - receiptContainerDetail.setReceiveTime(new Date());  
213 receiptContainerDetailService.save(receiptContainerDetail); 211 receiptContainerDetailService.save(receiptContainerDetail);
214 return Result.OK("添加成功!"); 212 return Result.OK("添加成功!");
215 } 213 }
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiving/service/impl/ReceiveServiceImpl.java
@@ -2,7 +2,6 @@ package org.jeecg.modules.wms.receipt.receiving.service.impl; @@ -2,7 +2,6 @@ package org.jeecg.modules.wms.receipt.receiving.service.impl;
2 2
3 import java.math.BigDecimal; 3 import java.math.BigDecimal;
4 import java.util.ArrayList; 4 import java.util.ArrayList;
5 -import java.util.Date;  
6 import java.util.List; 5 import java.util.List;
7 import java.util.stream.Collectors; 6 import java.util.stream.Collectors;
8 7
@@ -251,7 +250,6 @@ public class ReceiveServiceImpl extends ServiceImpl&lt;ReceiveMapper, Receive&gt; impl @@ -251,7 +250,6 @@ public class ReceiveServiceImpl extends ServiceImpl&lt;ReceiveMapper, Receive&gt; impl
251 receiptContainerDetail.setLot(receiptDetail.getLot()); 250 receiptContainerDetail.setLot(receiptDetail.getLot());
252 receiptContainerDetail.setProject(receiptDetail.getProject()); 251 receiptContainerDetail.setProject(receiptDetail.getProject());
253 receiptContainerDetail.setInventoryStatus(receiptDetail.getInventoryStatus()); 252 receiptContainerDetail.setInventoryStatus(receiptDetail.getInventoryStatus());
254 - receiptContainerDetail.setReceiveTime(new Date());  
255 receiptContainerDetailList.add(receiptContainerDetail); 253 receiptContainerDetailList.add(receiptContainerDetail);
256 } 254 }
257 } 255 }