OTA修改

This commit is contained in:
zyx.net
2023-06-08 17:10:55 +08:00
parent 897e4b6768
commit f2f32b0a17
7 changed files with 258 additions and 11 deletions
+6
View File
@@ -1841,4 +1841,10 @@ module.exports = {
submissionProcess:'Submission Process', submissionProcess:'Submission Process',
localapproval1:'Local Approval1', localapproval1:'Local Approval1',
localapproval2:'Local Approval2', localapproval2:'Local Approval2',
averageapprovalperiod:'Average approval period',
day:'day',
passreturntime:'Pass/return time',
approvalcycle:'Approval cycle',
transittime:'Transit Time',
returntime:'Return time',
} }
+6
View File
@@ -1942,4 +1942,10 @@ module.exports = {
submissionProcess:'提交流程', submissionProcess:'提交流程',
localapproval1:'地方批准1', localapproval1:'地方批准1',
localapproval2:'地方批准2', localapproval2:'地方批准2',
averageapprovalperiod:'平均审批周期',
day:'天',
passreturntime:'通过/退回时间',
approvalcycle:'审批周期',
transittime:'通过时间',
returntime:'退回时间',
} }
@@ -30,11 +30,11 @@
<a-col :span="24"> <a-col :span="24">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
<span class="Required">*</span> <span v-if='!propflag' class="Required">*</span>
<span class="title-text-text" :title="$t('filingtime')"> <span class="title-text-text" :title="$t('filingtime')">
{{$t('filingtime')}}</span> {{$t('filingtime')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="batjsj"> <a-form-model-item class="itemModel" :prop="!propflag?'batjsj':''" :key="propflag">
<a-date-picker class="box-input" <a-date-picker class="box-input"
:placeholder="$t('PleaseSelect')+$t('filingtime')" :placeholder="$t('PleaseSelect')+$t('filingtime')"
@change="dateChange({db_field_name:'batjsj'})" @change="dateChange({db_field_name:'batjsj'})"
@@ -46,6 +46,44 @@
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
<a-col :span="24" v-if='transittime'>
<div class="box-title-text">
<div class="title-text">
<span v-if='!propflag' class="Required">*</span>
<span class="title-text-text" :title="$t('transittime')">
{{$t('transittime')}}</span>
</div>
<a-form-model-item class="itemModel" prop="tgthsj">
<a-date-picker class="box-input"
:placeholder="$t('PleaseSelect')+$t('transittime')"
@change="dateChange({db_field_name:'tgthsj'})"
format="YYYY-MM-DD"
:getCalendarContainer="(trigger) => trigger.parentNode"
v-model="formInline.tgthsj"
:disabled="false"
style="width: 90%"/>
</a-form-model-item>
</div>
</a-col>
<a-col :span="24" v-if='returntime'>
<div class="box-title-text">
<div class="title-text">
<span v-if='!propflag' class="Required">*</span>
<span class="title-text-text" :title="$t('returntime')">
{{$t('returntime')}}</span>
</div>
<a-form-model-item class="itemModel" prop="tgthsj">
<a-date-picker class="box-input"
:placeholder="$t('PleaseSelect')+$t('returntime')"
@change="dateChange({db_field_name:'tgthsj'})"
format="YYYY-MM-DD"
:getCalendarContainer="(trigger) => trigger.parentNode"
v-model="formInline.tgthsj"
:disabled="false"
style="width: 90%"/>
</a-form-model-item>
</div>
</a-col>
<a-col :span="24"> <a-col :span="24">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
@@ -77,9 +115,13 @@ export default {
return { return {
visible: false, visible: false,
confirmLoading: false, confirmLoading: false,
transittime:false,
returntime:false,
propflag: false,
formInline: { formInline: {
bazt:undefined, bazt:undefined,
batjsj:'', batjsj:'',
tgthsj:'',
bz:'', bz:'',
}, },
rules: { rules: {
@@ -99,7 +141,14 @@ export default {
], ],
bz: [ bz: [
{ min: 1, max: 500, message: this.$t('cantExeed') + '500' + this.$t('characters'), trigger: 'blur' } { min: 1, max: 500, message: this.$t('cantExeed') + '500' + this.$t('characters'), trigger: 'blur' }
] ],
tgthsj: [
{
required: true,
message: this.$t('cannotEmpty'),
trigger: 'change'
}
],
// listConfirmation: [ // listConfirmation: [
// { // {
// required: true, // required: true,
@@ -161,16 +210,43 @@ export default {
this.ids = row.join(',') this.ids = row.join(',')
this.formInline = { this.formInline = {
bazt:undefined, bazt:undefined,
tgthsj:'',
batjsj:'', batjsj:'',
bz:'', bz:'',
} }
this.propflag = true
this.transittime = false
this.returntime = false
}else{ }else{
this.formInline.bazt = row.bazt ? row.bazt : undefined this.formInline.bazt = row.bazt ? row.bazt : undefined
this.formInline.batjsj = row.batjsj this.formInline.batjsj = row.batjsj
this.formInline.tgthsj = row.tgthsj
this.formInline.bz = row.bz this.formInline.bz = row.bz
this.ids = row.id this.ids = row.id
if (this.formInline.bazt == 1) {
this.propflag = true
this.transittime = false
this.returntime = false
} else if (this.formInline.bazt == 2) {
this.propflag = true
this.transittime = false
this.returntime = false
} else if(this.formInline.bazt == 4){
this.propflag = false
this.transittime = true
this.returntime = false
} else if(this.formInline.bazt == 5){
this.propflag = false
this.returntime = true
this.transittime = false
}else{
this.propflag = false
this.transittime = false
this.returntime = false
}
} }
this.visible = true this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ruleForm.clearValidate() this.$refs.ruleForm.clearValidate()
}) })
@@ -197,7 +273,29 @@ export default {
} }
}) })
}, },
selectchange(value){ selectchange(value) {
console.log(value)
if (value == 1) {
this.propflag = true
this.transittime = false
this.returntime = false
} else if (value == 2) {
this.propflag = true
this.transittime = false
this.returntime = false
} else if(value == 4){
this.propflag = false
this.transittime = true
this.returntime = false
} else if(value == 5){
this.propflag = false
this.returntime = true
this.transittime = false
}else{
this.propflag = false
this.transittime = false
this.returntime = false
}
this.$nextTick(() => { this.$nextTick(() => {
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
this.$refs.ruleForm.validateField('bazt') this.$refs.ruleForm.validateField('bazt')
@@ -159,6 +159,9 @@
@click="deleteData(record)">{{$t('delete')}}</a> @click="deleteData(record)">{{$t('delete')}}</a>
</span> </span>
</a-table> </a-table>
<div>
{{$t('averageapprovalperiod')}} : {{number}}{{$t('day')}}
</div>
<div class="page" v-if="dataSource && dataSource.length > 0"> <div class="page" v-if="dataSource && dataSource.length > 0">
<a-pagination <a-pagination
:show-total="total => $t('total')+` ${total} `+$t('strip')" :show-total="total => $t('total')+` ${total} `+$t('strip')"
@@ -205,6 +208,7 @@ export default {
importZipUrl: '/ota/otaBaSjList/importData',//导入 importZipUrl: '/ota/otaBaSjList/importData',//导入
}, },
number:'',
visible: false, visible: false,
loading: false, loading: false,
toggleSearchStatus: false, toggleSearchStatus: false,
@@ -301,9 +305,23 @@ export default {
title: this.$t('filingtime'), title: this.$t('filingtime'),
align: 'left', align: 'left',
ellipsis: true, ellipsis: true,
width: 140, width: 170,
dataIndex: 'batjsj' dataIndex: 'batjsj'
}, },
{
title: this.$t('passreturntime'),
align: 'left',
ellipsis: true,
width: 170,
dataIndex: 'tgthsj'
},
{
title: this.$t('approvalcycle'),
align: 'left',
ellipsis: true,
width: 140,
dataIndex: 'spzq'
},
{ {
title: this.$t('createTime'), title: this.$t('createTime'),
align: 'left', align: 'left',
@@ -425,10 +425,10 @@ this.$forceUpdate()
this.flagqr = false this.flagqr = false
this.qrheight = '50px' this.qrheight = '50px'
} }
if(this.form.yhqr == '1' && (this.form.flagqr == '其他' || this.form.flagqr == 'others')){ if(this.form.yhqr == '1' && this.form.flagqr == '344a3320beba45afb3718c59b7a7144a'){
this.qrheight = '150px' this.qrheight = '150px'
this.flagqrqt = true this.flagqrqt = true
}else if(this.form.yhqr == '1' && (this.form.flagqr != '其他' || this.form.flagqr != 'others')){ }else if(this.form.yhqr == '1' && this.form.flagqr != '344a3320beba45afb3718c59b7a7144a'){
this.flagqr = true this.flagqr = true
this.flagqrqt = false this.flagqrqt = false
this.qrheight = '100px' this.qrheight = '100px'
@@ -476,10 +476,14 @@ this.$forceUpdate()
if(val.target.value == '1'){ if(val.target.value == '1'){
this.qrheight = '100px' this.qrheight = '100px'
this.flagqr = true this.flagqr = true
if(this.form.flagqr == '344a3320beba45afb3718c59b7a7144a'){
this.qrheight = '150px'
this.flagqrqt = true
}
}else{ }else{
this.qrheight = '50px' this.qrheight = '50px'
this.flagqr = false this.flagqr = false
this.flagqrqt = false
} }
}, },
handleInput(val){ handleInput(val){
@@ -30,17 +30,56 @@
<a-col :span="24"> <a-col :span="24">
<div class="box-title-text"> <div class="box-title-text">
<div class="title-text"> <div class="title-text">
<span class="Required">*</span> <span v-if='!propflag' class="Required">*</span>
<span class="title-text-text" :title="$t('filingtime')"> <span class="title-text-text" :title="$t('filingtime')">
{{$t('filingtime')}}</span> {{$t('filingtime')}}</span>
</div> </div>
<a-form-model-item class="itemModel" prop="batjsj"> <a-form-model-item class="itemModel" :prop="!propflag?'batjsj':''" :key="propflag">
<a-date-picker class="box-input" <a-date-picker class="box-input"
:placeholder="$t('PleaseSelect')+$t('filingtime')" :placeholder="$t('PleaseSelect')+$t('filingtime')"
@change="dateChange({db_field_name:'batjsj'})" @change="dateChange({db_field_name:'batjsj'})"
format="YYYY-MM-DD" format="YYYY-MM-DD"
:getCalendarContainer="(trigger) => trigger.parentNode" :getCalendarContainer="(trigger) => trigger.parentNode"
v-model="formInline.batjsj" v-model="formInline.batjsj"
:disabled="false"
style="width: 90%"/>
</a-form-model-item>
</div>
</a-col>
<a-col :span="24" v-if='transittime'>
<div class="box-title-text">
<div class="title-text">
<span v-if='!propflag' class="Required">*</span>
<span class="title-text-text" :title="$t('transittime')">
{{$t('transittime')}}</span>
</div>
<a-form-model-item class="itemModel" prop="tgthsj">
<a-date-picker class="box-input"
:placeholder="$t('PleaseSelect')+$t('transittime')"
@change="dateChange({db_field_name:'tgthsj'})"
format="YYYY-MM-DD"
:getCalendarContainer="(trigger) => trigger.parentNode"
v-model="formInline.tgthsj"
:disabled="false"
style="width: 90%"/>
</a-form-model-item>
</div>
</a-col>
<a-col :span="24" v-if='returntime'>
<div class="box-title-text">
<div class="title-text">
<span v-if='!propflag' class="Required">*</span>
<span class="title-text-text" :title="$t('returntime')">
{{$t('returntime')}}</span>
</div>
<a-form-model-item class="itemModel" prop="tgthsj">
<a-date-picker class="box-input"
:placeholder="$t('PleaseSelect')+$t('returntime')"
@change="dateChange({db_field_name:'tgthsj'})"
format="YYYY-MM-DD"
:getCalendarContainer="(trigger) => trigger.parentNode"
v-model="formInline.tgthsj"
:disabled="false"
style="width: 90%"/> style="width: 90%"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
@@ -79,8 +118,12 @@ export default {
formInline: { formInline: {
bazt:undefined, bazt:undefined,
batjsj:'', batjsj:'',
tgthsj:'',
bz:'', bz:'',
}, },
transittime:false,
returntime:false,
propflag: false,
rules: { rules: {
bazt: [ bazt: [
{ {
@@ -98,7 +141,14 @@ export default {
], ],
bz: [ bz: [
{ min: 1, max: 500, message: this.$t('cantExeed') + '500' + this.$t('characters'), trigger: 'blur' } { min: 1, max: 500, message: this.$t('cantExeed') + '500' + this.$t('characters'), trigger: 'blur' }
] ],
tgthsj: [
{
required: true,
message: this.$t('cannotEmpty'),
trigger: 'change'
}
],
// designDeadline: [ // designDeadline: [
// { // {
// required: true, // required: true,
@@ -147,13 +197,39 @@ export default {
this.formInline = { this.formInline = {
bazt:undefined, bazt:undefined,
batjsj:'', batjsj:'',
tgthsj:'',
bz:'', bz:'',
} }
this.propflag = true
this.transittime = false
this.returntime = false
}else{ }else{
this.formInline.bazt = row.bazt ? row.bazt : undefined this.formInline.bazt = row.bazt ? row.bazt : undefined
this.formInline.batjsj = row.batjsj this.formInline.batjsj = row.batjsj
this.formInline.tgthsj = row.tgthsj
this.formInline.bz = row.bz this.formInline.bz = row.bz
this.ids = row.id this.ids = row.id
if (this.formInline.bazt == 1) {
this.propflag = true
this.transittime = false
this.returntime = false
} else if (this.formInline.bazt == 2) {
this.propflag = true
this.transittime = false
this.returntime = false
} else if(this.formInline.bazt == 4){
this.propflag = false
this.transittime = true
this.returntime = false
} else if(this.formInline.bazt == 5){
this.propflag = false
this.returntime = true
this.transittime = false
}else{
this.propflag = false
this.transittime = false
this.returntime = false
}
} }
this.visible = true this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
@@ -183,6 +259,27 @@ export default {
}) })
}, },
selectchange(value){ selectchange(value){
if (value == 1) {
this.propflag = true
this.transittime = false
this.returntime = false
} else if (value == 2) {
this.propflag = true
this.transittime = false
this.returntime = false
} else if(value == 4){
this.propflag = false
this.transittime = true
this.returntime = false
} else if(value == 5){
this.propflag = false
this.returntime = true
this.transittime = false
}else{
this.propflag = false
this.transittime = false
this.returntime = false
}
this.$nextTick(() => { this.$nextTick(() => {
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
this.$refs.ruleForm.validateField('bazt') this.$refs.ruleForm.validateField('bazt')
@@ -126,6 +126,9 @@
@click="deleteData(record)">{{ $t('delete') }}</a> @click="deleteData(record)">{{ $t('delete') }}</a>
</span> </span>
</a-table> </a-table>
<div>
{{$t('averageapprovalperiod')}} : {{number}}{{$t('day')}}
</div>
<div class="page" v-if="dataSource && dataSource.length > 0"> <div class="page" v-if="dataSource && dataSource.length > 0">
<a-pagination :show-total="total => $t('total') + ` ${total} ` + $t('strip')" show-quick-jumper show-size-changer <a-pagination :show-total="total => $t('total') + ` ${total} ` + $t('strip')" show-quick-jumper show-size-changer
:page-size.sync="pageSize" :total="total" :current="pageNo" @change="pageOnChange" :page-size.sync="pageSize" :total="total" :current="pageNo" @change="pageOnChange"
@@ -159,6 +162,7 @@ export default {
exportData: '/ota/otaBaCxList/exportData', exportData: '/ota/otaBaCxList/exportData',
importZipUrl: '/ota/otaBaCxList/importData',//导入 importZipUrl: '/ota/otaBaCxList/importData',//导入
}, },
number:'',
visible: false, visible: false,
loading: false, loading: false,
toggleSearchStatus: false, toggleSearchStatus: false,
@@ -251,6 +255,20 @@ export default {
width: 140, width: 140,
dataIndex: 'batjsj' dataIndex: 'batjsj'
}, },
{
title: this.$t('passreturntime'),
align: 'left',
ellipsis: true,
width: 170,
dataIndex: 'tgthsj'
},
{
title: this.$t('approvalcycle'),
align: 'left',
ellipsis: true,
width: 140,
dataIndex: 'spzq'
},
{ {
title: this.$t('createTime'), title: this.$t('createTime'),
align: 'left', align: 'left',