| | |
| | | id(val) { |
| | | this.loading = true |
| | | this.$axios.post(this.$api.insOrderPlan.doInsOrder, { |
| | | id: val |
| | | id: val, |
| | | laboratory: this.sonLaboratory |
| | | }).then(res => { |
| | | this.insOrder = res.data.insOrder; |
| | | this.urgentList.forEach(m => { |
| | |
| | | id: '', |
| | | font: '交接', |
| | | type: 'text', |
| | | method: '' |
| | | disabFun: (row, index) => { |
| | | return row.userId == null |
| | | } |
| | | }, |
| | | { |
| | | id: '', |
| | | font: '复核', |
| | | type: 'text', |
| | | method: '' |
| | | disabFun: (row, index) => { |
| | | return row.userId == null || row.insState != 4 |
| | | } |
| | | }, { |
| | | id: '', |
| | | font: '认领', |
| | |
| | | currentId: null, |
| | | entityCopy: {}, |
| | | orderId: 0, |
| | | currentTime: null |
| | | } |
| | | }, |
| | | created() { |
| | | this.getLaboratoryDicts() |
| | | this.getTypeDicts() |
| | | this.getInsStateDicts() |
| | | this.currentTime = getYearAndMonthAndDays() |
| | | }, |
| | | mounted() { |
| | | this.entityCopy = this.HaveJson(this.componentData.entity) |
| | |
| | | row, |
| | | rowIndex |
| | | }) { |
| | | let currentTime = getYearAndMonthAndDays() |
| | | if (currentTime === row.appointed) { |
| | | if (this.currentTime === row.appointed) { |
| | | return 'highlight-warning-row-border' |
| | | } else if (currentTime > row.appointed) { |
| | | } else if (this.currentTime > row.appointed) { |
| | | return 'highlight-danger-row-border' |
| | | } |
| | | return '' |
| | |
| | | } |
| | | year = year + '-' |
| | | let days = date.getDate() |
| | | return year + month + days |
| | | if (days < 10) { |
| | | days = '0' + days + '-' |
| | | } else { |
| | | days = days + '-' |
| | | } |
| | | return (year + month + days) |
| | | } |