|
|
@@ -2,9 +2,11 @@
|
|
|
.input-with-select .el-select .el-input {
|
|
|
width: 110px;
|
|
|
}
|
|
|
+
|
|
|
.input-with-select .el-input-group__append {
|
|
|
background-color: #fff;
|
|
|
}
|
|
|
+
|
|
|
</style>
|
|
|
|
|
|
<template>
|
|
|
@@ -22,7 +24,8 @@
|
|
|
<span style="float: right;">
|
|
|
<el-button size="mini" type="primary" class="el-button--small" style="margin-left: 8px" :disabled="save_flag"
|
|
|
@click="saveApply">保存</el-button>
|
|
|
- <el-button size="mini" type="primary" class="el-button--small" style="margin-left: 8px" onclick="window.history.go(-1)">返回</el-button>
|
|
|
+ <el-button size="mini" type="primary" class="el-button--small" style="margin-left: 8px"
|
|
|
+ onclick="window.history.go(-1)">返回</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
|
|
|
@@ -51,8 +54,8 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="申请时间">
|
|
|
- <el-date-picker v-model="SampleCKform.EntryTime" type="datetime" style="width:100%" placeholder="请选择申请时间"
|
|
|
- :disabled="add_flag">
|
|
|
+ <el-date-picker v-model="SampleCKform.EntryTime" type="datetime" style="width:100%"
|
|
|
+ placeholder="请选择申请时间" :disabled="add_flag">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -66,13 +69,15 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8" v-if="(save_flag) && (SampleCKform.ApplyStatus != 5)">
|
|
|
<el-form-item label="审核时间">
|
|
|
- <el-date-picker v-model="SampleCKform.ConTime" type="datetime" style="width:100%" placeholder="请选择审核时间">
|
|
|
+ <el-date-picker v-model="SampleCKform.ConTime" type="datetime" style="width:100%"
|
|
|
+ placeholder="请选择审核时间">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="备注">
|
|
|
- <el-input v-model="SampleCKform.Remark" type="textarea" :rows=3 :disabled="add_flag" placeholder="请输入备注信息"></el-input>
|
|
|
+ <el-input v-model="SampleCKform.Remark" type="textarea" :rows=3 :disabled="add_flag"
|
|
|
+ placeholder="请输入备注信息"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24" v-if="(save_flag) && (SampleCKform.ApplyStatus != 5)">
|
|
|
@@ -104,15 +109,19 @@
|
|
|
<!-- <el-table :data="ApplyList" border style="width: 100%" @selection-change="authorSelectionChange"> -->
|
|
|
<!-- <el-table-column type="selection" width="35px"></el-table-column> -->
|
|
|
<el-table :data="ApplyList" border style="width: 100%">
|
|
|
- <el-table-column prop="BarCode" label="样本条码" min-width="120" align="center" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="SampleCode" label="样本编码" min-width="120" align="center" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="SampleTypeName" min-width="80" label="样本类型" align="center" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="BarCode" label="样本条码" min-width="120" align="center" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="SampleCode" label="样本编码" min-width="120" align="center" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="SampleTypeName" min-width="80" label="样本类型" align="center" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="可用容量" min-width="80" show-overflow-tooltip align="center" header-align="center">
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.Capacity }} {{ scope.row.Unit }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="存储位置" min-width="120" show-overflow-tooltip align="center" header-align="center">
|
|
|
+ <el-table-column label="存储位置" min-width="120" show-overflow-tooltip align="center"
|
|
|
+ header-align="center">
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.ECode + "-" + numtoupchar(scope.row.ShelfY) + scope.row.ShelfX + "-" +
|
|
|
numtoupchar(scope.row.BoxY) + scope.row.BoxX + "-" + postiontoupchar(scope.row.Position) }}
|
|
|
@@ -127,11 +136,14 @@
|
|
|
<el-tag v-show="scope.row.DetailStatus=='5'" type="danger">已撤销</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="CHUserBy" min-width="80" label="操作人" align="center" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="CancelBy" min-width="80" label="撤销人" align="center" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="CHUserBy" min-width="80" label="操作人" align="center" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="CancelBy" min-width="80" label="撤销人" align="center" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
- <el-pagination @size-change="HandleSizeChange" @current-change="HandleCurrentChange" :current-page="CurrentPage"
|
|
|
- :page-sizes="[10, 15, 20]" :page-size="Size" layout="total, sizes, prev, next, jumper" :total="CurrentItemCount">
|
|
|
+ <el-pagination @size-change="HandleSizeChange" @current-change="HandleCurrentChange"
|
|
|
+ :current-page="CurrentPage" :page-sizes="[10, 15, 20]" :page-size="Size"
|
|
|
+ layout="total, sizes, prev, next, jumper" :total="CurrentItemCount">
|
|
|
</el-pagination>
|
|
|
</el-card>
|
|
|
</el-col>
|
|
|
@@ -150,14 +162,18 @@
|
|
|
<legend style="color:#436EEE"></legend>
|
|
|
<i class="icon icon-paragraph-justify">样本信息</i>
|
|
|
<span style="float: right;">
|
|
|
- <el-button type="primary" class="el-button--mini" @click="AddDetail" :disabled="!add_flag">样本出库</el-button>
|
|
|
+ <el-button type="primary" class="el-button--mini" @click="AddDetail" :disabled="!add_flag">样本出库
|
|
|
+ </el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
<el-table :data="SamplesList" border style="width: 100%" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="35px"></el-table-column>
|
|
|
- <el-table-column prop="BarCode" label="样本条码" min-width="120" align="center" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="SampleCode" label="样本编码" min-width="120" align="center" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="SampleTypeName" min-width="80" label="样本类型" align="center" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="BarCode" label="样本条码" min-width="120" align="center" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="SampleCode" label="样本编码" min-width="120" align="center" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="SampleTypeName" min-width="80" label="样本类型" align="center" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="可用容量" min-width="80" show-overflow-tooltip align="center" header-align="center">
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.Capacity }} {{ scope.row.Unit }}
|
|
|
@@ -170,16 +186,19 @@
|
|
|
</router-link>
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
- <el-table-column label="存储位置" min-width="120" show-overflow-tooltip align="center" header-align="center">
|
|
|
+ <el-table-column label="存储位置" min-width="120" show-overflow-tooltip align="center"
|
|
|
+ header-align="center">
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.ECode + "-" + numtoupchar(scope.row.ShelfY) + scope.row.ShelfX + "-" +
|
|
|
numtoupchar(scope.row.BoxY) + scope.row.BoxX + "-" + postiontoupchar(scope.row.Position) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="CHUserBy" min-width="80" label="提交人" align="center" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column prop="CHUserBy" min-width="80" label="提交人" align="center" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
|
- :page-sizes="[10, 15, 20]" :page-size="size" layout="total, sizes, prev, next, jumper" :total="currentItemCount">
|
|
|
+ <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
+ :current-page="currentPage" :page-sizes="[10, 15, 20]" :page-size="size"
|
|
|
+ layout="total, sizes, prev, next, jumper" :total="currentItemCount">
|
|
|
</el-pagination>
|
|
|
</el-card>
|
|
|
</el-col>
|
|
|
@@ -242,7 +261,7 @@
|
|
|
components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- breadcrumb: '', //面包屑标题
|
|
|
+ pagetitle: '', //面包屑标题
|
|
|
service_flag: '', //页面新增或编辑标志位
|
|
|
CurrentItemCount: 0, // 当前页显示数量
|
|
|
CurrentPage: 1, // 当前页
|
|
|
@@ -310,11 +329,11 @@
|
|
|
let _this = this
|
|
|
_this.ServiceId = _this.$route.params.opera //主单id
|
|
|
if (_this.ServiceId && _this.ServiceId == 'addCK') {
|
|
|
- _this.breadcrumb = '新增样本出库'
|
|
|
+ _this.pagetitle = '新增样本出库'
|
|
|
_this.service_flag = 'addCK'
|
|
|
_this.getEntryNo()
|
|
|
} else if (_this.ServiceId != '0') {
|
|
|
- _this.breadcrumb = '编辑样本出库'
|
|
|
+ _this.pagetitle = '编辑样本出库'
|
|
|
_this.service_flag = 'editCK'
|
|
|
_this.save_flag = true
|
|
|
_this.getApplyInfo()
|