diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue
index e91a60cc11..4604de59f7 100644
--- a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/chexingAdd.vue
@@ -16,7 +16,7 @@
-
+
@@ -25,7 +25,7 @@
*功能
-
+
@@ -45,9 +45,9 @@
*驱动
-
+
-
+
@@ -55,9 +55,9 @@
*马力
-
+
-
+
@@ -65,9 +65,9 @@
*版本
-
+
-
+
@@ -75,9 +75,9 @@
*燃料
-
+
-
+
@@ -85,9 +85,9 @@
*变速箱
-
+
-
+
@@ -107,7 +107,7 @@
-
+
@@ -117,7 +117,7 @@
-
+
@@ -253,7 +253,17 @@ export default {
neType: [],
dialogFormVisible: false, // 添加修改对话框状态
dialogStatus: '', // 对话框状态
- rules: {}
+ rules: {
+ carBrand: [{ required: true, message: '品牌不能为空', trigger: 'change' }],
+ vehicleType: [{ required: true, message: '功能不能为空', trigger: 'change' }],
+ productLine: [{ required: true, message: ' 系列不能为空', trigger: 'change' }],
+ driveForm: [{ required: true, message: ' 驱动不能为空', trigger: 'change' }],
+ power: [{ required: true, message: ' 马力不能为空', trigger: 'change' }],
+ vehicleVersion: [{ required: true, message: ' 版本不能为空', trigger: 'change' }],
+ fuelType: [{ required: true, message: ' 燃料不能为空', trigger: 'change' }],
+ gearboxType: [{ required: true, message: ' 变速箱不能为空', trigger: 'change' }],
+ emissionStandard: [{ required: true, message: ' 排放标准不能为空', trigger: 'change' }],
+ }
}
},
methods: {
diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/changyongpeizhi.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/changyongpeizhi.vue
index ce20bd58c3..7fd3bd6114 100644
--- a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/changyongpeizhi.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/changyongpeizhi.vue
@@ -17,8 +17,7 @@
@@ -245,8 +242,7 @@
-
+
@@ -283,7 +279,7 @@ export default {
listLoading: false,
listQuery: {
params: {
- configSid:'',
+ configSid: '',
airConditionerKey: '', // 空调key
baffleModelKey: '', // 导流罩key
bumperKey: '',
@@ -311,8 +307,8 @@ export default {
size: 10,
total: 0
},
- multipleSelection:[],
- modelSid:'',// 选择的车型sid
+ multipleSelection: [],
+ modelSid: '', // 选择的车型sid
rel_list: [],
modelSids: [],
configurationItemsSids: [],
@@ -340,10 +336,6 @@ export default {
rules: {}
}
},
- created() {
- this.getList() // 加载列表
-
- },
methods: {
// 搜索条件效果
clicksearchShow() {
@@ -536,11 +528,12 @@ export default {
}
})
},
- showSetRel(modelSid,configSid) {
+ showSetRel(modelSid, configSid) {
this.modelSid = modelSid
// this.rel_list.modelSid = modelSid
this.listQuery.params.configSid = configSid
- console.log('已关联sids',this.listQuery.params.configSid)
+ console.log('已关联sids', this.listQuery.params.configSid)
+ this.getType()
this.getList()
},
// 返回
@@ -592,7 +585,6 @@ export default {
this.listQuery.total = 0
}
})
- this.getType()
},
// 查询按钮
handleFilter() {
@@ -667,8 +659,6 @@ export default {
this.FormLoading = false
if (response.success) {
this.handleReturn('true')
- } else {
-
}
})
}
@@ -677,25 +667,4 @@ export default {
diff --git a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingguanlianchangyong.vue b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingguanlianchangyong.vue
index b6c04e33a0..3cdcbf7078 100644
--- a/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingguanlianchangyong.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingguanlianchangyong.vue
@@ -16,8 +16,7 @@
@@ -124,7 +121,7 @@
[{{ title }}]车型常用配置列表
-
+
@@ -264,8 +261,7 @@
-
+
@@ -573,12 +569,12 @@ export default {
handleGuanlian() {
this.pageState = 3
let sids = []
- console.log('yiyouyouyo',this.list)
+ console.log('yiyouyouyo', this.list)
this.list.forEach((element) => {
sids.push(element.configurationItemsSid)
})
- console.log('已关联sids',sids.toString())
- this.$refs['changyongpeizhi'].showSetRel(this.setRelList.modelSid,sids.toString())
+ console.log('已关联sids', sids.toString())
+ this.$refs['changyongpeizhi'].showSetRel(this.setRelList.modelSid, sids.toString())
},
// 解除关联
handleDelete() {
@@ -615,7 +611,7 @@ export default {
bb.push({
modelSid: element.modelSid,
configurationItemsSid: element.configurationItemsSid,
- userSid:window.sessionStorage.getItem('userSid')
+ userSid: window.sessionStorage.getItem('userSid')
})
})
this.sids = aa