Compare commits

..

No commits in common. '29291397a342b2913e26192581261ac521347b0f' and 'b0463f51004e98dcc7fc3c5524ac90ed3566981e' have entirely different histories.

@ -3,60 +3,57 @@
<el-table :data="preDetailList" highlight-current-row="true" border ref="multipleTable" size="100" <el-table :data="preDetailList" highlight-current-row="true" border ref="multipleTable" size="100"
:row-style="{ height: '60px' }" :row-style="{ height: '60px' }"
:cell-style="{ padding: '0' }" :cell-style="{ padding: '0' }"
v-loading="preLoading"
> >
<el-table-column label="赋码状态" prop="cpmctymc"> <el-table-column label="赋码状态" prop="cpmctymc">
<template v-slot="scope"> <template v-slot="scope">
<div style="text-align: center;"> <div style="text-align: center;">
<el-tag :type="getStatusType(scope.row)" size="26"> <el-tag :type="getTagColor(scope.row)" size="26">
{{ getStatusText(scope.row) }} {{ codingStatus }}
</el-tag> </el-tag>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="产品通用名" prop="cpmctymc"> <el-table-column label="产品通用名" prop="cpmctymc">
<template v-slot="scope"> <template v-slot="scope">
<div class="table-cell">{{ scope.row.cpmctymc }}</div> <div :style="{ fontSize: '16px' }">{{ scope.row.cpmctymc }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="单据数量" prop="count"> <el-table-column label="退药数量" prop="count">
<template v-slot="scope"> <template v-slot="scope">
<div class="table-cell count">{{ scope.row.count }}</div> <div :style="{ fontSize: '26px' }">{{ scope.row.count }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="应扫码数量" prop="scanActCount" :min-width="120"> <el-table-column label="应扫码数量" prop="scanActCount">
<template v-slot="scope"> <template v-slot="scope">
<!--<div v-if="scope.row.autoTagStatus === 2" class="table-cell warning">--> <div :style="getCellStyle(scope.row)" style="display: flex; align-items: center; height: 100%; min-height: 40px;">
<!-- 无需扫码-->
<!--</div> v-else -->
<div :class="getScanCountClass(scope.row)" class="table-cell">
{{ scope.row.scanCount }}/{{ scope.row.shouldCount }} {{ scope.row.scanCount }}/{{ scope.row.shouldCount }}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="制剂规格" prop="prepnSpec"> <el-table-column label="制剂规格" prop="prepnSpec">
<template v-slot="scope"> <template v-slot="scope">
<div class="table-cell">{{ scope.row.prepnSpec }}</div> <div :style="{ fontSize: '16px' }">{{ scope.row.prepnSpec }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="包装规格" prop="spec"> <el-table-column label="包装规格" prop="spec">
<template v-slot="scope"> <template v-slot="scope">
<div class="table-cell">{{ scope.row.spec }}</div> <div :style="{ fontSize: '16px' }">{{ scope.row.spec }}</div>
</template> </template>
</el-table-column> </el-table-column>
<!--<el-table-column label="产品标识" prop="nameCode" width="120"></el-table-column> fixed="right"--> <!--<el-table-column label="产品标识" prop="nameCode" width="120"></el-table-column> fixed="right"-->
<el-table-column label="医保编码" prop="ybbm" width="240"> <el-table-column label="医保编码" prop="ybbm" width="240">
<template v-slot="scope"> <template v-slot="scope">
<div class="table-cell">{{ scope.row.ybbm }}</div> <div :style="{ fontSize: '16px' }">{{ scope.row.ybbm }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="批次号" prop="batchNo"> <el-table-column label="批次号" prop="batchNo">
<template v-slot="scope"> <template v-slot="scope">
<div class="table-cell">{{ scope.row.batchNo }}</div> <div :style="{ fontSize: '16px' }">{{ scope.row.batchNo }}</div>
</template> </template>
</el-table-column> </el-table-column>
>
<el-table-column <el-table-column
fixed="right" fixed="right"
label="操作" label="操作"
@ -64,9 +61,9 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" @click="scanDetail(scope.row)" style="font-size: 14px" <el-button type="primary" @click="scanDetail(scope.row)" style="font-size: 14px"
:disabled="!scope.row.scanCount" :disabled="scope.row.scanCount == null || scope.row.scanCount == 0 "
> >
扫码明细({{ scope.row.scanCount || 0 }}) 扫码明细({{ scope.row.scanCount == null ? 0 : scope.row.scanCount }})
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -247,21 +244,53 @@ export default {
this.refreshPanel(this) this.refreshPanel(this)
}, },
getStatusText(row) { rowStyle({ row, rowIndex }) {
if (row.autoTagStatus === 2) return '预赋码' let rowBackground = {}
if (row.scanActCount == null) return '未赋码' rowBackground.fontSize = '16px'
return row.scanActCount < row.count ? '未赋码' : '已赋码' rowBackground.height = '50px'
if (row.scanActCount < row.count) {
rowBackground.color = '#F56C6C'
}
if (row.autoTagStatus == 2) {
rowBackground.color = '#E6A23C'
}
if (row.scanActCount >= row.count) {
rowBackground.color = '#56a717'
}
return rowBackground
}, },
getStatusType(row) { getCellStyle(row) {
if (row.scanActCount == null) return 'danger' let cellStyle = {
return row.scanActCount < row.count ? 'danger' : 'success' fontSize: '50px'
}, }
getScanCountClass(row) { if (row.shouldCount == 0) {
if (row.shouldCount === 0) return 'error' cellStyle.fontSize = '30px'
return row.scanCount < row.shouldCount ? 'error' : 'success' cellStyle.color = '#F56C6C'
return cellStyle
}
if (row.scanCount < row.shouldCount) {
cellStyle.color = '#F56C6C'
} else if (row.scanCount === row.shouldCount) {
cellStyle.color = '#56a717'
}
return cellStyle
}, },
// cellStyle({ row, column, rowIndex, columnIndex }) {
// return { height: '60px' };
// },
getTagColor(row) {
if (row.scanActCount < row.count) {
this.codingStatus = '未赋码'
return 'danger' //
} else if (row.autoTagStatus == 2) {
this.codingStatus = '预赋码'
return 'warning' //
} else if (row.scanActCount >= row.count) {
this.codingStatus = '已赋码'
return 'success' // 绿
}
}
}, },
@ -269,6 +298,16 @@ export default {
PanelOrderManuTagCode PanelOrderManuTagCode
}, },
created() { created() {
if (this.tableHeader1 == null || this.tableHeader1.length == 0) {
getHead('prescribeOriginPanel', '1').then((re) => {
//
this.tableObj1 = re.data
this.tableHeader1 = re.data.tableList
this.queryList1 = re.data.queryList
this.fromList1 = re.data.fromList
this.getPrescribeDetail(this)
})
}
this.getPrescribeDetail(this) this.getPrescribeDetail(this)
if (this.dealStatus == 1) { if (this.dealStatus == 1) {
this.countVisible = false this.countVisible = false
@ -281,31 +320,6 @@ export default {
</script> </script>
<style scoped> <style scoped>
.table-cell {
font-size: 16px;
display: flex;
align-items: center;
height: 100%;
min-height: 60px;
}
.table-cell.count {
font-size: 26px;
}
.table-cell.warning {
font-size: 30px;
color: #E6A23C;
}
.table-cell.error {
font-size: 50px;
color: #F56C6C;
}
.table-cell.success {
font-size: 50px;
color: #56a717;
}
</style> </style>

Loading…
Cancel
Save