diff --git a/hb_client/src/api/wpm.js b/hb_client/src/api/wpm.js index 5653ac6..853e4ce 100644 --- a/hb_client/src/api/wpm.js +++ b/hb_client/src/api/wpm.js @@ -368,3 +368,12 @@ export function toorder(data) { data }) } + +//申请 +export function needtoorder(data) { + return request({ + url: '/wpm/wproduct/need_to_order/', + method: 'post', + data + }) +} diff --git a/hb_client/src/views/em/monitoring.vue b/hb_client/src/views/em/monitoring.vue index 7ea762e..5a8ea92 100644 --- a/hb_client/src/views/em/monitoring.vue +++ b/hb_client/src/views/em/monitoring.vue @@ -63,7 +63,10 @@ + {{scope.row.next_check_date}} + +
@@ -437,36 +440,21 @@ export default { }, //校准时间提醒 - tableRowClassName(row, column, rowIndex, columnIndex) { - if(row.row.next_check_date!=null) - { - var adata = new Date(); //获取当前时间 - const date = { - year: adata.getFullYear(), - month: adata.getMonth() + 1, - date: adata.getDate(), - }; - const newmonth = date.month > 10 ? date.month : "0" + date.month; - const day = date.date > 10 ? date.date : "0" + date.date; - var updateTime = date.year + "-" + newmonth + "-" + day; - var dateBegin = row.row.next_check_date; - - var a = - (new Date(dateBegin).getTime() - new Date(updateTime).getTime()) /1000/60/60/24; //计算出相差的毫秒数 - console.log(a); - if (4>a&&a>0 && row.column.label==='下次校准日期') { - - return "background:yellow"; - } - else if (a<0 && row.column.label==='下次校准日期') { - - return "background:red"; - } - - return ""; - } - - }, + setClass:function(check_date) { + let obj = {}; + if(check_date!=null){ + let dat = new Date(); + let time = dat.getTime(); + let check = new Date(check_date).getTime(); + let timeDiffer = (check-time)/1000/60/60/24; + if (4>timeDiffer&&timeDiffer>0) { + obj = 'warning'; + }else if (timeDiffer<0) { + obj = "danger"; + } + } + return obj; + }, //组员列表 getUserList() { getUserList({ page: 0 }).then((res) => { diff --git a/hb_client/src/views/inm/product.vue b/hb_client/src/views/inm/product.vue index 6decf36..f31e3e6 100644 --- a/hb_client/src/views/inm/product.vue +++ b/hb_client/src/views/inm/product.vue @@ -1,18 +1,21 @@ - + - + {{ + scope.row.to_order_.contract_.name + }} + + + + - - + - + {{ + scope.row.to_order_.customer_.name + }} + + + + - - - + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + {{ this.ordershow }} + {{ this.customershow }} + {{ this.contractshow }} + + + + + + + + + + + + + + + + + + + + + - diff --git a/hb_client/src/views/pm/plan.vue b/hb_client/src/views/pm/plan.vue index 5f411f2..3b75c6c 100644 --- a/hb_client/src/views/pm/plan.vue +++ b/hb_client/src/views/pm/plan.vue @@ -64,7 +64,7 @@ - + diff --git a/hb_client/src/views/pm/resources.vue b/hb_client/src/views/pm/resources.vue index f6b28df..d9728b6 100644 --- a/hb_client/src/views/pm/resources.vue +++ b/hb_client/src/views/pm/resources.vue @@ -110,10 +110,15 @@ - - + + + + + - @@ -143,6 +148,31 @@ + + @@ -200,12 +230,12 @@ export default { "6":'辅助工具', }, - state_:{ - 0:'完好', - 1:'限用', - 2:'在修', - 3:'禁用', - }, + state_: { + 10: '完好', + 20: '限用', + 30: '在修', + 40: '禁用', + }, listQuery: { page: 1, page_size: 20, diff --git a/hb_client/src/views/qm/product.vue b/hb_client/src/views/qm/product.vue index 9468158..367c35a 100644 --- a/hb_client/src/views/qm/product.vue +++ b/hb_client/src/views/qm/product.vue @@ -2,9 +2,56 @@
- + + 申请 + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + 合格 + 军检 - + + + + + - + @@ -96,7 +190,7 @@