diff --git a/api/materialManagement/MaterialRequsition.js b/api/materialManagement/MaterialRequsition.js index 49b3c4d..05fa65e 100644 --- a/api/materialManagement/MaterialRequsition.js +++ b/api/materialManagement/MaterialRequsition.js @@ -79,4 +79,14 @@ export function getAllOptions(params) { method: 'get', params }) +} + + +// 所有点位下拉_包装箱 +export function getAllOptions_package(params) { + return request({ + url: '/mes/mm/MmFinishedwarehouse/finish_point_pack', + method: 'get', + params + }) } \ No newline at end of file diff --git a/pages.json b/pages.json index b7ef6da..27c421e 100644 --- a/pages.json +++ b/pages.json @@ -232,6 +232,14 @@ "navigationBarTitleText" : "扫码信息展示", "enablePullDownRefresh" : false } + }, + { + "path" : "pages/materialManagement/package/package", + "style" : + { + "navigationBarTitleText" : "进箱", + "enablePullDownRefresh" : false + } } ] diff --git a/pages/materialManagement/MaterialProductionInput/MaterialProductionInput.vue b/pages/materialManagement/MaterialProductionInput/MaterialProductionInput.vue index ccc135d..3899471 100644 --- a/pages/materialManagement/MaterialProductionInput/MaterialProductionInput.vue +++ b/pages/materialManagement/MaterialProductionInput/MaterialProductionInput.vue @@ -143,6 +143,7 @@ export default { watch: {}, mounted() { this.get_startpoints(); + this.get_workorder_list(); }, methods: { containsChinese(str) { @@ -179,18 +180,18 @@ export default { //todo 根据日期获取工单 get_workorder_list() { this.loading = true; - // let date = new Date(this.workerorder_time); - // date = new Date(date.getTime() + date.getTimezoneOffset() * 60 * 1000); + let date = new Date(this.workerorder_time); + date = new Date(date.getTime() + date.getTimezoneOffset() * 60 * 1000); // 使用时间戳创建一个日期对象 - let date = new Date(this.workerorder_time); + //let date = new Date(this.workerorder_time); // 获取上海时区的时间偏移量(以分钟为单位) let offset = 8 * 60; // 上海时区为 UTC+8 // 计算上海时区的时间 let shanghaiTime = new Date(date.getTime() + offset * 60 * 1000); - + console.log("shanghaiTime",shanghaiTime); const query = { datetimespan: shanghaiTime, pageNum: this.page.pageNum, diff --git a/pages/materialManagement/MaterialRequisition/MaterialRequisition.vue b/pages/materialManagement/MaterialRequisition/MaterialRequisition.vue index a1b54ca..35ef614 100644 --- a/pages/materialManagement/MaterialRequisition/MaterialRequisition.vue +++ b/pages/materialManagement/MaterialRequisition/MaterialRequisition.vue @@ -60,7 +60,7 @@ - + + 起点 @@ -102,7 +102,6 @@ - @@ -202,8 +201,8 @@ export default { methods: { // todo 分页查询 getInitList() { - // 使用时间戳创建一个日期对象 - let date = new Date(this.queryParams.workerorder_time); + let now = new Date(this.queryParams.workerorder_time); + var date = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0, 0); // 设置时间为当天的凌晨 // 获取上海时区的时间偏移量(以分钟为单位) let offset = 8 * 60; // 上海时区为 UTC+8 diff --git a/pages/materialManagement/materialManagement.vue b/pages/materialManagement/materialManagement.vue index cb89d1b..1d34836 100644 --- a/pages/materialManagement/materialManagement.vue +++ b/pages/materialManagement/materialManagement.vue @@ -15,6 +15,13 @@ {{item.name}} + + + + + {{item.name}} + + @@ -42,6 +49,12 @@ url: '/pages/materialManagement/MaterialWarehousing/MaterialWarehousing', type: 2, }, + { + name: '进箱', + icon: 'gift', + url: '/pages/materialManagement/package/package', + type: 3, + }, ] } }, diff --git a/pages/materialManagement/package/package.vue b/pages/materialManagement/package/package.vue new file mode 100644 index 0000000..066588d --- /dev/null +++ b/pages/materialManagement/package/package.vue @@ -0,0 +1,218 @@ + + + + + \ No newline at end of file