Commit 53721587 by lichengming
parents e0551c9b 6ccb4b71
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
{ {
type: 'success', type: 'success',
id: '', id: '',
name: '添加' name: '评审'
} }
], ],
iconMsg: [ iconMsg: [
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
this.currentComponent = componentName this.currentComponent = componentName
this.$nextTick(function() { this.$nextTick(function() {
switch (msg) { switch (msg) {
case '添加': case '评审':
this._editModal(false) this._editModal(false)
break break
case '提交': case '提交':
......
...@@ -37,7 +37,21 @@ ...@@ -37,7 +37,21 @@
:min-width="item.width?item.width:200" :min-width="item.width?item.width:200"
:fixed="item.fixed?item.fixed:undefined" sortable> :fixed="item.fixed?item.fixed:undefined" sortable>
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.row[item.key]}}</span>
<span v-if="item.key==='type'">
<span v-if="scope.row[item.key]===0">
检定
</span>
<span v-else-if="scope.row[item.key]===1">
校准
</span>
<span v-else-if="scope.row[item.key]===2">
外观检查
</span>
</span>
<span v-else>{{scope.row[item.key]}}</span>
</template> </template>
</vxe-table-column> </vxe-table-column>
</PTVXETable> </PTVXETable>
...@@ -49,8 +63,8 @@ ...@@ -49,8 +63,8 @@
<operationModal ref="operationModal"></operationModal> <operationModal ref="operationModal"></operationModal>
<SelEquip ref="SelEquip" @on-result-change="_equipSelectBack"></SelEquip> <SelEquip ref="SelEquip" @on-result-change="_equipSelectBack"></SelEquip>
<CarManage ref="carEdit"></CarManage> <CarManage ref="carEdit"></CarManage>
<InstruMentEdit ref="InstruEdit"></InstruMentEdit> <InstruMentEdit ref="InstruEdit" @on-result-change="_page"></InstruMentEdit>
<MeterPersonItemTaskManage ref="personModal"></MeterPersonItemTaskManage> <MeterPersonItemTaskManage ref="personModal" @on-result-change="_page"></MeterPersonItemTaskManage>
<MeterSubcontractorEdit ref="editSubcontractorModal" @on-result-change="_formSearch"></MeterSubcontractorEdit> <MeterSubcontractorEdit ref="editSubcontractorModal" @on-result-change="_formSearch"></MeterSubcontractorEdit>
</div> </div>
</template> </template>
...@@ -97,7 +111,7 @@ export default { ...@@ -97,7 +111,7 @@ export default {
{ {
type: 'md-create', type: 'md-create',
id: '', id: '',
name: '编辑' name: '检测结果'
}, },
{ {
type: 'md-car', type: 'md-car',
...@@ -126,9 +140,9 @@ export default { ...@@ -126,9 +140,9 @@ export default {
pageColumns: [ pageColumns: [
{ title: '样品名称', key: 'name', width: 120 }, { title: '样品名称', key: 'name', width: 120 },
{ title: '样品编号', key: 'code', width: 120 }, { title: '样品编号', key: 'code', width: 120 },
{ title: '型号规格', key: 'spec' }, { title: '型号规格', key: 'spec', width: 120 },
{ title: '出厂编号', key: 'factoryNumber' }, { title: '出厂编号', key: 'factoryNumber', width: 120 },
{ title: '检测类型', key: 'type' }, { title: '检测类型', key: 'type', width: 100 },
{ title: '委托单位', key: 'client', width: 200 }, { title: '委托单位', key: 'client', width: 200 },
{ title: '联系人', key: 'person', width: 120 }, { title: '联系人', key: 'person', width: 120 },
{ title: '联系电话', key: 'tel', width: 120 }, { title: '联系电话', key: 'tel', width: 120 },
...@@ -218,8 +232,7 @@ export default { ...@@ -218,8 +232,7 @@ export default {
case '车辆管理': case '车辆管理':
this.$refs.carEdit._open() this.$refs.carEdit._open()
break break
case '编辑': case '检测结果':
// this._editModal(true, data.id)
this._personModal(data) this._personModal(data)
break break
case '资质项目': case '资质项目':
...@@ -238,7 +251,6 @@ export default { ...@@ -238,7 +251,6 @@ export default {
}) })
}, },
_personModal(data) { _personModal(data) {
console.log(data)
this.$refs.personModal._open(data.id) this.$refs.personModal._open(data.id)
}, },
_equipSelectBack(data) { _equipSelectBack(data) {
......
...@@ -86,11 +86,7 @@ export default { ...@@ -86,11 +86,7 @@ export default {
// {id: '', name: '复制历史样品检测项目', componentName: 'CopyHisItem'}, // {id: '', name: '复制历史样品检测项目', componentName: 'CopyHisItem'},
// {id: '', name: '删除'}, // {id: '', name: '删除'},
// ], // ],
iconMsg: [ iconMsg: [{ type: 'md-checkmark', id: '', name: '完成' }],
{ type: 'compose', id: '', name: '编辑' },
{ type: 'ios-copy', id: '', name: '复制', componentName: 'CopyModal' },
{ type: 'trash-a', id: '', name: '删除' }
],
btn: [ btn: [
{ {
// meter-review-entrust-pass-btn // meter-review-entrust-pass-btn
......
...@@ -43,11 +43,15 @@ ...@@ -43,11 +43,15 @@
{{scope.row[item.key]===1?'是':'否'}} {{scope.row[item.key]===1?'是':'否'}}
</div> </div>
<div v-else-if="item.key==='type'"> <div v-else-if="item.key==='type'">
<Select v-model="scope.row.type"> <span v-if="scope.row[item.key]===0">
<Option v-for="(item,index) in options" :key="item.name" :value="index"> 检定
{{ item.name }} </span>
</Option> <span v-else-if="scope.row[item.key]===1">
</Select> 校准
</span>
<span v-else-if="scope.row[item.key]===2">
外观检查
</span>
</div> </div>
<div v-else>{{scope.row[item.key]}}</div> <div v-else>{{scope.row[item.key]}}</div>
</template> </template>
...@@ -66,26 +70,14 @@ import assignPerson from '../../../components/user-info-single/assignPerson' ...@@ -66,26 +70,14 @@ import assignPerson from '../../../components/user-info-single/assignPerson'
export default { export default {
components: { components: {
assignPerson assignPerson
// FoodSampleGovernDetail,
// CopyModal,
// FoodSampleGovernLYEdits
}, },
data() { data() {
return { return {
currentComponent: '', currentComponent: '',
// btn: [
// {type: 'success', id: '', name: '添加', componentName: 'FoodSampleGovernEdit'},
// {id: 'food-gov-sample-batch-add', name: '批量添加', componentName: 'FoodSampleGovernBatchAdd'},
// {id: '', name: '导入样品', componentName: 'FoodImportSample'},
// {id: '', name: '导入检测项目', componentName: 'RelItem'},
// {id: '', name: '导入检测项目包', componentName: 'RelItemPackage'},
// {id: '', name: '复制历史样品检测项目', componentName: 'CopyHisItem'},
// {id: '', name: '删除'},
// ],
iconMsg: [ iconMsg: [
{ type: 'compose', id: '', name: '编辑' }, // { type: 'compose', id: '', name: '编辑' },
{ type: 'ios-copy', id: '', name: '复制', componentName: 'CopyModal' }, // { type: 'ios-copy', id: '', name: '复制', componentName: 'CopyModal' },
{ type: 'trash-a', id: '', name: '删除' } // { type: 'trash-a', id: '', name: '删除' }
], ],
btn: [ btn: [
{ {
......
...@@ -6,24 +6,24 @@ ...@@ -6,24 +6,24 @@
<Row> <Row>
<!--查询--> <!--查询-->
<Col span="24" style="margin-top: 10px"> <Col span="24" style="margin-top: 10px">
<Form id="formId" v-show="searchOpen" :label-width="90" inline onsubmit="return false"> <Form v-show="searchOpen" id="formId" :label-width="90" inline onsubmit="return false">
<label class="label-sign"></label> <label class="label-sign"></label>
<Form-item class="search-item" label="实验室名称:"> <Form-item class="search-item" label="实验室名称:">
<Input v-model="formObj.name" @on-enter="_formSearch" name="name" placeholder="请输入实验室名称" clearable/> <Input v-model="formObj.name" name="name" placeholder="请输入实验室名称" clearable @on-enter="_formSearch"/>
</Form-item> </Form-item>
<Form-item class="search-item" label="资质:"> <Form-item class="search-item" label="资质:">
<Input v-model="formObj.aptitude" @on-enter="_formSearch" name="aptitude" placeholder="请输入资质" clearable/> <Input v-model="formObj.aptitude" name="aptitude" placeholder="请输入资质" clearable @on-enter="_formSearch"/>
</Form-item> </Form-item>
<Form-item class="search-btn"> <Form-item class="search-btn">
<Button @click="_formSearch" type="primary">搜索</Button> <Button type="primary" @click="_formSearch">搜索</Button>
</Form-item> </Form-item>
</Form> </Form>
</Col> </Col>
<!--操作--> <!--操作-->
<Col span="24"> <Col span="24">
<btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" @on-result-change="_btnClick" <btn-list :msg="btn" :open="searchOpen" :show-search-btn="true" class="contHide"
class="contHide"></btn-list> @on-result-change="_btnClick"></btn-list>
</Col> </Col>
<!--表格--> <!--表格-->
<Col span="24"> <Col span="24">
...@@ -47,18 +47,15 @@ ...@@ -47,18 +47,15 @@
</div> </div>
<FileManage ref="FileManage"></FileManage> <FileManage ref="FileManage"></FileManage>
<MeterOutTaskAlloca ref="taskAllocaModal"></MeterOutTaskAlloca> <MeterOutTaskAlloca ref="taskAllocaModal"></MeterOutTaskAlloca>
<MeterSubcontractorEdit ref="editSubcontractorModal" @on-result-change="_formSearch"></MeterSubcontractorEdit>
<MeterOutTaskOperation ref="operationModal"></MeterOutTaskOperation> <MeterOutTaskOperation ref="operationModal"></MeterOutTaskOperation>
</div> </div>
</template> </template>
<script> <script>
import { meterEntrust } from '../../../api' import { meterEntrust } from '../../../api'
import MeterSubcontractorEdit from './MeterGoOutTestEdit'
import MeterOutTaskAlloca from './MeterOutTaskAlloca' import MeterOutTaskAlloca from './MeterOutTaskAlloca'
import MeterOutTaskOperation from './MeterOutTaskOperation' import MeterOutTaskOperation from './MeterOutTaskOperation'
export default { export default {
components: { components: {
MeterSubcontractorEdit,
MeterOutTaskAlloca, MeterOutTaskAlloca,
MeterOutTaskOperation MeterOutTaskOperation
}, },
...@@ -67,24 +64,13 @@ export default { ...@@ -67,24 +64,13 @@ export default {
currentComponent: '', currentComponent: '',
formId: 'meterSubcontractorFormId', formId: 'meterSubcontractorFormId',
searchOpen: false, searchOpen: false,
btn: [ btn: [],
{
type: 'success',
id: 'meter-go-out-entrust-add-btn',
name: '添加'
},
{
type: 'success',
id: 'meter-go-out-entrust-submit-btn',
name: '提交'
}
],
iconMsg: [ iconMsg: [
{ // {
type: 'md-create', // type: 'md-create',
id: '', // id: '',
name: '编辑' // name: '编辑'
}, // },
{ {
type: 'ios-contact', type: 'ios-contact',
id: '', id: '',
......
...@@ -45,15 +45,12 @@ ...@@ -45,15 +45,12 @@
</Row> </Row>
</div> </div>
</div> </div>
<MeterSubcontractorEdit ref="editSubcontractorModal" @on-result-change="_formSearch"></MeterSubcontractorEdit>
</div> </div>
</template> </template>
<script> <script>
import { meterEntrust } from '../../../api' import { meterEntrust } from '../../../api'
import MeterSubcontractorEdit from './MeterGoOutTestEdit'
export default { export default {
components: { MeterSubcontractorEdit }, components: {},
data() { data() {
return { return {
currentComponent: '', currentComponent: '',
......
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