Elements-SY

modify

......@@ -242,5 +242,12 @@ export default {
};
</script>
<style lang="scss">
.el-table {
th {
padding: 0;
}
td{
padding: 0;
}
}
</style>
......
<template>
<div class="form-header">
<el-row style="padding: 20px 0">
<el-row style="padding-bottom: 20px">
<el-col>
<el-divider content-position="left">ET86配舱航班顺位</el-divider>
</el-col>
......@@ -199,7 +199,7 @@
<el-card shadow="never">
<el-checkbox-group
v-model="checkboxClsssType"
@change="checkboxSingleName"
@change="checkboxCargoType"
style="display: flex"
v-if="queryForm.cargoType.length"
>
......@@ -370,6 +370,7 @@ export default {
includeUrsa: "", // URSA包含
notIncludeUrsa: "", // URSA不包含
cargoType: [], // 申报类别调用接口获取所有的申报类别
checkboxCargoType: [], // 已勾选申报类别的数据
singleName: false, // 单品名
minWeight: null,
maxWeight: null,
......@@ -548,11 +549,12 @@ export default {
this.tableData.splice($index, 1);
},
// 类别
checkboxSingleName(arr) {
checkboxCargoType(arr) {
let include = this.queryForm.cargoType.filter((item) =>
arr.some((val) => val == item.chineseName)
);
console.log(arr, include);
this.queryForm.checkboxCargoType = include; //已勾选申报类别的数据
// console.log(arr, include);
},
// 重量、件数、申报值input失焦事件
inputBlur(name) {
......@@ -597,7 +599,12 @@ export default {
submitForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
console.log(this.tableData);
let parmas = {
fltInfoList: this.tableData,
...this.queryForm,
}
parmas.singleName = this.queryForm.singleName ? 'Y' : 'N'; // N为单品名,Y为多品名
console.log(parmas);
} else {
console.log("error submit!!");
return false;
......