Commit b07c3e7c authored by 盖献康's avatar 盖献康

Merge remote-tracking branch 'origin/master'

parents a4432555 d6f3efdc
...@@ -300,8 +300,8 @@ input::-webkit-input-placeholder { ...@@ -300,8 +300,8 @@ input::-webkit-input-placeholder {
.small-padding { .small-padding {
.cell { .cell {
padding-left: 5px; padding-left: 0.6rem;
padding-right: 5px; padding-right: 0.3125rem;
} }
} }
......
...@@ -67,12 +67,14 @@ export default { ...@@ -67,12 +67,14 @@ export default {
}, },
methods: { methods: {
onCancel(type) { onCancel(type) {
if (type === 'cancle') { if (this.visible) {
this.$refs.imageCropper.getCropBlob((blob) => { if (type === 'cancle') {
this.$emit('cancel', blob) this.$refs.imageCropper.getCropBlob((blob) => {
}) this.$emit('cancel', blob)
} else { })
this.$emit('cancel', 'cancle') } else {
this.$emit('cancel', 'cancle')
}
} }
this.loading = false this.loading = false
}, },
......
...@@ -387,7 +387,8 @@ export default { ...@@ -387,7 +387,8 @@ export default {
], ],
head: [ head: [
{ min: 2, max: 20, message: '仅支持2~20位字符', trigger: 'blur' } { min: 2, max: 20, message: '仅支持2~20位字符', trigger: 'blur' },
{ pattern: /^[\a-\z\A-\Z\u4e00-\u9fe5\·]+$/, message: '仅支持中文、英文和·', trigger: 'blur' }
], ],
phone: [ phone: [
{ {
......
...@@ -760,7 +760,8 @@ export default { ...@@ -760,7 +760,8 @@ export default {
], ],
head: [ head: [
{ min: 2, max: 20, message: '仅支持2~20位字符', trigger: 'blur' } { min: 2, max: 20, message: '仅支持2~20位字符', trigger: 'blur' },
{ pattern: /^[\a-\z\A-\Z\u4e00-\u9fe5\·]+$/, message: '仅支持中文、英文和·', trigger: 'blur' }
], ],
phone: [ phone: [
{ {
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
@select="selectChange" @select="selectChange"
@select-all="selectChange" @select-all="selectChange"
> >
<el-table-column type="selection" width="47" align="center" /> <el-table-column type="selection" width="47" align="center" />
<el-table-column align="left" label="序号" min-width="60" show-overflow-tooltip prop="index"> <el-table-column align="left" label="序号" min-width="60" show-overflow-tooltip prop="index">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.$index + 1 }}</span> <span>{{ scope.$index + 1 }}</span>
...@@ -280,6 +280,7 @@ import { listDevice, delDevice } from '@/api/business/device' ...@@ -280,6 +280,7 @@ import { listDevice, delDevice } from '@/api/business/device'
import { getInfo } from '@/api/login' import { getInfo } from '@/api/login'
import { parseTime } from '@/utils/ruoyi' import { parseTime } from '@/utils/ruoyi'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import { listItem } from '@/api/business/item'
export default { export default {
name: 'EquipmentManagement', name: 'EquipmentManagement',
...@@ -516,9 +517,9 @@ export default { ...@@ -516,9 +517,9 @@ export default {
} }
if (this.userType === '00') { if (this.userType === '00') {
this.serviceShow = false this.serviceShow = false
this.itemType = 3 this.itemType = 2
} }
// this.getItemByType() this.getItemByType()
}) })
}, },
// 显示两位数字 // 显示两位数字
...@@ -540,6 +541,14 @@ export default { ...@@ -540,6 +541,14 @@ export default {
return '• 设备下架' return '• 设备下架'
} }
}, },
// 获取检查项目下拉框
getItemByType() {
listItem({ itemType: this.itemType }).then(res => {
console.log('检查项目', res)
this.checkItemOptions = res.rows
console.log('xdddd', this.checkItemOptions)
})
},
// 选择排序规则 // 选择排序规则
handleSort(val) { handleSort(val) {
...@@ -741,9 +750,17 @@ export default { ...@@ -741,9 +750,17 @@ export default {
handleExport() { handleExport() {
if (this.ids.length !== 0) { if (this.ids.length !== 0) {
const exportTable = {} const exportTable = {}
if (this.queryParams.orderByColumn === null) {
exportTable.orderByColumn = 'weight'
exportTable.isAsc = 'desc'
} else {
exportTable.orderByColumn = this.queryParams.orderByColumn
exportTable.isAsc = this.queryParams.isAsc
}
exportTable.deviceIdList = this.ids exportTable.deviceIdList = this.ids
this.download('business/device/export', exportTable, `设备管理-${this.exportFormatTime(new Date())}.xlsx`).then(res => { this.download('business/device/export', exportTable, `设备管理-${this.exportFormatTime(new Date())}.xlsx`).then(res => {
this.$refs.table.clearSelection() this.$refs.table.clearSelection()
this.ids = []
}) })
} else { } else {
this.$modal.msgWarning('请选择至少一条数据导出') this.$modal.msgWarning('请选择至少一条数据导出')
......
...@@ -1743,9 +1743,10 @@ export default { ...@@ -1743,9 +1743,10 @@ export default {
} }
}, },
drugOptionsShow() { drugOptionsShow() {
// disabled: !this.stockDispenseOutboundList.every(drug => drug.drugId !== item.drugId)
console.log('drugListShow', this.stockDispenseOutboundList, this.drugOptions) console.log('drugListShow', this.stockDispenseOutboundList, this.drugOptions)
return this.drugOptions.map(item => { return this.drugOptions.map(item => {
return { ...item, disabled: !this.stockDispenseOutboundList.every(drug => drug.drugId !== item.drugId) } return { ...item, disabled: false }
} }
) )
} }
...@@ -1947,12 +1948,13 @@ export default { ...@@ -1947,12 +1948,13 @@ export default {
console.log('finishSetDrugOthers', rowData) console.log('finishSetDrugOthers', rowData)
}, },
changeTreatItemOptionsShow(type, row) { changeTreatItemOptionsShow(type, row) {
// !this.treatManageBo.every(treat => {
// return treat.treatItemsId !== item.value
// })
this.treatItemOptionsShow = this.treatItemOptions.filter(item => item.type === type).map(item => { this.treatItemOptionsShow = this.treatItemOptions.filter(item => item.type === type).map(item => {
return { return {
...item, ...item,
disabled: !this.treatManageBo.every(treat => { disabled: false
return treat.treatItemsId !== item.value
})
} }
}) })
console.log('this.treatItemOptionsQQQQQQQQQQQQQQQ', this.treatItemOptionsShow, this.treatManageBo) console.log('this.treatItemOptionsQQQQQQQQQQQQQQQ', this.treatItemOptionsShow, this.treatManageBo)
...@@ -1976,15 +1978,16 @@ export default { ...@@ -1976,15 +1978,16 @@ export default {
getCheckItemOptions(checkType, row) { getCheckItemOptions(checkType, row) {
return new Promise(resolve => { return new Promise(resolve => {
console.log('getCheckItemOptions', checkType, row) console.log('getCheckItemOptions', checkType, row)
// disabled: !this.checkManageBos.every(check => {
// return check.checkItemsId !== item.id.toString()
// })
listByType({ itemType: checkType }).then(res => { listByType({ itemType: checkType }).then(res => {
this.checkItemOptions = res.rows.map(item => { this.checkItemOptions = res.rows.map(item => {
return { return {
label: item.name, label: item.name,
value: item.id.toString(), value: item.id.toString(),
payAmount: item.price, payAmount: item.price,
disabled: !this.checkManageBos.every(check => { disabled: false
return check.checkItemsId !== item.id.toString()
})
} }
}) })
console.log('checkItemOptions!!!!!!!!!!!!!', this.checkItemOptions) console.log('checkItemOptions!!!!!!!!!!!!!', this.checkItemOptions)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment