Commit 6a97e969 authored by mzx's avatar mzx

Merge remote-tracking branch 'origin/develop' into develop

parents a4a3b8fe a7d6f187
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
> >
<el-input <el-input
v-model="queryParams.identificationCode" v-model="queryParams.identificationCode"
placeholder="请输入车辆识别码" placeholder="请输入"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<el-form-item label="样品编号" prop="address"> <el-form-item label="样品编号" prop="address">
<el-input <el-input
v-model="queryParams.sampleNumber" v-model="queryParams.sampleNumber"
placeholder="请输入样品编号" placeholder="请输入"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<el-form-item label="样品名称" prop="postcode"> <el-form-item label="样品名称" prop="postcode">
<el-input <el-input
v-model="queryParams.sampleName" v-model="queryParams.sampleName"
placeholder="请输入样品名称" placeholder="请输入"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
...@@ -75,9 +75,10 @@ ...@@ -75,9 +75,10 @@
:data="tableData" :data="tableData"
style="width: 100%" style="width: 100%"
border border
:cell-style="taskNameCellStyle"
@sort-change="sortClick" @sort-change="sortClick"
> >
<el-table-column type="index" label="序号" min-width="80"> <el-table-column type="index" width="55" label="序号" align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
v-if="activeName === 'completeSample'" v-if="activeName === 'completeSample'"
...@@ -118,20 +119,20 @@ ...@@ -118,20 +119,20 @@
prop="numberOfSamples" prop="numberOfSamples"
label="样品数量" label="样品数量"
show-overflow-tooltip show-overflow-tooltip
min-width="150" min-width="100"
/> />
<el-table-column <el-table-column
prop="deliveryDate" prop="deliveryDate"
label="送样日期" label="送样日期"
sortable="'custom" sortable="'custom"
show-overflow-tooltip show-overflow-tooltip
min-width="200" min-width="150"
/> />
<el-table-column <el-table-column
prop="manufactureDate" prop="manufactureDate"
label="生产日期" label="生产日期"
show-overflow-tooltip show-overflow-tooltip
min-width="200" min-width="150"
/> />
<el-table-column <el-table-column
prop="manufacturingEnterprise" prop="manufacturingEnterprise"
...@@ -139,7 +140,7 @@ ...@@ -139,7 +140,7 @@
show-overflow-tooltip show-overflow-tooltip
min-width="200" min-width="200"
/> />
<el-table-column prop="name" label="相关任务" min-width="200"> <el-table-column label="相关任务">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.taskSampleRelation.length > 0"> <div v-if="scope.row.taskSampleRelation.length > 0">
<el-link <el-link
...@@ -158,17 +159,22 @@ ...@@ -158,17 +159,22 @@
<div v-else>--</div> <div v-else>--</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right" min-width="160"> <el-table-column
label="操作"
fixed="right"
min-width="160"
align="center"
>
<template slot-scope="scope"> <template slot-scope="scope">
<div class="button-bar"> <div class="button-bar">
<page-button <page-button
v-hasPermi="['setting:standard:update']" v-hasPermi="['setting:sample:edit']"
icon="edit" icon="edit"
title="修改" title="修改"
@click="handleUpdate(scope.row.id)" @click="handleUpdate(scope.row.id)"
></page-button> ></page-button>
<page-button <page-button
v-hasPermi="['setting:standard:update']" v-hasPermi="['setting:sample:del']"
icon="delete" icon="delete"
title="删除" title="删除"
@click="handleDelete(scope.row.id)" @click="handleDelete(scope.row.id)"
...@@ -481,6 +487,11 @@ export default { ...@@ -481,6 +487,11 @@ export default {
this.getList() this.getList()
}, },
methods: { methods: {
taskNameCellStyle(row, column, rowIndex, columnIndex) {
if (row.columnIndex === 9) {
return { whiteSpace: 'nowrap' }
}
},
closeMaterial(data) { closeMaterial(data) {
this.materialShow = data this.materialShow = data
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment