diff --git a/hb_client/src/App.vue b/hb_client/src/App.vue index d55de5c..14f48dc 100644 --- a/hb_client/src/App.vue +++ b/hb_client/src/App.vue @@ -53,6 +53,10 @@ export default { .adopt input.el-input__inner{ border: 1px solid #46ce7a!important; } + .fail .originBlock input.el-input__inner, + .adopt .originBlock input.el-input__inner{ + border: none!important; + } #customerForm .el-form-item{ margin-bottom: 30px!important; } diff --git a/hb_client/src/components/customForm/index.vue b/hb_client/src/components/customForm/index.vue index 8928485..7bf1fa1 100644 --- a/hb_client/src/components/customForm/index.vue +++ b/hb_client/src/components/customForm/index.vue @@ -123,7 +123,7 @@
- +
@@ -174,10 +174,6 @@ default: () => { return [] }} , - step: { - type:String, - default:'' - }, formID: { type:Number, default:0 @@ -195,7 +191,6 @@ let that = this; this.form = this.formID; let formData=this.results; - this.checkType=this.step; that.wproductId=this.wproduct; formData.forEach(item => { let obj = new Object(); @@ -219,6 +214,12 @@ obj = item; that.judgeList.push(obj) }); + let imag= this.formData.filter(item => { + return item.field_type === 'draw'; + }); + that.img = new Image(); + that.img.crossOrigin = ''; + that.img = 'http://47.95.0.242:2222'+imag[0].draw_template; setTimeout(function(){ that.canvasInit(); },500); @@ -239,6 +240,7 @@ myCanvas_rect:null, Txt:null, word:null, + img:null, widths:0, heights:0, lineW:3, @@ -246,7 +248,6 @@ imgUrl:'', imgData:'', canvasImg:'', - checkType:'', formData:[],//表单数组 judgeList:[],//判定数组 is_testok:true, @@ -399,6 +400,7 @@ //画布添加背景模板图 draw(){ let canvasImg = document.getElementById("canvasImg"); + canvasImg.setAttribute("crossOrigin",'anonymous'); canvasImg.style.width = '500px'; canvasImg.style.height = '300px'; this.ctx.drawImage(canvasImg,0,0,500,300); @@ -629,10 +631,10 @@ }); if(real.length>0){ that.is_testok = false; - alert("检验不合格!") + // alert("检验不合格!") }else{ that.is_testok = true; - alert("检验合格!") + // alert("检验合格!") } }, //提交检查项目 diff --git a/hb_client/src/components/customForm/review.vue b/hb_client/src/components/customForm/review.vue new file mode 100644 index 0000000..63f94c3 --- /dev/null +++ b/hb_client/src/components/customForm/review.vue @@ -0,0 +1,878 @@ + + + + + diff --git a/hb_client/src/main.js b/hb_client/src/main.js index b2c7b55..d9d4487 100644 --- a/hb_client/src/main.js +++ b/hb_client/src/main.js @@ -4,6 +4,8 @@ import 'normalize.css/normalize.css' // A modern alternative to CSS resets import Element from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' +import "element-ui/lib/theme-chalk/base.css"; +import CollapseTransition from "element-ui/lib/transitions/collapse-transition"; // import locale from 'element-ui/lib/locale/lang/en' // lang i18n import '@/styles/index.scss' // global css @@ -11,11 +13,13 @@ import '@/styles/index.scss' // global css import App from './App' import store from './store' import router from './router' - +import { plugin } from "vue-function-api"; import '@/icons' // icon import '@/permission' // permission control import tableHeight from '@/directive/el-table/index' -Vue.use(tableHeight) +Vue.component(CollapseTransition.name, CollapseTransition); +Vue.use(tableHeight).use(plugin); + /** * If you don't want to use mock-server * you want to use MockJs for mock api diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js index bb1f9c7..6c15619 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -178,6 +178,14 @@ export const asyncRoutes = [ component: () => import('@/views/pm/resources'), meta: { title: '生产资源配置', icon: 'example', perms: ['pm_resources'] } } + , + { + path: 'gantt', + name: 'gantt', + component: () => import('@/views/pm/gantt'), + meta: { title: '甘特图', perms: ['vendor_manage'] }, + hidden: true + }, ] } , diff --git a/hb_client/src/views/pm/components/leftMenu.vue b/hb_client/src/views/pm/components/leftMenu.vue new file mode 100644 index 0000000..4b66728 --- /dev/null +++ b/hb_client/src/views/pm/components/leftMenu.vue @@ -0,0 +1,396 @@ + + + + + + diff --git a/hb_client/src/views/pm/components/slider.vue b/hb_client/src/views/pm/components/slider.vue new file mode 100644 index 0000000..d4e0260 --- /dev/null +++ b/hb_client/src/views/pm/components/slider.vue @@ -0,0 +1,173 @@ + + + \ No newline at end of file diff --git a/hb_client/src/views/pm/gantt.vue b/hb_client/src/views/pm/gantt.vue new file mode 100644 index 0000000..4d36fcd --- /dev/null +++ b/hb_client/src/views/pm/gantt.vue @@ -0,0 +1,2153 @@ + + + + + diff --git a/hb_client/src/views/wpm/need.vue b/hb_client/src/views/wpm/need.vue index da5638f..ef1a5da 100644 --- a/hb_client/src/views/wpm/need.vue +++ b/hb_client/src/views/wpm/need.vue @@ -34,10 +34,9 @@ @@ -74,7 +73,6 @@ {{ actstate_[scope.row.act_state] }} - @@ -82,8 +80,8 @@ @@ -226,7 +224,6 @@ :results="fieldList" :hasPicture="hasPicture" :formID="recordform" - :step="step" :wproduct="wproduct" @formFunc="formFunc" /> @@ -238,6 +235,21 @@ 填写检查项目
+ + + @@ -296,6 +308,7 @@