diff --git a/src/api/billType.js b/src/api/billType.js index e05d067..16e1578 100644 --- a/src/api/billType.js +++ b/src/api/billType.js @@ -29,4 +29,16 @@ export function getBillType() { method: 'post' }) } -export default { add, edit, del, getBillType } +export function getByPick() { + return request({ + url: 'api/billType/getByPick', + method: 'post' + }) +} +export function getByAsn() { + return request({ + url: 'api/billType/getByAsn', + method: 'post' + }) +} +export default { add, edit, del, getBillType,getByPick,getByAsn } diff --git a/src/views/base-data/box/index.vue b/src/views/base-data/box/index.vue index 22cb9be..50878f7 100644 --- a/src/views/base-data/box/index.vue +++ b/src/views/base-data/box/index.vue @@ -71,14 +71,17 @@ /> - + + > + {{ item.code }} + {{ item.area.name }} + @@ -235,7 +238,7 @@ export default { [CRUD.HOOK.beforeRefresh]() { return true }, - // 加载地标 + // 加载点位 getPoint() { crudPoint.getPoints(null,null).then(res => { this.pointList = res.map(function(obj) { diff --git a/src/views/base-data/lampLog/index.vue b/src/views/base-data/lampLog/index.vue index 6f27c74..ad51b14 100644 --- a/src/views/base-data/lampLog/index.vue +++ b/src/views/base-data/lampLog/index.vue @@ -7,22 +7,10 @@ - - - - - - - - - - - - - + - + @@ -37,10 +25,6 @@ - - - - diff --git a/src/views/business-data/asn/index.vue b/src/views/business-data/asn/index.vue index 90f8dc4..5df5fdd 100644 --- a/src/views/business-data/asn/index.vue +++ b/src/views/business-data/asn/index.vue @@ -66,14 +66,12 @@ - { + getByAsn({}).then(res => { this.billTypeList = res.map(function(obj) { if (obj.hasChildren) { obj.children = null diff --git a/src/views/business-data/asnDetail/index.vue b/src/views/business-data/asnDetail/index.vue index e5de47d..d7b3612 100644 --- a/src/views/business-data/asnDetail/index.vue +++ b/src/views/business-data/asnDetail/index.vue @@ -44,6 +44,12 @@ + + + + - + @@ -180,16 +186,16 @@ import CRUD, { presenter, header, form, crud } from '@crud/crud' import rrOperation from '@crud/RR.operation' import udOperation from '@crud/UD.operation' import pagination from '@crud/Pagination' - +import DateRangePicker from '@/components/DateRangePicker' const defaultForm = { id: null, asn:{id:null}, item: null, stock: null, - lineNo: null, + lineNo: 1, po: null, status: 'OPEN', - orderQty: 0, + orderQty: 100, receivedQty: 0, moveQty: 0, putQty: 0, @@ -215,7 +221,7 @@ const defaultForm = { export default { name: 'AsnDetail', // eslint-disable-next-line vue/no-unused-components - components: { pagination, crudOperation, rrOperation, udOperation }, + components: { pagination, crudOperation, rrOperation, udOperation, DateRangePicker }, mixins: [presenter(), header(), form(defaultForm), crud()], dicts: ['asn_status'], cruds() { @@ -246,8 +252,11 @@ export default { download: ['admin', 'asnDetail:download'] }, rules: { - code: [ - { required: true, message: '库区编号不能为空', trigger: 'blur' } + item: [ + { required: true, message: '必填', trigger: 'blur' } + ], + lineNo: [ + { required: true, message: '必填', trigger: 'blur' } ] }, itemList:[], diff --git a/src/views/business-data/businessTask/asnTask.vue b/src/views/business-data/businessTask/asnTask.vue index e0dbbfc..a629838 100644 --- a/src/views/business-data/businessTask/asnTask.vue +++ b/src/views/business-data/businessTask/asnTask.vue @@ -16,7 +16,7 @@ - + - + @@ -200,8 +200,8 @@ @@ -259,7 +259,7 @@ export default { name: 'Task', components: {DateRangePicker, pagination, crudOperation, rrOperation, udOperation}, mixins: [presenter(), header(), form(defaultForm), crud()], - dicts: ['task_status','asn_status'], + dicts: ['asn_task_status'], cruds() { return CRUD({ query: {taskType: ['FC_RK','SM_RK','RM_RK']}, diff --git a/src/views/business-data/pick/index.vue b/src/views/business-data/pick/index.vue index ebedfde..72e0b4e 100644 --- a/src/views/business-data/pick/index.vue +++ b/src/views/business-data/pick/index.vue @@ -155,7 +155,7 @@ import rrOperation from '@crud/RR.operation' import crudOperation from '@crud/CRUD.operation' import udOperation from '@crud/UD.operation' import pagination from '@crud/Pagination' -import {getBillType} from "@/api/billType"; +import {getBillType, getByPick } from "@/api/billType"; const defaultForm = { id: null, deptId: null, billType: null, orderOrigin: null, priority: null, owner: null, relatedBill1: null, relatedBill2: null, sourceName: null, status: null, address: null, dispatchDate: null, erTime: null, createBy: null, updateBy: null, createTime: null, updateTime: null, orderDate: null } export default { @@ -202,7 +202,7 @@ export default { return true }, getBillType() { - getBillType({}).then(res => { + getByPick().then(res => { this.billTypeList = res.map(function(obj) { if (obj.hasChildren) { obj.children = null diff --git a/src/views/business-data/pickDetail/pickTask.vue b/src/views/business-data/pickDetail/pickTask.vue index dec6ad2..5a564ee 100644 --- a/src/views/business-data/pickDetail/pickTask.vue +++ b/src/views/business-data/pickDetail/pickTask.vue @@ -3,7 +3,7 @@
- + @@ -191,7 +191,7 @@ export default { name: 'Task', components: {Inventory, DateRangePicker, pagination, crudOperation, rrOperation, udOperation }, mixins: [presenter(), header(), form(defaultForm), crud()], - dicts: ['pick_status'], + dicts: ['pick_task_status'], cruds() { return CRUD({ query:{taskType:['RM_CK','FC_CK','SM_CK']}, title: '出库任务', url: 'api/task', idField: 'id', sort: 'id,desc', crudMethod: { ...crudTask }, optShow: { @@ -261,11 +261,12 @@ export default { return index * 1+1; }, defaultTableList() { - let statusList=[]; + /*let statusList=[]; statusList.push('OPEN') statusList.push('ALLOCATE') statusList.push('PICKUP') this.query.statusList = statusList + this.crud.toQuery()*/ this.crud.toQuery() }, queryInventoryFrom(itemId){