diff --git a/hb_client/src/api/hrm.js b/hb_client/src/api/hrm.js index 7157794..8a6b551 100644 --- a/hb_client/src/api/hrm.js +++ b/hb_client/src/api/hrm.js @@ -13,6 +13,7 @@ export function clockRecord(data) { data }) } +<<<<<<< HEAD //员工离岗说明 export function notWork(id, data) { return request({ @@ -22,3 +23,12 @@ export function notWork(id, data) { }) } +======= +export function getEmployee(data) { + return request({ + url: '/hrm/employee/', + method: 'get', + data + }) +} +>>>>>>> 802cd214bef263b51b08f9299e5a7bd9ec93b8ef diff --git a/hb_client/src/views/bigScreen/index.vue b/hb_client/src/views/bigScreen/index.vue index d07274d..2a0fcf1 100644 --- a/hb_client/src/views/bigScreen/index.vue +++ b/hb_client/src/views/bigScreen/index.vue @@ -98,6 +98,7 @@ import center from './center' import bottomLeft from './bottomLeft' import bottomRight from './bottomRight' + import { getPlanGantt } from "@/api/srm"; export default { mixins: [ drawMixin ], @@ -108,6 +109,7 @@ dateDay: null, dateYear: null, dateWeek: null, + planGanttList:[], weekday: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'] } }, @@ -122,6 +124,7 @@ mounted() { this.timeFn(); this.cancelLoading(); + this.getPageData(); let bigHeight = document.getElementsByClassName('host-body')[0].clientHeight; let firstHeight = document.getElementById('firstLine').clientHeight; let secondHeight = document.getElementsByClassName('jc-between')[0].clientHeight; @@ -139,6 +142,16 @@ this.dateWeek = this.weekday[new Date().getDay()] }, 1000) }, + getPageData(){ + let that = this; + getPlanGantt({Authorization:'big_screen'}).then(res => { + if (res.code === 200) { + this.planGanttList = res.data.results; + } else { + that.$message.error(res.msg); + } + }) + }, cancelLoading() { setTimeout(() => { this.loading = false diff --git a/hb_client/src/views/dashboard/index.vue b/hb_client/src/views/dashboard/index.vue index dcac59e..74b0ecc 100644 --- a/hb_client/src/views/dashboard/index.vue +++ b/hb_client/src/views/dashboard/index.vue @@ -240,7 +240,8 @@ - + + @@ -338,7 +339,8 @@ diff --git a/hb_client/src/views/mtm/materialdo.vue b/hb_client/src/views/mtm/materialdo.vue index ec10a3f..306988d 100644 --- a/hb_client/src/views/mtm/materialdo.vue +++ b/hb_client/src/views/mtm/materialdo.vue @@ -79,26 +79,13 @@ - + + + + + + @@ -576,6 +579,7 @@ recordformList: { count: 0, }, + formList:[], fieldList: { count: 0, }, @@ -696,6 +700,13 @@ this.material = this.$route.params.id; this.recordformLists(); }, + mounted(){ + getrecordformList({page:0}).then((response) => { + if (response.data) { + this.formList = response.data; + } + }); + }, methods: { formFunc(value) { this.dialogVisibleForm = value; @@ -882,6 +893,13 @@ // this.$refs["Forms"].resetFields(); // }); }, + formTypeChange(){ + getrecordformList({type:this.recordform.type,page:0}).then((response) => { + if (response.data) { + this.formList = response.data; + } + }); + }, //新增字段 handlefieldCreate() { this.field_choice = [""]; @@ -903,6 +921,8 @@ }); }, handleEdit(scope) { + debugger; + console.log( scope.row); this.recordform = Object.assign({}, scope.row); // copy obj this.dialogType = "edit"; this.dialogVisible = true; @@ -959,6 +979,7 @@ obj.type=this.recordform.type; obj.enabled=this.recordform.enabled; if (isEdit) { + obj.form=this.recordform.form?this.recordform.form:null; updaterecordform(this.recordform.id, obj).then( (res) => { if (res.code >= 200) { @@ -970,6 +991,7 @@ ); } else { obj.material=parseInt(this.material); + obj.form=this.recordform.form!==''?this.recordform.form:null; createrecordform(obj).then((res) => { if (res.code >= 200) { this.recordformLists(); diff --git a/hb_client/src/views/mtm/process.vue b/hb_client/src/views/mtm/process.vue index 8d52cd9..75d69ca 100644 --- a/hb_client/src/views/mtm/process.vue +++ b/hb_client/src/views/mtm/process.vue @@ -1,12 +1,11 @@ diff --git a/hb_client/src/views/pm/plan.vue b/hb_client/src/views/pm/plan.vue index c104680..b434ba8 100644 --- a/hb_client/src/views/pm/plan.vue +++ b/hb_client/src/views/pm/plan.vue @@ -142,65 +142,50 @@ style="width: 100%" height="250" > - - + - - + + - - - + + - - + + - - + + - + - + - - - + + - - + diff --git a/hb_client/src/views/procurement/vendor.vue b/hb_client/src/views/procurement/vendor.vue index a40edb0..33b1e5a 100644 --- a/hb_client/src/views/procurement/vendor.vue +++ b/hb_client/src/views/procurement/vendor.vue @@ -2,33 +2,33 @@
- - 新增供应商 - - - 搜索 - 重置 -
- + + 新增供应商 + + + + 搜索 + + + 重置 + +
- + - + - + - + - - + @@ -108,22 +108,20 @@ :rules="rule1" > - + - + - - + + - - - + + - - + + - diff --git a/hb_client/src/views/qm/processtest.vue b/hb_client/src/views/qm/processtest.vue index 16376a5..a4f85eb 100644 --- a/hb_client/src/views/qm/processtest.vue +++ b/hb_client/src/views/qm/processtest.vue @@ -15,56 +15,56 @@ - + - + - + - + - + - + - + - + - + - - + + @@ -100,34 +101,34 @@ - + - - + + - + - + - + - - + + @@ -147,7 +149,6 @@ :limit.sync="listQuery2.page_size" @pagination="getList2" /> - diff --git a/hb_client/src/views/qm/producttest.vue b/hb_client/src/views/qm/producttest.vue index cb3a7d3..33675b0 100644 --- a/hb_client/src/views/qm/producttest.vue +++ b/hb_client/src/views/qm/producttest.vue @@ -17,7 +17,7 @@
- + diff --git a/hb_client/src/views/qm/unproduct.vue b/hb_client/src/views/qm/unproduct.vue index 38d07ad..f1e3516 100644 --- a/hb_client/src/views/qm/unproduct.vue +++ b/hb_client/src/views/qm/unproduct.vue @@ -3,65 +3,65 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - - + + - + - + - + - + @@ -125,68 +126,68 @@ :limit.sync="listQuery2.page_size" @pagination="getList2" /> - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/hb_client/src/views/statistics/materialStatistics.vue b/hb_client/src/views/statistics/materialStatistics.vue index d32d704..80a9fc9 100644 --- a/hb_client/src/views/statistics/materialStatistics.vue +++ b/hb_client/src/views/statistics/materialStatistics.vue @@ -9,14 +9,14 @@
废料原因统计
-
+
@@ -56,7 +56,7 @@ :id="chartId1" :options="barOptions" :className="chartsName" - height="400px" + height="45vh" width="600px" > @@ -69,7 +69,7 @@ :id="chartId2" :options="barOptions" :className="chartsName" - height="400px" + height="45vh" width="600px" > @@ -111,7 +111,7 @@ :id="chartId3" :options="barOptions" :className="chartsName" - height="400px" + height="45vh" > diff --git a/hb_client/src/views/statistics/progressStatistics.vue b/hb_client/src/views/statistics/progressStatistics.vue index 4b1942d..0e5ee33 100644 --- a/hb_client/src/views/statistics/progressStatistics.vue +++ b/hb_client/src/views/statistics/progressStatistics.vue @@ -7,7 +7,7 @@ @@ -18,7 +18,7 @@ :id="chartId1" :options="barOptions" :className="chartsName" - height="400px" + height="45vh" width="100%" > @@ -31,7 +31,7 @@ :id="chartId2" :options="barOptions1" :className="chartsName" - height="400px" + height="45vh" width="100%" > @@ -55,10 +55,10 @@ > - + - + diff --git a/hb_client/src/views/wpm/worktask.vue b/hb_client/src/views/wpm/worktask.vue index 1cdc21a..acaf939 100644 --- a/hb_client/src/views/wpm/worktask.vue +++ b/hb_client/src/views/wpm/worktask.vue @@ -17,92 +17,96 @@ highlight-current-row @current-change="handleCurrentChange" > - - - + + - - + + - + - - + + - - + + - - - + + - - + - + - + + {{ state_[scope.row.state] }} + - + - - + - - + @@ -127,79 +131,74 @@ :label="item.name" :value="item.number" @click="handlework(item)" - >{{ item.name }} - + - - 显示全部 - - - - + 报废 + + + + 显示全部 + + - - - - + + + + > + - - - + + - - - + + - - - + + - - + + - - - - - + + + + + - - - - @@ -214,21 +213,21 @@ style="width: 100%" max-height="300" > - - - + + + - - + + - + @@ -242,13 +241,13 @@ - - + - + @@ -293,8 +292,9 @@ 领半成品 + 领半成品 + @@ -303,7 +303,6 @@ 确 定 - - - - + + - - - - + + @@ -341,7 +337,6 @@ 确 定 - 确认领料 + 确认领料 + @@ -449,23 +445,20 @@ max-height="600" @selection-change="handleSelectionChanges" > - - + + - + - - + - + - - +