|
|
@@ -265,28 +265,25 @@
|
|
|
<label><strong>备注信息 :</strong> {{ sampleForm.Remark }} </label>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="附件上传:" style="font-weight:bolder">
|
|
|
- <el-upload style="margin-top: 10px;" action="" ref="refuploadattach" multiple
|
|
|
- :http-request="uploadrequest" class="attach-uploader" :show-file-list="true"
|
|
|
- :before-upload="beforeAvatarUpload">
|
|
|
- <i class="el-icon-plus attach-uploader-icon"></i>
|
|
|
- </el-upload>
|
|
|
+ <el-form-item label="附件列表:" style="font-weight:bolder">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="6" v-for="item in achmentlist" :key="item">
|
|
|
+ <a @click="clickachment(item.Host, item.FileId)">{{item.FileName}}</a>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<label><strong>附件说明 :</strong> {{ sampleForm.uploadedremark }} </label>
|
|
|
- <el-row>
|
|
|
+ <!-- <el-row>
|
|
|
<el-col :span="6" v-for="item in achmentlist" :key="item">
|
|
|
<a @click="clickachment(item.Host, item.FileId)">{{item.FileName}}</a></el-col>
|
|
|
- </el-row>
|
|
|
+ </el-row> -->
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
<el-tabs tab-position="top" v-model="Tabs" v-show="extendList.length > 0">
|
|
|
<el-tab-pane :label="groupname" :name="groupname" :key="groupname" v-for="groupname in groupnameList">
|
|
|
- <!-- <div slot="header">
|
|
|
- <i class="icon icon-paragraph-justify"> 样本扩展 / {{groupname}}</i>
|
|
|
- </div> -->
|
|
|
<div class="sampleInfo">
|
|
|
<el-row>
|
|
|
<template v-for="(item, index) in extendList">
|
|
|
@@ -410,7 +407,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="16">
|
|
|
+ <!-- <el-col :span="16">
|
|
|
<el-form-item label="附件上传">
|
|
|
<el-upload style="margin-top: 10px;" action="" ref="refuploadattach" multiple
|
|
|
:http-request="uploadrequest" class="attach-uploader" :show-file-list="true"
|
|
|
@@ -418,6 +415,15 @@
|
|
|
<i class="el-icon-plus attach-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
+ </el-col> -->
|
|
|
+ <el-col :span="16">
|
|
|
+ <el-form-item label="附件上传">
|
|
|
+ <el-upload multiple style="margin-top: 10px;" action="" ref="refuploadattach"
|
|
|
+ :http-request="uploadrequest" class="attach-uploader" :before-upload="beforeAvatarUpload">
|
|
|
+ <i class="el-icon-plus attach-uploader-icon"></i>
|
|
|
+ <div slot="tip" class="el-upload__tip">大小为512KB-50MB</div>
|
|
|
+ </el-upload>
|
|
|
+ </el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="16">
|
|
|
<el-form-item>
|
|
|
@@ -2221,6 +2227,386 @@
|
|
|
type: 2
|
|
|
}
|
|
|
],
|
|
|
+ yedanguanrongqiarr_newmodel: [ // 21:贝尔最新型号液氮罐,type:1规则图形,2不规则图形
|
|
|
+ {
|
|
|
+ XStation: 1,
|
|
|
+ YStation: 1,
|
|
|
+ x: 135,
|
|
|
+ y: 35,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 2,
|
|
|
+ YStation: 1,
|
|
|
+ x: 170,
|
|
|
+ y: 30,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 3,
|
|
|
+ YStation: 1,
|
|
|
+ x: 198,
|
|
|
+ y: 30,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 4,
|
|
|
+ YStation: 1,
|
|
|
+ x: 77,
|
|
|
+ y: 97,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 5,
|
|
|
+ YStation: 1,
|
|
|
+ x: 110,
|
|
|
+ y: 65,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 6,
|
|
|
+ YStation: 1,
|
|
|
+ x: 168,
|
|
|
+ y: 65,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 1,
|
|
|
+ YStation: 2,
|
|
|
+ x: 50,
|
|
|
+ y: 130,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 2,
|
|
|
+ YStation: 2,
|
|
|
+ x: 106,
|
|
|
+ y: 130,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 3,
|
|
|
+ YStation: 2,
|
|
|
+ x: 166,
|
|
|
+ y: 130,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 4,
|
|
|
+ YStation: 2,
|
|
|
+ x: 30,
|
|
|
+ y: 195,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 5,
|
|
|
+ YStation: 2,
|
|
|
+ x: 86,
|
|
|
+ y: 195,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 6,
|
|
|
+ YStation: 2,
|
|
|
+ x: 150,
|
|
|
+ y: 195,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 7,
|
|
|
+ YStation: 2,
|
|
|
+ x: 50,
|
|
|
+ y: 258,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 8,
|
|
|
+ YStation: 2,
|
|
|
+ x: 106,
|
|
|
+ y: 258,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 9,
|
|
|
+ YStation: 2,
|
|
|
+ x: 166,
|
|
|
+ y: 258,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 1,
|
|
|
+ YStation: 3,
|
|
|
+ x: 78,
|
|
|
+ y: 321,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 2,
|
|
|
+ YStation: 3,
|
|
|
+ x: 136,
|
|
|
+ y: 384,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 3,
|
|
|
+ YStation: 3,
|
|
|
+ x: 169,
|
|
|
+ y: 384,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 4,
|
|
|
+ YStation: 3,
|
|
|
+ x: 200,
|
|
|
+ y: 384,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 5,
|
|
|
+ YStation: 3,
|
|
|
+ x: 110,
|
|
|
+ y: 321,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 6,
|
|
|
+ YStation: 3,
|
|
|
+ x: 170,
|
|
|
+ y: 321,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 1,
|
|
|
+ YStation: 4,
|
|
|
+ x: 348,
|
|
|
+ y: 321,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 2,
|
|
|
+ YStation: 4,
|
|
|
+ x: 230,
|
|
|
+ y: 384,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 3,
|
|
|
+ YStation: 4,
|
|
|
+ x: 260,
|
|
|
+ y: 384,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 4,
|
|
|
+ YStation: 4,
|
|
|
+ x: 289,
|
|
|
+ y: 384,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 5,
|
|
|
+ YStation: 4,
|
|
|
+ x: 230,
|
|
|
+ y: 321,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 6,
|
|
|
+ YStation: 4,
|
|
|
+ x: 289,
|
|
|
+ y: 321,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 1,
|
|
|
+ YStation: 5,
|
|
|
+ x: 230,
|
|
|
+ y: 130,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 2,
|
|
|
+ YStation: 5,
|
|
|
+ x: 290,
|
|
|
+ y: 130,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 3,
|
|
|
+ YStation: 5,
|
|
|
+ x: 348,
|
|
|
+ y: 130,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 4,
|
|
|
+ YStation: 5,
|
|
|
+ x: 250,
|
|
|
+ y: 195,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 5,
|
|
|
+ YStation: 5,
|
|
|
+ x: 310,
|
|
|
+ y: 195,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 6,
|
|
|
+ YStation: 5,
|
|
|
+ x: 368,
|
|
|
+ y: 195,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 7,
|
|
|
+ YStation: 5,
|
|
|
+ x: 231,
|
|
|
+ y: 258,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 8,
|
|
|
+ YStation: 5,
|
|
|
+ x: 290,
|
|
|
+ y: 258,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 9,
|
|
|
+ YStation: 5,
|
|
|
+ x: 350,
|
|
|
+ y: 258,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 1,
|
|
|
+ YStation: 6,
|
|
|
+ x: 232,
|
|
|
+ y: 30,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 2,
|
|
|
+ YStation: 6,
|
|
|
+ x: 260,
|
|
|
+ y: 30,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 3,
|
|
|
+ YStation: 6,
|
|
|
+ x: 290,
|
|
|
+ y: 35,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 4,
|
|
|
+ YStation: 6,
|
|
|
+ x: 348,
|
|
|
+ y: 97,
|
|
|
+ width: 28,
|
|
|
+ height: 28,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 5,
|
|
|
+ YStation: 6,
|
|
|
+ x: 230,
|
|
|
+ y: 65,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ XStation: 6,
|
|
|
+ YStation: 6,
|
|
|
+ x: 290,
|
|
|
+ y: 65,
|
|
|
+ width: 56,
|
|
|
+ height: 56,
|
|
|
+ type: 1
|
|
|
+ }
|
|
|
+ ],
|
|
|
waituploads: [], // 等待上传的附件列表
|
|
|
downloadTemplates: [{
|
|
|
Name: "默认模版"
|
|
|
@@ -2292,8 +2678,10 @@
|
|
|
let yedanguandatarrtrmp = []
|
|
|
if (_this.yedanguanitem === 20) {
|
|
|
yedanguandatarrtrmp = _this.yedanguanrongqiarr_13kbloodbag
|
|
|
- } else {
|
|
|
+ } else if (_this.yedanguanitem === 19) {
|
|
|
yedanguandatarrtrmp = _this.yedanguanrongqiarr
|
|
|
+ } else {
|
|
|
+ yedanguandatarrtrmp = _this.yedanguanrongqiarr_newmodel
|
|
|
}
|
|
|
for (let i = 0; i < yedanguandatarrtrmp.length; i++) {
|
|
|
if ((yedanguandatarrtrmp[i].XStation + '') === stationarr[0] && (yedanguandatarrtrmp[i].YStation +
|
|
|
@@ -2328,11 +2716,16 @@
|
|
|
x: 211,
|
|
|
y: 107
|
|
|
})
|
|
|
- } else {
|
|
|
+ } else if (_this.yedanguanitem === 19) {
|
|
|
_this.drawyedanguancavans({
|
|
|
x: 135,
|
|
|
y: 46
|
|
|
})
|
|
|
+ } else if (_this.yedanguanitem === 21) {
|
|
|
+ _this.drawyedanguancavans({
|
|
|
+ x: 135,
|
|
|
+ y: 35
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -2404,12 +2797,14 @@
|
|
|
_this.showtsyedanguan = false
|
|
|
_this.showcgshebei = true
|
|
|
_this.fridgebottomimg = _this.filehost + '/static/img/sampletypeimg/bottomydg.png'
|
|
|
- } else if (res.data && (res.data.DItem === 19 || res.data.DItem === 20)) {
|
|
|
+ } else if (res.data && (res.data.DItem === 19 || res.data.DItem === 20 || res.data.DItem === 21)) {
|
|
|
_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()
|
|
|
@@ -2444,13 +2839,15 @@
|
|
|
let yedanguandatarrtrmp = []
|
|
|
if (_this.yedanguanitem === 20) {
|
|
|
yedanguandatarrtrmp = _this.yedanguanrongqiarr_13kbloodbag
|
|
|
- } else {
|
|
|
+ } else if (_this.yedanguanitem === 19){
|
|
|
yedanguandatarrtrmp = _this.yedanguanrongqiarr
|
|
|
+ } else {
|
|
|
+ yedanguandatarrtrmp = _this.yedanguanrongqiarr_newmodel
|
|
|
}
|
|
|
yedanguandatarrtrmp.forEach(function (v) {
|
|
|
// 绘制颜色快
|
|
|
if (v.type === 1) { // 标准四边形
|
|
|
- _this.yedanguanctx.strokeStyle = 'white'
|
|
|
+ _this.yedanguanctx.fillStyle = 'white'
|
|
|
_this.yedanguanctx.beginPath()
|
|
|
_this.yedanguanctx.rect(v.x, v.y, v.width, v.height)
|
|
|
_this.yedanguanctx.stroke()
|
|
|
@@ -2545,7 +2942,6 @@
|
|
|
}
|
|
|
})
|
|
|
.catch(function (error) {
|
|
|
- console.log(error)
|
|
|
_this.$message({
|
|
|
type: 'warning',
|
|
|
message: '未上传成功!请重新上传!'
|
|
|
@@ -2555,7 +2951,7 @@
|
|
|
beforeAvatarUpload(file) {
|
|
|
let isLt50m = file.size / 1024 / 1024 / 50 < 1
|
|
|
if (!isLt50m) {
|
|
|
- this.$message.error('上传打印模板大小不能超过 50MB!')
|
|
|
+ this.$message.error('上传文件大小不能超过 5MB!')
|
|
|
return false
|
|
|
}
|
|
|
return true
|
|
|
@@ -2604,8 +3000,8 @@
|
|
|
_this.boxSample = res.data.Boxsample
|
|
|
_this.TableHeight = _this.selectedBox.RowNum
|
|
|
_this.TableWidth = _this.selectedBox.ColumnNum
|
|
|
- for (var i = 0 ; i < this.boxSample.length; i ++){
|
|
|
- if (this.boxSample[i].Position == this.ytable + ';' + this.xtable){
|
|
|
+ for (var i = 0; i < this.boxSample.length; i++) {
|
|
|
+ if (this.boxSample[i].Position == this.ytable + ';' + this.xtable) {
|
|
|
this.tableclk(this.boxSample[i], this.xtable, this.ytable)
|
|
|
}
|
|
|
}
|
|
|
@@ -2656,6 +3052,7 @@
|
|
|
this.extendList = []
|
|
|
if (this.Apply_flag == true) {
|
|
|
this.sampleTitle = '新增样本'
|
|
|
+ // this.$refs.refuploadattach.clearFiles()
|
|
|
this.sampleInfoDialog = true
|
|
|
}
|
|
|
}
|
|
|
@@ -2810,13 +3207,11 @@
|
|
|
samplecode: samplecode,
|
|
|
barcode: barcode
|
|
|
}
|
|
|
- console.log("111111111111111111111111",params)
|
|
|
this.$axios.get('/sampleoperation/getattachmentbysamplecode', {
|
|
|
params
|
|
|
})
|
|
|
.then(res => {
|
|
|
_this.achmentlist = res.data
|
|
|
- console.log("2222222222222222222222222222",res.data)
|
|
|
}).catch(() => {})
|
|
|
},
|
|
|
clickachment(host, fid) {
|
|
|
@@ -3033,7 +3428,6 @@
|
|
|
}
|
|
|
_this.GroupName = tempOfficers.join(',');
|
|
|
}
|
|
|
- console.log("wwwwwwwwwwwwwwwwwww",params)
|
|
|
_this.$axios.post('/sampleoperation?groupid=' + _this.GroupId + '&groupname=' + _this.GroupName,
|
|
|
params)
|
|
|
.then(res => {
|
|
|
@@ -3043,56 +3437,55 @@
|
|
|
message: res.data.message
|
|
|
})
|
|
|
_this.shelfs = _this.samplelist[0]
|
|
|
- _this.handleclk(_this.xbox-1, _this.ybox-1, _this.xshelf, _this.yshelf)
|
|
|
-
|
|
|
+ _this.handleclk(_this.xbox - 1, _this.ybox - 1, _this.xshelf, _this.yshelf)
|
|
|
+
|
|
|
+ // 清空上传附件
|
|
|
+ // _this.$refs.refuploadattach.clearFiles()
|
|
|
+ // 获取附件信息
|
|
|
+ _this.getattachment(_this.sampleForm.BarCode, _this.sampleForm.SampleCode)
|
|
|
+ //清空缓存数据
|
|
|
+ _this.batchstorages = []
|
|
|
+ store.set('batchstorages', _this.batchstorages)
|
|
|
+ } else if (res.data.code === 10 || res.data.code === 11) { // 保存成功后打印
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ _this.handleclk(_this.xbox - 1, _this.ybox - 1, _this.xshelf, _this.yshelf)
|
|
|
+ // 自动打印
|
|
|
+ if (res.data.item.Printmsg !== '') {
|
|
|
+ let printparams = res.data.item.Printmsg.split(',')
|
|
|
+ if (printparams.length === 3 && printparams[0] !== '' && printparams[1] !== '' &&
|
|
|
+ printparams[2] !== '') {
|
|
|
+ window.PrintReport(printparams[1], `samples,${printparams[2]},${printparams[0]}`)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 清空上传附件
|
|
|
+ // _this.$refs.refuploadattach.clearFiles()
|
|
|
+ // 获取附件信息
|
|
|
+ _this.getattachment(_this.sampleForm.BarCode, _this.sampleForm.SampleCode)
|
|
|
+ //清空缓存数据
|
|
|
+ _this.batchstorages = []
|
|
|
+ store.set('batchstorages', _this.batchstorages)
|
|
|
+ } else if (res.data.code === 20) {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ _this.handleclk(_this.xbox - 1, _this.ybox - 1, _this.xshelf, _this.yshelf)
|
|
|
// 清空上传附件
|
|
|
- _this.$refs.refuploadattach.clearFiles()
|
|
|
+ //_this.$refs.refuploadattach.clearFiles()
|
|
|
// 获取附件信息
|
|
|
_this.getattachment(_this.sampleForm.BarCode, _this.sampleForm.SampleCode)
|
|
|
//清空缓存数据
|
|
|
_this.batchstorages = []
|
|
|
store.set('batchstorages', _this.batchstorages)
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
}
|
|
|
- // else if (res.data.code === 10 || res.data.code === 11) { // 保存成功后打印
|
|
|
- // this.$message({
|
|
|
- // type: 'success',
|
|
|
- // message: res.data.message
|
|
|
- // })
|
|
|
- // _this.handleclk(_this.xbox - 1, _this.ybox - 1, _this.xshelf, _this.yshelf)
|
|
|
- // // 自动打印
|
|
|
- // if (res.data.item.Printmsg !== '') {
|
|
|
- // let printparams = res.data.item.Printmsg.split(',')
|
|
|
- // if (printparams.length === 3 && printparams[0] !== '' && printparams[1] !== '' &&
|
|
|
- // printparams[2] !== '') {
|
|
|
- // window.PrintReport(printparams[1], `samples,${printparams[2]},${printparams[0]}`)
|
|
|
- // }
|
|
|
- // }
|
|
|
- // // 清空上传附件
|
|
|
- // _this.$refs.refuploadattach.clearFiles()
|
|
|
- // // 获取附件信息
|
|
|
- // _this.getattachment(_this.sampleForm.BarCode, _this.sampleForm.SampleCode)
|
|
|
- // //清空缓存数据
|
|
|
- // _this.batchstorages = []
|
|
|
- // store.set('batchstorages', _this.batchstorages)
|
|
|
- // } else if (res.data.code === 20) {
|
|
|
- // this.$message({
|
|
|
- // type: 'error',
|
|
|
- // message: res.data.message
|
|
|
- // })
|
|
|
- // _this.handleclk(_this.xbox - 1, _this.ybox - 1, _this.xshelf, _this.yshelf)
|
|
|
- // // 清空上传附件
|
|
|
- // _this.$refs.refuploadattach.clearFiles()
|
|
|
- // // 获取附件信息
|
|
|
- // _this.getattachment(_this.sampleForm.BarCode, _this.sampleForm.SampleCode)
|
|
|
- // //清空缓存数据
|
|
|
- // _this.batchstorages = []
|
|
|
- // store.set('batchstorages', _this.batchstorages)
|
|
|
- // } else {
|
|
|
- // this.$message({
|
|
|
- // type: 'warning',
|
|
|
- // message: res.data.message
|
|
|
- // })
|
|
|
- // }
|
|
|
_this.sampleInfoDialog = false
|
|
|
})
|
|
|
.catch(err => {
|
|
|
@@ -3144,7 +3537,7 @@
|
|
|
message: res.data.message
|
|
|
})
|
|
|
// 清空上传附件
|
|
|
- _this.$refs.refuploadattach.clearFiles()
|
|
|
+ // _this.$refs.refuploadattach.clearFiles()
|
|
|
// 获取附件信息
|
|
|
_this.getattachment(_this.sampleForm.BarCode, _this.sampleForm.SampleCode)
|
|
|
} else {
|
|
|
@@ -3313,8 +3706,6 @@
|
|
|
// 清空特有扩展
|
|
|
this.sampleForm.extendList = []
|
|
|
this.$refs['sampleForm'].resetFields()
|
|
|
- // 清空上传数据
|
|
|
- this.$refs.refuploadattach.clearFiles()
|
|
|
this.achmentlist = []
|
|
|
}
|
|
|
},
|
|
|
@@ -3545,33 +3936,6 @@
|
|
|
this.dialogImageUrl = file.url;
|
|
|
this.dialogVisible = true;
|
|
|
},
|
|
|
- uploadrequest(option) {
|
|
|
- let _this = this
|
|
|
- axios.post(process.env.upfilehost, {})
|
|
|
- .then(function (res) {
|
|
|
- if (res.data && res.data.fid && res.data.fid !== '') {
|
|
|
- option.action = `http://${res.data.url}/${res.data.fid}`
|
|
|
- _this.uploadimg = {
|
|
|
- uid: option.file.uid,
|
|
|
- url: res.data.publicUrl,
|
|
|
- fid: res.data.fid
|
|
|
- }
|
|
|
- uploadajax(option)
|
|
|
- } else {
|
|
|
- _this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '未上传成功!请刷新界面重新上传!'
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(function (error) {
|
|
|
- console.log(error)
|
|
|
- _this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '未上传成功!请重新上传!'
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
handleAvatarSuccess(res, file) {
|
|
|
for (var i = 0; i < this.animalextends.length; i++) {
|
|
|
if (this.animalextends[i].Id == this.extendId) {
|