|
|
|
@ -1,115 +1,150 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<el-table v-loading="preLoading" :data="preDetailList" style="width: 100%" border :row-style="rowStyle">
|
|
|
|
|
<template v-for="(item, index) in tableHeader1">
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"
|
|
|
|
|
type="index" :label="item.columnDesc"></el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'selection'"
|
|
|
|
|
type="selection"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<!--<el-table v-loading="preLoading" :data="preDetailList" style="width: 100%" border :row-style="rowStyle">-->
|
|
|
|
|
<!-- <template v-for="(item, index) in tableHeader1">-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- v-if="item.columnType == 'id' && executeEval(row,item.expression,true)"-->
|
|
|
|
|
<!-- type="index" :label="item.columnDesc"></el-table-column>-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- v-if="item.columnType == 'selection'"-->
|
|
|
|
|
<!-- type="selection"-->
|
|
|
|
|
<!-- :width="item.width"-->
|
|
|
|
|
<!-- :selectable="(row,number) => executeFuc(row,'3',item.clickFuc)"-->
|
|
|
|
|
<!-- ></el-table-column>-->
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'radio' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'laber' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{
|
|
|
|
|
item.lableRuleObj[scope.row[item.columnName]]
|
|
|
|
|
}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'eltag' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag
|
|
|
|
|
:type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">
|
|
|
|
|
<span>{{
|
|
|
|
|
item.lableRuleObj ? item.lableRuleObj[scope.row[item.columnName]] : scope.row[item.columnName]
|
|
|
|
|
}}</span>
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'button' && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
fixed="right"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"
|
|
|
|
|
:type="buttonItem.type"
|
|
|
|
|
:size="buttonItem.size"
|
|
|
|
|
:style="buttonItem.style"
|
|
|
|
|
:key="buttonItem"
|
|
|
|
|
v-if="executeEval(scope.row,buttonItem.hasPermi,true)"
|
|
|
|
|
:disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"
|
|
|
|
|
@click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"
|
|
|
|
|
>{{ buttonItem.name }}
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'text' && !(item.columnName == 'productDate' || item.columnName == 'expireDate') && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{
|
|
|
|
|
scope.row[item.columnName]
|
|
|
|
|
}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
v-if="item.columnType == 'text' && (item.columnName == 'productDate' || item.columnName == 'expireDate') && executeEval(row,item.expression,true)"
|
|
|
|
|
:prop="item.columnName"
|
|
|
|
|
:label="item.columnDesc"
|
|
|
|
|
:sortable="item.sort"
|
|
|
|
|
:width="item.width"
|
|
|
|
|
:show-overflow-tooltip="item.tooltip"
|
|
|
|
|
:key="item.columnName"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{
|
|
|
|
|
convertDateFun(scope.row[item.columnName])
|
|
|
|
|
}}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- v-if="item.columnType == 'radio' && executeEval(row,item.expression,true)"-->
|
|
|
|
|
<!-- :prop="item.columnName"-->
|
|
|
|
|
<!-- :label="item.columnDesc"-->
|
|
|
|
|
<!-- :sortable="item.sort"-->
|
|
|
|
|
<!-- :width="item.width"-->
|
|
|
|
|
<!-- :show-overflow-tooltip="item.tooltip"-->
|
|
|
|
|
<!-- :key="item.columnName"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <el-radio :label="scope.row.id" v-model="radioCheck"><span></span></el-radio>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- v-if="item.columnType == 'laber' && executeEval(row,item.expression,true)"-->
|
|
|
|
|
<!-- :prop="item.columnName"-->
|
|
|
|
|
<!-- :label="item.columnDesc"-->
|
|
|
|
|
<!-- :sortable="item.sort"-->
|
|
|
|
|
<!-- :width="item.width"-->
|
|
|
|
|
<!-- :show-overflow-tooltip="item.tooltip"-->
|
|
|
|
|
<!-- :key="item.columnName"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <span :style="{color: executeFuc(scope.row,'4',item.lableRuleObj[scope.row[item.columnName]])}">{{-->
|
|
|
|
|
<!-- item.lableRuleObj[scope.row[item.columnName]]-->
|
|
|
|
|
<!-- }}</span>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- v-if="item.columnType == 'eltag' && executeEval(row,item.expression,true)"-->
|
|
|
|
|
<!-- :prop="item.columnName"-->
|
|
|
|
|
<!-- :label="item.columnDesc"-->
|
|
|
|
|
<!-- :sortable="item.sort"-->
|
|
|
|
|
<!-- :width="item.width"-->
|
|
|
|
|
<!-- :show-overflow-tooltip="item.tooltip"-->
|
|
|
|
|
<!-- :key="item.columnName"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <el-tag-->
|
|
|
|
|
<!-- :type="executeFuc(scope.row,'4',item,item.lableRuleObj?item.lableRuleObj[scope.row[item.columnName]]:scope.row[item.columnName])">-->
|
|
|
|
|
<!-- <span>{{-->
|
|
|
|
|
<!-- item.lableRuleObj ? item.lableRuleObj[scope.row[item.columnName]] : scope.row[item.columnName]-->
|
|
|
|
|
<!-- }}</span>-->
|
|
|
|
|
<!-- </el-tag>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- v-if="item.columnType == 'button' && executeEval(row,item.expression,true)"-->
|
|
|
|
|
<!-- :prop="item.columnName"-->
|
|
|
|
|
<!-- :label="item.columnDesc"-->
|
|
|
|
|
<!-- :width="item.width"-->
|
|
|
|
|
<!-- :key="item.columnName"-->
|
|
|
|
|
<!-- fixed="right"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"-->
|
|
|
|
|
<!-- :type="buttonItem.type"-->
|
|
|
|
|
<!-- :size="buttonItem.size"-->
|
|
|
|
|
<!-- :style="buttonItem.style"-->
|
|
|
|
|
<!-- :key="buttonItem"-->
|
|
|
|
|
<!-- v-if="executeEval(scope.row,buttonItem.hasPermi,true)"-->
|
|
|
|
|
<!-- :disabled="executeEval(scope.row,buttonItem.disabledFuc,false)"-->
|
|
|
|
|
<!-- @click.native.stop="executeFuc(scope.row,'1',buttonItem.clickFuc)"-->
|
|
|
|
|
<!-- >{{ buttonItem.name }}-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- v-if="item.columnType == 'text' && !(item.columnName == 'productDate' || item.columnName == 'expireDate') && executeEval(row,item.expression,true)"-->
|
|
|
|
|
<!-- :prop="item.columnName"-->
|
|
|
|
|
<!-- :label="item.columnDesc"-->
|
|
|
|
|
<!-- :sortable="item.sort"-->
|
|
|
|
|
<!-- :width="item.width"-->
|
|
|
|
|
<!-- :show-overflow-tooltip="item.tooltip"-->
|
|
|
|
|
<!-- :key="item.columnName"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{-->
|
|
|
|
|
<!-- scope.row[item.columnName]-->
|
|
|
|
|
<!-- }}</span>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- v-if="item.columnType == 'text' && (item.columnName == 'productDate' || item.columnName == 'expireDate') && executeEval(row,item.expression,true)"-->
|
|
|
|
|
<!-- :prop="item.columnName"-->
|
|
|
|
|
<!-- :label="item.columnDesc"-->
|
|
|
|
|
<!-- :sortable="item.sort"-->
|
|
|
|
|
<!-- :width="item.width"-->
|
|
|
|
|
<!-- :show-overflow-tooltip="item.tooltip"-->
|
|
|
|
|
<!-- :key="item.columnName"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <span :style="{color: executeFuc(scope.row,'4',item,scope.row[item.columnName])}">{{-->
|
|
|
|
|
<!-- convertDateFun(scope.row[item.columnName])-->
|
|
|
|
|
<!-- }}</span>-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
<!-- </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="batchNo" width="80"></el-table-column>
|
|
|
|
|
<el-table-column label="扫码数量" prop="scanActCount" width="80">
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<div :style="{ fontSize: '26px', }">{{ scope.row.scanActCount }}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="单据数量" prop="count" width="80">
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<div :style="{ fontSize: '26px' }">{{ scope.row.count }}</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="nameCode" width="120"></el-table-column>
|
|
|
|
|
<el-table-column label="医保编码" prop="ybbm" width="240"></el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" width="140" fixed="right">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="primary" icon="el-icon-document" @click="scanDetail(scope.row)" >扫码明细</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
@ -285,9 +320,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scanDetail(_this, row) {
|
|
|
|
|
_this.bizId = row.id;
|
|
|
|
|
_this.scanDetailVisible = true;
|
|
|
|
|
scanDetail( row) {
|
|
|
|
|
this.bizId = row.id;
|
|
|
|
|
this.scanDetailVisible = true;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
closeScanDialog() {
|
|
|
|
@ -297,7 +332,8 @@ export default {
|
|
|
|
|
|
|
|
|
|
rowStyle({row, rowIndex}) {
|
|
|
|
|
let rowBackground = {};
|
|
|
|
|
|
|
|
|
|
rowBackground.fontSize = '16px';
|
|
|
|
|
rowBackground.height = "50px";
|
|
|
|
|
if (row.scanActCount < row.count) {
|
|
|
|
|
rowBackground.color = '#F56C6C';
|
|
|
|
|
}
|
|
|
|
@ -307,7 +343,6 @@ export default {
|
|
|
|
|
if (row.scanActCount >= row.count) {
|
|
|
|
|
rowBackground.color = '#56a717';
|
|
|
|
|
}
|
|
|
|
|
rowBackground.height = "38px"
|
|
|
|
|
return rowBackground;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|