Commit ef16a493 by 张杰

v1.6.0版本需求

1 parent 76eafe64
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div class="search_box"> <div class="search_box">
<el-form :inline="true" size="small"> <el-form :inline="true" size="small">
<el-form-item label="关键字"> <el-form-item label="关键字">
<el-input v-model="searchForm.keywords" class="long_input" placeholder="车主姓名|车架号|设备号|车型"></el-input> <el-input v-model.trim="searchForm.keywords" class="long_input" placeholder="车主姓名|车架号|设备号|车型"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="设备类型:"> <el-form-item label="设备类型:">
<el-select v-model="searchForm.deviceType" class="small_select"> <el-select v-model="searchForm.deviceType" class="small_select">
...@@ -903,7 +903,7 @@ export default { ...@@ -903,7 +903,7 @@ export default {
//this.snForm.deviceArr = [{ sn: "", deviceType: "" }]; //this.snForm.deviceArr = [{ sn: "", deviceType: "" }];
//this.snForm.deviceInfoDtos = [{}]; //this.snForm.deviceInfoDtos = [{}];
this.snForm = {} this.snForm = {};
this.$set(this.snForm, "deviceInfoDtos", [ this.$set(this.snForm, "deviceInfoDtos", [
{ sn: "", deviceClassifyName: "" }, { sn: "", deviceClassifyName: "" },
]); ]);
...@@ -1593,7 +1593,12 @@ export default { ...@@ -1593,7 +1593,12 @@ export default {
} }
let i = rule.field.split(".")[1]; let i = rule.field.split(".")[1];
verifydevice({ sn: value }).then((res) => { let oParams = {};
oParams.sn = value;
if (_this.snForm.id) {
oParams.vehicleId = _this.snForm.id;
}
verifydevice(oParams).then((res) => {
if (res.code == 200) { if (res.code == 200) {
checkSn({ sn: value }).then((res) => { checkSn({ sn: value }).then((res) => {
if (res.data) { if (res.data) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!