fix:coding#560二、1性能检验改动
This commit is contained in:
parent
52aa3b167b
commit
208c0aee5c
|
@ -11,16 +11,31 @@
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
|
<el-select
|
||||||
|
v-model="query.testitem"
|
||||||
|
clearable
|
||||||
|
style="width: 150px"
|
||||||
|
@change="testitemChange"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in behaviors"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="query.test_date"
|
v-model="query.test_date"
|
||||||
type="date"
|
type="date"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD"
|
||||||
|
style="width: 150px"
|
||||||
/>
|
/>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="query.search"
|
v-model="query.search"
|
||||||
placeholder="编号"
|
placeholder="编号"
|
||||||
clearable
|
clearable
|
||||||
style="width: 200px"
|
style="width: 150px"
|
||||||
></el-input>
|
></el-input>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
@ -30,192 +45,159 @@
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="nopadding">
|
<scTable
|
||||||
<!-- <el-radio-group v-model="radio1" class="ml-4">
|
ref="table"
|
||||||
<el-radio
|
:data="tableData"
|
||||||
v-for="item in behaviors"
|
:apiObj="apiObj"
|
||||||
:key="item.id"
|
row-key="id"
|
||||||
:label="item.id"
|
stripe
|
||||||
size="large"
|
:params="query"
|
||||||
>
|
:query="query"
|
||||||
{{ item.name }}
|
>
|
||||||
</el-radio>
|
<el-table-column type="index" width="50" />
|
||||||
</el-radio-group> -->
|
<el-table-column
|
||||||
<el-container>
|
label="实验日期"
|
||||||
<el-header style="padding: 13px 15px 7px">
|
prop="test_date"
|
||||||
<el-tabs
|
show-overflow-tooltip
|
||||||
v-model="activeId"
|
>
|
||||||
class="demo-tabs"
|
</el-table-column>
|
||||||
@tab-click="handleClick"
|
<el-table-column label="样品编号" prop="sample_number">
|
||||||
type="card"
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="样品厚度/mm"
|
||||||
|
prop="val_hd"
|
||||||
|
v-if="activeName == '透过率'"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="型号规格"
|
||||||
|
prop="specification"
|
||||||
|
v-if="
|
||||||
|
activeName == '中温粘度' || activeName == '膨胀'
|
||||||
|
"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="样品数量"
|
||||||
|
prop="sample_count"
|
||||||
|
v-if="activeName == '析晶'"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="样品密度"
|
||||||
|
prop="sample_density"
|
||||||
|
v-if="activeName == '高温粘度'"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="检验员"
|
||||||
|
prop="test_user_name"
|
||||||
|
show-overflow-tooltip
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="实验温度及保温时间"
|
||||||
|
prop="sample_number"
|
||||||
|
v-if="activeName == '析晶'"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="升至最高温度/℃"
|
||||||
|
prop="val_zgwd"
|
||||||
|
v-if="activeName == '高温粘度'"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="仪器状态"
|
||||||
|
prop="factory"
|
||||||
|
show-overflow-tooltip
|
||||||
|
>
|
||||||
|
<template #default="scope">
|
||||||
|
<el-tag>{{
|
||||||
|
state_[scope.row.equip_state]
|
||||||
|
}}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="折射率(589nm)"
|
||||||
|
prop="val_zsl"
|
||||||
|
v-if="activeName == '折射率'"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="透过率(550nm)"
|
||||||
|
prop="val_tgl"
|
||||||
|
v-if="activeName == '透过率'"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="Ts/℃"
|
||||||
|
prop="val_ts"
|
||||||
|
v-if="activeName == '中温粘度'"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="30-300℃膨胀系数"
|
||||||
|
prop="val_pzxs"
|
||||||
|
v-if="activeName == '膨胀'"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="Tg/℃"
|
||||||
|
prop="val_tg"
|
||||||
|
v-if="activeName == '膨胀'"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="Tf/℃"
|
||||||
|
prop="val_tf"
|
||||||
|
v-if="activeName == '膨胀'"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="析晶"
|
||||||
|
prop="val_xj"
|
||||||
|
v-if="activeName == '析晶'"
|
||||||
|
>
|
||||||
|
<template #default="scope">
|
||||||
|
<el-tag>{{
|
||||||
|
state_xj[scope.row.val_xj]
|
||||||
|
}}</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" fixed="right" width="160">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-link
|
||||||
|
type="primary"
|
||||||
|
@click="table_edit(scope.row)"
|
||||||
|
v-auth="'ptest.update'"
|
||||||
|
>编辑</el-link
|
||||||
>
|
>
|
||||||
<el-tab-pane
|
<el-divider
|
||||||
v-for="item in behaviors"
|
direction="vertical"
|
||||||
v-bind:key="item.id"
|
v-auth="'ptest.update'"
|
||||||
:label="item.name"
|
></el-divider>
|
||||||
:name="item.id"
|
<el-link
|
||||||
>
|
type="primary"
|
||||||
</el-tab-pane>
|
@click="table_show(scope.row)"
|
||||||
</el-tabs>
|
>查看</el-link
|
||||||
</el-header>
|
|
||||||
<el-main class="nopadding">
|
|
||||||
<scTable
|
|
||||||
ref="table"
|
|
||||||
:data="tableData"
|
|
||||||
:apiObj="apiObj"
|
|
||||||
row-key="id"
|
|
||||||
stripe
|
|
||||||
:params="query"
|
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="50" />
|
<el-divider
|
||||||
<el-table-column
|
direction="vertical"
|
||||||
label="实验日期"
|
v-auth="'ptest.delete'"
|
||||||
prop="test_date"
|
></el-divider>
|
||||||
show-overflow-tooltip
|
<el-link
|
||||||
>
|
type="danger"
|
||||||
</el-table-column>
|
@click="table_del(scope.row)"
|
||||||
<el-table-column label="样品编号" prop="sample_number">
|
v-auth="'ptest.delete'"
|
||||||
</el-table-column>
|
>删除</el-link
|
||||||
<el-table-column
|
>
|
||||||
label="样品厚度/mm"
|
</template>
|
||||||
prop="val_hd"
|
</el-table-column>
|
||||||
v-if="activeName == '透过率'"
|
</scTable>
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="型号规格"
|
|
||||||
prop="specification"
|
|
||||||
v-if="
|
|
||||||
activeName == '中温粘度' || activeName == '膨胀'
|
|
||||||
"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="样品数量"
|
|
||||||
prop="sample_count"
|
|
||||||
v-if="activeName == '析晶'"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="样品密度"
|
|
||||||
prop="sample_density"
|
|
||||||
v-if="activeName == '高温粘度'"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="检验员"
|
|
||||||
prop="test_user_name"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="实验温度及保温时间"
|
|
||||||
prop="sample_number"
|
|
||||||
v-if="activeName == '析晶'"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="升至最高温度/℃"
|
|
||||||
prop="val_zgwd"
|
|
||||||
v-if="activeName == '高温粘度'"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="仪器状态"
|
|
||||||
prop="factory"
|
|
||||||
show-overflow-tooltip
|
|
||||||
>
|
|
||||||
<template #default="scope">
|
|
||||||
<el-tag>{{
|
|
||||||
state_[scope.row.equip_state]
|
|
||||||
}}</el-tag>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="折射率(589nm)"
|
|
||||||
prop="val_zsl"
|
|
||||||
v-if="activeName == '折射率'"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="透过率(550nm)"
|
|
||||||
prop="val_tgl"
|
|
||||||
v-if="activeName == '透过率'"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="Ts/℃"
|
|
||||||
prop="val_ts"
|
|
||||||
v-if="activeName == '中温粘度'"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="30-300℃膨胀系数"
|
|
||||||
prop="val_pzxs"
|
|
||||||
v-if="activeName == '膨胀'"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="Tg/℃"
|
|
||||||
prop="val_tg"
|
|
||||||
v-if="activeName == '膨胀'"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="Tf/℃"
|
|
||||||
prop="val_tf"
|
|
||||||
v-if="activeName == '膨胀'"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
|
||||||
label="析晶"
|
|
||||||
prop="val_xj"
|
|
||||||
v-if="activeName == '析晶'"
|
|
||||||
>
|
|
||||||
<template #default="scope">
|
|
||||||
<el-tag>{{
|
|
||||||
state_xj[scope.row.val_xj]
|
|
||||||
}}</el-tag>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="操作" fixed="right" width="160">
|
|
||||||
<template #default="scope">
|
|
||||||
<el-link
|
|
||||||
type="primary"
|
|
||||||
@click="table_edit(scope.row)"
|
|
||||||
v-auth="'ptest.update'"
|
|
||||||
>编辑</el-link
|
|
||||||
>
|
|
||||||
<el-divider
|
|
||||||
direction="vertical"
|
|
||||||
v-auth="'ptest.update'"
|
|
||||||
></el-divider>
|
|
||||||
<el-link
|
|
||||||
type="primary"
|
|
||||||
@click="table_show(scope.row)"
|
|
||||||
>查看</el-link
|
|
||||||
>
|
|
||||||
<el-divider
|
|
||||||
direction="vertical"
|
|
||||||
v-auth="'ptest.delete'"
|
|
||||||
></el-divider>
|
|
||||||
<el-link
|
|
||||||
type="danger"
|
|
||||||
@click="table_del(scope.row)"
|
|
||||||
v-auth="'ptest.delete'"
|
|
||||||
>删除</el-link
|
|
||||||
>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</scTable>
|
|
||||||
</el-main>
|
|
||||||
</el-container>
|
|
||||||
</el-main>
|
|
||||||
<save-dialog
|
<save-dialog
|
||||||
v-if="visible"
|
v-if="visible"
|
||||||
ref="saveDialog"
|
ref="saveDialog"
|
||||||
:activeName="activeName"
|
|
||||||
:activeId="activeId"
|
|
||||||
@success="handleSuccess"
|
@success="handleSuccess"
|
||||||
@closed="visible = false"
|
@closed="visible = false"
|
||||||
>
|
>
|
||||||
|
@ -287,7 +269,6 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
activeId: "3442815297965547520",
|
|
||||||
activeName: "折射率",
|
activeName: "折射率",
|
||||||
visible: false,
|
visible: false,
|
||||||
isSaveing: false,
|
isSaveing: false,
|
||||||
|
@ -311,11 +292,14 @@ export default {
|
||||||
that.apiObj = that.$API.qm.ptest.list;
|
that.apiObj = that.$API.qm.ptest.list;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleClick(val) {
|
testitemChange(){
|
||||||
this.activeId = val.props.name;
|
let that = this;
|
||||||
this.activeName = val.props.label;
|
that.behaviors.forEach((item) => {
|
||||||
this.query.testitem = val.props.name;
|
if(item.id==that.query.testitem){
|
||||||
this.$refs.table.refresh();
|
that.activeName = item.name;
|
||||||
|
}
|
||||||
|
that.$refs.table.refresh();
|
||||||
|
})
|
||||||
},
|
},
|
||||||
add() {
|
add() {
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
@closed="$emit('closed')"
|
@closed="$emit('closed')"
|
||||||
>
|
>
|
||||||
<el-container v-loading="loading">
|
<el-container v-loading="loading">
|
||||||
<el-main style="padding: 0 20px 20px 20px">
|
<el-main style="padding: 0">
|
||||||
<el-form
|
<el-form
|
||||||
ref="dialogForm"
|
ref="dialogForm"
|
||||||
:model="form"
|
:model="form"
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
placeholder="检验类型"
|
placeholder="检验类型"
|
||||||
clearable
|
clearable
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
disabled
|
@change="testitemChange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in behaviors"
|
v-for="item in behaviors"
|
||||||
|
@ -279,7 +279,6 @@ export default {
|
||||||
emits: ["success", "closed"],
|
emits: ["success", "closed"],
|
||||||
props: {
|
props: {
|
||||||
activeId: { type: String, default: "" },
|
activeId: { type: String, default: "" },
|
||||||
activeName: { type: String, default: "" },
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -349,6 +348,7 @@ export default {
|
||||||
belong_dept_options: [],
|
belong_dept_options: [],
|
||||||
group: [],
|
group: [],
|
||||||
behaviors: [],
|
behaviors: [],
|
||||||
|
activeName:'折射率'
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -399,6 +399,14 @@ export default {
|
||||||
that.processOptions = res;
|
that.processOptions = res;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
testitemChange(){
|
||||||
|
let that = this;
|
||||||
|
that.behaviors.forEach((item) => {
|
||||||
|
if(item.id==that.form.testitem){
|
||||||
|
that.activeName = item.name;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
handleClick() {},
|
handleClick() {},
|
||||||
//提交
|
//提交
|
||||||
submit() {
|
submit() {
|
||||||
|
|
Loading…
Reference in New Issue