Elements-SY

modify

......@@ -148,7 +148,7 @@
<el-col :span="4">
<el-radio-group
v-model="isServiceCode"
@change="isServiceCode"
@change="changeIsServiceCode"
>
<el-radio label="1">包含ServiceCode</el-radio>
<el-radio label="2">不包含ServiceCode</el-radio>
......@@ -203,7 +203,7 @@
<el-card shadow="never">
<el-checkbox-group
v-model="checkboxClsssType"
@change="checkboxCargoType"
@change="changeCheckboxCargoType"
style="display: flex"
v-if="cargoType.length"
>
......@@ -392,7 +392,7 @@ export default {
tableAttr: tableAttr, // table配置项
tableData: [], // ET86配舱航班顺位
currentIndex: 0, // 记录当前table 列的索引位置
id: 1,
id: 1, // ET86配舱航班顺位ID
isServiceCode: "1", // 服务种类
serviceCode: "", // 服务种类内容
cargoType: [], // 申报类别调用接口获取所有的申报类别
......@@ -602,11 +602,11 @@ export default {
this.tableData.splice($index, 1);
},
// 类别
checkboxCargoType(arr) {
let include = this.queryForm.cargoType.filter((item) =>
changeCheckboxCargoType(arr) {
let include = this.cargoType.filter((item) =>
arr.some((val) => val == item.chineseName)
);
this.queryForm.checkboxCargoType = include; //已勾选申报类别的数据
this.checkboxCargoType = include; //已勾选申报类别的数据
this.queryForm.declarationCategory = arr.join(";");
},
// 表单提交
......
......@@ -28,7 +28,7 @@ export default {
};
},
// radio包含不包含serviceCode
isServiceCode(val) {
changeIsServiceCode(val) {
// 勾选的时候去校验 || 输入的时候去校验
if (val == 1) {
if (this.serviceCodeCofig().noInclude.length) {
......