|
|
|
@ -112,36 +112,62 @@
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!--</el-table>-->
|
|
|
|
|
|
|
|
|
|
<el-table :data="preDetailList" highlight-current-row="true" border ref="multipleTable" :row-style="rowStyle">
|
|
|
|
|
<el-table-column label="产品通用名" prop="cpmctymc" width="240"></el-table-column>
|
|
|
|
|
<el-table-column label="制剂规格" prop="prepnSpec" width="280"></el-table-column>
|
|
|
|
|
<el-table-column label="包装规格" prop="spec" width="100"></el-table-column>
|
|
|
|
|
<el-table-column label="单据数量" prop="count" width="80">
|
|
|
|
|
<el-table :data="preDetailList" highlight-current-row="true" border ref="multipleTable" size="100"
|
|
|
|
|
:row-style="{ height: '60px' }"
|
|
|
|
|
:cell-style="{ padding: '0' }"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column label="赋码状态" prop="cpmctymc" >
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<div style="text-align: center;">
|
|
|
|
|
<el-tag :type="getTagColor(scope.row)" size="26" >
|
|
|
|
|
{{ codingStatus }}
|
|
|
|
|
</el-tag>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="产品通用名" prop="cpmctymc" >
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<div :style="{ fontSize: '16px' }">{{ scope.row.cpmctymc }}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="单据数量" prop="count" >
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<div :style="{ fontSize: '26px' }">{{ scope.row.count }}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="扫码数量" prop="scanActCount" width="80">
|
|
|
|
|
<el-table-column label="应扫码数量" prop="scanActCount" >
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<div :style="{ fontSize: '26px', }">{{ scope.row.scanActCount }}</div>
|
|
|
|
|
<div :style="getCellStyle(scope.row)">{{scope.row.scanCount}}/{{ scope.row.shouldCount }}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="制剂规格" prop="prepnSpec" >
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<div :style="{ fontSize: '16px' }">{{ scope.row.prepnSpec }}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="包装规格" prop="spec" >
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<div :style="{ fontSize: '16px' }">{{ scope.row.spec }}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<!--<el-table-column label="工位库存" prop="tempWorkPlaceCount" width="80">-->
|
|
|
|
|
<!-- <template v-slot="scope">-->
|
|
|
|
|
<!-- <div :style="{ fontSize: '26px' }">{{ scope.row.tempWorkPlaceCount }}</div>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!--</el-table-column>-->
|
|
|
|
|
<!--<el-table-column label="拆零数量" prop="tempSplitCount" width="80">-->
|
|
|
|
|
<!-- <template v-slot="scope">-->
|
|
|
|
|
<!-- <div :style="{ fontSize: '26px' }">{{ scope.row.tempSplitCount }}</div>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!--</el-table-column>-->
|
|
|
|
|
<el-table-column label="批次号" prop="batchNo" width="80"></el-table-column>
|
|
|
|
|
<!--<el-table-column label="产品标识" prop="nameCode" width="120"></el-table-column>-->
|
|
|
|
|
<el-table-column label="医保编码" prop="ybbm" width="240"></el-table-column>
|
|
|
|
|
<!--<el-table-column label="产品标识" prop="nameCode" width="120"></el-table-column> fixed="right"-->
|
|
|
|
|
<el-table-column label="医保编码" prop="ybbm" width="240">
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<div :style="{ fontSize: '16px' }">{{ scope.row.ybbm }}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="批次号" prop="batchNo" >
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<div :style="{ fontSize: '16px' }">{{ scope.row.batchNo }}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" width="140" fixed="right">
|
|
|
|
|
>
|
|
|
|
|
<el-table-column
|
|
|
|
|
fixed="right"
|
|
|
|
|
label="操作"
|
|
|
|
|
width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="primary" @click="scanDetail(scope.row)" style="font-size: 14px" :disabled="scope.row.scanCount == null || scope.row.scanCount == 0 ">
|
|
|
|
|
扫码明细({{scope.row.scanCount == null ? 0 : scope.row.scanCount }})</el-button>
|
|
|
|
@ -233,6 +259,7 @@ export default {
|
|
|
|
|
countVisible: false,
|
|
|
|
|
scanDetailVisible: false,
|
|
|
|
|
bizId: null,
|
|
|
|
|
codingStatus: '已赋码',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
@ -348,6 +375,38 @@ export default {
|
|
|
|
|
return rowBackground;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getCellStyle(row){
|
|
|
|
|
let cellStyle = {
|
|
|
|
|
fontSize: '32px'
|
|
|
|
|
};
|
|
|
|
|
if (row.shouldCount == 0){
|
|
|
|
|
cellStyle.fontSize = '30px'
|
|
|
|
|
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'; // 绿色
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -379,4 +438,5 @@ export default {
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|