添加虚拟清单列表页
This commit is contained in:
@@ -592,4 +592,10 @@ module.exports = {
|
|||||||
personLiable: 'person liable',
|
personLiable: 'person liable',
|
||||||
PrehomoConfirmation:'Prehomo confirmation',
|
PrehomoConfirmation:'Prehomo confirmation',
|
||||||
verificationAndConformityconfirmation:'Verification and conformity confirmation',
|
verificationAndConformityconfirmation:'Verification and conformity confirmation',
|
||||||
|
StandardImplementationDate:'Standard implementation date',
|
||||||
|
regulatoryEngineer:'Regulatory Engineer',
|
||||||
|
certifiedEngineer:'Certified Engineer',
|
||||||
|
engineeringInterfacePerson:'Engineering interface person',
|
||||||
|
typeOfDeliverables:'Type of deliverables',
|
||||||
|
deliverableTemplate:'Deliverable template',
|
||||||
}
|
}
|
||||||
@@ -596,4 +596,10 @@ module.exports = {
|
|||||||
personLiable:'责任人',
|
personLiable:'责任人',
|
||||||
PrehomoConfirmation:'Prehomo确认',
|
PrehomoConfirmation:'Prehomo确认',
|
||||||
verificationAndConformityconfirmation:'验证符合性确认',
|
verificationAndConformityconfirmation:'验证符合性确认',
|
||||||
|
StandardImplementationDate:'标准实施日期',
|
||||||
|
regulatoryEngineer:'法规工程师',
|
||||||
|
certifiedEngineer:'认证工程师',
|
||||||
|
engineeringInterfacePerson:'工程接口人',
|
||||||
|
typeOfDeliverables:'交付物类型',
|
||||||
|
deliverableTemplate:'交付物模板',
|
||||||
}
|
}
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="box-title-text">
|
<div class="box-title-text">
|
||||||
<a-input class="box-input" :value="value" @input="indexclick($event)"
|
<a-input class="box-input" :value="value" @input="indexclick($event)"
|
||||||
|
:disabled="true"
|
||||||
:placeholder="$t('PleaseEnterOrSelect')+query.db_field_txt"/>
|
:placeholder="$t('PleaseEnterOrSelect')+query.db_field_txt"/>
|
||||||
<a-button type="primary" class="button-box" @click="standardClick">
|
<a-button type="primary" class="button-box" @click="standardClick">
|
||||||
{{this.$t('PersonnelSelection')}}
|
{{this.$t('PersonnelSelection')}}
|
||||||
|
|||||||
@@ -2,7 +2,70 @@
|
|||||||
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :md="12" :sm="8" v-for="(item,index) in searchList" :key="index" style="line-height: 48px">
|
<a-col :md="12" :sm="8" v-for="(item,index) in searchList" :key="index" style="line-height: 48px">
|
||||||
<template>
|
<template v-if="index < 3">
|
||||||
|
<div class="box-title-text" v-if="item.field_show_type == '0'">
|
||||||
|
<div class="title-text" :title="item.db_field_txt">
|
||||||
|
<span>{{item.db_field_txt}}</span>
|
||||||
|
</div>
|
||||||
|
<a-tree-select
|
||||||
|
class="box-input"
|
||||||
|
v-model="queryParam[item.db_field_name]"
|
||||||
|
:maxTagCount="1"
|
||||||
|
:tree-data="item.tree"
|
||||||
|
tree-checkable
|
||||||
|
:placeholder="$t('PleaseSelect')+item.db_field_txt"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="box-title-text" v-else-if="item.field_show_type == '1' || item.field_show_type == '8' ||
|
||||||
|
item.field_show_type == '9' || item.field_show_type == '10' || item.field_show_type == '11'">
|
||||||
|
<div class="title-text" :title="item.db_field_txt">
|
||||||
|
<span>{{item.db_field_txt}}</span>
|
||||||
|
</div>
|
||||||
|
<a-input class="box-input" :placeholder="$t('PleaseEnter')+item.db_field_txt"
|
||||||
|
v-model="queryParam[item.db_field_name]"></a-input>
|
||||||
|
</div>
|
||||||
|
<div class="box-title-text" v-if="item.field_show_type == '2'">
|
||||||
|
<div class="title-text" :title="item.db_field_txt">
|
||||||
|
<span>{{item.db_field_txt}}</span>
|
||||||
|
</div>
|
||||||
|
<a-input-number class="box-input" :placeholder="$t('PleaseEnter')+item.db_field_txt"
|
||||||
|
v-model="queryParam[item.db_field_name]" :min="1" :max="99999999"/>
|
||||||
|
</div>
|
||||||
|
<div class="box-title-text" v-else-if="item.field_show_type == '4'">
|
||||||
|
<div class="title-text" :title="item.db_field_txt">
|
||||||
|
<span>{{item.db_field_txt}}</span>
|
||||||
|
</div>
|
||||||
|
<j-multi-select-tag class="box-input" v-model="queryParam[item.db_field_name]"
|
||||||
|
:placeholder="$t('PleaseSelect')+item.db_field_txt" :type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="item.dict_field"/>
|
||||||
|
</div>
|
||||||
|
<div class="box-title-text" v-else-if="item.field_show_type == '6' || item.field_show_type == '5'">
|
||||||
|
<div class="title-text" :title="item.db_field_txt">
|
||||||
|
<span>{{item.db_field_txt}}</span>
|
||||||
|
</div>
|
||||||
|
<a-range-picker class="box-input" v-model="queryParam[item.db_field_name]"
|
||||||
|
@change="onChange(item.db_field_name)"></a-range-picker>
|
||||||
|
</div>
|
||||||
|
<!-- <div class="box-title-text" v-else-if="item.field_show_type == '5'">-->
|
||||||
|
<!-- <div class="title-text" :title="item.db_field_txt">-->
|
||||||
|
<!-- <span>{{item.db_field_txt}}</span>-->
|
||||||
|
<!-- </div>-->
|
||||||
|
<!-- <a-date-picker class="box-input"-->
|
||||||
|
<!-- :placeholder="$t('PleaseSelect')+item.db_field_txt"-->
|
||||||
|
<!-- @change="dateChange(item.db_field_name)"-->
|
||||||
|
<!-- v-model="queryParam[item.db_field_name]"/>-->
|
||||||
|
<!-- </div>-->
|
||||||
|
<div class="box-title-text" v-else-if="item.field_show_type == '3'">
|
||||||
|
<div class="title-text" :title="item.db_field_txt">
|
||||||
|
<span>{{item.db_field_txt}}</span>
|
||||||
|
</div>
|
||||||
|
<j-dict-select-tag class="box-input" v-model="queryParam[item.db_field_name]"
|
||||||
|
:placeholder="$t('PleaseSelect')+item.db_field_txt"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="item.dict_field"/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template v-if="index >= 3 && toggleSearchStatus">
|
||||||
<div class="box-title-text" v-if="item.field_show_type == '0'">
|
<div class="box-title-text" v-if="item.field_show_type == '0'">
|
||||||
<div class="title-text" :title="item.db_field_txt">
|
<div class="title-text" :title="item.db_field_txt">
|
||||||
<span>{{item.db_field_txt}}</span>
|
<span>{{item.db_field_txt}}</span>
|
||||||
@@ -70,6 +133,10 @@
|
|||||||
class="table-page-search-submitButtons">
|
class="table-page-search-submitButtons">
|
||||||
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
||||||
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
|
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
|
||||||
|
<a @click="handleToggleSearch" style="margin-left: 8px" v-if="searchList.length > 3">
|
||||||
|
{{ !toggleSearchStatus ? $t('open') : $t('away') }}
|
||||||
|
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
||||||
|
</a>
|
||||||
</span>
|
</span>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
@@ -130,6 +197,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.queryParam[item] = []
|
this.queryParam[item] = []
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
handleToggleSearch() {
|
||||||
|
this.toggleSearchStatus = !this.toggleSearchStatus
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,177 @@
|
|||||||
|
<template>
|
||||||
|
<a-drawer
|
||||||
|
title="添加"
|
||||||
|
:maskClosable="false"
|
||||||
|
:width="1000"
|
||||||
|
placement="right"
|
||||||
|
:closable="true"
|
||||||
|
@close="handleCancel"
|
||||||
|
:visible="visible"
|
||||||
|
style="height: 100%;overflow: auto;padding-bottom: 53px;">
|
||||||
|
<div style="margin-bottom: 60px">
|
||||||
|
<currencySearch
|
||||||
|
:flag="'1'"
|
||||||
|
:url="url"
|
||||||
|
@searchQuery="searchQuery"
|
||||||
|
@searchReset="searchReset"
|
||||||
|
/>
|
||||||
|
<a-table
|
||||||
|
:columns="columns"
|
||||||
|
rowKey="id"
|
||||||
|
:data-source="dataList"
|
||||||
|
:pagination="false"
|
||||||
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
|
:loading="loading">
|
||||||
|
|
||||||
|
</a-table>
|
||||||
|
<div class="page" v-if="dataList.length > 0">
|
||||||
|
<a-pagination
|
||||||
|
:show-total="total => $t('total')+`${total}`+$t('strip')"
|
||||||
|
show-quick-jumper
|
||||||
|
show-size-changer
|
||||||
|
:page-size.sync="pageSize"
|
||||||
|
:total="total"
|
||||||
|
@change="onChange"
|
||||||
|
@showSizeChange="SizeChange"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="drawer-bootom-button">
|
||||||
|
<a-button @click="handleCancel" type="danger" style="margin-right: 16px">{{$t('cancel')}}</a-button>
|
||||||
|
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
||||||
|
</div>
|
||||||
|
</a-drawer>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import currencySearch from '@/components/currencySearch/index'
|
||||||
|
import { getAction, postAction } from '@/api/manage'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'addModel',
|
||||||
|
components: {
|
||||||
|
currencySearch
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
confirmLoading: false,
|
||||||
|
selectedRowKeys: [],
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
title: this.$t('standard'),
|
||||||
|
dataIndex: 'serial_number',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('title'),
|
||||||
|
dataIndex: 'title',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('status'),
|
||||||
|
dataIndex: 'state',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('technicalField'),
|
||||||
|
dataIndex: 'technicalField',
|
||||||
|
align: 'center'
|
||||||
|
}, {
|
||||||
|
title: this.$t('functionalAreas'),
|
||||||
|
dataIndex: 'functionalAreas',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('StandardImplementationDate'),
|
||||||
|
dataIndex: 'StandardImplementationDate',
|
||||||
|
align: 'center'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('correspondingStandard'),
|
||||||
|
dataIndex: 'correspondingStandard',
|
||||||
|
align: 'center'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
dataList: [],
|
||||||
|
content: [],
|
||||||
|
loading: false,
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
total: 0,
|
||||||
|
url: {
|
||||||
|
seachList: 'document/bussDocumentLibraryEO/queryCondition' //搜索字段
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
addModel() {
|
||||||
|
this.visible = true
|
||||||
|
this.selectedRowKeys = []
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
searchQuery(queryParam) {
|
||||||
|
let queryParamQuery = JSON.parse(JSON.stringify(queryParam))
|
||||||
|
Object.keys(queryParamQuery).forEach(res => {
|
||||||
|
if (queryParamQuery[res] instanceof Array) {
|
||||||
|
queryParamQuery[res] = queryParamQuery[res].join(',')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.queryParam = queryParamQuery
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
searchReset(queryParam) {
|
||||||
|
this.queryParam = queryParam
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
onChange(page, pageSize) {
|
||||||
|
this.pageNo = page
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
SizeChange(page, pageSize) {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.pageSize = pageSize
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
replacePage() {
|
||||||
|
|
||||||
|
},
|
||||||
|
onSelectChange(value) {
|
||||||
|
this.selectedRowKeys = value
|
||||||
|
},
|
||||||
|
handleCancel() {
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
handleSubmit() {
|
||||||
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
|
this.visible = false
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.page {
|
||||||
|
text-align: right;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.drawer-bootom-button {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
border-top: 1px solid #e8e8e8;
|
||||||
|
padding: 10px 16px;
|
||||||
|
text-align: right;
|
||||||
|
left: 0;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 0 0 2px 2px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,747 @@
|
|||||||
|
<template>
|
||||||
|
<a-drawer
|
||||||
|
:title="'编辑'"
|
||||||
|
:maskClosable="false"
|
||||||
|
:width="900"
|
||||||
|
placement="right"
|
||||||
|
:closable="true"
|
||||||
|
@close="handleCancel"
|
||||||
|
:visible="visible"
|
||||||
|
style="height: 100%;overflow: auto;padding-bottom: 53px;">
|
||||||
|
<a-spin :spinning="confirmLoading">
|
||||||
|
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('standard')">{{$t('standard')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="standard">
|
||||||
|
<a-input class="box-input"
|
||||||
|
:disabled="true"
|
||||||
|
v-model="formInline.standard"
|
||||||
|
:placeholder="$t('PleaseEnter')+$t('standard')"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('title')">{{$t('title')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="title">
|
||||||
|
<a-input class="box-input"
|
||||||
|
:disabled="true"
|
||||||
|
v-model="formInline.title"
|
||||||
|
:placeholder="$t('PleaseEnter')+$t('title')"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('subtitle')">{{$t('subtitle')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="subtitle">
|
||||||
|
<a-input class="box-input"
|
||||||
|
:disabled="true"
|
||||||
|
v-model="formInline.subtitle"
|
||||||
|
:placeholder="$t('PleaseEnter')+$t('subtitle')"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="'WVTA ID'">WVTA ID</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="WVTAID">
|
||||||
|
<a-input class="box-input"
|
||||||
|
:disabled="true"
|
||||||
|
v-model="formInline.WVTAID"
|
||||||
|
:placeholder="$t('PleaseEnter')+'WVTA ID'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('correspondingStandard')">{{$t('correspondingStandard')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" :prop="'correspondingStandard'">
|
||||||
|
<Standardselection :query="{db_field_name:'correspondingStandard',
|
||||||
|
db_field_txt:$t('correspondingStandard'),}"
|
||||||
|
@change="StandardselectionChange"
|
||||||
|
:disabled="disabled"
|
||||||
|
:standard="formInline"
|
||||||
|
v-model="formInline.correspondingStandard"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('implementationCategory')">{{$t('implementationCategory')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="implementationCategory">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.implementationCategory"
|
||||||
|
:disabled="disabled"
|
||||||
|
@input="handleInput('implementationCategory')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('implementationCategory')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('vehicleInProductionDate')">{{$t('vehicleInProductionDate')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" :prop="'vehicleInProductionDate'">
|
||||||
|
<a-date-picker class="box-input"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('vehicleInProductionDate')"
|
||||||
|
@change="dateChange({db_field_name:'vehicleInProductionDate'})"
|
||||||
|
format="YYYY-MM-DD"
|
||||||
|
v-model="formInline.vehicleInProductionDate"
|
||||||
|
:disabled="disabled"
|
||||||
|
style="width: 100%"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('ImplementationDate')">{{$t('ImplementationDate')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" :prop="'ImplementationDate'">
|
||||||
|
<a-date-picker class="box-input"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('ImplementationDate')"
|
||||||
|
@change="dateChange({db_field_name:'ImplementationDate'})"
|
||||||
|
format="YYYY-MM-DD"
|
||||||
|
v-model="formInline.ImplementationDate"
|
||||||
|
:disabled="disabled"
|
||||||
|
style="width: 100%"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('certificationType')">{{$t('certificationType')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="certificationType">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.certificationType"
|
||||||
|
:disabled="disabled"
|
||||||
|
@input="handleInput('certificationType')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('certificationType')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('certificationLevel')">{{$t('certificationLevel')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="certificationLevel">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.certificationLevel"
|
||||||
|
:disabled="disabled"
|
||||||
|
@input="handleInput('certificationLevel')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('certificationLevel')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('areaOfResponsibility')">{{$t('areaOfResponsibility')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="areaOfResponsibility">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.areaOfResponsibility"
|
||||||
|
:disabled="disabled"
|
||||||
|
@input="handleInput('areaOfResponsibility')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('regulatoryEngineer')">{{$t('regulatoryEngineer')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" :prop="'regulatoryEngineer'">
|
||||||
|
<PersonnelSelection :query="{db_field_name:'regulatoryEngineer',db_field_txt:$t('regulatoryEngineer')}"
|
||||||
|
:personneQuery="formInline"
|
||||||
|
@change="PersonnelSelectionChange"
|
||||||
|
:disabled="disabled"
|
||||||
|
v-model="formInline.regulatoryEngineer"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('certifiedEngineer')">{{$t('certifiedEngineer')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" :prop="'certifiedEngineer'">
|
||||||
|
<PersonnelSelection :query="{db_field_name:'certifiedEngineer',db_field_txt:$t('certifiedEngineer')}"
|
||||||
|
:personneQuery="formInline"
|
||||||
|
@change="PersonnelSelectionChange"
|
||||||
|
:disabled="disabled"
|
||||||
|
v-model="formInline.certifiedEngineer"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('engineeringInterfacePerson')">{{$t('engineeringInterfacePerson')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" :prop="'engineeringInterfacePerson'">
|
||||||
|
<PersonnelSelection
|
||||||
|
:query="{db_field_name:'engineeringInterfacePerson',db_field_txt:$t('engineeringInterfacePerson')}"
|
||||||
|
:personneQuery="formInline"
|
||||||
|
@change="PersonnelSelectionChange"
|
||||||
|
:disabled="disabled"
|
||||||
|
v-model="formInline.engineeringInterfacePerson"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text" :title="$t('remarks')">{{$t('remarks')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" :prop="'remarks'">
|
||||||
|
<a-textarea
|
||||||
|
:placeholder="$t('PleaseEnter')+$t('remarks')"
|
||||||
|
:disabled="disabled"
|
||||||
|
v-model="formInline.remarks" :rows="4"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<div class="header-text">
|
||||||
|
{{$t('confirmationOfDesignConformity')}}
|
||||||
|
</div>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('typeOfDeliverables')">{{$t('typeOfDeliverables')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="typeOfDeliverables">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.typeOfDeliverables"
|
||||||
|
:disabled="disabled"
|
||||||
|
@input="handleInput('typeOfDeliverables')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('typeOfDeliverables')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('deliverableTemplate')">{{$t('deliverableTemplate')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="deliverableTemplate">
|
||||||
|
<a-button type="primary" class="button-text"
|
||||||
|
@click="clickButtonToUpload('deliverableTemplate')">
|
||||||
|
{{ (formInline.deliverableTemplate === 'null' || formInline.deliverableTemplate === '' ||
|
||||||
|
formInline.deliverableTemplate == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||||
|
}}
|
||||||
|
</a-button>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('Sponsor')">{{$t('Sponsor')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="Sponsor">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.Sponsor"
|
||||||
|
:disabled="disabled"
|
||||||
|
@input="handleInput('Sponsor')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('Sponsor')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('personLiable')">{{$t('personLiable')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="personLiable">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.personLiable"
|
||||||
|
:disabled="disabled"
|
||||||
|
@input="handleInput('personLiable')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('personLiable')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('cutoffTime')">{{$t('cutoffTime')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" :prop="'cutoffTime'">
|
||||||
|
<a-date-picker class="box-input"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('cutoffTime')"
|
||||||
|
@change="dateChange({db_field_name:'cutoffTime'})"
|
||||||
|
format="YYYY-MM-DD"
|
||||||
|
v-model="formInline.cutoffTime"
|
||||||
|
:disabled="disabled"
|
||||||
|
style="width: 100%"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<div class="header-text">
|
||||||
|
{{$t('PrehomoConfirmation')}}
|
||||||
|
</div>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('typeOfDeliverables')">{{$t('typeOfDeliverables')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="typeOfDeliverables">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.typeOfDeliverables"
|
||||||
|
:disabled="disabled"
|
||||||
|
@input="handleInput('typeOfDeliverables')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('typeOfDeliverables')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('deliverableTemplate')">{{$t('deliverableTemplate')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="deliverableTemplate">
|
||||||
|
<a-button type="primary" class="button-text"
|
||||||
|
@click="clickButtonToUpload('deliverableTemplate')">
|
||||||
|
{{ (formInline.deliverableTemplate === 'null' || formInline.deliverableTemplate === '' ||
|
||||||
|
formInline.deliverableTemplate == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||||
|
}}
|
||||||
|
</a-button>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('Sponsor')">{{$t('Sponsor')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="Sponsor">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.Sponsor"
|
||||||
|
:disabled="disabled"
|
||||||
|
@input="handleInput('Sponsor')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('Sponsor')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('personLiable')">{{$t('personLiable')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="personLiable">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.personLiable"
|
||||||
|
:disabled="disabled"
|
||||||
|
@input="handleInput('personLiable')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('personLiable')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('cutoffTime')">{{$t('cutoffTime')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" :prop="'cutoffTime'">
|
||||||
|
<a-date-picker class="box-input"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('cutoffTime')"
|
||||||
|
@change="dateChange({db_field_name:'cutoffTime'})"
|
||||||
|
format="YYYY-MM-DD"
|
||||||
|
v-model="formInline.cutoffTime"
|
||||||
|
:disabled="disabled"
|
||||||
|
style="width: 100%"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<div class="header-text">
|
||||||
|
{{$t('verificationAndConformityconfirmation')}}
|
||||||
|
</div>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('typeOfDeliverables')">{{$t('typeOfDeliverables')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="typeOfDeliverables">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.typeOfDeliverables"
|
||||||
|
:disabled="disabled"
|
||||||
|
@input="handleInput('typeOfDeliverables')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('typeOfDeliverables')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('deliverableTemplate')">{{$t('deliverableTemplate')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="deliverableTemplate">
|
||||||
|
<a-button type="primary" class="button-text"
|
||||||
|
@click="clickButtonToUpload('deliverableTemplate')">
|
||||||
|
{{ (formInline.deliverableTemplate === 'null' || formInline.deliverableTemplate === '' ||
|
||||||
|
formInline.deliverableTemplate == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||||
|
}}
|
||||||
|
</a-button>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('Sponsor')">{{$t('Sponsor')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="Sponsor">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.Sponsor"
|
||||||
|
:disabled="disabled"
|
||||||
|
@input="handleInput('Sponsor')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('Sponsor')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('personLiable')">{{$t('personLiable')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="personLiable">
|
||||||
|
<j-dict-select-tag class="box-input" v-model="formInline.personLiable"
|
||||||
|
:disabled="disabled"
|
||||||
|
@input="handleInput('personLiable')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('personLiable')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'dict_field'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('cutoffTime')">{{$t('cutoffTime')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" :prop="'cutoffTime'">
|
||||||
|
<a-date-picker class="box-input"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('cutoffTime')"
|
||||||
|
@change="dateChange({db_field_name:'cutoffTime'})"
|
||||||
|
format="YYYY-MM-DD"
|
||||||
|
v-model="formInline.cutoffTime"
|
||||||
|
:disabled="disabled"
|
||||||
|
style="width: 100%"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-form-model>
|
||||||
|
</a-spin>
|
||||||
|
<div class="drawer-bootom-button">
|
||||||
|
<a-button style="margin-right: .8rem" @click="handleCancel">{{$t('cancel')}}</a-button>
|
||||||
|
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
||||||
|
</div>
|
||||||
|
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
|
||||||
|
</a-drawer>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Standardselection from '@/components/Standardselection/index'
|
||||||
|
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
||||||
|
import { getAction, postAction } from '@/api/manage'
|
||||||
|
import uploadFile from '@/components/uploadFile/file'
|
||||||
|
import moment from 'moment'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'editModel',
|
||||||
|
components: {
|
||||||
|
Standardselection,
|
||||||
|
PersonnelSelection,
|
||||||
|
uploadFile
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
confirmLoading: false,
|
||||||
|
rules: {},
|
||||||
|
formInline: {},
|
||||||
|
disabled: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
editModel() {
|
||||||
|
this.visible = true
|
||||||
|
this.formInline = {}
|
||||||
|
},
|
||||||
|
clickButtonToUpload(item) {
|
||||||
|
this.$refs.uploadFile.perentHandleFunc()
|
||||||
|
this.$refs.uploadFile.visible = true
|
||||||
|
this.uploadName = item
|
||||||
|
getAction('sys/common/getFileInfos', { id: this.formInline[item] }).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$refs.uploadFile.perentHandleFunc(res.result)
|
||||||
|
} else {
|
||||||
|
this.$refs.uploadFile.perentHandleFunc()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/** 上传文件的回调 */
|
||||||
|
uploadSuccess(data) {
|
||||||
|
let attIdList = []
|
||||||
|
if (data && data.length > 0) {
|
||||||
|
data.map(item => {
|
||||||
|
attIdList.push(item.id || data.name)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
/** 赋值给当前对应的表单文件 */
|
||||||
|
this.formInline[this.uploadName] = attIdList.join(',')
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
|
},
|
||||||
|
handleCancel() {
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
handleSubmit() {
|
||||||
|
|
||||||
|
},
|
||||||
|
handleInput(value) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
|
this.$refs.ruleForm.validateField([value])
|
||||||
|
})
|
||||||
|
},
|
||||||
|
StandardselectionChange(value, id) {
|
||||||
|
this.formInline[value + '_id'] = id
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
|
},
|
||||||
|
dateChange(item) {
|
||||||
|
this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : ''
|
||||||
|
},
|
||||||
|
PersonnelSelectionChange(value, id) {
|
||||||
|
this.formInline[value + '_id'] = id
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
.formAdd .ant-form-item-label {
|
||||||
|
width: 130px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formAdd .ant-form-item-control-wrapper {
|
||||||
|
display: inline-block;
|
||||||
|
width: calc(100% - 130px);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*.formAdd .ant-form-item {*/
|
||||||
|
/* margin-bottom: 20px;*/
|
||||||
|
/*}*/
|
||||||
|
|
||||||
|
.itemModel .ant-form-item-control-wrapper {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-select-selection--single {
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-select-selection--multiple {
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-select-selection__rendered {
|
||||||
|
line-height: 38px;
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-select-selection--multiple .ant-select-selection__rendered > ul > li {
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-calendar-picker {
|
||||||
|
line-height: 38px;
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-calendar-picker-input {
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input .ant-input-number-input-wrap {
|
||||||
|
line-height: 38px;
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style scoped>
|
||||||
|
.box-title-text {
|
||||||
|
line-height: 1.4;
|
||||||
|
display: flex;
|
||||||
|
/*align-items: center;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-text {
|
||||||
|
width: 114px;
|
||||||
|
text-align: right;
|
||||||
|
display: inline-block;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-right: 16px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
height: 42px;
|
||||||
|
line-height: 48px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input {
|
||||||
|
display: inline-block;
|
||||||
|
height: 38px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.itemModel {
|
||||||
|
width: calc(100% - 130px);
|
||||||
|
display: inline-block;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Required {
|
||||||
|
color: red;
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-text-text {
|
||||||
|
margin-top: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-text {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-left: 15px;
|
||||||
|
/*border-bottom: 1px #d9d9d9 dashed;*/
|
||||||
|
height: 30px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formAdd {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-text {
|
||||||
|
height: 38px;
|
||||||
|
width: calc(100% - 100px);
|
||||||
|
line-height: 38px;
|
||||||
|
background: #fff;
|
||||||
|
border: 1px #00B3BE solid;
|
||||||
|
color: #00B3BE;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-text-text {
|
||||||
|
position: absolute;
|
||||||
|
right: -10px;
|
||||||
|
top: -21px;
|
||||||
|
display: inline-block;
|
||||||
|
padding: 6px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: red;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 6px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.drawer-bootom-button {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
border-top: 1px solid #e8e8e8;
|
||||||
|
padding: 10px 16px;
|
||||||
|
text-align: right;
|
||||||
|
left: 0;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 0 0 2px 2px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -115,16 +115,21 @@
|
|||||||
</a-card>
|
</a-card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<addModel ref="addModelRef"/>
|
||||||
|
<editModel ref="editModelRef"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ImportFile from '@/components/ImportFile/index'
|
import ImportFile from '@/components/ImportFile/index'
|
||||||
|
import addModel from './addModel'
|
||||||
|
import editModel from './editModel'
|
||||||
export default {
|
export default {
|
||||||
name: 'virtualListDetails',
|
name: 'virtualListDetails',
|
||||||
components: {
|
components: {
|
||||||
ImportFile
|
ImportFile,
|
||||||
|
addModel,
|
||||||
|
editModel
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -311,10 +316,10 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
|
this.$refs.addModelRef.addModel()
|
||||||
},
|
},
|
||||||
handleDel() {
|
handleDel() {
|
||||||
|
this.$refs.editModelRef.editModel()
|
||||||
},
|
},
|
||||||
onSelectChange(value) {
|
onSelectChange(value) {
|
||||||
this.selectedRowKeys = value
|
this.selectedRowKeys = value
|
||||||
|
|||||||
Reference in New Issue
Block a user