Browse Source

完善验车--点击车型查看车型配置标准页面

master
yunuo970428 2 years ago
parent
commit
0ee4f73b2a
  1. 30
      anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/yancheguanliAdd.vue

30
anrui-scm/anrui-scm-ui/src/views/supplychain/yancheguanli/yancheguanliAdd.vue

@ -1,6 +1,6 @@
<template>
<div class="app-container">
<div v-show="isCheck">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
@ -28,7 +28,7 @@
<el-row>
<el-col :span="12" class="yancheAdd-bor">
<el-form-item prop="model" label="车型:">
<span>{{ temp.model }}</span>
<span class="bluezi" @click="handleLook()">{{ temp.model }}</span>
</el-form-item>
</el-col>
<el-col :span="12" class="yancheAdd-bor">
@ -98,7 +98,9 @@
</el-form>
</div>
</div>
<vehiclechecklist ref="divchecklist" v-show="!isCheck" @doback="resetState"/>
<vehiclechecklist ref="divchecklist" v-show="viewState == 2" @doback="resetState"/>
<!-- 车型配置标准页面 -->
<vehicleconfiguration v-show="viewState == 3" ref="divPeizhi" @doback="resetState"/>
</div>
</template>
@ -107,17 +109,19 @@ import { getOrgSidByPath } from '@/api/cheliang/dictcommons.js'
import { getCarInspectedInfo, saveCarInspectedInfo, submitCarInspectedInfo } from '@/api/supplychain/yancheguanli'
import Upload from '@/components/uploadFile/uploadImg.vue'
import vehiclechecklist from '@/views/supplychain/yancheguanli/vehiclechecklist'
import vehicleconfiguration from '@/views/cheliang/cheliangcaigou/relation/vehicleconfiguration'
export default {
name: 'yancheguanliAdd',
components: {
Upload,
vehiclechecklist
vehiclechecklist,
vehicleconfiguration
},
data() {
return {
viewTitle: '',
isCheck: true,
viewState: 1,
btndisabled: false,
// ---------
sid: '',
@ -136,6 +140,7 @@ export default {
engineNo: '',
orgPath: ''
},
vehicleConfiguration: {},
dialogStatus: '', //
vehiclePhoto: [],
rules: {
@ -176,6 +181,12 @@ export default {
inspectedSid: row.inspectedSid,
userSid: window.sessionStorage.getItem('userSid')
}
this.vehicleConfiguration = {
modelSid: row.modelSid,
configSid: row.configSid,
vehModelConfigSid: row.modelSidAndConfig,
guidedPrice: row.guidedPrice
}
getCarInspectedInfo(data).then((res) => {
if (res.success) {
this.temp = res.data
@ -207,12 +218,16 @@ export default {
}
})
},
handleLook() {
this.viewState = 3
this.$refs['divPeizhi'].showInfo(this.vehicleConfiguration)
},
handleChecklist() {
this.isCheck = false
this.viewState = 2
this.$refs['divchecklist'].showCheck(this.temp.inspectedSid)
},
resetState() {
this.isCheck = true
this.viewState = 1
},
getPathSid() {
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
@ -263,6 +278,7 @@ export default {
this.btndisabled = false
this.imgList01 = []
this.imgList02 = []
this.vehicleConfiguration = {}
this.$emit('doback')
},
//

Loading…
Cancel
Save