diff --git a/public/index.html b/public/index.html index 3b60c3f..18e8c15 100644 --- a/public/index.html +++ b/public/index.html @@ -40,8 +40,8 @@ // window.SITE_CONFIG['apiURL'] = 'http://192.168.1.103:8080/pms-am'; // window.SITE_CONFIG['apiURL'] = 'http://192.168.1.49:8080/pms-am'; // tengyun // window.SITE_CONFIG['apiURL'] = 'http://192.168.1.67:8080/pms-am'; // wenzhang - // window.SITE_CONFIG['apiURL'] = 'http://192.168.1.62:8080/pms-am'; // tao - window.SITE_CONFIG['apiURL'] = 'http://192.168.1.21:8080/pms-am'; // xv + window.SITE_CONFIG['apiURL'] = 'http://192.168.1.62:8080/pms-am'; // tao + // window.SITE_CONFIG['apiURL'] = 'http://192.168.1.21:8080/pms-am'; // xv // window.SITE_CONFIG['apiURL'] = 'http://localhost:3000/p//////ms-am'; // xv <% } %> diff --git a/src/views/modules/pms/agvMission/config.js b/src/views/modules/pms/agvMission/config.js index 288e2b2..84967c0 100644 --- a/src/views/modules/pms/agvMission/config.js +++ b/src/views/modules/pms/agvMission/config.js @@ -33,6 +33,9 @@ export default function () { }, ]; + const now = new Date(); + const [y, m, d] = [now.getFullYear(), now.getMonth(), now.getDate()]; + const today = new Date(y, m, d, 0, 0, 0, 0).getTime(); const headFormFields = [ { prop: "key", @@ -85,6 +88,7 @@ export default function () { "start-placeholder": "开始时间", "end-placeholder": "结束时间", }, + default: { value: [today - 24 * 7 * 1000 * 3600, today + 3600 * 24 * 1000] }, }, { button: { diff --git a/src/views/modules/pms/brokeLog/config.js b/src/views/modules/pms/brokeLog/config.js index aa4eef7..30df20b 100644 --- a/src/views/modules/pms/brokeLog/config.js +++ b/src/views/modules/pms/brokeLog/config.js @@ -60,7 +60,9 @@ export default function () { } }; - const now = new Date().getTime(); + const now = new Date() + const [y, m, d] = [now.getFullYear(), now.getMonth(), now.getDate()] + const today = new Date(y, m, d, 0, 0, 0, 0).getTime() const headFormFields = [ { prop: "material", @@ -96,7 +98,7 @@ export default function () { "start-placeholder": "开始时间", "end-placeholder": "结束时间", }, - default: { value: [now - 3600 * 24 * 7 * 1000, now] }, + default: { value: [today - 3600 * 24 * 1000 * 7, today + 3600 * 1000 * 24] }, }, { button: { diff --git a/src/views/modules/pms/brokeLogHand/config.js b/src/views/modules/pms/brokeLogHand/config.js index bac96f4..af96f06 100644 --- a/src/views/modules/pms/brokeLogHand/config.js +++ b/src/views/modules/pms/brokeLogHand/config.js @@ -60,7 +60,9 @@ export default function () { } }; - const now = new Date().getTime(); + const now = new Date(); + const [y, m, d] = [now.getFullYear(), now.getMonth(), now.getDate()]; + const today = new Date(y, m, d, 0, 0, 0, 0).getTime(); const headFormFields = [ { prop: "material", @@ -96,7 +98,7 @@ export default function () { "start-placeholder": "开始时间", "end-placeholder": "结束时间", }, - default: { value: [now - 3600 * 24 * 7 * 1000, now] }, + default: { value: [today - 24 * 7 * 1000 * 3600, today + 3600 * 24 * 1000] }, }, { button: { diff --git a/src/views/modules/pms/carHistory/config.js b/src/views/modules/pms/carHistory/config.js index 323b2e5..149344e 100644 --- a/src/views/modules/pms/carHistory/config.js +++ b/src/views/modules/pms/carHistory/config.js @@ -28,7 +28,9 @@ export default function () { }, ]; - const now = new Date().getTime(); + const now = new Date(); + const [y, m, d] = [now.getFullYear(), now.getMonth(), now.getDate()]; + const today = new Date(y, m, d, 0, 0, 0, 0).getTime(); const headFormFields = [ { input: true, @@ -58,7 +60,7 @@ export default function () { "start-placeholder": "开始时间", "end-placeholder": "结束时间", }, - default: { value: [now - 3600 * 24 * 7 * 1000, now] }, + default: { value: [today - 24 * 7 * 1000 * 3600, today + 3600 * 24 * 1000] }, }, { button: { diff --git a/src/views/modules/pms/carOrderReport/config.js b/src/views/modules/pms/carOrderReport/config.js index d95a058..8b49f4e 100644 --- a/src/views/modules/pms/carOrderReport/config.js +++ b/src/views/modules/pms/carOrderReport/config.js @@ -52,7 +52,9 @@ export default function () { }, ]; - const now = new Date().getTime(); + const now = new Date(); + const [y, m, d] = [now.getFullYear(), now.getMonth(), now.getDate()]; + const today = new Date(y, m, d, 0, 0, 0, 0).getTime(); const headFormFields = [ { prop: "orderCode", @@ -119,6 +121,7 @@ export default function () { "start-placeholder": "开始时间", "end-placeholder": "结束时间", }, + default: { value: [today - 24 * 7 * 1000 * 3600, today + 3600 * 24 * 1000] }, }, { button: { diff --git a/src/views/modules/pms/materialStorageQty/index.vue b/src/views/modules/pms/materialStorageQty/index.vue index 20f1fc3..b5e2f28 100644 --- a/src/views/modules/pms/materialStorageQty/index.vue +++ b/src/views/modules/pms/materialStorageQty/index.vue @@ -15,7 +15,7 @@ layout="total, sizes, prev, pager, next, jumper"> -
+

@@ -66,7 +66,7 @@ :qty="st.qty ?? 0" :storage="st.name" color="#99aa11" - :material="st.material ?? '默认物料'" + :material="st.materialName ?? '默认物料'" :total="2" :unit-value="st.unitDictValue" :ratio="st.ratio" /> @@ -94,13 +94,17 @@ :qty="st.qty ?? 0" color="#3388ff" :storage="st.name" - :material="st.material ?? '默认物料'" + :material="st.materialName ?? '默认物料'" :total="2" :unit-value="st.unitDictValue" :ratio="st.ratio" />

+ +
+ 无数据 +
diff --git a/src/views/modules/pms/order/components/order--edit.vue b/src/views/modules/pms/order/components/order--edit.vue index c04d4d4..5f4efc3 100644 --- a/src/views/modules/pms/order/components/order--edit.vue +++ b/src/views/modules/pms/order/components/order--edit.vue @@ -600,7 +600,7 @@ export default { customerId: null, shortDesc: null, remark: null, - paperboard: null + paperboard: null, }, visible: false, requestList: [ @@ -770,7 +770,6 @@ export default { * 因为每个页面也许有独立的需求链 */ handleBomChange(bomID) { - //console.log("[handleBomChange] val is: ", bomID); const target = this.cachedList.bom.find((item) => item.id === bomID); // 这个单独的 bomId 是个极其特殊的需求,所以不放在 dataForm 里 this.bomId = bomID; @@ -826,29 +825,29 @@ export default { if (res && res.code === 0) { this.dataForm = __pick(res.data, Object.keys(this.dataForm)); - return res.data.bomId; // 特殊需求:编辑页面,还要根据 bomId 来更新配方号 + return { bomId: res.data.bomId, bomCode: res.data.bomCode }; // 特殊需求:编辑页面,还要根据 bomId 来更新配方号 } else { - this.$message({ - message: `${res.code}: ${res.msg}`, - type: "error", - duration: 1500, - }); + throw new Error(`${res.code}: ${res.msg}`); } }) - .then((bomId) => { - return this.$http({ - url: "/pms/bom/pageById", - method: "get", - params: { - limit: 999, - page: 1, - key: "", - id: bomId, - }, - }); + .then(({ bomId, bomCode }) => { + return Promise.all([ + this.$http({ + url: "/pms/bom/pageById", + method: "get", + params: { + limit: 999, + page: 1, + key: "", + id: bomId, + }, + }), + this.getBomVersionList({ code: bomCode }), + ]); }) - .then(({ data: res }) => { + .then(([{ data: res }]) => { if (res.code == 0) { + this.cachedList.bom = res.data.list; this.bomOptions = res.data.list.map((item) => ({ name: item.name, label: item.code, diff --git a/src/views/modules/pms/packReport/index.vue b/src/views/modules/pms/packReport/index.vue index d02bafe..fa27d26 100644 --- a/src/views/modules/pms/packReport/index.vue +++ b/src/views/modules/pms/packReport/index.vue @@ -8,39 +8,115 @@
- + - + 报工 + + + 早班 + 中班 + 晚班 + + + + + + +
暂无数据