ota中英文翻译

This commit is contained in:
zyx.net
2023-03-17 17:57:40 +08:00
parent 012bec4a81
commit 631e9993ff
8 changed files with 1968 additions and 676 deletions
@@ -0,0 +1,267 @@
<template>
<a-modal
:title="$t('recordmaintenance')"
:width="600"
:visible="visible"
:confirm-loading="confirmLoading"
:maskClosable="false"
@ok="handleOk"
@cancel="handleCancel"
>
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
<a-row :gutter="24">
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
<!-- <span class="Required">*</span>-->
<span class="title-text-text" :title="$t('recordstatus')">
{{$t('recordstatus')}}</span>
</div>
<a-form-model-item class="itemModel" prop="recordstatus">
<j-dict-select-tag class="box-input" v-model="formInline.recordstatus"
:placeholder="$t('PleaseSelect')+$t('recordstatus')"
:type="'select'"
:triggerChange="false" :dictCode="'recordstatus'"/>
</a-form-model-item>
</div>
</a-col>
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
<!-- <span class="Required">*</span>-->
<span class="title-text-text" :title="$t('filingtime')">
{{$t('filingtime')}}</span>
</div>
<a-form-model-item class="itemModel" prop="filingtime">
<a-date-picker class="box-input"
:placeholder="$t('PleaseSelect')+$t('filingtime')"
@change="dateChange({db_field_name:'filingtime'})"
format="YYYY-MM-DD"
:getCalendarContainer="(trigger) => trigger.parentNode"
v-model="formInline.filingtime"
:disabled="false"
style="width: 100%"/>
</a-form-model-item>
</div>
</a-col>
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
<!-- <span class="Required">*</span>-->
<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')"
v-model="formInline.remark"
:rows="4"/>
</a-form-model-item>
</div>
</a-col>
</a-row>
</a-form-model>
</a-modal>
</template>
<script>
import { getAction, postAction, putAction } from '@/api/manage'
import moment from 'moment'
export default {
name: 'settingList',
props: ['url'],
data() {
return {
visible: false,
confirmLoading: false,
formInline: {},
rules: {
// listConfirmation: [
// {
// required: true,
// message: this.$t('confirmationOfRegulationsList') + this.$t('cannotEmpty'),
// trigger: 'change'
// }
// ],
// legalTaskConfirmation: [
// {
// required: true,
// message: this.$t('regulatoryTaskConfirmation') + this.$t('cannotEmpty'),
// trigger: 'change'
// }
// ],
// designDeadline: [
// {
// required: true,
// message: this.$t('confirmationOfDesignConformity') + this.$t('cannotEmpty'),
// trigger: 'change'
// }
// ],
// prehomoDeadline: [
// {
// required: true,
// message: this.$t('preHomoCompletion') + this.$t('cannotEmpty'),
// trigger: 'change'
// }
// ],
// attestationStartTime: [
// {
// required: true,
// message: this.$t('certificationStart') + this.$t('cannotEmpty'),
// trigger: 'change'
// }
// ],
// attestationEndTime: [
// {
// required: true,
// message: this.$t('certificationEnd') + this.$t('cannotEmpty'),
// trigger: 'change'
// }
// ],
// verifyDeadline: [
// {
// required: true,
// message: this.$t('verificationConfirmationDeadline') + this.$t('cannotEmpty'),
// trigger: 'change'
// }
// ]
},
ids: []
}
},
mounted() {
},
methods: {
edit(row) {
console.log(row)
this.visible = true
this.$nextTick(() => {
this.$refs.ruleForm.clearValidate()
})
},
handleOk() {
this.$refs.ruleForm.validate(valid => {
if (valid) {
let query = {
...this.formInline,
}
this.confirmLoading = true
postAction('', query).then((res) => {
if (res.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.visible = false
this.confirmLoading = false
this.$emit('settingListForm')
} else {
this.$message.warning(this.$t('operationFailed'))
this.confirmLoading = false
}
})
}
})
},
handleCancel() {
this.formInline = {}
this.visible = false
},
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') : ''
}
}
}
</script>
<style>
.formAdd .ant-form-item-label {
width: 130px;
}
.formAdd .ant-form-item-control-wrapper {
display: inline-block;
width: 100%;
}
/*.formAdd .ant-form-item {*/
/* margin-bottom: 20px;*/
/*}*/
.itemModel .ant-form-item-control-wrapper {
width: 90%;
}
.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;
}
.title-text {
width: 144px;
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: 42px;
}
.box-input {
display: inline-block;
height: 38px;
width: 100%;
}
.itemModel {
width: calc(100% - 130px);
display: inline-block;
margin-top: 2px;
}
.title-text-text {
margin-top: 9px;
}
.formAdd {
margin-bottom: 40px;
}
.Required {
color: red;
margin-right: 3px;
}
</style>
@@ -0,0 +1,395 @@
<template>
<div>
<a-drawer
:title="$t('upgradecompletion')"
:maskClosable="false"
:width="1000"
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" :rules="rules" ref="ruleForm">
<a-row :gutter="24">
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text" :title="$t ('implementedupgrade')">{{$t('implementedupgrade')}}</span>
</div>
<a-form-model-item class="itemModel" prop="implementedupgrade">
<a-radio-group style="margin-top: 2px" class="box-input" v-model="formInline.implementedupgrade">
<a-radio value="0">
{{$t('yes')}}
</a-radio>
<a-radio value="1">
{{$t('not')}}
</a-radio>
</a-radio-group>
<!-- <j-dict-select-tag class="box-input"-->
<!-- :disabled="disabled"-->
<!-- @input="handleInput('implementedupgrade')"-->
<!-- v-model="formInline.implementedupgrade"-->
<!-- :placeholder="$t('PleaseSelect')+$t('implementedupgrade')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'duty_territory'"/>-->
</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('numberofvehicles')">{{$t('numberofvehicles')}}</span>
</div>
<a-form-model-item class="itemModel" prop="numberofvehicles">
<a-input class="box-input"
v-model='formInline.numberofvehicles'
:disabled="disabled"
:placeholder="$t('PleaseEnter')+$t('numberofvehicles')"/>
</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('VINcodelist')">{{$t('VINcodelist')}}</span>
</div>
<a-form-model-item class="itemModel" prop="VINcodelist">
<a-button type="primary" class="button-text"
@click="clickButtonToUpload('VINcodelist')">
{{ (formInline.VINcodelist === 'null' || formInline.VINcodelist === '' ||
formInline.VINcodelist == null) ? $t('clickUpload') : $t('viewUploadedFiles')
}}
</a-button>
</a-form-model-item>
</div>
</a-col>
</a-row>
<div v-for="(item,index) in formInline.dataList" :key="index">
<div class="header-text">
{{$t('vehicleshavenotcompletedonlineupgrade')}}
<a-icon class="icon-text" @click="addClick(index)" type="plus-circle"/>
<a-icon class="icon-text" v-if="formInline.dataList.length > 1" @click="deleteClick(index)"
type="minus-circle"/>
</div>
<div style='margin-left: 25px'>
<a-row :gutter="24">
<a-col :span="12">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text" :title="$t('cause') + (index+1)">{{$t('cause') + (index+1)}}</span>
</div>
<a-form-model-item class="itemModel">
<a-textarea class="box-input"
v-model="item.cause"
:placeholder="$t('PleaseEnter')+$t('cause')"/>
</a-form-model-item>
</div>
</a-col>
<a-col :span="12" style='margin-left: -49px'>
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text" :title="$t('Quantity')">{{$t('Quantity')}}</span>
</div>
<!-- :prop="'dataList.'+index+'.inspectionItem'"-->
<!-- :rules="[{ required: true, message: $t('inspectionItems') + $t('cannotEmpty'), trigger: 'blur'},-->
<!-- {max: 300,message: $t('inspectionItems') + $t('cannotExceed') + 300 + $t('Characters'),trigger: 'blur'}]"-->
<a-form-model-item class="itemModel">
<a-input class="box-input"
v-model="item.Quantity"
:placeholder="$t('PleaseEnter')+$t('Quantity')"/>
</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"></span>
</div>
<!-- :prop="'dataList.'+index+'.inspectionItem'"-->
<!-- :rules="[{ required: true, message: $t('inspectionItems') + $t('cannotEmpty'), trigger: 'blur'},-->
<!-- {max: 300,message: $t('inspectionItems') + $t('cannotExceed') + 300 + $t('Characters'),trigger: 'blur'}]"-->
<a-form-model-item class="itemModel">
<a-button type="primary" class="button-text"
@click="clickButtonToUpload('VINcodelist')">
{{ (formInline.VINcodelist === 'null' || formInline.VINcodelist === '' ||
formInline.VINcodelist == null) ? $t('clickUpload') : $t('viewUploadedFiles')
}}
</a-button>
</a-form-model-item>
</div>
</a-col>
</a-row>
</div>
</div>
<a-row :gutter="24">
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
<span class="title-text-text" :title="$t('implementationrecords')">{{$t('implementationrecords')}}</span>
</div>
<a-form-model-item class="itemModel" prop="implementationrecords">
<a-textarea
:placeholder="$t('PleaseEnter')+$t('implementationrecords')"
:disabled="disabled"
v-model="formInline.implementationrecords"/>
</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"></span>
</div>
<a-form-model-item class="itemModel" prop="VINcodelist">
<a-button type="primary" class="button-text"
@click="clickButtonToUpload('VINcodelist')">
{{ (formInline.VINcodelist === 'null' || formInline.VINcodelist === '' ||
formInline.VINcodelist == null) ? $t('clickUpload') : $t('viewUploadedFiles')
}}
</a-button>
</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 type="primary" @click="handleSubmit" :loading="confirmLoading">{{$t('submit')}}</a-button>
</div>
</a-drawer>
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
</div>
</template>
<script>
import { getAction, postAction } from '@/api/manage'
import uploadFile from '@/components/uploadFile/file'
import { mapGetters } from 'vuex'
export default {
name:"addModel",
props: ['url'],
components:{
uploadFile
},
data() {
return {
visible: false,
disabled: false,
formInline: {},
confirmLoading: false,
projectNameList: [],
DeliverableTreeList: [],
rules: {
serialNumber: [
{
required: true,
message: this.$t('entryName') + this.$t('regulationNo'),
trigger: 'change'
}
],
dutyTerritory: [
{
required: true,
message: this.$t('entryName') + this.$t('areaOfResponsibility'),
trigger: 'change'
}
],
wvtaId: [
{
required: true,
message: 'WVTA ID' + this.$t('regulationNo'),
trigger: 'blur'
},
{
max: 300,
message: 'WVTA ID' + this.$t('cannotExceed') + 300 + this.$t('Characters'),
trigger: 'blur'
}
],
},
}
},
mounted() {
this.getRegulationNo()
},
methods: {
...mapGetters(['userInfo']),
addModel() {
this.visible = true
this.formInline = {}
this.formInline.dataList = [{}]
this.$nextTick(() => {
this.formInline = { ...this.formInline }
this.$refs.ruleForm.clearValidate()
this.$refs.codeNumber.number()
})
},
handleCancel() {
this.visible = false
},
handleInput(value) {
this.$nextTick(() => {
this.formInline = { ...this.formInline }
this.$refs.ruleForm.validateField([value])
})
},
handleSubmit() {
this.$refs.ruleForm.validate(valid => {
if (valid) {
this.formInline.authDummyInventoryBaseId = this.$route.query.id
let query = JSON.parse(JSON.stringify(this.formInline))
this.confirmLoading = true
postAction(this.url.addModel, query).then((res) => {
if (res.success) {
this.confirmLoading = false
this.$message.success(this.$t('OperationSuccessful'))
this.visible = false
this.$emit('addModelList')
} else {
this.$message.warning(res.message)
this.confirmLoading = false
}
})
}
})
},
addClick(index){
this.formInline.dataList.splice(index + 1, 0, {})
this.formInline = { ...this.formInline }
},
deleteClick(index) {
this.formInline.dataList.splice(index, 1)
this.formInline = { ...this.formInline }
},
getRegulationNo() {
let query = {
projectLibraryId: this.$route.query.id,
roleCode: 0
}
getAction(this.url.number, query).then((res) => {
if (res.success) {
this.projectNameList = res.result || []
} else {
this.projectNameList = []
}
})
},
serialNumberChange(value) {
let content = this.projectNameList.filter(res => {
return res.id === value
})
this.formInline.bussDocumentLibraryId = content[0].id
this.formInline.serialNumber = content[0].serialNumber
},
regulation(item,data) {
this.formInline.serialNumber = item
this.formInline.bussDocumentLibraryId = data
this.$nextTick(()=>{
this.formInline = {... this.formInline}
this.$refs.ruleForm.validateField(['serialNumber'])
})
},
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 }
},
}
}
</script>
<style scoped>
.box-title-text {
line-height: 1.4;
display: flex;
/*align-items: center;*/
}
.title-text {
width: 250px;
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;
height: 40px;
margin-bottom: 24px;
}
.Required {
color: red;
margin-right: 4px;
}
.header-text {
font-size: 16px;
font-weight: 500;
}
.drawer-bootom-button {
position: absolute;
bottom: 0;
width: 100%;
z-index: 100;
border-top: 1px solid #e8e8e8;
padding: 10px 16px;
text-align: right;
left: 0;
background: #fff;
border-radius: 0 0 2px 2px;
}
.icon-text {
font-size: 16px;
margin-right: 4px;
}
</style>
@@ -6,70 +6,73 @@
<a-row :gutter="24">
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('standard')">
<span>{{$t('standard')}}</span>
<div class="title-text" :title="$t('upgraderegistrationnumber')">
<span>{{$t('upgraderegistrationnumber')}}</span>
</div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
v-model="queryParam.serialNumber"></j-input>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('upgraderegistrationnumber')"
v-model="queryParam.upgraderegistrationnumber"></a-input>
</div>
</a-col>
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('title')">
<span>{{$t('title')}}</span>
<div class="title-text" :title="$t('noticebatch')">
<span>{{$t('noticebatch')}}</span>
</div>
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
v-model="queryParam.title"></j-input>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('noticebatch')"
v-model="queryParam.noticebatch"></a-input>
<!-- <j-multi-select-tag class="box-input" v-model="queryParam.noticebatch"-->
<!-- :placeholder="$t('PleaseSelect')+$t('noticebatch')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'noticebatch'"/>-->
</div>
</a-col>
<a-col :md="6" :sm="8">
<div class="box-title-text tree-select">
<div class="title-text" :title="$t('technicalField')">
<span>{{$t('technicalField')}}</span>
<div class="title-text" :title="$t('producttrademark')">
<span>{{$t('producttrademark')}}</span>
</div>
<a-tree-select
tree-node-filter-prop="title"
v-model="queryParam.technologyTerritory"
:maxTagCount="1"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
class="box-input"
style="width: 100%"
:tree-data="CategoryTreeList"
tree-checkable
:placeholder="$t('PleaseSelect')+$t('technicalField')"
/>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('producttrademark')"
v-model="queryParam.producttrademark"></a-input>
<!-- <j-multi-select-tag class="box-input" v-model="queryParam.producttrademark"-->
<!-- :placeholder="$t('PleaseSelect')+$t('producttrademark')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'producttrademark'"/>-->
</div>
</a-col>
<template v-if="toggleSearchStatus">
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('ProcessStatus')">
<span>{{$t('ProcessStatus')}}</span>
<div class="title-text" :title="$t('productname')">
<span>{{$t('productname')}}</span>
</div>
<a-select :placeholder="$t('PleaseSelect')+$t('ProcessStatus')"
class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
v-model="queryParam.flowStatus">
<a-select-option v-for="(item, key) in gatherResultList"
:key="key"
:value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.name">
{{ item.name }}
</span>
</a-select-option>
</a-select>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('productname')"
v-model="queryParam.productname"></a-input>
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('productname')"-->
<!-- class="box-input"-->
<!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"-->
<!-- allowClear-->
<!-- v-model="queryParam.productname">-->
<!-- <a-select-option v-for="(item, key) in gatherResultList"-->
<!-- :key="key"-->
<!-- :value="item.value">-->
<!-- <span style="display: inline-block;width: 100%" :title=" item.name">-->
<!-- {{ item.name }}-->
<!-- </span>-->
<!-- </a-select-option>-->
<!-- </a-select>-->
</div>
</a-col>
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('brand')">
<span>{{$t('brand')}}</span>
<div class="title-text" :title="$t('productModel')">
<span>{{$t('productModel')}}</span>
</div>
<j-multi-select-tag class="box-input" v-model="queryParam.brand"
:placeholder="$t('PleaseSelect')+$t('brand')"
:type="'select'"
:triggerChange="false" :dictCode="'brand'"/>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('productModel')"
v-model="queryParam.productModel"></a-input>
<!-- <j-dict-select-tag class="box-input" v-model="queryParam.productModel"-->
<!-- :placeholder="$t('PleaseSelect')+$t('productModel')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'brand'"/>-->
</div>
</a-col>
</template>
@@ -87,17 +90,34 @@
</a-form>
</div>
<div class="table-operator">
<div @click="initiatingProcessClick"
<div @click="createvehicleandfunctionrecords"
v-has="'regulatoryAndTechnicalAssessment:initiationProcess'"
class="operator-text">
<a-icon type="solution"/>
{{$t('initiatingProcess')}}
<a-icon type="plus"/>
{{$t('createanupgradeactivityrecord')}}
</div>
<div @click="BatchDelete"
<div @click="citeforrecord"
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
class="operator-text">
<a-icon type="delete"/>
{{$t('BatchDelete')}}
<a-icon type="solution"/>
{{$t('citeforrecord')}}
</div>
<div @click="maintenanceallClick()"
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
class="operator-text">
<a-icon type="setting"/>
{{$t('datamaintenance')}}
</div>
<div v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
class="operator-text">
<ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true"
:accept="'.zip'"/>
</div>
<div @click="handleModule"
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
class="operator-text">
<a-icon type="download"/>
{{$t('templateDownload')}}
</div>
</div>
<div>
@@ -118,9 +138,14 @@
<!-- <a class="text-operation" @click="viewProcessClick(record)">{{$t('viewProcess')}}</a>-->
<!-- v-if="record.flowStatus == 'Completed'"-->
<a class="text-operation"
@click="evaluationResultsClick(record)">{{$t('evaluationResults')}}</a>
@click="detailclick(record)">{{$t('See')}}</a>
<a class="text-operation"
@click="maintenanceClick(record)">{{$t('maintenance')}}</a>
<a class="text-operation"
@click="endUpgrade(record)">{{$t('endUpgrade')}}</a>
<a class="text-operation"
@click="handleExport(record)">{{$t('export')}}</a>
<a class="text-operation"
v-if="(record.flowStatus == 'Completed' && userInfoQuery.username == record.createBy) || administrators"
v-has="'regulatoryAndTechnicalAssessment:delete'"
@click="deleteData(record)">{{$t('delete')}}</a>
</span>
@@ -138,459 +163,362 @@
/>
</div>
</div>
<a-modal
:title="$t('initiatingProcess')"
:width="600"
:visible="visible"
:maskClosable="false"
@ok="handleOk"
@cancel="visible = false"
>
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
<a-row :gutter="24">
<a-col :span="24">
<div class="box-title-text">
<div class="title-text" style="margin-top: -18px">
<span class="Required">*</span>
<span class="title-text-text"
:title="$t('standardDecompositionDocument')">{{$t('standardDecompositionDocument')}}</span>
</div>
<a-form-model-item class="itemModel" prop="whetherTobring">
<a-select :placeholder="$t('PleaseSelect')+$t('standardDecompositionDocument')"
class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
v-model="formInline.whetherTobring">
<a-select-option v-for="(item, key) in whetherTobringList"
:key="key"
:value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.name">
{{ item.name }}
</span>
</a-select-option>
</a-select>
</a-form-model-item>
</div>
</a-col>
</a-row>
</a-form-model>
</a-modal>
<processInformation ref="processInformationRef"/>
<maintenance ref="maintenanceRef"/>
<upgradecompletion ref="upgradecompletionRef"/>
</a-card>
</template>
<script>
import { getAction, postAction, deleteAction } from '@/api/manage'
import processInformation from './components/processInformation'
import { mapGetters } from 'vuex'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
import { getAction, postAction, deleteAction } from '@/api/manage'
import maintenance from './components/maintenance'
import upgradecompletion from './components/upgradecompletion'
import { mapGetters } from 'vuex'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
import ImportFile from '@/components/ImportFileData/index'
export default {
name: 'index',
components: {
processInformation
},
mixins:[ResizeHeader, ResizeColumnProvide],
data() {
return {
//url传参严格按照当前命名
url: {
list: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/page',
getSysCategoryTree: '/sys/category/getSysCategoryTree',
deleteBatch: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/deleteBatch'
export default {
name: 'index',
components: {
maintenance,
upgradecompletion,
ImportFile
},
mixins:[ResizeHeader, ResizeColumnProvide],
data() {
return {
//url传参严格按照当前命名
url: {
list: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/page',
deleteBatch: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/deleteBatch'
},
visible: false,
loading: false,
toggleSearchStatus: false,
dataSource: [],
selectedRowKeys: [],
selectedRowKeysRecord: [],
serialNumber: '',
total: 0,
pageSize: 10,
pageNo: 1,
CategoryTreeList: [],
queryParam: {},
formInline: {},
rules: {
whetherTobring: [
{
required: true,
message: this.$t('standardDecompositionDocument') + this.$t('cannotEmpty'),
trigger: 'change'
}
]
},
whetherTobringList: [
{
value: '1',
name: this.$t('yes')
},
visible: false,
loading: false,
toggleSearchStatus: false,
dataSource: [],
selectedRowKeys: [],
selectedRowKeysRecord: [],
serialNumber: '',
total: 0,
pageSize: 10,
pageNo: 1,
CategoryTreeList: [],
queryParam: {},
formInline: {},
rules: {
whetherTobring: [
{
required: true,
message: this.$t('standardDecompositionDocument') + this.$t('cannotEmpty'),
trigger: 'change'
}
]
{
value: '2',
name: this.$t('notOnlyRz')
}
],
gatherResultList: [
{
value: 'Underway',
name: this.$t('Underway')
},
whetherTobringList: [
{
value: '1',
name: this.$t('yes')
},
{
value: '2',
name: this.$t('notOnlyRz')
}
],
gatherResultList: [
{
value: 'Underway',
name: this.$t('Underway')
},
{
value: 'Completed',
name: this.$t('Finished')
}
],
columns: [
{
title: this.$t('standard'),
align: 'left',
dataIndex: 'serialNumber',
ellipsis: true,
width: 170
},
{
title: this.$t('title'),
align: 'left',
dataIndex: 'title',
ellipsis: true,
width: 170
},
{
title: this.$t('technicalField'),
align: 'left',
width: 170,
ellipsis: true,
dataIndex: 'technologyTerritoryName'
},
{
title: this.$t('evaluationMethod'),
align: 'left',
width: 170,
ellipsis: true,
dataIndex: 'evaluationMethodsName'
},
{
title: this.$t('ProcessStatus'),
align: 'left',
width: 170,
ellipsis: true,
dataIndex: 'flowStatusName'
},
{
title: this.$t('Sponsor'),
align: 'left',
width: 140,
ellipsis: true,
dataIndex: 'createBy'
},
{
title: this.$t('brand'),
align: 'left',
ellipsis: true,
width: 140,
dataIndex: 'brand_text'
},
{
title: this.$t('dateOfInitiation'),
align: 'left',
ellipsis: true,
width: 170,
dataIndex: 'startTime'
},
{
title: this.$t('closingDate'),
align: 'left',
ellipsis: true,
width: 170,
dataIndex: 'endTime'
},
{
title: this.$t('remarks'),
align: 'left',
ellipsis: true,
width: 170,
dataIndex: 'remark'
},
{
title: this.$t('operation'),
align: 'left',
fixed: 'right',
width: 220,
scopedSlots: { customRender: 'operation' }
}
],
userInfoQuery: {},
administrators: false
}
},
mounted() {
this.getList()
this.getSysCategoryTree()
this.userInfoQuery = this.userInfo()
this.administrators = false
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
this.userInfo().userRoleList.forEach(res => {
if (res.roleCode == 'admin') {
this.administrators = true
}
})
}
},
methods: {
...mapGetters(['userInfo']),
getSysCategoryTree() {
getAction(this.url.getSysCategoryTree, {}).then((res) => {
if (res.success) {
this.CategoryTreeList = res.result
} else {
this.CategoryTreeList = []
}
})
},
deleteData(val) {
let _this = this
this.$confirm({
content: _this.$t('ConfirmDelete'),
onOk() {
deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.getList()
} else {
_this.$message.warning(res.message)
}
})
}
})
},
BatchDelete() {
if (this.selectedRowKeys.length > 0) {
let _this = this
this.$confirm({
content: _this.$t('ConfirmBatchDeletion'),
onOk() {
let idList = []
let selectedRowKeysRecord = JSON.parse(JSON.stringify(_this.selectedRowKeysRecord))
for (let i = 0; i < selectedRowKeysRecord.length; i++) {
if ((selectedRowKeysRecord[i].flowStatus == 'Completed' && selectedRowKeysRecord[i].createBy == _this.userInfo().username)
|| _this.administrators) {
idList.push(selectedRowKeysRecord[i].id)
}
}
if (idList.length > 0) {
deleteAction(_this.url.deleteBatch, { ids: idList.join(',') }).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.selectedRowKeys = []
_this.getList()
} else {
_this.$message.warning(res.message)
}
})
} else {
_this.$message.warning(_this.$t('doNotHavePermissionDeleteData'))
}
}
})
} else {
this.$message.warning(this.$t('selectLeastOne'))
{
value: 'Completed',
name: this.$t('Finished')
}
},
handleToggleSearch() {
this.toggleSearchStatus = !this.toggleSearchStatus
},
searchQuery() {
this.pageNo = 1
this.getList()
},
searchReset() {
this.queryParam = {}
this.$route.query.serialNumber = ''
this.$route.query.flowStatus = ''
this.pageNo = 1
this.getList()
},
pageOnChange(page) {
this.pageNo = page
this.getList()
},
SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize
this.getList()
},
getList() {
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
Object.keys(queryParam).forEach(val => {
if (queryParam[val] instanceof Array) {
queryParam[val] = queryParam[val].join(',')
}
})
let query = {
pageNo: this.pageNo,
pageSize: this.pageSize,
serialNumber: this.$route.query.serialNumber ? this.$route.query.serialNumber : '',
flowStatus: this.$route.query.flowStatus ? this.$route.query.flowStatus : '',
...queryParam
],
columns: [
{
title: this.$t('registrationnumber'),
align: 'left',
dataIndex: 'serialNumber',
ellipsis: true,
width: 170
},
{
title: this.$t('noticebatch'),
align: 'left',
dataIndex: 'title',
ellipsis: true,
width: 170
},
{
title: this.$t('producttrademark'),
align: 'left',
width: 170,
ellipsis: true,
dataIndex: 'technologyTerritoryName'
},
{
title: this.$t('productname'),
align: 'left',
width: 170,
ellipsis: true,
dataIndex: 'evaluationMethodsName'
},
{
title: this.$t('productModel'),
align: 'left',
width: 170,
ellipsis: true,
dataIndex: 'flowStatusName'
},
{
title: this.$t('recordstatus'),
align: 'left',
width: 140,
ellipsis: true,
dataIndex: 'createBy'
},
{
title: this.$t('filingtime'),
align: 'left',
ellipsis: true,
width: 140,
dataIndex: 'brand_text'
},
{
title: this.$t('createTime'),
align: 'left',
ellipsis: true,
width: 170,
dataIndex: 'startTime'
},
{
title: this.$t('remarks'),
align: 'left',
ellipsis: true,
width: 170,
dataIndex: 'endTime'
},
{
title: this.$t('operation'),
align: 'left',
fixed: 'right',
width: 220,
scopedSlots: { customRender: 'operation' }
}
this.loading = true
getAction(this.url.list, query).then((res) => {
if (res.success) {
if (res.result.current > 1 && res.result.records.length == 0) {
this.pageNo = 1
this.getList()
return
}
this.dataSource = res.result.records || []
this.total = res.result.total
this.loading = false
} else {
this.loading = false
}
})
},
onSelectChange(value, record) {
this.selectedRowKeys = value
this.selectedRowKeysRecord = record
},
handleOk() {
this.$refs.ruleForm.validate(valid => {
if (valid) {
this.visible = false
}
})
},
initiatingProcessClick() {
// this.visible = true
// this.formInline = {}
// this.$nextTick(() => {
// this.$refs.ruleForm.clearValidate()
// })
this.formInline.firstInitiation = '1'
this.formInline.whetherTobring = '1'
let newUrl = this.$router.resolve({
path: '/evaluationInitiationProcess',
query: this.formInline
})
// let newUrl = this.$router.resolve({
// path: '/evaluationProcess'
// })
window.open(newUrl.href, '_blank')
},
viewProcessClick(row) {
this.$refs.processInformationRef.getData(JSON.parse(JSON.stringify(row)))
},
evaluationResultsClick(row) {
if (row.evaluationType == 'Feedback evaluation') {
let newUrl = this.$router.resolve({
path: '/evaluationResultsWhole',
query: {
id: row.id,
processBackground: row.processBackground,
serialNumber: row.serialNumber,
lawsTechnologyEvaluationId: row.id,
standId: row.standId,
remark: row.remark,
createBy: row.createBy,
flowStatus: row.flowStatus
}
})
window.open(newUrl.href, '_blank')
} else {
let newUrl = this.$router.resolve({
path: '/evaluationResultsClause',
query: {
id: row.id,
processBackground: row.processBackground,
serialNumber: row.serialNumber,
lawsTechnologyEvaluationId: row.id,
standId: row.standId,
remark: row.remark,
createBy: row.createBy,
flowStatus: row.flowStatus
}
})
window.open(newUrl.href, '_blank')
}
}
],
userInfoQuery: {},
administrators: false
}
},
mounted() {
this.getList()
this.administrators = false
},
methods: {
...mapGetters(['userInfo']),
handleToggleSearch() {
this.toggleSearchStatus = !this.toggleSearchStatus
},
searchQuery() {
this.pageNo = 1
this.getList()
},
searchReset() {
this.queryParam = {}
this.$route.query.serialNumber = ''
this.$route.query.flowStatus = ''
this.pageNo = 1
this.getList()
},
pageOnChange(page) {
this.pageNo = page
this.getList()
},
SizeChange(page, pageSize) {
this.pageNo = 1
this.pageSize = pageSize
this.getList()
},
getList() {
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
Object.keys(queryParam).forEach(val => {
if (queryParam[val] instanceof Array) {
queryParam[val] = queryParam[val].join(',')
}
})
let query = {
pageNo: this.pageNo,
pageSize: this.pageSize,
serialNumber: this.$route.query.serialNumber ? this.$route.query.serialNumber : '',
flowStatus: this.$route.query.flowStatus ? this.$route.query.flowStatus : '',
...queryParam
}
this.loading = true
getAction(this.url.list, query).then((res) => {
if (res.success) {
if (res.result.current > 1 && res.result.records.length == 0) {
this.pageNo = 1
this.getList()
return
}
this.dataSource = res.result.records || []
this.total = res.result.total
this.loading = false
} else {
this.loading = false
}
})
},
onSelectChange(value, record) {
this.selectedRowKeys = value
this.selectedRowKeysRecord = record
},
// 删除
deleteData(val) {
let _this = this
this.$confirm({
content: _this.$t('ConfirmDelete'),
onOk() {
deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.getList()
} else {
_this.$message.warning(res.message)
}
})
}
})
},
// 引用备案
citeforrecord(){
},
// 创建车型
createvehicleandfunctionrecords() {
},
viewProcessClick(row) {
this.$refs.processInformationRef.getData(JSON.parse(JSON.stringify(row)))
},
// 导出
handleExport(row) {
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
let text = ''
let flag
if (this.activeTab == this.$t('ImplementationDate')) {
flag = 0
text = this.$t('ImplementationDate')
} else {
text = this.$t('vehicleInProductionDate')
flag = 1
}
let query = {
id: selectedRowKeys.join(','),
...this.searchParmes,
flag: flag
}
downloadFile(this.url.exportData, text + '.xls', query, this.Deselect)
},
// 结束升级
endUpgrade(){
this.$refs.upgradecompletionRef.addModel()
},
// 查看
detailclick(){
},
// 维护
maintenanceClick(row){
this.$refs.maintenanceRef.edit(row)
},
// 数据维护
maintenanceallClick(){
if(this.selectedRowKeys.length < 1){
this.$message.warning(this.$t('selectLeastOne'))
}else{
this.$refs.maintenanceRef.edit()
}
},
// 模板下载
handleModule(){
downloadFile('params/paramsInfo/exportTemplate', this.$t('parameterTemplateExportName') + '.xlsx', {})
},
}
}
</script>
<style>
.tree-select .ant-select-tree-dropdown {
height: 298px !important;
}
.tree-select .ant-select-tree-dropdown {
height: 298px !important;
}
</style>
<style scoped>
@import '~@assets/less/common.less';
@import '~@assets/less/common.less';
.page {
text-align: right;
margin-top: 20px;
}
.page {
text-align: right;
margin-top: 20px;
}
.box-title-text {
line-height: 1.4;
display: flex;
align-items: center;
margin-bottom: 10px;
}
.box-title-text {
line-height: 1.4;
display: flex;
align-items: center;
margin-bottom: 10px;
}
.title-text {
width: 20%;
min-width: 110px;
color: #000F16;
display: inline-block;
font-weight: 500;
font-size: 14px;
margin-right: 16px;
margin-top: 3px;
text-align: right;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.title-text {
width: 20%;
min-width: 110px;
color: #000F16;
display: inline-block;
font-weight: 500;
font-size: 14px;
margin-right: 16px;
margin-top: 3px;
text-align: right;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.box-input {
display: inline-block;
width: 70%;
height: 38px;
margin-top: 2px;
}
.box-input {
display: inline-block;
width: 70%;
height: 38px;
margin-top: 2px;
}
.box-button {
height: 38px;
/*margin-top: 2px;*/
}
.box-button {
height: 38px;
/*margin-top: 2px;*/
}
.text-operation {
margin-right: 8px;
}
.text-operation {
margin-right: 8px;
}
.itemModel {
width: calc(100% - 130px);
display: inline-block;
margin-top: 2px;
}
.itemModel {
width: calc(100% - 130px);
display: inline-block;
margin-top: 2px;
}
.Required {
color: red;
margin-right: 4px;
}
.Required {
color: red;
margin-right: 4px;
}
::v-deep .ant-table-row:first-child {
background: #fff !important;
opacity: 0.9;
}
::v-deep .ant-table-row:first-child {
background: #fff !important;
opacity: 0.9;
}
::v-deep .ant-table-body {
background: transparent !important;
}
::v-deep .ant-table-body {
background: transparent !important;
}
::v-deep .ant-table-placeholder {
margin-top: 8px !important;
}
::v-deep .ant-table-placeholder {
margin-top: 8px !important;
}
</style>
@@ -0,0 +1,267 @@
<template>
<a-modal
:title="$t('recordmaintenance')"
:width="600"
:visible="visible"
:confirm-loading="confirmLoading"
:maskClosable="false"
@ok="handleOk"
@cancel="handleCancel"
>
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
<a-row :gutter="24">
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
<!-- <span class="Required">*</span>-->
<span class="title-text-text" :title="$t('recordstatus')">
{{$t('recordstatus')}}</span>
</div>
<a-form-model-item class="itemModel" prop="recordstatus">
<j-dict-select-tag class="box-input" v-model="formInline.recordstatus"
:placeholder="$t('PleaseSelect')+$t('recordstatus')"
:type="'select'"
:triggerChange="false" :dictCode="'recordstatus'"/>
</a-form-model-item>
</div>
</a-col>
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
<!-- <span class="Required">*</span>-->
<span class="title-text-text" :title="$t('filingtime')">
{{$t('filingtime')}}</span>
</div>
<a-form-model-item class="itemModel" prop="filingtime">
<a-date-picker class="box-input"
:placeholder="$t('PleaseSelect')+$t('filingtime')"
@change="dateChange({db_field_name:'filingtime'})"
format="YYYY-MM-DD"
:getCalendarContainer="(trigger) => trigger.parentNode"
v-model="formInline.filingtime"
:disabled="false"
style="width: 100%"/>
</a-form-model-item>
</div>
</a-col>
<a-col :span="24">
<div class="box-title-text">
<div class="title-text">
<!-- <span class="Required">*</span>-->
<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')"
v-model="formInline.remark"
:rows="4"/>
</a-form-model-item>
</div>
</a-col>
</a-row>
</a-form-model>
</a-modal>
</template>
<script>
import { getAction, postAction, putAction } from '@/api/manage'
import moment from 'moment'
export default {
name: 'settingList',
props: ['url'],
data() {
return {
visible: false,
confirmLoading: false,
formInline: {},
rules: {
// listConfirmation: [
// {
// required: true,
// message: this.$t('confirmationOfRegulationsList') + this.$t('cannotEmpty'),
// trigger: 'change'
// }
// ],
// legalTaskConfirmation: [
// {
// required: true,
// message: this.$t('regulatoryTaskConfirmation') + this.$t('cannotEmpty'),
// trigger: 'change'
// }
// ],
// designDeadline: [
// {
// required: true,
// message: this.$t('confirmationOfDesignConformity') + this.$t('cannotEmpty'),
// trigger: 'change'
// }
// ],
// prehomoDeadline: [
// {
// required: true,
// message: this.$t('preHomoCompletion') + this.$t('cannotEmpty'),
// trigger: 'change'
// }
// ],
// attestationStartTime: [
// {
// required: true,
// message: this.$t('certificationStart') + this.$t('cannotEmpty'),
// trigger: 'change'
// }
// ],
// attestationEndTime: [
// {
// required: true,
// message: this.$t('certificationEnd') + this.$t('cannotEmpty'),
// trigger: 'change'
// }
// ],
// verifyDeadline: [
// {
// required: true,
// message: this.$t('verificationConfirmationDeadline') + this.$t('cannotEmpty'),
// trigger: 'change'
// }
// ]
},
ids: []
}
},
mounted() {
},
methods: {
edit(row) {
console.log(row)
this.visible = true
this.$nextTick(() => {
this.$refs.ruleForm.clearValidate()
})
},
handleOk() {
this.$refs.ruleForm.validate(valid => {
if (valid) {
let query = {
...this.formInline,
}
this.confirmLoading = true
postAction('', query).then((res) => {
if (res.success) {
this.$message.success(this.$t('OperationSuccessful'))
this.visible = false
this.confirmLoading = false
this.$emit('settingListForm')
} else {
this.$message.warning(this.$t('operationFailed'))
this.confirmLoading = false
}
})
}
})
},
handleCancel() {
this.formInline = {}
this.visible = false
},
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') : ''
}
}
}
</script>
<style>
.formAdd .ant-form-item-label {
width: 130px;
}
.formAdd .ant-form-item-control-wrapper {
display: inline-block;
width: 100%;
}
/*.formAdd .ant-form-item {*/
/* margin-bottom: 20px;*/
/*}*/
.itemModel .ant-form-item-control-wrapper {
width: 90%;
}
.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;
}
.title-text {
width: 144px;
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: 42px;
}
.box-input {
display: inline-block;
height: 38px;
width: 100%;
}
.itemModel {
width: calc(100% - 130px);
display: inline-block;
margin-top: 2px;
}
.title-text-text {
margin-top: 9px;
}
.formAdd {
margin-bottom: 40px;
}
.Required {
color: red;
margin-right: 3px;
}
</style>
@@ -18,10 +18,12 @@
<div class="title-text" :title="$t('noticebatch')">
<span>{{$t('noticebatch')}}</span>
</div>
<j-multi-select-tag class="box-input" v-model="queryParam.noticebatch"
:placeholder="$t('PleaseSelect')+$t('noticebatch')"
:type="'select'"
:triggerChange="false" :dictCode="'noticebatch'"/>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('noticebatch')"
v-model="queryParam.noticebatch"></a-input>
<!-- <j-multi-select-tag class="box-input" v-model="queryParam.noticebatch"-->
<!-- :placeholder="$t('PleaseSelect')+$t('noticebatch')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'noticebatch'"/>-->
</div>
</a-col>
<a-col :md="6" :sm="8">
@@ -29,10 +31,12 @@
<div class="title-text" :title="$t('producttrademark')">
<span>{{$t('producttrademark')}}</span>
</div>
<j-multi-select-tag class="box-input" v-model="queryParam.producttrademark"
:placeholder="$t('PleaseSelect')+$t('producttrademark')"
:type="'select'"
:triggerChange="false" :dictCode="'producttrademark'"/>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('producttrademark')"
v-model="queryParam.producttrademark"></a-input>
<!-- <j-multi-select-tag class="box-input" v-model="queryParam.producttrademark"-->
<!-- :placeholder="$t('PleaseSelect')+$t('producttrademark')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'producttrademark'"/>-->
</div>
</a-col>
<template v-if="toggleSearchStatus">
@@ -41,19 +45,21 @@
<div class="title-text" :title="$t('productname')">
<span>{{$t('productname')}}</span>
</div>
<a-select :placeholder="$t('PleaseSelect')+$t('productname')"
class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
v-model="queryParam.productname">
<a-select-option v-for="(item, key) in gatherResultList"
:key="key"
:value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.name">
{{ item.name }}
</span>
</a-select-option>
</a-select>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('productname')"
v-model="queryParam.productname"></a-input>
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('productname')"-->
<!-- class="box-input"-->
<!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"-->
<!-- allowClear-->
<!-- v-model="queryParam.productname">-->
<!-- <a-select-option v-for="(item, key) in gatherResultList"-->
<!-- :key="key"-->
<!-- :value="item.value">-->
<!-- <span style="display: inline-block;width: 100%" :title=" item.name">-->
<!-- {{ item.name }}-->
<!-- </span>-->
<!-- </a-select-option>-->
<!-- </a-select>-->
</div>
</a-col>
<a-col :md="6" :sm="8">
@@ -61,10 +67,12 @@
<div class="title-text" :title="$t('productModel')">
<span>{{$t('productModel')}}</span>
</div>
<j-dict-select-tag class="box-input" v-model="queryParam.productModel"
:placeholder="$t('PleaseSelect')+$t('productModel')"
:type="'select'"
:triggerChange="false" :dictCode="'brand'"/>
<a-input class="box-input" :placeholder="$t('PleaseEnter')+$t('productModel')"
v-model="queryParam.productModel"></a-input>
<!-- <j-dict-select-tag class="box-input" v-model="queryParam.productModel"-->
<!-- :placeholder="$t('PleaseSelect')+$t('productModel')"-->
<!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'brand'"/>-->
</div>
</a-col>
</template>
@@ -82,31 +90,30 @@
</a-form>
</div>
<div class="table-operator">
<div @click="initiatingProcessClick"
<div @click="createvehicleandfunctionrecords"
v-has="'regulatoryAndTechnicalAssessment:initiationProcess'"
class="operator-text">
<a-icon type="plus"/>
{{$t('createvehicleandfunctionrecords')}}
</div>
<div @click="BatchDelete"
<div @click="citeforrecord"
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
class="operator-text">
<a-icon type="solution"/>
{{$t('citeforrecord')}}
</div>
<div @click="BatchDelete"
<div @click="maintenanceallClick()"
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
class="operator-text">
<a-icon type="setting"/>
{{$t('datamaintenance')}}
</div>
<div @click="BatchDelete"
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
<div v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
class="operator-text">
<a-icon type="import"/>
{{$t('dataimport')}}
<ImportFile :url="url" :dummyInventoryBaseId="$route.query.id" :isTrue="true"
:accept="'.zip'"/>
</div>
<div @click="BatchDelete"
<div @click="handleModule"
v-has="'regulatoryAndTechnicalAssessment:batchDelete'"
class="operator-text">
<a-icon type="download"/>
@@ -131,11 +138,11 @@
<!-- <a class="text-operation" @click="viewProcessClick(record)">{{$t('viewProcess')}}</a>-->
<!-- v-if="record.flowStatus == 'Completed'"-->
<a class="text-operation"
@click="evaluationResultsClick(record)">{{$t('See')}}</a>
@click="detailclick(record)">{{$t('See')}}</a>
<a class="text-operation"
@click="evaluationResultsClick(record)">{{$t('maintenance')}}</a>
@click="maintenanceClick(record)">{{$t('maintenance')}}</a>
<a class="text-operation"
@click="evaluationResultsClick(record)">{{$t('export')}}</a>
@click="handleExport(record)">{{$t('export')}}</a>
<a class="text-operation"
v-has="'regulatoryAndTechnicalAssessment:delete'"
@click="deleteData(record)">{{$t('delete')}}</a>
@@ -154,57 +161,22 @@
/>
</div>
</div>
<a-modal
:title="$t('initiatingProcess')"
:width="600"
:visible="visible"
:maskClosable="false"
@ok="handleOk"
@cancel="visible = false"
>
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
<a-row :gutter="24">
<a-col :span="24">
<div class="box-title-text">
<div class="title-text" style="margin-top: -18px">
<span class="Required">*</span>
<span class="title-text-text"
:title="$t('standardDecompositionDocument')">{{$t('standardDecompositionDocument')}}</span>
</div>
<a-form-model-item class="itemModel" prop="whetherTobring">
<a-select :placeholder="$t('PleaseSelect')+$t('standardDecompositionDocument')"
class="box-input"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
allowClear
v-model="formInline.whetherTobring">
<a-select-option v-for="(item, key) in whetherTobringList"
:key="key"
:value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.name">
{{ item.name }}
</span>
</a-select-option>
</a-select>
</a-form-model-item>
</div>
</a-col>
</a-row>
</a-form-model>
</a-modal>
<processInformation ref="processInformationRef"/>
<maintenance ref="maintenanceRef"/>
</a-card>
</template>
<script>
import { getAction, postAction, deleteAction } from '@/api/manage'
import processInformation from './components/processInformation'
import maintenance from './components/maintenance'
import { mapGetters } from 'vuex'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
import ImportFile from '@/components/ImportFileData/index'
export default {
name: 'index',
components: {
processInformation
maintenance,
ImportFile
},
mixins:[ResizeHeader, ResizeColumnProvide],
data() {
@@ -212,7 +184,6 @@
//url传参严格按照当前命名
url: {
list: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/page',
getSysCategoryTree: '/sys/category/getSysCategoryTree',
deleteBatch: '/lawsTechnologyEvaluation/lawsTechnologyEvaluationEO/deleteBatch'
},
visible: false,
@@ -335,77 +306,10 @@
},
mounted() {
this.getList()
this.getSysCategoryTree()
this.userInfoQuery = this.userInfo()
this.administrators = false
if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
this.userInfo().userRoleList.forEach(res => {
if (res.roleCode == 'admin') {
this.administrators = true
}
})
}
},
methods: {
...mapGetters(['userInfo']),
getSysCategoryTree() {
getAction(this.url.getSysCategoryTree, {}).then((res) => {
if (res.success) {
this.CategoryTreeList = res.result
} else {
this.CategoryTreeList = []
}
})
},
deleteData(val) {
let _this = this
this.$confirm({
content: _this.$t('ConfirmDelete'),
onOk() {
deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.getList()
} else {
_this.$message.warning(res.message)
}
})
}
})
},
BatchDelete() {
if (this.selectedRowKeys.length > 0) {
let _this = this
this.$confirm({
content: _this.$t('ConfirmBatchDeletion'),
onOk() {
let idList = []
let selectedRowKeysRecord = JSON.parse(JSON.stringify(_this.selectedRowKeysRecord))
for (let i = 0; i < selectedRowKeysRecord.length; i++) {
if ((selectedRowKeysRecord[i].flowStatus == 'Completed' && selectedRowKeysRecord[i].createBy == _this.userInfo().username)
|| _this.administrators) {
idList.push(selectedRowKeysRecord[i].id)
}
}
if (idList.length > 0) {
deleteAction(_this.url.deleteBatch, { ids: idList.join(',') }).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.selectedRowKeys = []
_this.getList()
} else {
_this.$message.warning(res.message)
}
})
} else {
_this.$message.warning(_this.$t('doNotHavePermissionDeleteData'))
}
}
})
} else {
this.$message.warning(this.$t('selectLeastOne'))
}
},
handleToggleSearch() {
this.toggleSearchStatus = !this.toggleSearchStatus
},
@@ -463,67 +367,73 @@
this.selectedRowKeys = value
this.selectedRowKeysRecord = record
},
handleOk() {
this.$refs.ruleForm.validate(valid => {
if (valid) {
this.visible = false
// 删除
deleteData(val) {
let _this = this
this.$confirm({
content: _this.$t('ConfirmDelete'),
onOk() {
deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
if (res.success) {
_this.$message.success(_this.$t('OperationSuccessful'))
_this.getList()
} else {
_this.$message.warning(res.message)
}
})
}
})
},
initiatingProcessClick() {
// this.visible = true
// this.formInline = {}
// this.$nextTick(() => {
// this.$refs.ruleForm.clearValidate()
// })
this.formInline.firstInitiation = '1'
this.formInline.whetherTobring = '1'
let newUrl = this.$router.resolve({
path: '/evaluationInitiationProcess',
query: this.formInline
})
// let newUrl = this.$router.resolve({
// path: '/evaluationProcess'
// })
window.open(newUrl.href, '_blank')
// 引用备案
citeforrecord(){
},
// 创建车型
createvehicleandfunctionrecords() {
},
viewProcessClick(row) {
this.$refs.processInformationRef.getData(JSON.parse(JSON.stringify(row)))
},
evaluationResultsClick(row) {
if (row.evaluationType == 'Feedback evaluation') {
let newUrl = this.$router.resolve({
path: '/evaluationResultsWhole',
query: {
id: row.id,
processBackground: row.processBackground,
serialNumber: row.serialNumber,
lawsTechnologyEvaluationId: row.id,
standId: row.standId,
remark: row.remark,
createBy: row.createBy,
flowStatus: row.flowStatus
}
})
window.open(newUrl.href, '_blank')
// 导出
handleExport(row) {
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
let text = ''
let flag
if (this.activeTab == this.$t('ImplementationDate')) {
flag = 0
text = this.$t('ImplementationDate')
} else {
let newUrl = this.$router.resolve({
path: '/evaluationResultsClause',
query: {
id: row.id,
processBackground: row.processBackground,
serialNumber: row.serialNumber,
lawsTechnologyEvaluationId: row.id,
standId: row.standId,
remark: row.remark,
createBy: row.createBy,
flowStatus: row.flowStatus
}
})
window.open(newUrl.href, '_blank')
text = this.$t('vehicleInProductionDate')
flag = 1
}
}
let query = {
id: selectedRowKeys.join(','),
...this.searchParmes,
flag: flag
}
downloadFile(this.url.exportData, text + '.xls', query, this.Deselect)
},
// 查看
detailclick(){
},
// 维护
maintenanceClick(row){
this.$refs.maintenanceRef.edit(row)
},
// 数据维护
maintenanceallClick(){
if(this.selectedRowKeys.length < 1){
this.$message.warning(this.$t('selectLeastOne'))
}else{
this.$refs.maintenanceRef.edit()
}
},
// 模板下载
handleModule(){
downloadFile('params/paramsInfo/exportTemplate', this.$t('parameterTemplateExportName') + '.xlsx', {})
},
}
}
</script>