|
@@ -23,24 +23,22 @@
|
|
|
<el-breadcrumb-item>样本管理 {{equipName}}</el-breadcrumb-item>
|
|
<el-breadcrumb-item>样本管理 {{equipName}}</el-breadcrumb-item>
|
|
|
</el-breadcrumb>
|
|
</el-breadcrumb>
|
|
|
|
|
|
|
|
- <el-alert v-if="batchitem == '1'"
|
|
|
|
|
- :title="'支持批量存储,多个样本存储时,系统自动根据所选位置为起始位置依次进行存储!本次将批量添加' + batchstorages.length + '个样本'" type="warning" center
|
|
|
|
|
- show-icon style="margin-bottom:5px;min-width: 1150px"></el-alert>
|
|
|
|
|
<span style="float: right;">
|
|
<span style="float: right;">
|
|
|
- <el-button size="mini" type="primary" class="el-button--small" style="margin-left: 8px"
|
|
|
|
|
- v-if="Apply_flag==false" @click="SaveApply">保存</el-button>
|
|
|
|
|
- <el-button size="mini" type="primary" class="el-button--small" style="margin-left: 8px"
|
|
|
|
|
- @click="exportVisible = true">导入</el-button>
|
|
|
|
|
- <el-button size="mini" type="primary" class="el-button--small" style="margin-left: 8px"
|
|
|
|
|
|
|
+ <el-button size="mini" type="primary" style="margin-left: 8px" v-if="Apply_flag==false" @click="SaveApply">保存</el-button>
|
|
|
|
|
+ <el-button size="mini" type="primary" style="margin-left: 8px" @click="exportVisible = true">导入</el-button>
|
|
|
|
|
+ <el-button size="mini" type="primary" style="margin-left: 8px"
|
|
|
@click="showBoxTemplate()">下载冻存盒导入模板</el-button>
|
|
@click="showBoxTemplate()">下载冻存盒导入模板</el-button>
|
|
|
- <el-button size="mini" type="primary" class="el-button--small" style="margin-left: 8px"
|
|
|
|
|
|
|
+ <el-button size="mini" type="primary" style="margin-left: 8px"
|
|
|
@click="showEquipemplate()">下载设备模板</el-button>
|
|
@click="showEquipemplate()">下载设备模板</el-button>
|
|
|
- <el-button size="mini" type="primary" class="el-button--small" style="margin-left: 8px" @click="refreshcbc">
|
|
|
|
|
|
|
+ <el-button size="mini" type="primary" style="margin-left: 8px" @click="refreshcbc">
|
|
|
刷新容量状态</el-button>
|
|
刷新容量状态</el-button>
|
|
|
- <el-button size="mini" type="primary" class="el-button--small" style="margin-left: 8px" @click="goback">返回
|
|
|
|
|
|
|
+ <el-button size="mini" type="primary" style="margin-left: 8px" @click="goback">返回
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <el-alert v-if="batchitem == '1'"
|
|
|
|
|
+ :title="'支持批量存储,多个样本存储时,系统自动根据所选位置为起始位置依次进行存储!本次将批量添加' + batchstorages.length + '个样本'" type="warning" center
|
|
|
|
|
+ show-icon style="margin-bottom:5px;min-width: 1150px"></el-alert>
|
|
|
|
|
|
|
|
<div style="text-align:center;margin-top:-10px;margin-bottom:3px">
|
|
<div style="text-align:center;margin-top:-10px;margin-bottom:3px">
|
|
|
<el-row>
|
|
<el-row>
|
|
@@ -155,7 +153,9 @@
|
|
|
</div>
|
|
</div>
|
|
|
<!--冰箱-->
|
|
<!--冰箱-->
|
|
|
<el-row>
|
|
<el-row>
|
|
|
- <el-col :span="11" style="margin-top: 20px">
|
|
|
|
|
|
|
+ <el-col :span="11" style="margin-top: 20px;">
|
|
|
|
|
+ <div class="slider" ref="slider">
|
|
|
|
|
+ <div class="slider-group" ref="sliderGroup" style="width:200px">
|
|
|
<div class="tablebox">
|
|
<div class="tablebox">
|
|
|
<table class="sampletablemanage"
|
|
<table class="sampletablemanage"
|
|
|
v-bind:style="{ width: yedanguanitem == 20 ? '80px' : 10*TableWidth + '%', height: yedanguanitem == 20 ? '70px' : 10*TableHeight + '%' }">
|
|
v-bind:style="{ width: yedanguanitem == 20 ? '80px' : 10*TableWidth + '%', height: yedanguanitem == 20 ? '70px' : 10*TableHeight + '%' }">
|
|
@@ -194,6 +194,8 @@
|
|
|
</tbody>
|
|
</tbody>
|
|
|
</table>
|
|
</table>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="13">
|
|
<el-col :span="13">
|
|
|
<el-card v-if="Apply_flag" class="box-card sampledetail" style="margin-top: 8px;" id="equiinfocard">
|
|
<el-card v-if="Apply_flag" class="box-card sampledetail" style="margin-top: 8px;" id="equiinfocard">
|
|
@@ -249,7 +251,7 @@
|
|
|
<label>样本条码 : {{ sampleForm.SampleCode }} </label>
|
|
<label>样本条码 : {{ sampleForm.SampleCode }} </label>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
- <label>可用容量 : {{ sampleForm.Capacity }} {{ sampleForm.Unit }} </label>
|
|
|
|
|
|
|
+ <label>可用容量 : {{ sampleForm.Capacitystr }} {{ sampleForm.Unit }} </label>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<label>录入人 : {{ sampleForm.CreateBy }} </label>
|
|
<label>录入人 : {{ sampleForm.CreateBy }} </label>
|
|
@@ -311,8 +313,8 @@
|
|
|
<el-form :model="sampleForm" ref="sampleForm" :rules="sampleformRule" label-width="120px" size="mini">
|
|
<el-form :model="sampleForm" ref="sampleForm" :rules="sampleformRule" label-width="120px" size="mini">
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="样本类型" required prop="SampleType">
|
|
|
|
|
- <el-select v-model="sampleForm.SampleType" clearable placeholder="请选择" style="width:100%"
|
|
|
|
|
|
|
+ <el-form-item label="样本类型" required prop="SampleTypestr">
|
|
|
|
|
+ <el-select v-model="sampleForm.SampleTypestr" clearable placeholder="请选择" style="width:100%"
|
|
|
@change="chooseSampleType" :disabled="disabledsampletype || batchitem == '1'">
|
|
@change="chooseSampleType" :disabled="disabledsampletype || batchitem == '1'">
|
|
|
<el-option v-for="item in sampleTypeList" :label="item.label" :key="item" :value="item.value">
|
|
<el-option v-for="item in sampleTypeList" :label="item.label" :key="item" :value="item.value">
|
|
|
</el-option>
|
|
</el-option>
|
|
@@ -373,8 +375,8 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="可用容量" prop="Capacity" placeholder="可用容量">
|
|
|
|
|
- <el-input v-model="sampleForm.Capacity" :disabled="disabledcapacity" placeholder="可用容量">
|
|
|
|
|
|
|
+ <el-form-item label="可用容量" prop="Capacitystr" placeholder="可用容量">
|
|
|
|
|
+ <el-input v-model="sampleForm.Capacitystr" :disabled="disabledcapacity" placeholder="可用容量">
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -669,12 +671,12 @@
|
|
|
sampleForm: {
|
|
sampleForm: {
|
|
|
BarCode: '', // 样本条码
|
|
BarCode: '', // 样本条码
|
|
|
SampleCode: '', // 样本编码
|
|
SampleCode: '', // 样本编码
|
|
|
- SampleType: '', // 样本类型
|
|
|
|
|
|
|
+ SampleTypestr: '', // 样本类型
|
|
|
SampleTypeName: '',
|
|
SampleTypeName: '',
|
|
|
SamplingSiteName: '',
|
|
SamplingSiteName: '',
|
|
|
Name: '', // 名称
|
|
Name: '', // 名称
|
|
|
ReceiveDate: new Date(), // 接收日期
|
|
ReceiveDate: new Date(), // 接收日期
|
|
|
- Capacity: '', // 可用容量
|
|
|
|
|
|
|
+ Capacitystr: '', // 可用容量
|
|
|
Unit: '', // 单位(容量)
|
|
Unit: '', // 单位(容量)
|
|
|
ValidityDate: '', // 有效日期
|
|
ValidityDate: '', // 有效日期
|
|
|
InnerCode: '', // 样本内码
|
|
InnerCode: '', // 样本内码
|
|
@@ -712,11 +714,11 @@
|
|
|
validator: checkSampleCode,
|
|
validator: checkSampleCode,
|
|
|
trigger: 'blur'
|
|
trigger: 'blur'
|
|
|
}],
|
|
}],
|
|
|
- SampleType: [{
|
|
|
|
|
|
|
+ SampleTypestr: [{
|
|
|
validator: checkSampleType,
|
|
validator: checkSampleType,
|
|
|
trigger: 'change'
|
|
trigger: 'change'
|
|
|
}],
|
|
}],
|
|
|
- Capacity: [{
|
|
|
|
|
|
|
+ Capacitystr: [{
|
|
|
validator: checkCapacity,
|
|
validator: checkCapacity,
|
|
|
trigger: 'blur'
|
|
trigger: 'blur'
|
|
|
}],
|
|
}],
|
|
@@ -2648,8 +2650,10 @@
|
|
|
} else { // 批量添加,如果点击的是空白位置会进入
|
|
} else { // 批量添加,如果点击的是空白位置会进入
|
|
|
this.getSampleInfoByBatchs()
|
|
this.getSampleInfoByBatchs()
|
|
|
this.extendList = []
|
|
this.extendList = []
|
|
|
- this.sampleTitle = '新增样本'
|
|
|
|
|
- this.sampleInfoDialog = true
|
|
|
|
|
|
|
+ if(this.Apply_flag == true) {
|
|
|
|
|
+ this.sampleTitle = '新增样本'
|
|
|
|
|
+ this.sampleInfoDialog = true
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
this.dchxtable = y
|
|
this.dchxtable = y
|
|
|
this.dchytable = x
|
|
this.dchytable = x
|
|
@@ -2702,7 +2706,7 @@
|
|
|
_this.sampleForm.BarCode = res.data.BarCode
|
|
_this.sampleForm.BarCode = res.data.BarCode
|
|
|
_this.sampleForm.SampleCode = res.data.SampleCode
|
|
_this.sampleForm.SampleCode = res.data.SampleCode
|
|
|
_this.sampleForm.SampleTypeName = res.data.SampleTypeName + ''
|
|
_this.sampleForm.SampleTypeName = res.data.SampleTypeName + ''
|
|
|
- _this.sampleForm.SampleType = res.data.SampleType + ''
|
|
|
|
|
|
|
+ _this.sampleForm.SampleTypestr = res.data.SampleType + ''
|
|
|
_this.sampleForm.Name = res.data.Name
|
|
_this.sampleForm.Name = res.data.Name
|
|
|
if (res.data.ReceiveDate.substring(0, 3) === '000') {
|
|
if (res.data.ReceiveDate.substring(0, 3) === '000') {
|
|
|
_this.sampleForm.ReceiveDate = null
|
|
_this.sampleForm.ReceiveDate = null
|
|
@@ -2724,7 +2728,7 @@
|
|
|
_this.sampleForm.ValidityDate = new Date(res.data.ValidityDate)
|
|
_this.sampleForm.ValidityDate = new Date(res.data.ValidityDate)
|
|
|
_this.ValidityDate = res.data.ValidityDate + ''
|
|
_this.ValidityDate = res.data.ValidityDate + ''
|
|
|
}
|
|
}
|
|
|
- _this.sampleForm.Capacity = res.data.Capacity + ''
|
|
|
|
|
|
|
+ _this.sampleForm.Capacitystr = res.data.Capacity + ''
|
|
|
_this.sampleForm.Unit = res.data.Unit
|
|
_this.sampleForm.Unit = res.data.Unit
|
|
|
_this.sampleForm.InnerCode = res.data.InnerCode
|
|
_this.sampleForm.InnerCode = res.data.InnerCode
|
|
|
_this.sampleForm.Remark = res.data.Remark
|
|
_this.sampleForm.Remark = res.data.Remark
|
|
@@ -2785,7 +2789,11 @@
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
_this.extendList = res.data
|
|
_this.extendList = res.data
|
|
|
for (let i = 0; i < this.extendList.length; i++) {
|
|
for (let i = 0; i < this.extendList.length; i++) {
|
|
|
- this.extendList[i].FieldDefault = val[this.extendList[i].FieldName]
|
|
|
|
|
|
|
+ if (this.extendList[i].FieldType == '4') {
|
|
|
|
|
+ this.extendList[i].FieldDefault = this.formatDateTime(val[this.extendList[i].FieldName])
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.extendList[i].FieldDefault = val[this.extendList[i].FieldName]
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
@@ -2814,9 +2822,9 @@
|
|
|
let val = _this.batchstorages[0]
|
|
let val = _this.batchstorages[0]
|
|
|
_this.sampleForm.BarCode = val.BarCode
|
|
_this.sampleForm.BarCode = val.BarCode
|
|
|
_this.sampleForm.SampleCode = val.SampleCode
|
|
_this.sampleForm.SampleCode = val.SampleCode
|
|
|
- _this.sampleForm.SampleType = val.SampleTypeId + ''
|
|
|
|
|
|
|
+ _this.sampleForm.SampleTypestr = val.SampleTypeId + ''
|
|
|
_this.sampleForm.SampleTypeName = val.SampleTypeName
|
|
_this.sampleForm.SampleTypeName = val.SampleTypeName
|
|
|
- _this.sampleForm.Capacity = val.SampleSize
|
|
|
|
|
|
|
+ _this.sampleForm.Capacitystr = val.SampleSize
|
|
|
_this.sampleForm.Unit = val.SampleUnit
|
|
_this.sampleForm.Unit = val.SampleUnit
|
|
|
_this.sampleForm.SourceId = val.SampleSourceId
|
|
_this.sampleForm.SourceId = val.SampleSourceId
|
|
|
_this.sampleForm.SourceIdCard = val.IdCard
|
|
_this.sampleForm.SourceIdCard = val.IdCard
|
|
@@ -2855,7 +2863,7 @@
|
|
|
let _this = this
|
|
let _this = this
|
|
|
_this.$axios.get('/sampletype/sampletypeajax?id=' + v, {})
|
|
_this.$axios.get('/sampletype/sampletypeajax?id=' + v, {})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- _this.sampleForm.Capacity = res.data.SampleType.DefaultCapacity + ''
|
|
|
|
|
|
|
+ _this.sampleForm.Capacitystr = res.data.SampleType.DefaultCapacity + ''
|
|
|
if (res.data.VHours === '5000-1-1 23:59:59') {
|
|
if (res.data.VHours === '5000-1-1 23:59:59') {
|
|
|
_this.sampleForm.Isyongjiu = true
|
|
_this.sampleForm.Isyongjiu = true
|
|
|
} else {
|
|
} else {
|
|
@@ -2888,7 +2896,7 @@
|
|
|
_this.disabledsourcebutton = true
|
|
_this.disabledsourcebutton = true
|
|
|
_this.sampleForm.BarCode = ''
|
|
_this.sampleForm.BarCode = ''
|
|
|
_this.sampleForm.SampleCode = res.data.SampleCode
|
|
_this.sampleForm.SampleCode = res.data.SampleCode
|
|
|
- _this.sampleForm.SampleType = res.data.SampleType + ''
|
|
|
|
|
|
|
+ _this.sampleForm.SampleTypestr = res.data.SampleType + ''
|
|
|
_this.sampleForm.Name = res.data.Name
|
|
_this.sampleForm.Name = res.data.Name
|
|
|
_this.sampleForm.SourceId = res.data.SourceId
|
|
_this.sampleForm.SourceId = res.data.SourceId
|
|
|
_this.sampleForm.SourceIdCard = res.data.SourceIdCard
|
|
_this.sampleForm.SourceIdCard = res.data.SourceIdCard
|
|
@@ -2898,7 +2906,7 @@
|
|
|
} else {
|
|
} else {
|
|
|
_this.sampleForm.ReceiveDate = new Date(res.data.ReceiveDate)
|
|
_this.sampleForm.ReceiveDate = new Date(res.data.ReceiveDate)
|
|
|
}
|
|
}
|
|
|
- _this.getSampleTypedata(_this.sampleForm.SampleType)
|
|
|
|
|
|
|
+ _this.getSampleTypedata(_this.sampleForm.SampleTypestr)
|
|
|
// 获取特有扩展并给特有扩展信息赋值
|
|
// 获取特有扩展并给特有扩展信息赋值
|
|
|
_this.getExtendValue(res.data)
|
|
_this.getExtendValue(res.data)
|
|
|
}
|
|
}
|
|
@@ -2931,7 +2939,7 @@
|
|
|
this.sampleForm.SourceName = val.Name
|
|
this.sampleForm.SourceName = val.Name
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- showDialog(){
|
|
|
|
|
|
|
+ showDialog() {
|
|
|
this.sampleTitle = '编辑样本'
|
|
this.sampleTitle = '编辑样本'
|
|
|
this.sampleInfoDialog = true
|
|
this.sampleInfoDialog = true
|
|
|
},
|
|
},
|
|
@@ -3038,43 +3046,41 @@
|
|
|
//清空缓存数据
|
|
//清空缓存数据
|
|
|
_this.batchstorages = []
|
|
_this.batchstorages = []
|
|
|
store.set('batchstorages', _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.getattachment(_this.sampleForm.BarCode, _this.sampleForm.SampleCode)
|
|
|
|
|
- // //清空缓存数据
|
|
|
|
|
- // _this.batchstorages = []
|
|
|
|
|
- // store.set('batchstorages', _this.batchstorages)
|
|
|
|
|
- // }
|
|
|
|
|
- else {
|
|
|
|
|
|
|
+ } 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({
|
|
this.$message({
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
@@ -3221,7 +3227,8 @@
|
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
- _this.$axios.delete('sampleinput/' + _this.sampleinfoid + '?sampletype=' + _this.sampleForm.SampleType,
|
|
|
|
|
|
|
+ _this.$axios.delete('sampleinput/' + _this.sampleinfoid + '?sampletype=' + _this.sampleForm
|
|
|
|
|
+ .SampleTypestr,
|
|
|
null)
|
|
null)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
@@ -3282,7 +3289,7 @@
|
|
|
this.sampleForm.SourceName = ''
|
|
this.sampleForm.SourceName = ''
|
|
|
this.sampleForm.InnerCode = ''
|
|
this.sampleForm.InnerCode = ''
|
|
|
this.sampleForm.SampleCode = ''
|
|
this.sampleForm.SampleCode = ''
|
|
|
- this.sampleForm.Capacity = ''
|
|
|
|
|
|
|
+ this.sampleForm.Capacitystr = ''
|
|
|
this.sampleForm.Unit = ''
|
|
this.sampleForm.Unit = ''
|
|
|
this.sampleForm.CreateBy = ''
|
|
this.sampleForm.CreateBy = ''
|
|
|
this.sampleForm.ReceiveDate = new Date()
|
|
this.sampleForm.ReceiveDate = new Date()
|
|
@@ -3291,7 +3298,7 @@
|
|
|
this.ValidityDate = ''
|
|
this.ValidityDate = ''
|
|
|
this.sampleForm.Isyongjiu = false
|
|
this.sampleForm.Isyongjiu = false
|
|
|
this.GroupIdOption = []
|
|
this.GroupIdOption = []
|
|
|
- this.sampleForm.SampleType = ''
|
|
|
|
|
|
|
+ this.sampleForm.SampleTypestr = ''
|
|
|
this.sampleForm.Remark = ''
|
|
this.sampleForm.Remark = ''
|
|
|
this.sampleForm.type_flag = 'add'
|
|
this.sampleForm.type_flag = 'add'
|
|
|
this.sampleinfoid = 0
|
|
this.sampleinfoid = 0
|
|
@@ -3352,7 +3359,6 @@
|
|
|
this.downloadBoxVisible = true
|
|
this.downloadBoxVisible = true
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- // handle error
|
|
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -3364,7 +3370,6 @@
|
|
|
1) + '_' + this.equipid + '_' + this.yshelf + '_' + this.xshelf + '_' + this.xbox + '_' + this.ybox +
|
|
1) + '_' + this.equipid + '_' + this.yshelf + '_' + this.xshelf + '_' + this.xbox + '_' + this.ybox +
|
|
|
"?templateName=" + this.downloadTemplateName, {})
|
|
"?templateName=" + this.downloadTemplateName, {})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- // response
|
|
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -3375,7 +3380,6 @@
|
|
|
this.downloadEquipVisible = false
|
|
this.downloadEquipVisible = false
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- // handle error
|
|
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -3386,7 +3390,6 @@
|
|
|
1) + '_' + this.equipid + '_' + this.yshelf + '_' + this.xshelf + '_' + this.xbox + '_' + this.ybox +
|
|
1) + '_' + this.equipid + '_' + this.yshelf + '_' + this.xshelf + '_' + this.xbox + '_' + this.ybox +
|
|
|
"?templateName=" + this.downloadTemplateName, {})
|
|
"?templateName=" + this.downloadTemplateName, {})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- // response
|
|
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -3397,7 +3400,6 @@
|
|
|
this.downloadBoxVisible = false
|
|
this.downloadBoxVisible = false
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- // handle error
|
|
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -3434,7 +3436,6 @@
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- // handle error
|
|
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -3463,10 +3464,8 @@
|
|
|
refreshcbc() {
|
|
refreshcbc() {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
_this.downloading = true
|
|
_this.downloading = true
|
|
|
- // request
|
|
|
|
|
this.$axios.put('/equipment/refresh', {})
|
|
this.$axios.put('/equipment/refresh', {})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
- // response
|
|
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
|
message: '刷新冻存盒状态完成!'
|
|
message: '刷新冻存盒状态完成!'
|
|
@@ -3474,7 +3473,6 @@
|
|
|
_this.downloading = false
|
|
_this.downloading = false
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- // handle error
|
|
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
_this.downloading = false
|
|
_this.downloading = false
|
|
|
})
|
|
})
|
|
@@ -3603,7 +3601,22 @@
|
|
|
return val.substring(0, 19)
|
|
return val.substring(0, 19)
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ formatDateTime(date) {
|
|
|
|
|
+ date = date.substring(4, 24)
|
|
|
|
|
+ return date
|
|
|
|
|
+ // var y = date.getFullYear();
|
|
|
|
|
+ // var m = date.getMonth() + 1;
|
|
|
|
|
+ // m = m < 10 ? ('0' + m) : m;
|
|
|
|
|
+ // var d = date.getDate();
|
|
|
|
|
+ // d = d < 10 ? ('0' + d) : d;
|
|
|
|
|
+ // var h = date.getHours();
|
|
|
|
|
+ // var minute = date.getMinutes();
|
|
|
|
|
+ // var second = date.getSeconds();
|
|
|
|
|
+ // minute = minute < 10 ? ('0' + minute) : minute;
|
|
|
|
|
+ // minute = second < 10 ? ('0' + second) : second;
|
|
|
|
|
+ // return y + '-' + m + '-' + d + ' ' + h + ':' + minute + ':' + second;
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
getGrouplist() {
|
|
getGrouplist() {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
_this.$axios.get('/samplesgroup/grouplist', {})
|
|
_this.$axios.get('/samplesgroup/grouplist', {})
|