Browse Source

完善公告型号

master
yunuo970428 2 years ago
parent
commit
505673893c
  1. 80
      anrui-scm/anrui-scm-ui/src/views/othermenu/affichetype/gonggaoAdd.vue
  2. 34
      anrui-scm/anrui-scm-ui/src/views/othermenu/affichetype/gonggaoInfo.vue

80
anrui-scm/anrui-scm-ui/src/views/othermenu/affichetype/gonggaoAdd.vue

@ -18,6 +18,18 @@
<div class="titwu"><span>公告型号</span></div> <div class="titwu"><span>公告型号</span></div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd"> <el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd">
<el-row style="border-top: 1px solid #E0E3EB"> <el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="4" class="tleftb">
<span>车辆名称</span>
</el-col>
<el-col :span="20">
<el-form-item>
<el-select v-model="formobj.vehNameValue" placeholder="请选择" filterable style="width: 20%" @change="changeCar">
<el-option v-for="item in car_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb"> <el-col :span="4" class="tleftb">
<span>公告型号</span> <span>公告型号</span>
</el-col> </el-col>
@ -36,46 +48,68 @@
<div class="title"> <div class="title">
<div>公告型号列表</div> <div>公告型号列表</div>
<div> <div>
<el-button type="primary" size="mini" icon="el-icon-plus" @click="add()">添加</el-button> <el-button type="primary" size="mini" icon="el-icon-plus" class="btntopblueline" @click="add()">添加</el-button>
</div> </div>
</div> </div>
<el-table :key="tableKey" :data="formobj.baseAnnouncementmodelParams" :index="index" border style="width: 100%"> <el-table :key="tableKey" :data="formobj.baseAnnouncementmodelParams" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> <el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column fixed prop="name" label="操作" width="100px" align="center" header-align="center"> <el-table-column fixed prop="name" label="操作" width="100px" align="center" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="danger" @click="dataDelete(scope.$index)">删除 <el-button size="mini" type="danger" @click="dataDelete(scope.$index)">删除
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="整车外观尺寸(长*宽*高(mm))" align="center"> <el-table-column label="整车外观尺寸(长*宽*高(mm))" align="center" width="230">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.vehAppeSize" clearable placeholder="" class="addinputw"></el-input> <el-input v-model="scope.row.vehAppeSize" clearable placeholder="" class="addinputw"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="准牵引总质量(Kg)" align="center"> <el-table-column label="货箱内部尺寸(长*宽*高(mm))" align="center" width="230">
<template slot-scope="scope">
<el-input v-model="scope.row.boxInsideSize" clearable placeholder="" class="addinputw"></el-input>
</template>
</el-table-column>
<el-table-column label="货厢底板到仓栅顶部高(mm)" align="center" width="230">
<template slot-scope="scope">
<el-input v-model="scope.row.boxFloorReaGraTopHigh" clearable placeholder="" class="addinputw"></el-input>
</template>
</el-table-column>
<el-table-column label="准牵引总质量(Kg)" align="center" width="160">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.accTowTotalMass" clearable placeholder="" class="addinputw"></el-input> <el-input v-model="scope.row.accTowTotalMass" clearable placeholder="" class="addinputw"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="整备质量(Kg)" align="center"> <el-table-column label="整备质量(Kg)" align="center" width="140">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.preparationMass" clearable placeholder="" class="addinputw"></el-input> <el-input v-model="scope.row.preparationMass" clearable placeholder="" class="addinputw"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="悬架" align="center" width="200"> <el-table-column label="额定载质量(Kg)" align="center" width="150">
<template slot-scope="scope">
<el-input v-model="scope.row.ratedLoadQuality" clearable placeholder="" class="addinputw"></el-input>
</template>
</el-table-column>
<el-table-column label="悬架" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.plateReedNumValue" placeholder="请选择" class="addinputw" @change="changePlateReedNum($event, scope.row)"> <el-select v-model="scope.row.plateReedNumValue" placeholder="请选择" class="addinputw" @change="changePlateReedNum($event, scope.row)">
<el-option v-for="item in plateReedNum_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/> <el-option v-for="item in plateReedNum_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="轮胎" align="center" width="200"> <el-table-column label="轮胎" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.tyreValue" placeholder="请选择" class="addinputw" @change="changeTyre($event, scope.row)"> <el-select v-model="scope.row.tyreValue" placeholder="请选择" class="addinputw" @change="changeTyre($event, scope.row)">
<el-option v-for="item in tyre_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/> <el-option v-for="item in tyre_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="轴距" align="center">
<template slot-scope="scope">
<el-select v-model="scope.row.wheelbaseValue" placeholder="请选择" class="addinputw" @change="changeWheelbase($event, scope.row)">
<el-option v-for="item in wheelbase_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue"/>
</el-select>
</template>
</el-table-column>
</el-table> </el-table>
</el-form> </el-form>
</div> </div>
@ -89,17 +123,21 @@ import req from '@/api/othermenu/gonggaoxinghao'
import { getOrgSidByPath, typeValues } from '@/api/cheliang/dictcommons' import { getOrgSidByPath, typeValues } from '@/api/cheliang/dictcommons'
export default { export default {
name: 'gongggaoxinghaoAdd', name: 'GongGaoXingHaoAdd',
data() { data() {
return { return {
viewTitle: '', viewTitle: '',
index: 0, index: 0,
tableKey: 0, tableKey: 0,
car_list: [],
plateReedNum_list: [], plateReedNum_list: [],
tyre_list: [], tyre_list: [],
wheelbase_list: [],
// //
formobj: { formobj: {
sid: '', // sid sid: '', // sid
vehNameValue: '',
vehNameKey: '',
announcementmodelName: '', announcementmodelName: '',
createOrgSid: '', createOrgSid: '',
useOrgSid: '', useOrgSid: '',
@ -123,6 +161,11 @@ export default {
this.tyre_list = res.data this.tyre_list = res.data
} }
}) })
typeValues({ type: 'wheelbase' }).then((res) => {
if (res.success) {
this.wheelbase_list = res.data
}
})
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => { getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
if (resp.success) { if (resp.success) {
this.formobj.createOrgSid = resp.data this.formobj.createOrgSid = resp.data
@ -162,7 +205,12 @@ export default {
sid: '', sid: '',
vehAppeSize: '', vehAppeSize: '',
tyre: '', tyre: '',
tyreValue: '' tyreValue: '',
boxInsideSize: '',
ratedLoadQuality: '',
wheelbaseValue: '',
wheelbaseKey: '',
boxFloorReaGraTopHigh: ''
}) })
}, },
// //
@ -193,6 +241,18 @@ export default {
}) })
row.tyre = bb.key row.tyre = bb.key
}, },
changeWheelbase(value, row) {
let bb = null
this.wheelbase_list.forEach((e) => {
if (e.dictValue === value) {
bb = {
value: e.dictValue,
key: e.dictKey
}
}
})
row.wheelbaseKey = bb.key
},
save() { save() {
this.$refs['form_obj'].validate((valid) => { this.$refs['form_obj'].validate((valid) => {
if (valid) { if (valid) {
@ -221,6 +281,8 @@ export default {
// //
this.formobj = { this.formobj = {
sid: '', // sid sid: '', // sid
vehNameValue: '',
vehNameKey: '',
announcementmodelName: '', announcementmodelName: '',
createOrgSid: '', createOrgSid: '',
useOrgSid: '', useOrgSid: '',

34
anrui-scm/anrui-scm-ui/src/views/othermenu/affichetype/gonggaoInfo.vue

@ -16,6 +16,14 @@
<div class="titwu"><span>公告型号</span></div> <div class="titwu"><span>公告型号</span></div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd"> <el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd">
<el-row style="border-top: 1px solid #E0E3EB"> <el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="4" class="tleftb">
<span>车辆名称</span>
</el-col>
<el-col :span="20">
<el-form-item><span>{{ formobj.vehNameValue }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb"> <el-col :span="4" class="tleftb">
<span>公告型号</span> <span>公告型号</span>
</el-col> </el-col>
@ -36,21 +44,36 @@
</div> </div>
<el-table :key="tableKey" :data="formobj.baseAnnouncementmodelParams" :index="index" border style="width: 100%"> <el-table :key="tableKey" :data="formobj.baseAnnouncementmodelParams" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> <el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="整车外观尺寸(长*宽*高(mm))" align="center"> <el-table-column label="整车外观尺寸(长*宽*高(mm))" align="center" width="230">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.vehAppeSize }}</span> <span>{{ scope.row.vehAppeSize }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="准牵引总质量(Kg)" align="center"> <el-table-column label="货箱内部尺寸(长*宽*高(mm))" align="center" width="230">
<template slot-scope="scope">
<span>{{ scope.row.boxInsideSize }}</span>
</template>
</el-table-column>
<el-table-column label="货厢底板到仓栅顶部高(mm)" align="center" width="230">
<template slot-scope="scope">
<span>{{ scope.row.boxFloorReaGraTopHigh }}</span>
</template>
</el-table-column>
<el-table-column label="准牵引总质量(Kg)" align="center" width="160">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.accTowTotalMass }}</span> <span>{{ scope.row.accTowTotalMass }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="整备质量(Kg)" align="center"> <el-table-column label="整备质量(Kg)" align="center" width="130">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.preparationMass }}</span> <span>{{ scope.row.preparationMass }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="额定载质量(Kg)" align="center" width="150">
<template slot-scope="scope">
<span>{{ scope.row.ratedLoadQuality }}</span>
</template>
</el-table-column>
<el-table-column label="悬架" align="center"> <el-table-column label="悬架" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.plateReedNumValue }}</span> <span>{{ scope.row.plateReedNumValue }}</span>
@ -61,6 +84,11 @@
<span>{{ scope.row.tyreValue }}</span> <span>{{ scope.row.tyreValue }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="轴距" align="center">
<template slot-scope="scope">
<span>{{ scope.row.wheelbaseValue }}</span>
</template>
</el-table-column>
</el-table> </el-table>
</el-form> </el-form>
</div> </div>

Loading…
Cancel
Save