|
|
@@ -21,7 +21,7 @@
|
|
|
<span style="float: right;margin-top:-5px;margin-left: 10px">
|
|
|
<el-button type="primary" class="el-button--small" style="margin-left: 0px" onclick="window.history.go(-1)">返回</el-button>
|
|
|
</span>
|
|
|
-
|
|
|
+
|
|
|
</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
@@ -47,18 +47,18 @@
|
|
|
<div class="ulbgcolor" v-for="g in Math.ceil(selectdtedanguan.ColumnNum / 21)" style="width:50px;float:left;margin-left:1px">
|
|
|
<div v-for="b in selectdtedanguan.ColumnNum">
|
|
|
<div class="hoverdiv" v-if="(b <= g*21) && (b > (g - 1)*21)" @click="handleclk(b-1, 0, selectdtedanguan.YStation, selectdtedanguan.XStation)"
|
|
|
- v-bind:style="{
|
|
|
- backgroundColor: xcolor == b && ycolor == 1 &&
|
|
|
- xidx == selectdtedanguan.YStation && yidx == selectdtedanguan.XStation ? COLORARR[2] :
|
|
|
- (selectdtedanguan['A'+b] == -2 ? COLORARR[0] :
|
|
|
- (selectdtedanguan['A'+b] == -1 ? COLORARR[1] :
|
|
|
- (selectdtedanguan['A'+b] > 0 &&
|
|
|
- selectdtedanguan['A'+b] <= 25 ? COLORARR[3] :
|
|
|
- (selectdtedanguan['A'+b] > 25 &&
|
|
|
- selectdtedanguan['A'+b] <= 50 ? COLORARR[4] :
|
|
|
- (selectdtedanguan['A'+b] > 50 &&
|
|
|
- selectdtedanguan['A'+b] <= 75 ? COLORARR[5] :
|
|
|
- (selectdtedanguan['A'+b] > 75 ? COLORARR[6] :
|
|
|
+ v-bind:style="{
|
|
|
+ backgroundColor: xcolor == b && ycolor == 1 &&
|
|
|
+ xidx == selectdtedanguan.YStation && yidx == selectdtedanguan.XStation ? COLORARR[2] :
|
|
|
+ (selectdtedanguan['A'+b] == -2 ? COLORARR[0] :
|
|
|
+ (selectdtedanguan['A'+b] == -1 ? COLORARR[1] :
|
|
|
+ (selectdtedanguan['A'+b] > 0 &&
|
|
|
+ selectdtedanguan['A'+b] <= 25 ? COLORARR[3] :
|
|
|
+ (selectdtedanguan['A'+b] > 25 &&
|
|
|
+ selectdtedanguan['A'+b] <= 50 ? COLORARR[4] :
|
|
|
+ (selectdtedanguan['A'+b] > 50 &&
|
|
|
+ selectdtedanguan['A'+b] <= 75 ? COLORARR[5] :
|
|
|
+ (selectdtedanguan['A'+b] > 75 ? COLORARR[6] :
|
|
|
COLORARR[7])))))) }"
|
|
|
style="margin: 1px;width:50px; height:20px;"></div>
|
|
|
</div>
|
|
|
@@ -71,7 +71,7 @@
|
|
|
<thead>
|
|
|
<th></th>
|
|
|
<th v-for ="ind in colorTableWidth">{{ind}}</th>
|
|
|
- </thead>
|
|
|
+ </thead>
|
|
|
<tbody>
|
|
|
<tr v-for =" (xcolorTable,k1) in colorTableHeight">
|
|
|
<td style="text-align:center;font-size:20px;">{{numtoengs[xcolorTable-1]}}</td>
|
|
|
@@ -81,20 +81,20 @@
|
|
|
<div v-if="samplelist[index].XStation === k2+1 && samplelist[index].YStation === k1+1">
|
|
|
<div v-for="rowindex in samplelist[index].RowNum">
|
|
|
<div class="hoverdiv" v-for=" colindex in samplelist[index].ColumnNum">
|
|
|
- <div v-bind:style="{
|
|
|
+ <div v-bind:style="{
|
|
|
width: (unitwidth/colorTableWidth/samplelist[index].ColumnNum-2.5) + 'px',
|
|
|
height: (unitheight/colorTableHeight/samplelist[index].RowNum-2.5) + 'px',
|
|
|
- backgroundColor: xcolor == colindex && ycolor == rowindex &&
|
|
|
- xidx == k1+1 && yidx == k2+1 ? COLORARR[2] :
|
|
|
- (samplelist[index][numtoengs[rowindex-1]+colindex] == -2 ? COLORARR[0] :
|
|
|
- (samplelist[index][numtoengs[rowindex-1]+colindex] == -1 ? COLORARR[1] :
|
|
|
- (samplelist[index][numtoengs[rowindex-1]+colindex] > 0 &&
|
|
|
- samplelist[index][numtoengs[rowindex-1]+colindex] <= 25 ? COLORARR[3] :
|
|
|
- (samplelist[index][numtoengs[rowindex-1]+colindex] > 25 &&
|
|
|
- samplelist[index][numtoengs[rowindex-1]+colindex] <= 50 ? COLORARR[4] :
|
|
|
- (samplelist[index][numtoengs[rowindex-1]+colindex] > 50 &&
|
|
|
- samplelist[index][numtoengs[rowindex-1]+colindex] <= 75 ? COLORARR[5] :
|
|
|
- (samplelist[index][numtoengs[rowindex-1]+colindex] > 75 ? COLORARR[6] :
|
|
|
+ backgroundColor: xcolor == colindex && ycolor == rowindex &&
|
|
|
+ xidx == k1+1 && yidx == k2+1 ? COLORARR[2] :
|
|
|
+ (samplelist[index][numtoengs[rowindex-1]+colindex] == -2 ? COLORARR[0] :
|
|
|
+ (samplelist[index][numtoengs[rowindex-1]+colindex] == -1 ? COLORARR[1] :
|
|
|
+ (samplelist[index][numtoengs[rowindex-1]+colindex] > 0 &&
|
|
|
+ samplelist[index][numtoengs[rowindex-1]+colindex] <= 25 ? COLORARR[3] :
|
|
|
+ (samplelist[index][numtoengs[rowindex-1]+colindex] > 25 &&
|
|
|
+ samplelist[index][numtoengs[rowindex-1]+colindex] <= 50 ? COLORARR[4] :
|
|
|
+ (samplelist[index][numtoengs[rowindex-1]+colindex] > 50 &&
|
|
|
+ samplelist[index][numtoengs[rowindex-1]+colindex] <= 75 ? COLORARR[5] :
|
|
|
+ (samplelist[index][numtoengs[rowindex-1]+colindex] > 75 ? COLORARR[6] :
|
|
|
COLORARR[7])))))) }"
|
|
|
style="margin: 1px"
|
|
|
@click="handleclk(colindex-1, rowindex-1, k1+1, k2+1)"></div>
|
|
|
@@ -105,7 +105,7 @@
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- </tbody>
|
|
|
+ </tbody>
|
|
|
</table>
|
|
|
<div>
|
|
|
<img :src="fridgebottomimg" class="fridge">
|
|
|
@@ -161,9 +161,9 @@
|
|
|
<el-button type="primary" @click="dialogtiquVisible = true" class="el-button--small" v-if="sampleform.type_flag === 'edit'" style="margin-right:-10px;">提取</el-button>
|
|
|
<el-button type="danger" class="el-button--small" v-if="sampleform.type_flag === 'edit'"
|
|
|
style="margin-right:-10px;" @click="deletedata()">删除</el-button> -->
|
|
|
- <el-button type="primary" class="el-button--small"
|
|
|
+ <el-button type="primary" class="el-button--small"
|
|
|
@click="savesample()" v-if="sampleform.type_flag !== 'edit'">保存</el-button>
|
|
|
- <el-button type="primary" class="el-button--small"
|
|
|
+ <el-button type="primary" class="el-button--small"
|
|
|
@click="saveandadd(1)" v-if="sampleform.type_flag !== 'edit' && false">保存并新增</el-button>
|
|
|
<el-button type="primary" class="el-button--small" v-if="sampleform.type_flag !== 'edit' && false" @click="saveandadd(2)">保存并新增分管</el-button>
|
|
|
<el-button type="primary" class="el-button--small" @click="goAnchor('#equishelfcard')">置顶</el-button>
|
|
|
@@ -175,13 +175,13 @@
|
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="样本条码" prop="BarCode">
|
|
|
- <el-input v-model="sampleform.BarCode" placeholder="为空默认自动生成"
|
|
|
+ <el-input v-model="sampleform.BarCode" placeholder="为空默认自动生成"
|
|
|
style="width:68%" :disabled="disabledbarcode"></el-input>
|
|
|
<el-button class="btnbox" :disabled="disabledbtnpreopera" type="primary" style="width:30%" @click="openpreop()">预录入</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="组织器官">
|
|
|
- <el-cascader :options="organlist2" style="width:100%" :props="sampleorganprops"
|
|
|
- change-on-select :show-all-levels="false" v-model="selectedorgan" placeholder="请选择"
|
|
|
+ <el-cascader :options="organlist2" style="width:100%" :props="sampleorganprops"
|
|
|
+ change-on-select :show-all-levels="false" v-model="selectedorgan" placeholder="请选择"
|
|
|
@change="chooseorgange" :disabled="disabledsamplingorgan"></el-cascader>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="接收日期">
|
|
|
@@ -214,13 +214,13 @@
|
|
|
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="样本类型" required prop="SampleTypestr">
|
|
|
- <el-select v-model="sampleform.SampleTypestr" placeholder="请选择"
|
|
|
+ <el-select v-model="sampleform.SampleTypestr" placeholder="请选择"
|
|
|
style="width:100%" @change="choosetype" :disabled="disabledsampletype">
|
|
|
<el-option v-for="item in sampletypelist" :label="item.label" :value="item.value" :key="item.value"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="取材部位">
|
|
|
- <el-select v-model="sampleform.SamplingSite" placeholder="取材部位"
|
|
|
+ <el-select v-model="sampleform.SamplingSite" placeholder="取材部位"
|
|
|
style="width:100%" :disabled="disabledsamplingsite">
|
|
|
<el-option v-for="item in samplequcailist" :label="item.label" :value="item.value" :key="item.value"></el-option>
|
|
|
</el-select>
|
|
|
@@ -249,7 +249,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="样本来源">
|
|
|
- <el-input v-model="sampleform.SourceName" placeholder="样本来源"
|
|
|
+ <el-input v-model="sampleform.SourceName" placeholder="样本来源"
|
|
|
style="width:68%" disabled="true"></el-input>
|
|
|
<el-button type="primary" :disabled="disabledsourcebutton" style="width:30%" @click="dialogFormVisible2 = true" class="btnbox">选择</el-button>
|
|
|
</el-form-item>
|
|
|
@@ -263,7 +263,7 @@
|
|
|
<el-form-item>
|
|
|
<el-checkbox :disabled="disabledcheckprint" v-model="sampleform.autoprintchecked" class="title">
|
|
|
新增保存时打印标签(如若勾选,请确保已经设置过默认打印方案)
|
|
|
- </el-checkbox>
|
|
|
+ </el-checkbox>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
@@ -272,7 +272,7 @@
|
|
|
<i class="icon icon-paragraph-justify"></i> 样本公共扩展
|
|
|
</div>
|
|
|
<div>
|
|
|
- <div class="four fields" style="margin-top:25px;">
|
|
|
+ <div class="four fields" style="margin-top:25px;">
|
|
|
<el-row>
|
|
|
<el-col :span="8" v-for="item in publickzlist" :key="item">
|
|
|
<el-form-item :label="item.Name">
|
|
|
@@ -292,7 +292,7 @@
|
|
|
<i class="icon icon-paragraph-justify"></i> 样本特有扩展
|
|
|
</div>
|
|
|
<div>
|
|
|
- <div class="four fields" style="margin-top:25px;">
|
|
|
+ <div class="four fields" style="margin-top:25px;">
|
|
|
<el-row>
|
|
|
<el-col :span="8" v-for="item in typetykzlist" :key="item">
|
|
|
<el-form-item :label="item.Name">
|
|
|
@@ -315,15 +315,15 @@
|
|
|
<el-button @click="editsave()" type="primary" class="el-button--small" v-if="sampleform.type_flag === 'edit'" >保存</el-button>
|
|
|
<!-- <el-button type="danger" class="el-button--small" v-if="sampleform.type_flag === 'edit'"
|
|
|
style="margin-right:-10px;" @click="deletedata()">删除</el-button> -->
|
|
|
- <el-button type="primary" class="el-button--small"
|
|
|
+ <el-button type="primary" class="el-button--small"
|
|
|
@click="savesample()" v-if="sampleform.type_flag !== 'edit'">保存</el-button>
|
|
|
- <el-button type="primary" class="el-button--small"
|
|
|
+ <el-button type="primary" class="el-button--small"
|
|
|
style="margin-right:-10px;" @click="saveandadd(1)" v-if="sampleform.type_flag !== 'edit' && false">保存并新增</el-button>
|
|
|
<el-button type="primary" class="el-button--small" v-if="sampleform.type_flag !== 'edit' && false" @click="saveandadd(2)">保存并新增分管</el-button>
|
|
|
<el-button type="primary" class="el-button--small" @click="goAnchor('#equishelfcard')">置顶</el-button>
|
|
|
</span>
|
|
|
</span>
|
|
|
- </el-row>
|
|
|
+ </el-row>
|
|
|
</el-card>
|
|
|
|
|
|
<el-dialog title="样本批量导入" :visible.sync="exportVisible">
|
|
|
@@ -975,8 +975,10 @@
|
|
|
_this.yedanguanitem = res.data.DItem
|
|
|
if (res.data.DItem === 19) {
|
|
|
_this.yeshuyedanguanimgid = 'cryobiobank97Kimg'
|
|
|
- } else {
|
|
|
+ } else if (res.data.DItem === 20) {
|
|
|
_this.yeshuyedanguanimgid = 'cryobiobank97K_bloodbagimg'
|
|
|
+ } else {
|
|
|
+ _this.yeshuyedanguanimgid = 'cryobiobank97K_newmodelimg'
|
|
|
}
|
|
|
// 加载特殊液氮罐
|
|
|
_this.drawyedanguancanvasbgimg()
|
|
|
@@ -1851,7 +1853,7 @@
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.ulbgcolor div{
|
|
|
- float: left;
|
|
|
+ float: left;
|
|
|
}
|
|
|
.hoverdiv:hover{ box-shadow: 0 0 4px rgba(0,0,0,.4); transform: scale(1.15); }
|
|
|
.tablebox{
|
|
|
@@ -1893,7 +1895,7 @@
|
|
|
.worklisticolist i{
|
|
|
margin-right: 3px;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.tdborder {
|
|
|
border: 1px solid #A2B5CD;
|
|
|
}
|