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

Loading…
Cancel
Save