Merge remote-tracking branch 'origin/dev_2nd_LCYH' into dev_2nd_LCYH
This commit is contained in:
@@ -393,6 +393,8 @@ export default {
|
|||||||
},
|
},
|
||||||
// 创建车型
|
// 创建车型
|
||||||
createvehicleandfunctionrecords() {
|
createvehicleandfunctionrecords() {
|
||||||
|
localStorage.removeItem('otaId')
|
||||||
|
localStorage.removeItem('otaIdT')
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/upgradeactivityrecord',
|
path: '/upgradeactivityrecord',
|
||||||
query: {}
|
query: {}
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<!-- 第五页 -->
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div class="operator-text">
|
<div class="operator-text">
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<!-- 第七页 -->
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<a-spin :spinning="confirmLoading">
|
<a-spin :spinning="confirmLoading">
|
||||||
<a-form-model class="formAdd" ref="ruleForm">
|
<a-form-model class="formAdd" ref="ruleForm">
|
||||||
|
|||||||
+20
-8
@@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<!-- 第二页 -->
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div class="operator-text">
|
<div class="operator-text">
|
||||||
@@ -11,7 +12,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a-spin :spinning="confirmLoading">
|
<a-spin :spinning="confirmLoading">
|
||||||
<a-form-model class="formAdd" ref="ruleForm">
|
<a-form-model class="formAdd" ref="ruleForm" :model="formInline">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<div class="box-title-text-add">
|
<div class="box-title-text-add">
|
||||||
@@ -21,6 +22,7 @@
|
|||||||
<a-form-model-item class="itemModel" prop="dutyTerritory">
|
<a-form-model-item class="itemModel" prop="dutyTerritory">
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
|
v-model="formInline.zsl"
|
||||||
:placeholder="$t('PleaseSelect')"></a-input>
|
:placeholder="$t('PleaseSelect')"></a-input>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -33,11 +35,9 @@
|
|||||||
{{$t('dateofproduction')}}</span>
|
{{$t('dateofproduction')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="dateofproduction">
|
<a-form-model-item class="itemModel" prop="dateofproduction">
|
||||||
<a-date-picker class="box-input"
|
<a-range-picker class="box-input"
|
||||||
:placeholder="$t('PleaseSelect')+$t('dateofproduction')"
|
:placeholder="$t('PleaseSelect')+$t('dateofproduction')"
|
||||||
@change="dateChange({db_field_name:'dateofproduction'})"
|
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
:getCalendarContainer="(trigger) => trigger.parentNode"
|
|
||||||
v-model="formInline.dateofproduction"
|
v-model="formInline.dateofproduction"
|
||||||
:disabled="false"
|
:disabled="false"
|
||||||
style="width: 100%"/>
|
style="width: 100%"/>
|
||||||
@@ -79,14 +79,16 @@
|
|||||||
formInline.VINcodelist == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
formInline.VINcodelist == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||||
}}
|
}}
|
||||||
</a-button>
|
</a-button>
|
||||||
|
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"></uploadFile>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<div class="bootom-button">
|
<div class="bootom-button">
|
||||||
<a-button class='btn' style='margin-right: 50px'>{{$t('preservation')}}</a-button>
|
<a-button class='btn' 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>
|
||||||
@@ -100,6 +102,7 @@ import moment from 'moment'
|
|||||||
export default {
|
export default {
|
||||||
name: 'basicInformation',
|
name: 'basicInformation',
|
||||||
components:{
|
components:{
|
||||||
|
uploadFile
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -112,15 +115,24 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
save(){
|
||||||
|
let obj={}
|
||||||
|
obj.zsl = this.formInline.zsl
|
||||||
|
obj.scrqks = this.formInline.dateofproduction[0]
|
||||||
|
obj.scrqjs = this.formInline.dateofproduction[1]
|
||||||
|
obj.VINcodelist = this.formInline.VINcodelist
|
||||||
|
postAction('ota/otaBaSjSjmbcl/add',obj).then(res=>{
|
||||||
|
console.log(res);
|
||||||
|
})
|
||||||
|
},
|
||||||
next(){
|
next(){
|
||||||
|
this.save()
|
||||||
this.$emit('upgradeRequirementsdown')
|
this.$emit('upgradeRequirementsdown')
|
||||||
},
|
},
|
||||||
last(){
|
last(){
|
||||||
|
this.save()
|
||||||
this.$emit('upgradeRequirementsup')
|
this.$emit('upgradeRequirementsup')
|
||||||
},
|
},
|
||||||
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') : ''
|
|
||||||
},
|
|
||||||
clickButtonToUpload(item) {
|
clickButtonToUpload(item) {
|
||||||
this.$refs.uploadFile.perentHandleFunc()
|
this.$refs.uploadFile.perentHandleFunc()
|
||||||
this.$refs.uploadFile.visible = true
|
this.$refs.uploadFile.visible = true
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<!-- 第四页 -->
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div class="operator-text">
|
<div class="operator-text">
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<!-- 第三页 -->
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div class="operator-text">
|
<div class="operator-text">
|
||||||
|
|||||||
+1
@@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<!-- 第一页 -->
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div class="operator-text">
|
<div class="operator-text">
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<!-- 第六页 -->
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<div class="operator-text">
|
<div class="operator-text">
|
||||||
|
|||||||
+11
-2
@@ -339,18 +339,27 @@ import { message } from 'ant-design-vue'
|
|||||||
|
|
||||||
},
|
},
|
||||||
next(){
|
next(){
|
||||||
this.save()
|
this.$refs.ruleForm.validate(valid=>{
|
||||||
|
if(valid){
|
||||||
|
this.save()
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.$emit('basicInformationForm')
|
this.$emit('basicInformationForm')
|
||||||
},1000)
|
},1000)
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
async save(){
|
async save(){
|
||||||
postAction('/ota/otaBaCxJbxx/add',{ otaId:localStorage.getItem('otaId'),...this.form}).then( res => {
|
this.$refs.ruleForm.validate(valid=>{
|
||||||
|
if(valid){
|
||||||
|
postAction('/ota/otaBaCxJbxx/add',{ otaId:localStorage.getItem('otaId'),...this.form}).then( res => {
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
localStorage.setItem('otaId', res.result.otaId)
|
localStorage.setItem('otaId', res.result.otaId)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
changeSelect(target){
|
changeSelect(target){
|
||||||
this.form.dllx2=undefined
|
this.form.dllx2=undefined
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ import ImportFile from '@/components/ImportFileData/index'
|
|||||||
gnmc:'百区监测(BSD)',
|
gnmc:'百区监测(BSD)',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
gnmc:'驻员疲劳篮澳CDFM)',
|
gnmc:'驾驶员疲劳监测(DFM)',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
gnmc:'自动紧急制动(AEB)',
|
gnmc:'自动紧急制动(AEB)',
|
||||||
|
|||||||
@@ -890,7 +890,7 @@ export default {
|
|||||||
|
|
||||||
this.dataSource.forEach(item=>{
|
this.dataSource.forEach(item=>{
|
||||||
for(let key in res.result.bj){
|
for(let key in res.result.bj){
|
||||||
if(Number(res.result.bj[key])!=NaN &&Number(res.result.bj[key])!=0 && key !=id){
|
if(Number(res.result.bj[key])!=NaN &&Number(res.result.bj[key])!=0 && key !='id'){
|
||||||
console.log(key);
|
console.log(key);
|
||||||
res.result.bj[key]=Number(res.result.bj[key])
|
res.result.bj[key]=Number(res.result.bj[key])
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user