修改
This commit is contained in:
+17
-4
@@ -35,6 +35,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="dateofproduction">
|
<a-form-model-item class="itemModel" prop="dateofproduction">
|
||||||
<a-range-picker class="box-input"
|
<a-range-picker class="box-input"
|
||||||
|
@change="change"
|
||||||
:placeholder="$t('PleaseSelect')+$t('dateofproduction')"
|
:placeholder="$t('PleaseSelect')+$t('dateofproduction')"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
v-model="formInline.dateofproduction"
|
v-model="formInline.dateofproduction"
|
||||||
@@ -52,7 +53,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="VINcodelist">
|
<a-form-model-item class="itemModel" prop="VINcodelist">
|
||||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('VINcodelist')"
|
<a-textarea :placeholder="$t('pleaseEnter')+$t('VINcodelist')"
|
||||||
v-model="formInline.VINcodelist"
|
v-model="formInline.vinList"
|
||||||
:rows="4"/>
|
:rows="4"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
<!-- <a-form-model-item class="itemModel" prop="VINcodelist">-->
|
<!-- <a-form-model-item class="itemModel" prop="VINcodelist">-->
|
||||||
@@ -134,12 +135,21 @@ export default {
|
|||||||
otaId=''
|
otaId=''
|
||||||
}
|
}
|
||||||
getAction('/ota/otaBaSjSjmbcl/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{
|
getAction('/ota/otaBaSjSjmbcl/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{
|
||||||
console.log(res);
|
if(res.code==200){
|
||||||
|
this.formInline.zsl=res.result.zsl
|
||||||
|
this.formInline.vinList=res.result.vinList
|
||||||
|
this.formInline.dateofproduction=[]
|
||||||
|
this.formInline.dateofproduction.push(res.result.scrqks)
|
||||||
|
this.formInline.dateofproduction.push(res.result.scrqjs)
|
||||||
|
this.$forceUpdate()
|
||||||
|
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
save(){
|
save(){
|
||||||
|
|
||||||
let obj={}
|
let obj={}
|
||||||
|
obj.otaId=localStorage.getItem('otaId')
|
||||||
obj.zsl = this.formInline.zsl
|
obj.zsl = this.formInline.zsl
|
||||||
if(this.formInline.dateofproduction){
|
if(this.formInline.dateofproduction){
|
||||||
obj.scrqks = this.formInline.dateofproduction[0]
|
obj.scrqks = this.formInline.dateofproduction[0]
|
||||||
@@ -149,9 +159,9 @@ export default {
|
|||||||
obj.scrqjs =''
|
obj.scrqjs =''
|
||||||
}
|
}
|
||||||
|
|
||||||
obj.VINcodelist = this.formInline.VINcodelist
|
obj.vinList = this.formInline.vinList
|
||||||
postAction('/ota/otaBaSjSjmbcl/add',obj).then(res=>{
|
postAction('/ota/otaBaSjSjmbcl/add',obj).then(res=>{
|
||||||
console.log(res);
|
this.$message.success(this.$t('SavedSuccessfully'))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
next(){
|
next(){
|
||||||
@@ -162,6 +172,9 @@ export default {
|
|||||||
this.save()
|
this.save()
|
||||||
this.$emit('upgradeRequirementsup')
|
this.$emit('upgradeRequirementsup')
|
||||||
},
|
},
|
||||||
|
change(){
|
||||||
|
this.$forceUpdate()
|
||||||
|
},
|
||||||
clickButtonToUpload(item) {
|
clickButtonToUpload(item) {
|
||||||
this.$refs.uploadFile.perentHandleFunc()
|
this.$refs.uploadFile.perentHandleFunc()
|
||||||
this.$refs.uploadFile.visible = true
|
this.$refs.uploadFile.visible = true
|
||||||
|
|||||||
+72
-39
@@ -22,40 +22,54 @@
|
|||||||
:columns="columns"
|
:columns="columns"
|
||||||
style="margin-bottom: 20px"
|
style="margin-bottom: 20px"
|
||||||
>
|
>
|
||||||
<!-- 配置情况-->
|
<span slot="systemname" slot-scope="text,record">
|
||||||
<span slot="configuration" slot-scope="text,record">
|
<a-input :placeholder="$t('pleaseEnter')" v-model="record.xtmc"></a-input>
|
||||||
<a-radio-group>
|
|
||||||
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
|
||||||
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
|
||||||
</a-radio-group>
|
|
||||||
</span>
|
|
||||||
<!-- 可升级-->
|
|
||||||
<span slot="whetheritcanbeupgraded" slot-scope="text,record">
|
|
||||||
<a-radio-group>
|
|
||||||
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
|
||||||
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
|
||||||
</a-radio-group>
|
|
||||||
</span>
|
|
||||||
<!-- 自动化级别-->
|
|
||||||
<span slot="drivingautomationlevel" slot-scope="text,record">
|
|
||||||
<j-dict-select-tag class="box-input"
|
|
||||||
:disabled="disable"
|
|
||||||
:placeholder="$t('PleaseSelect')"
|
|
||||||
:type="'select'"
|
|
||||||
:triggerChange="false"/>
|
|
||||||
</span>
|
</span>
|
||||||
<!-- 升级前-->
|
<!-- 升级前-->
|
||||||
<span slot="preupgrade" slot-scope="text,record">
|
<span slot="preupgrade" slot-scope="text,record">
|
||||||
<a-input :placeholder="$t('ifNot')"></a-input>
|
<a-input :placeholder="$t('ifNot')" v-model="record.sjqbgcs"></a-input>
|
||||||
</span>
|
</span>
|
||||||
<!-- 升级后-->
|
<!-- 升级后-->
|
||||||
<span slot="afterupgrade" slot-scope="text,record">
|
<span slot="afterupgrade" slot-scope="text,record">
|
||||||
<a-input :placeholder="$t('ifNot')"></a-input>
|
<a-input :placeholder="$t('ifNot')" v-model="record.sjhbgcs"></a-input>
|
||||||
|
</span>
|
||||||
|
<span slot="nameoftheupgradedelectroniccontroller" slot-scope="text,record">
|
||||||
|
<a-input :placeholder="$t('pleaseEnter')" v-model="record.sjkzqmc" ></a-input>
|
||||||
|
</span>
|
||||||
|
<span slot="adaptivehardwareversion" slot-scope="text,record">
|
||||||
|
<a-input :placeholder="$t('pleaseEnter')" v-model="record.xtmc"></a-input>
|
||||||
|
</span>
|
||||||
|
<span slot="beforethesoftwareversionupgraded" slot-scope="text,record">
|
||||||
|
<a-input :placeholder="$t('pleaseEnter')" v-model="record.xtmc" ></a-input>
|
||||||
|
</span>
|
||||||
|
<span slot="afterthesoftwareversionupgraded" slot-scope="text,record">
|
||||||
|
<a-input :placeholder="$t('pleaseEnter')" v-model="record.xtmc"></a-input>
|
||||||
|
</span>
|
||||||
|
<span slot="beforetheOSversionupgraded" slot-scope="text,record">
|
||||||
|
<a-input :placeholder="$t('pleaseEnter')" v-model="record.xtmc"></a-input>
|
||||||
|
</span>
|
||||||
|
<span slot="aftertheoperatingsystemversionupgraded" slot-scope="text,record">
|
||||||
|
<a-input :placeholder="$t('pleaseEnter')" v-model="record.xtmc"></a-input>
|
||||||
|
</span>
|
||||||
|
<span slot="softwaredevelopmententerprise" slot-scope="text,record">
|
||||||
|
<a-input :placeholder="$t('pleaseEnter')" v-model="record.xtmc" ></a-input>
|
||||||
|
</span>
|
||||||
|
<span slot="initialpackageforintegrityinflammatorydata" slot-scope="text,record">
|
||||||
|
<a-input :placeholder="$t('pleaseEnter')" v-model="record.xtmc"></a-input>
|
||||||
|
</span>
|
||||||
|
<span slot="upgradepackageintegrityverificationdata" slot-scope="text,record">
|
||||||
|
<a-input :placeholder="$t('pleaseEnter')" v-model="record.xtmc" ></a-input>
|
||||||
|
</span>
|
||||||
|
<span slot="upgradepackagesize" slot-scope="text,record">
|
||||||
|
<a-input :placeholder="$t('pleaseEnter')" v-model="record.xtmc"></a-input>
|
||||||
|
</span>
|
||||||
|
<span slot="differentialupgradeornot" slot-scope="text,record">
|
||||||
|
<a-input :placeholder="$t('pleaseEnter')" v-model="record.xtmc"></a-input>
|
||||||
</span>
|
</span>
|
||||||
<!-- 操作列-->
|
<!-- 操作列-->
|
||||||
<span slot="operation" slot-scope="text,record">
|
<span slot="operation" slot-scope="text,record">
|
||||||
<a class="text-operation">{{$t('addcontroller')}}</a>
|
<a class="text-operation" @click="addlineAtBot">{{$t('addcontroller')}}</a>
|
||||||
<a class="text-operation">{{$t('delete')}}</a>
|
<a class="text-operation" @click="deleteData(record)">{{$t('delete')}}</a>
|
||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
<div>
|
<div>
|
||||||
@@ -85,8 +99,6 @@ export default {
|
|||||||
return {
|
return {
|
||||||
dataSource: [
|
dataSource: [
|
||||||
{
|
{
|
||||||
key:1,
|
|
||||||
functionname:'ceshi',
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
loading: false,
|
loading: false,
|
||||||
@@ -97,7 +109,9 @@ export default {
|
|||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'systemname',
|
dataIndex: 'systemname',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170
|
width: 170,
|
||||||
|
scopedSlots: { customRender: 'systemname' },
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('adjustmentofchangedBulletinparameters'),
|
title: this.$t('adjustmentofchangedBulletinparameters'),
|
||||||
@@ -136,77 +150,89 @@ export default {
|
|||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'nameoftheupgradedelectroniccontroller',
|
dataIndex: 'nameoftheupgradedelectroniccontroller',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170
|
width: 170,
|
||||||
|
scopedSlots: { customRender: 'nameoftheupgradedelectroniccontroller' },
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('adaptivehardwareversion'),
|
title: this.$t('adaptivehardwareversion'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'adaptivehardwareversion',
|
dataIndex: 'adaptivehardwareversion',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170
|
width: 170,
|
||||||
|
scopedSlots: { customRender: 'adaptivehardwareversion' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('beforethesoftwareversionupgraded'),
|
title: this.$t('beforethesoftwareversionupgraded'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'beforethesoftwareversionupgraded',
|
dataIndex: 'beforethesoftwareversionupgraded',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170
|
width: 170,
|
||||||
|
scopedSlots: { customRender: 'beforethesoftwareversionupgraded' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('afterthesoftwareversionupgraded'),
|
title: this.$t('afterthesoftwareversionupgraded'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'afterthesoftwareversionupgraded',
|
dataIndex: 'afterthesoftwareversionupgraded',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170
|
width: 170,
|
||||||
|
scopedSlots: { customRender: 'afterthesoftwareversionupgraded' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('beforetheOSversionupgraded'),
|
title: this.$t('beforetheOSversionupgraded'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'beforetheOSversionupgraded',
|
dataIndex: 'beforetheOSversionupgraded',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170
|
width: 170,
|
||||||
|
scopedSlots: { customRender: 'beforetheOSversionupgraded' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('aftertheoperatingsystemversionupgraded'),
|
title: this.$t('aftertheoperatingsystemversionupgraded'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'aftertheoperatingsystemversionupgraded',
|
dataIndex: 'aftertheoperatingsystemversionupgraded',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170
|
width: 170,
|
||||||
|
scopedSlots: { customRender: 'aftertheoperatingsystemversionupgraded' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('softwaredevelopmententerprise'),
|
title: this.$t('softwaredevelopmententerprise'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'softwaredevelopmententerprise',
|
dataIndex: 'softwaredevelopmententerprise',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170
|
width: 170,
|
||||||
|
scopedSlots: { customRender: 'softwaredevelopmententerprise' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('initialpackageforintegrityinflammatorydata'),
|
title: this.$t('initialpackageforintegrityinflammatorydata'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'initialpackageforintegrityinflammatorydata',
|
dataIndex: 'initialpackageforintegrityinflammatorydata',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170
|
width: 170,
|
||||||
|
scopedSlots: { customRender: 'initialpackageforintegrityinflammatorydata' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('upgradepackageintegrityverificationdata'),
|
title: this.$t('upgradepackageintegrityverificationdata'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'upgradepackageintegrityverificationdata',
|
dataIndex: 'upgradepackageintegrityverificationdata',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170
|
width: 170,
|
||||||
|
scopedSlots: { customRender: 'upgradepackageintegrityverificationdata' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('upgradepackagesize'),
|
title: this.$t('upgradepackagesize'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'upgradepackagesize',
|
dataIndex: 'upgradepackagesize',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170
|
width: 170,
|
||||||
|
scopedSlots: { customRender: 'upgradepackagesize' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('differentialupgradeornot'),
|
title: this.$t('differentialupgradeornot'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'differentialupgradeornot',
|
dataIndex: 'differentialupgradeornot',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 170
|
width: 170,
|
||||||
|
scopedSlots: { customRender: 'differentialupgradeornot' },
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -278,6 +304,13 @@ export default {
|
|||||||
next(){
|
next(){
|
||||||
this.$emit('upgradedonlinedown')
|
this.$emit('upgradedonlinedown')
|
||||||
},
|
},
|
||||||
|
addlineAtBot(){
|
||||||
|
let obj={}
|
||||||
|
this.dataSource.push(obj)
|
||||||
|
},
|
||||||
|
deleteData(record){
|
||||||
|
this.dataSource.splice(this.dataSource.indexOf(record),1)
|
||||||
|
},
|
||||||
uploadSuccess(data) {
|
uploadSuccess(data) {
|
||||||
let attIdList = []
|
let attIdList = []
|
||||||
if (data && data.length > 0) {
|
if (data && data.length > 0) {
|
||||||
|
|||||||
+78
-19
@@ -16,10 +16,13 @@
|
|||||||
<span class='sider-span1'>{{$t('upgradePurpose')}}</span>
|
<span class='sider-span1'>{{$t('upgradePurpose')}}</span>
|
||||||
</a-layout-sider>
|
</a-layout-sider>
|
||||||
<a-layout-content style='border: black solid 1px;border-left: none;border-bottom: none;'>
|
<a-layout-content style='border: black solid 1px;border-left: none;border-bottom: none;'>
|
||||||
<j-dict-select-tag class="box-input"
|
<j-multi-select-tag class="box-input"
|
||||||
|
v-model="form.sjmd"
|
||||||
|
@change="update"
|
||||||
:disabled="disable"
|
:disabled="disable"
|
||||||
:placeholder="$t('PleaseSelect')"
|
:placeholder="$t('PleaseSelect')"
|
||||||
:type="'select'"
|
:type="'select'"
|
||||||
|
:dictCode="'uipgrade_purpose'"
|
||||||
:triggerChange="false"/>
|
:triggerChange="false"/>
|
||||||
</a-layout-content>
|
</a-layout-content>
|
||||||
</a-layout>
|
</a-layout>
|
||||||
@@ -35,25 +38,25 @@
|
|||||||
</a-layout-content>
|
</a-layout-content>
|
||||||
<a-layout-content style='width: 5.5%'>
|
<a-layout-content style='width: 5.5%'>
|
||||||
<span class='content-text'>
|
<span class='content-text'>
|
||||||
<a-radio-group style='margin-left: 40px;'>
|
<a-radio-group style='margin-left: 40px;' v-model="form.sfbgcs">
|
||||||
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
||||||
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</span>
|
</span>
|
||||||
<span class='content-text'>
|
<span class='content-text'>
|
||||||
<a-radio-group style='margin-left: 40px;'>
|
<a-radio-group style='margin-left: 40px;' v-model="form.sjxnbh">
|
||||||
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
||||||
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</span>
|
</span>
|
||||||
<span class='content-text'>
|
<span class='content-text'>
|
||||||
<a-radio-group style='margin-left: 40px;'>
|
<a-radio-group style='margin-left: 40px;' v-model="form.fhgd">
|
||||||
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
||||||
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</span>
|
</span>
|
||||||
<span class='content-text'>
|
<span class='content-text'>
|
||||||
<a-radio-group style='margin-left: 40px;'>
|
<a-radio-group style='margin-left: 40px;' v-model="form.zdjsxg">
|
||||||
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
||||||
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
@@ -75,7 +78,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class='layout-box-second'>
|
<div class='layout-box-second'>
|
||||||
<span class='box-text'>
|
<span class='box-text'>
|
||||||
<a-radio-group style='margin-left: 40px;'>
|
<a-radio-group style='margin-left: 40px;' v-model="form.jrxxg">
|
||||||
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
||||||
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
@@ -84,40 +87,46 @@
|
|||||||
<j-dict-select-tag class="box-input"
|
<j-dict-select-tag class="box-input"
|
||||||
style='margin-top: 2px'
|
style='margin-top: 2px'
|
||||||
:disabled="disable"
|
:disabled="disable"
|
||||||
|
v-model="form.zxsj"
|
||||||
|
:placeholder="$t('PleaseSelect')"
|
||||||
|
:type="'select'"
|
||||||
|
dictCode="conditions_upgrades"
|
||||||
|
:triggerChange="false"/>
|
||||||
|
</span>
|
||||||
|
<span class='box-text'>
|
||||||
|
<j-multi-select-tag class="box-input"
|
||||||
|
v-model="form.aqjz"
|
||||||
|
style='margin-top: 2px'
|
||||||
|
:disabled="disable"
|
||||||
|
dictCode="upgrade_failed"
|
||||||
:placeholder="$t('PleaseSelect')"
|
:placeholder="$t('PleaseSelect')"
|
||||||
:type="'select'"
|
:type="'select'"
|
||||||
:triggerChange="false"/>
|
:triggerChange="false"/>
|
||||||
</span>
|
</span>
|
||||||
<span class='box-text'>
|
<span class='box-text'>
|
||||||
<j-dict-select-tag class="box-input"
|
<a-radio-group style='margin-left: 40px;' v-model="form.sfyxaq">
|
||||||
style='margin-top: 2px'
|
|
||||||
:disabled="disable"
|
|
||||||
:placeholder="$t('PleaseSelect')"
|
|
||||||
:type="'select'"
|
|
||||||
:triggerChange="false"/>
|
|
||||||
</span>
|
|
||||||
<span class='box-text'>
|
|
||||||
<a-radio-group style='margin-left: 40px;'>
|
|
||||||
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
||||||
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</span>
|
</span>
|
||||||
<span class='box-text'>
|
<span class='box-text'>
|
||||||
<a-radio-group style='margin-left: 40px;'>
|
<a-radio-group style='margin-left: 40px;' v-model="form.yhqr">
|
||||||
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
||||||
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
</span>
|
</span>
|
||||||
<span class='box-text'>
|
<span class='box-text'>
|
||||||
<j-dict-select-tag class="box-input"
|
<j-multi-select-tag class="box-input"
|
||||||
style='margin-top: 2px'
|
style='margin-top: 2px'
|
||||||
:disabled="disable"
|
:disabled="disable"
|
||||||
|
v-model="form.sjbcs"
|
||||||
:placeholder="$t('PleaseSelect')"
|
:placeholder="$t('PleaseSelect')"
|
||||||
|
dictCode="package_test"
|
||||||
:type="'select'"
|
:type="'select'"
|
||||||
:triggerChange="false"/>
|
:triggerChange="false"/>
|
||||||
</span>
|
</span>
|
||||||
<span class='box-text' style='border-bottom: black solid 1px'>
|
<span class='box-text' style='border-bottom: black solid 1px'>
|
||||||
<a-radio-group style='margin-left: 40px;'>
|
<a-radio-group style='margin-left: 40px;' v-model="form.aqkkx">
|
||||||
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
<a-radio :value="1"> {{ $t('yes') }} </a-radio>
|
||||||
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
<a-radio :value="2"> {{ $t('not') }} </a-radio>
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
@@ -129,7 +138,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a-layout>
|
</a-layout>
|
||||||
<div class="bootom-button">
|
<div class="bootom-button">
|
||||||
<a-button style="margin-right:50px">{{$t('preservation')}}</a-button>
|
<a-button style="margin-right:50px" @click="save">{{$t('preservation')}}</a-button>
|
||||||
<a-button type="primary" style='width: 73px;margin-right: 50px' @click='last'>{{$t('last')}}</a-button>
|
<a-button type="primary" style='width: 73px;margin-right: 50px' @click='last'>{{$t('last')}}</a-button>
|
||||||
<a-button type="primary" style='width: 73px' @click='next'>{{$t('next')}}</a-button>
|
<a-button type="primary" style='width: 73px' @click='next'>{{$t('next')}}</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -289,12 +298,27 @@ export default {
|
|||||||
scopedSlots: { customRender: 'operation' }
|
scopedSlots: { customRender: 'operation' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
form:{
|
||||||
|
sjmd:'',
|
||||||
|
fhgd:1,
|
||||||
|
zdjsxg:2,
|
||||||
|
sfyxaq:2,
|
||||||
|
yhqr:1,
|
||||||
|
aqkkx:1,
|
||||||
|
zxsj:2,
|
||||||
|
aqjz:'2',
|
||||||
|
sjbcs:'3,4'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// this.getList()
|
// this.getList()
|
||||||
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
update(){
|
||||||
|
this.$forceUpdate()
|
||||||
|
},
|
||||||
// 模板下载
|
// 模板下载
|
||||||
handleModule() {
|
handleModule() {
|
||||||
downloadFile('ota/otaBaSjSjyxpg/exportTemplate', '升级影响评估' + '.zip', {})
|
downloadFile('ota/otaBaSjSjyxpg/exportTemplate', '升级影响评估' + '.zip', {})
|
||||||
@@ -339,10 +363,45 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getData(){
|
||||||
|
let otaIdT=localStorage.getItem('otaIdT')
|
||||||
|
if(otaIdT==null){
|
||||||
|
otaIdT=''
|
||||||
|
}
|
||||||
|
let otaId=localStorage.getItem('otaId')
|
||||||
|
if(otaId==null){
|
||||||
|
otaId=''
|
||||||
|
}
|
||||||
|
getAction('/ota/otaBaSjSjyxpg/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{
|
||||||
|
if(res.code==200){
|
||||||
|
this.form=res.result==null ? {
|
||||||
|
sjmd:'',
|
||||||
|
fhgd:1,
|
||||||
|
zdjsxg:2,
|
||||||
|
sfyxaq:2,
|
||||||
|
yhqr:1,
|
||||||
|
aqkkx:1,
|
||||||
|
zxsj:2,
|
||||||
|
aqjz:'2',
|
||||||
|
sjbcs:'3,4'
|
||||||
|
} : res.result
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
save(){
|
||||||
|
|
||||||
|
this.form.otaId=localStorage.getItem('otaId')
|
||||||
|
postAction('/ota/otaBaSjSjyxpg/add',this.form).then(res=>{
|
||||||
|
this.$message.success(this.$t('SavedSuccessfully'))
|
||||||
|
console.log(res);
|
||||||
|
})
|
||||||
|
},
|
||||||
last(){
|
last(){
|
||||||
|
this.save()
|
||||||
this.$emit('safetyPrecautionsup')
|
this.$emit('safetyPrecautionsup')
|
||||||
},
|
},
|
||||||
next(){
|
next(){
|
||||||
|
this.save()
|
||||||
this.$emit('safetyPrecautionsdown')
|
this.$emit('safetyPrecautionsdown')
|
||||||
},
|
},
|
||||||
uploadSuccess(data) {
|
uploadSuccess(data) {
|
||||||
|
|||||||
+29
-27
@@ -19,7 +19,7 @@
|
|||||||
<span class="title-text-text" :title="$t('selectTheVehicleTemplate')">{{$t('selectTheVehicleTemplate')}}</span>
|
<span class="title-text-text" :title="$t('selectTheVehicleTemplate')">{{$t('selectTheVehicleTemplate')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="dutyTerritory">
|
<a-form-model-item class="itemModel" prop="dutyTerritory">
|
||||||
<a-select :disabled="disabled" class="box-input" v-model="form.cxmb" allowClear :placeholder="$t('PleaseSelect')" @change="changeId">
|
<a-select :disabled="disabled" class="box-input" v-model="form.cxmb" allowClear :placeholder="$t('PleaseSelect')" @change="update">
|
||||||
<a-select-option v-for="(item , key ) in selectListMb" :key="key" :value="item.id" >
|
<a-select-option v-for="(item , key ) in selectListMb" :key="key" :value="item.id" >
|
||||||
{{ item.cpdjbh }}
|
{{ item.cpdjbh }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
@@ -76,12 +76,8 @@
|
|||||||
<span class="title-text-text" :title="$t('producttrademark')">{{$t('producttrademark')}}</span>
|
<span class="title-text-text" :title="$t('producttrademark')">{{$t('producttrademark')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel">
|
<a-form-model-item class="itemModel">
|
||||||
<j-dict-select-tag class="box-input"
|
<a-input disabled class="box-input" :placeholder="$t('pleaseEnter')" v-model="form.cpsb"></a-input>
|
||||||
disabled
|
|
||||||
v-model="form.cpsb"
|
|
||||||
:placeholder="$t('PleaseSelect')"
|
|
||||||
:type="'select'"
|
|
||||||
:triggerChange="false"/>
|
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -91,12 +87,8 @@
|
|||||||
<span class="title-text-text" :title="$t('productname')">{{$t('productname')}}</span>
|
<span class="title-text-text" :title="$t('productname')">{{$t('productname')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel">
|
<a-form-model-item class="itemModel">
|
||||||
<j-dict-select-tag class="box-input"
|
<a-input disabled class="box-input" :placeholder="$t('pleaseEnter')" v-model="form.cpmc"></a-input>
|
||||||
disabled
|
|
||||||
v-model="form.cpmc"
|
|
||||||
:placeholder="$t('PleaseSelect')"
|
|
||||||
:type="'select'"
|
|
||||||
:triggerChange="false"/>
|
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -106,12 +98,8 @@
|
|||||||
<span class="title-text-text" :title="$t('productModel')">{{$t('productModel')}}</span>
|
<span class="title-text-text" :title="$t('productModel')">{{$t('productModel')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel">
|
<a-form-model-item class="itemModel">
|
||||||
<j-dict-select-tag class="box-input"
|
<a-input disabled class="box-input" :placeholder="$t('pleaseEnter')" v-model="form.cpxh"></a-input>
|
||||||
disabled
|
|
||||||
v-model="form.cpxh"
|
|
||||||
:placeholder="$t('PleaseSelect')"
|
|
||||||
:type="'select'"
|
|
||||||
:triggerChange="false"/>
|
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -174,7 +162,9 @@ import ImportFile from '@/components/ImportFileData/index'
|
|||||||
return {
|
return {
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
form:{},
|
form:{
|
||||||
|
qymc:'安徽江淮汽车集团股份有限公司'
|
||||||
|
},
|
||||||
url: {
|
url: {
|
||||||
exportData: '/ota/otaBaSjSjmbcx/exportData',
|
exportData: '/ota/otaBaSjSjmbcx/exportData',
|
||||||
importZipUrl: '/ota/otaBaSjSjmbcx/importData',//导入
|
importZipUrl: '/ota/otaBaSjSjmbcx/importData',//导入
|
||||||
@@ -204,14 +194,19 @@ import ImportFile from '@/components/ImportFileData/index'
|
|||||||
if(otaId==null){
|
if(otaId==null){
|
||||||
otaId=''
|
otaId=''
|
||||||
}
|
}
|
||||||
getAction('/ota/otaBaCxJbxx/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{
|
getAction('/ota/otaBaSjSjmbcx/queryByOtaId',{otaIdT:otaIdT,otaId:otaId}).then(res=>{
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
// this.form=res.result
|
this.form=res.result ==null?{}:res.result
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
save(){
|
save(){
|
||||||
postAction('/ota/otaBaSjSjmbcx/add',this.form).then(res=>{
|
let otaId=localStorage.getItem('otaId')
|
||||||
|
if(otaId==null){
|
||||||
|
otaId=''
|
||||||
|
}
|
||||||
|
postAction('/ota/otaBaSjSjmbcx/add',{otaId:otaId,...this.form}).then(res=>{
|
||||||
|
this.$message.success(this.$t('SavedSuccessfully'))
|
||||||
localStorage.setItem('otaId', res.result.otaId)
|
localStorage.setItem('otaId', res.result.otaId)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -225,8 +220,7 @@ import ImportFile from '@/components/ImportFileData/index'
|
|||||||
this.selectListPc=[]
|
this.selectListPc=[]
|
||||||
res.result.forEach(item=>{
|
res.result.forEach(item=>{
|
||||||
let obj={}
|
let obj={}
|
||||||
obj.id=item.id
|
obj=item
|
||||||
obj.ggpc=item.ggpc
|
|
||||||
this.selectListPc.push(obj)
|
this.selectListPc.push(obj)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -256,8 +250,16 @@ import ImportFile from '@/components/ImportFileData/index'
|
|||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
changeId(value){
|
changeId(value,option){
|
||||||
this.$forceUpdate()
|
this.selectListPc.map(item=>{
|
||||||
|
if(item.id==value){
|
||||||
|
this.form.cpsb = item.cpsb
|
||||||
|
this.form.cpmc = item.cpmc
|
||||||
|
this.form.cpxh = item.cpxh
|
||||||
|
this.form.babh = item.cpdjbh
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.$forceUpdate()
|
||||||
},
|
},
|
||||||
update(){
|
update(){
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
|
|||||||
Reference in New Issue
Block a user