|
|
|
@ -7,91 +7,181 @@ |
|
|
|
<span class="contenttitleBold">条码分组</span> |
|
|
|
</div> |
|
|
|
<div class="seachinput"> |
|
|
|
<el-select v-model="department" placeholder="请选择条码" filterable :filter-method="remoteMethodes" |
|
|
|
default-first-option @change="quckDepartments" clearable size="small"> |
|
|
|
<el-option v-for="item in quckDepartment" :key="item.id" :label="item.displayName" :value="item.id"> |
|
|
|
<el-select |
|
|
|
v-model="department" |
|
|
|
placeholder="请选择条码" |
|
|
|
filterable |
|
|
|
:filter-method="remoteMethodes" |
|
|
|
default-first-option |
|
|
|
@change="quckDepartments" |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in quckDepartment" |
|
|
|
:key="item.id" |
|
|
|
:label="item.displayName" |
|
|
|
:value="item.id" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 7px"> |
|
|
|
<div style="margin-right: 110px"> |
|
|
|
<div style=" |
|
|
|
<div |
|
|
|
style=" |
|
|
|
margin-bottom: 15px; |
|
|
|
background-color: #fff; |
|
|
|
padding: 15px; |
|
|
|
border-radius: 8px; |
|
|
|
"> |
|
|
|
" |
|
|
|
> |
|
|
|
<div> |
|
|
|
<el-table :data="tableData" row-key="id" :height="window.pageHeight < 600 |
|
|
|
? 210 |
|
|
|
: Math.floor((window.pageHeight - 220) / 2) |
|
|
|
" class="el-table__body-wrapper tbody" @row-click="rowick" ref="info" highlight-current-row> |
|
|
|
<el-table-column prop="id" label="编号" width="300" align="center"> |
|
|
|
<el-table |
|
|
|
:data="tableData" |
|
|
|
row-key="id" |
|
|
|
:height=" |
|
|
|
window.pageHeight < 600 |
|
|
|
? 210 |
|
|
|
: Math.floor((window.pageHeight - 220) / 2) |
|
|
|
" |
|
|
|
class="el-table__body-wrapper tbody" |
|
|
|
@row-click="rowick" |
|
|
|
@row-dblclick="dblClick" |
|
|
|
ref="info" |
|
|
|
highlight-current-row |
|
|
|
> |
|
|
|
<el-table-column |
|
|
|
prop="id" |
|
|
|
label="编号" |
|
|
|
width="300" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="displayName" label="名称"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="sampleTypeName" label="标本类型" align="center" /> |
|
|
|
<el-table-column prop="sampleContainerName" label="标本容器" align="center" /> |
|
|
|
<el-table-column prop="samplePrintCount" label="默认打印数量" align="center" /> |
|
|
|
<el-table-column prop="creatorName" label="创建者" align="center"> |
|
|
|
<el-table-column |
|
|
|
prop="sampleTypeName" |
|
|
|
label="标本类型" |
|
|
|
align="center" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="sampleContainerName" |
|
|
|
label="标本容器" |
|
|
|
align="center" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="samplePrintCount" |
|
|
|
label="默认打印数量" |
|
|
|
align="center" |
|
|
|
/> |
|
|
|
<el-table-column |
|
|
|
prop="creatorName" |
|
|
|
label="创建者" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="creationTime" label="创建时间" align="center"> |
|
|
|
<el-table-column |
|
|
|
prop="creationTime" |
|
|
|
label="创建时间" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.creationTime | dateFormat }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="lastModifierName" label="修改者" align="center"> |
|
|
|
<el-table-column |
|
|
|
prop="lastModifierName" |
|
|
|
label="修改者" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="lastModificationTime" label="修改时间" width="180" align="center"> |
|
|
|
<el-table-column |
|
|
|
prop="lastModificationTime" |
|
|
|
label="修改时间" |
|
|
|
width="180" |
|
|
|
align="center" |
|
|
|
> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.lastModificationTime | dateFormat }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" align="center"> |
|
|
|
<template> |
|
|
|
<el-tag class="move" style=" |
|
|
|
<el-tag |
|
|
|
class="move" |
|
|
|
style=" |
|
|
|
cursor: move; |
|
|
|
background-color: rgb(245, 245, 245); |
|
|
|
border: none; |
|
|
|
" draggable="true"> |
|
|
|
<i class="el-icon-d-caret" style=" |
|
|
|
" |
|
|
|
draggable="true" |
|
|
|
> |
|
|
|
<i |
|
|
|
class="el-icon-d-caret" |
|
|
|
style=" |
|
|
|
width: 1rem; |
|
|
|
height: 1rem; |
|
|
|
color: rgb(113, 113, 113); |
|
|
|
"></i> |
|
|
|
" |
|
|
|
></i> |
|
|
|
</el-tag> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style="background-color: #fff; border-radius: 8px; padding: 15px"> |
|
|
|
<div |
|
|
|
style="background-color: #fff; border-radius: 8px; padding: 15px" |
|
|
|
> |
|
|
|
<div class="mainbox" style="margin-top: 0px"> |
|
|
|
<div class="mainleftbox"> |
|
|
|
<div> |
|
|
|
<span style=" |
|
|
|
<span |
|
|
|
style=" |
|
|
|
padding: 5px; |
|
|
|
font-size: 14px; |
|
|
|
font-weight: 400; |
|
|
|
color: #232748; |
|
|
|
font-family: NotoSansSC-Regular; |
|
|
|
margin-bottom: 10px; |
|
|
|
">项目类别</span> |
|
|
|
<el-cascader :options="dict.itemTypeTree" v-model="itemTypeIds" :props="{ |
|
|
|
checkStrictly: true, |
|
|
|
expandTrigger: 'hover', |
|
|
|
...customerOrg.treeprops, |
|
|
|
}" popper-class="example" @change="getAsbItemByItemType" size="small" ref="itemTypeIds"> |
|
|
|
" |
|
|
|
>项目类别</span |
|
|
|
> |
|
|
|
<el-cascader |
|
|
|
:options="dict.itemTypeTree" |
|
|
|
v-model="itemTypeIds" |
|
|
|
:props="{ |
|
|
|
checkStrictly: true, |
|
|
|
expandTrigger: 'hover', |
|
|
|
...customerOrg.treeprops, |
|
|
|
}" |
|
|
|
popper-class="example" |
|
|
|
@change="getAsbItemByItemType" |
|
|
|
size="small" |
|
|
|
ref="itemTypeIds" |
|
|
|
> |
|
|
|
</el-cascader> |
|
|
|
</div> |
|
|
|
<div :style="'width:' + Math.floor((window.pageWidth - 300) / 2) + 'px;' |
|
|
|
"> |
|
|
|
<el-table :data="dict.asbItem" :height="window.pageHeight < 600 |
|
|
|
? 210 |
|
|
|
: Math.floor((window.pageHeight - 200) / 2) |
|
|
|
" highlight-current-row @row-dblclick="dbClickChoosedAsb" @selection-change="handleSelectionChange" |
|
|
|
:row-class-name="handleRowClassName" @row-click="chooseAsbItem"> |
|
|
|
<div |
|
|
|
:style=" |
|
|
|
'width:' + Math.floor((window.pageWidth - 300) / 2) + 'px;' |
|
|
|
" |
|
|
|
> |
|
|
|
<el-table |
|
|
|
:data="dict.asbItem" |
|
|
|
:height=" |
|
|
|
window.pageHeight < 600 |
|
|
|
? 210 |
|
|
|
: Math.floor((window.pageHeight - 200) / 2) |
|
|
|
" |
|
|
|
highlight-current-row |
|
|
|
@row-dblclick="dbClickChoosedAsb" |
|
|
|
@selection-change="handleSelectionChange" |
|
|
|
:row-class-name="handleRowClassName" |
|
|
|
@row-click="chooseAsbItem" |
|
|
|
> |
|
|
|
<el-table-column type="index" align="center" label="序号" /> |
|
|
|
<el-table-column prop="displayName" label="未选组合项目" /> |
|
|
|
</el-table> |
|
|
|
@ -100,45 +190,89 @@ |
|
|
|
<!--中间操作按钮--> |
|
|
|
<div class="Selectbutton"> |
|
|
|
<div> |
|
|
|
<el-button class="commonbutton" @click="addAbs(asbItemChoosed, 'choosed')">添加 <i |
|
|
|
class="el-icon-arrow-right"></i></el-button> |
|
|
|
<el-button |
|
|
|
class="commonbutton" |
|
|
|
@click="addAbs(asbItemChoosed, 'choosed')" |
|
|
|
>添加 <i class="el-icon-arrow-right"></i |
|
|
|
></el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 18px"> |
|
|
|
<el-button class="difference" @click="addAbs(asbItemChoosed, 'all')">全部添加</el-button> |
|
|
|
<el-button |
|
|
|
class="difference" |
|
|
|
@click="addAbs(asbItemChoosed, 'all')" |
|
|
|
>全部添加</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 18px"> |
|
|
|
<el-button class="commonbutton" @click="delAbs(patientRegisterAbsChoosed, 'choosed')">移除 <i |
|
|
|
class="el-icon-arrow-left"></i></el-button> |
|
|
|
<el-button |
|
|
|
class="commonbutton" |
|
|
|
@click="delAbs(patientRegisterAbsChoosed, 'choosed')" |
|
|
|
>移除 <i class="el-icon-arrow-left"></i |
|
|
|
></el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 18px"> |
|
|
|
<el-button class="difference" @click="delAbs(patientRegisterAbsChoosed, 'all')">全部移除</el-button> |
|
|
|
<el-button |
|
|
|
class="difference" |
|
|
|
@click="delAbs(patientRegisterAbsChoosed, 'all')" |
|
|
|
>全部移除</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 已选组合项目模块 --> |
|
|
|
<div class="mainleftbox"> |
|
|
|
<div> |
|
|
|
<span style=" |
|
|
|
<span |
|
|
|
style=" |
|
|
|
padding: 5px; |
|
|
|
font-size: 14px; |
|
|
|
font-weight: 400; |
|
|
|
color: #232748; |
|
|
|
font-family: NotoSansSC-Regular; |
|
|
|
margin-bottom: 10px; |
|
|
|
">快速选择</span> |
|
|
|
<el-select v-model="asbItemId" placeholder="快速选择组合项目" size="small" filterable default-first-option |
|
|
|
:filter-method="filterMethod" clearable @clear="quickAsb = deepCopy(dict.asbItemQuick)" |
|
|
|
@change="quickChoosedAsb" ref="quickAsbOCX"> |
|
|
|
<el-option v-for="item in quickAsb" :key="item.id" :value="item.id" :label="item.displayName" /> |
|
|
|
" |
|
|
|
>快速选择</span |
|
|
|
> |
|
|
|
<el-select |
|
|
|
v-model="asbItemId" |
|
|
|
placeholder="快速选择组合项目" |
|
|
|
size="small" |
|
|
|
filterable |
|
|
|
default-first-option |
|
|
|
:filter-method="filterMethod" |
|
|
|
clearable |
|
|
|
@clear="quickAsb = deepCopy(dict.asbItemQuick)" |
|
|
|
@change="quickChoosedAsb" |
|
|
|
ref="quickAsbOCX" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in quickAsb" |
|
|
|
:key="item.id" |
|
|
|
:value="item.id" |
|
|
|
:label="item.displayName" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div :style="'width:' + Math.floor((window.pageWidth - 300) / 2) + 'px;' |
|
|
|
"> |
|
|
|
<el-table :data="sampleGroupAsbitems" :height="window.pageHeight < 600 |
|
|
|
? 210 |
|
|
|
: Math.floor((window.pageHeight - 200) / 2) |
|
|
|
" @selection-change="selecteditems" highlight-current-row :row-class-name="handleRowClassName" |
|
|
|
@row-dblclick="removeAbs" @row-click="removeAsbItem" :summary-method="getSummaries" show-summary |
|
|
|
ref="table"> |
|
|
|
<div |
|
|
|
:style=" |
|
|
|
'width:' + Math.floor((window.pageWidth - 300) / 2) + 'px;' |
|
|
|
" |
|
|
|
> |
|
|
|
<el-table |
|
|
|
:data="sampleGroupAsbitems" |
|
|
|
:height=" |
|
|
|
window.pageHeight < 600 |
|
|
|
? 210 |
|
|
|
: Math.floor((window.pageHeight - 200) / 2) |
|
|
|
" |
|
|
|
@selection-change="selecteditems" |
|
|
|
highlight-current-row |
|
|
|
:row-class-name="handleRowClassName" |
|
|
|
@row-dblclick="removeAbs" |
|
|
|
@row-click="removeAsbItem" |
|
|
|
:summary-method="getSummaries" |
|
|
|
show-summary |
|
|
|
ref="table" |
|
|
|
> |
|
|
|
<el-table-column type="index" align="center" label="序号" /> |
|
|
|
<el-table-column prop="displayName" label="已选组合项目" /> |
|
|
|
</el-table> |
|
|
|
@ -148,13 +282,15 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 按钮区域 --> |
|
|
|
<div style=" |
|
|
|
<div |
|
|
|
style=" |
|
|
|
margin-left: 10px; |
|
|
|
margin-top: 3%; |
|
|
|
position: absolute; |
|
|
|
right: 0; |
|
|
|
top: 0; |
|
|
|
"> |
|
|
|
" |
|
|
|
> |
|
|
|
<div> |
|
|
|
<el-button @click="btnAdd" class="commonbutton">新增</el-button> |
|
|
|
</div> |
|
|
|
@ -168,20 +304,34 @@ |
|
|
|
<el-button @click="btnSetTop" class="commonbutton">置顶</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<el-button @click="btnSetButtom" class="commonbutton">置底</el-button> |
|
|
|
<el-button @click="btnSetButtom" class="commonbutton" |
|
|
|
>置底</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<el-button :disabled="isshow" @click="btnSaveSort" class="commonbutton">排序</el-button> |
|
|
|
<el-button |
|
|
|
:disabled="isshow" |
|
|
|
@click="btnSaveSort" |
|
|
|
class="commonbutton" |
|
|
|
>排序</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<el-button @click="saveAsb" class="commonbutton">确定项目</el-button> |
|
|
|
<el-button @click="saveAsb" class="commonbutton" |
|
|
|
>确定项目</el-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 新增弹框 --> |
|
|
|
<el-dialog :title="title == 1 ? '新增' : '修改'" :visible.sync="dialogVisible" width="800px" |
|
|
|
:close-on-click-modal="false" @close="closeDialog"> |
|
|
|
<el-dialog |
|
|
|
:title="title == 1 ? '新增' : '修改'" |
|
|
|
:visible.sync="dialogVisible" |
|
|
|
width="800px" |
|
|
|
:close-on-click-modal="false" |
|
|
|
@close="closeDialog" |
|
|
|
> |
|
|
|
<el-form ref="form" :model="form" label-width="100px" :rules="rules"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
@ -193,13 +343,26 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="名称" prop="displayName"> |
|
|
|
<el-input v-model="form.displayName" size="small" ref="refinput"></el-input> |
|
|
|
<el-input |
|
|
|
v-model="form.displayName" |
|
|
|
size="small" |
|
|
|
ref="refinput" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="标本类型" prop="sampleTypeId"> |
|
|
|
<el-select v-model="form.sampleTypeId" placeholder="请选择" size="small"> |
|
|
|
<el-option v-for="item in sampleTypeId" :key="item.id" :label="item.displayName" :value="item.id"> |
|
|
|
<el-select |
|
|
|
v-model="form.sampleTypeId" |
|
|
|
placeholder="请选择" |
|
|
|
size="small" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in sampleTypeId" |
|
|
|
:key="item.id" |
|
|
|
:label="item.displayName" |
|
|
|
:value="item.id" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
@ -208,46 +371,79 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="标本容器" prop="sampleContainerId"> |
|
|
|
<el-select v-model="form.sampleContainerId" placeholder="请选择" size="small"> |
|
|
|
<el-option v-for="item in sampleContainerId" :key="item.id" :label="item.displayName" :value="item.id"> |
|
|
|
<el-select |
|
|
|
v-model="form.sampleContainerId" |
|
|
|
placeholder="请选择" |
|
|
|
size="small" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in sampleContainerId" |
|
|
|
:key="item.id" |
|
|
|
:label="item.displayName" |
|
|
|
:value="item.id" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="默认打印数量" prop="samplePrintCount"> |
|
|
|
<el-input v-model="form.samplePrintCount" type="number" size="small"></el-input> |
|
|
|
<el-input |
|
|
|
v-model="form.samplePrintCount" |
|
|
|
type="number" |
|
|
|
size="small" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="创建者"> |
|
|
|
<el-input v-model="form.creatorName" disabled size="small"></el-input> |
|
|
|
<el-input |
|
|
|
v-model="form.creatorName" |
|
|
|
disabled |
|
|
|
size="small" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="创建时间"> |
|
|
|
<el-input :value="form.creationTime | dateFormat" disabled size="small"></el-input> |
|
|
|
<el-input |
|
|
|
:value="form.creationTime | dateFormat" |
|
|
|
disabled |
|
|
|
size="small" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="修改者"> |
|
|
|
<el-input v-model="form.lastModifierName" disabled size="small"></el-input> |
|
|
|
<el-input |
|
|
|
v-model="form.lastModifierName" |
|
|
|
disabled |
|
|
|
size="small" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="修改时间"> |
|
|
|
<el-input :value="form.lastModificationTime | dateFormat" disabled size="small"></el-input> |
|
|
|
<el-input |
|
|
|
:value="form.lastModificationTime | dateFormat" |
|
|
|
disabled |
|
|
|
size="small" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="dialogVisible = false" class="difference">取 消</el-button> |
|
|
|
<el-button type="primary" @click="onSubmit" class="commonbutton">确 定</el-button> |
|
|
|
<el-button @click="dialogVisible = false" class="difference" |
|
|
|
>取 消</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" @click="onSubmit" class="commonbutton" |
|
|
|
>确 定</el-button |
|
|
|
> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
@ -335,7 +531,9 @@ export default { |
|
|
|
sdate: [], |
|
|
|
curRow: {}, |
|
|
|
department: "", |
|
|
|
quckDepartment: [] |
|
|
|
quckDepartment: [], |
|
|
|
clickTime1:0, |
|
|
|
clickTime2:0 |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -443,9 +641,9 @@ export default { |
|
|
|
this.dict.asbItemQuick.forEach((item) => { |
|
|
|
if ( |
|
|
|
item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) > |
|
|
|
-1 || |
|
|
|
-1 || |
|
|
|
item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > |
|
|
|
-1 || |
|
|
|
-1 || |
|
|
|
item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > -1 |
|
|
|
) { |
|
|
|
this.quickAsb.push(item); |
|
|
|
@ -749,7 +947,7 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
handlechang(value, direction, movedkeys) { }, |
|
|
|
handlechang(value, direction, movedkeys) {}, |
|
|
|
//取消按钮 |
|
|
|
cancellation() { |
|
|
|
this.$message.info("取消操作"); |
|
|
|
@ -782,7 +980,7 @@ export default { |
|
|
|
if (e == item.id) { |
|
|
|
this.$refs["info"].setCurrentRow(item); |
|
|
|
this.rowick(item); |
|
|
|
this.searchup(item, index) |
|
|
|
this.searchup(item, index); |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
@ -795,7 +993,7 @@ export default { |
|
|
|
this.initTableData.forEach((item) => { |
|
|
|
if ( |
|
|
|
item.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) > |
|
|
|
-1 || |
|
|
|
-1 || |
|
|
|
item.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > -1 |
|
|
|
// || item.shortName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1 |
|
|
|
) { |
|
|
|
@ -809,11 +1007,11 @@ export default { |
|
|
|
searchup(data, index) { |
|
|
|
this.$nextTick(() => { |
|
|
|
if (index == 0) { |
|
|
|
index = 1 |
|
|
|
index = 1; |
|
|
|
} |
|
|
|
const targetTop = this.$refs["info"].$el |
|
|
|
.querySelectorAll(".el-table__body tr") |
|
|
|
[index - 1].getBoundingClientRect().top; |
|
|
|
[index - 1].getBoundingClientRect().top; |
|
|
|
const containerTop = this.$refs["info"].$el |
|
|
|
.querySelector(".el-table__body") |
|
|
|
.getBoundingClientRect().top; |
|
|
|
@ -945,7 +1143,7 @@ export default { |
|
|
|
displayName: this.form.displayName, |
|
|
|
sampleTypeId: this.form.sampleTypeId, |
|
|
|
sampleContainerId: this.form.sampleContainerId, |
|
|
|
samplePrintCount: Number(this.form.samplePrintCount) |
|
|
|
samplePrintCount: Number(this.form.samplePrintCount), |
|
|
|
}).then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
// this.getlist(); 改为局部刷新 |
|
|
|
@ -960,7 +1158,7 @@ export default { |
|
|
|
displayName: this.form.displayName, |
|
|
|
sampleTypeId: this.form.sampleTypeId, |
|
|
|
sampleContainerId: this.form.sampleContainerId, |
|
|
|
samplePrintCount: Number(this.form.samplePrintCount) |
|
|
|
samplePrintCount: Number(this.form.samplePrintCount), |
|
|
|
}).then((res) => { |
|
|
|
if (res.code != -1) { |
|
|
|
// this.getlist(); 改为局部刷新 |
|
|
|
@ -979,7 +1177,11 @@ export default { |
|
|
|
let currentRow = {}; |
|
|
|
let lfind = arrayExistObj(this.tableData, "id", this.form.id); |
|
|
|
if (lfind > -1) { |
|
|
|
this.tableData[lfind] = Object.assign({}, this.tableData[lfind], this.form) |
|
|
|
this.tableData[lfind] = Object.assign( |
|
|
|
{}, |
|
|
|
this.tableData[lfind], |
|
|
|
this.form |
|
|
|
); |
|
|
|
currentRow = this.tableData[lfind]; |
|
|
|
} else { |
|
|
|
currentRow = deepCopy(this.form); |
|
|
|
@ -1017,17 +1219,7 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
//点击条码分组记录 |
|
|
|
rowick(row) { |
|
|
|
this.curRow = deepCopy(row); |
|
|
|
this.form = deepCopy(row); |
|
|
|
|
|
|
|
// samplegropid(row.id).then((res) => { |
|
|
|
// this.curRow = { ...res.data }; |
|
|
|
// this.form = res.data; |
|
|
|
// }); |
|
|
|
|
|
|
|
refresh(row) { |
|
|
|
getapi( |
|
|
|
`/api/app/sample-group-detail/sample-group-in-asbitem?SampleGroupId=${row.id}` |
|
|
|
).then((res) => { |
|
|
|
@ -1037,6 +1229,24 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
//点击条码分组记录 |
|
|
|
rowick(row) { |
|
|
|
this.clickTime1 = new Date().getTime(); |
|
|
|
setTimeout(() => { |
|
|
|
if (this.clickTime1 > this.clickTime2) { |
|
|
|
this.curRow = deepCopy(row); |
|
|
|
this.form = deepCopy(row); |
|
|
|
this.refresh(row); |
|
|
|
} |
|
|
|
}, 400); |
|
|
|
}, |
|
|
|
async dblClick(row) { |
|
|
|
this.clickTime2 = new Date().getTime(); |
|
|
|
this.curRow = deepCopy(row); |
|
|
|
this.form = deepCopy(row); |
|
|
|
await this.refresh(row); |
|
|
|
this.btnEdit(); |
|
|
|
}, |
|
|
|
getSummaries(param) { |
|
|
|
const { columns, data } = param; |
|
|
|
const sums = []; |
|
|
|
|