Elements-SY

modify

...@@ -242,5 +242,12 @@ export default { ...@@ -242,5 +242,12 @@ export default {
242 }; 242 };
243 </script> 243 </script>
244 <style lang="scss"> 244 <style lang="scss">
245 - 245 + .el-table {
246 + th {
247 + padding: 0;
248 + }
249 + td{
250 + padding: 0;
251 + }
252 + }
246 </style> 253 </style>
......
1 <template> 1 <template>
2 <div class="form-header"> 2 <div class="form-header">
3 - <el-row style="padding: 20px 0"> 3 + <el-row style="padding-bottom: 20px">
4 <el-col> 4 <el-col>
5 <el-divider content-position="left">ET86配舱航班顺位</el-divider> 5 <el-divider content-position="left">ET86配舱航班顺位</el-divider>
6 </el-col> 6 </el-col>
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
199 <el-card shadow="never"> 199 <el-card shadow="never">
200 <el-checkbox-group 200 <el-checkbox-group
201 v-model="checkboxClsssType" 201 v-model="checkboxClsssType"
202 - @change="checkboxSingleName" 202 + @change="checkboxCargoType"
203 style="display: flex" 203 style="display: flex"
204 v-if="queryForm.cargoType.length" 204 v-if="queryForm.cargoType.length"
205 > 205 >
...@@ -370,6 +370,7 @@ export default { ...@@ -370,6 +370,7 @@ export default {
370 includeUrsa: "", // URSA包含 370 includeUrsa: "", // URSA包含
371 notIncludeUrsa: "", // URSA不包含 371 notIncludeUrsa: "", // URSA不包含
372 cargoType: [], // 申报类别调用接口获取所有的申报类别 372 cargoType: [], // 申报类别调用接口获取所有的申报类别
373 + checkboxCargoType: [], // 已勾选申报类别的数据
373 singleName: false, // 单品名 374 singleName: false, // 单品名
374 minWeight: null, 375 minWeight: null,
375 maxWeight: null, 376 maxWeight: null,
...@@ -548,11 +549,12 @@ export default { ...@@ -548,11 +549,12 @@ export default {
548 this.tableData.splice($index, 1); 549 this.tableData.splice($index, 1);
549 }, 550 },
550 // 类别 551 // 类别
551 - checkboxSingleName(arr) { 552 + checkboxCargoType(arr) {
552 let include = this.queryForm.cargoType.filter((item) => 553 let include = this.queryForm.cargoType.filter((item) =>
553 arr.some((val) => val == item.chineseName) 554 arr.some((val) => val == item.chineseName)
554 ); 555 );
555 - console.log(arr, include); 556 + this.queryForm.checkboxCargoType = include; //已勾选申报类别的数据
557 + // console.log(arr, include);
556 }, 558 },
557 // 重量、件数、申报值input失焦事件 559 // 重量、件数、申报值input失焦事件
558 inputBlur(name) { 560 inputBlur(name) {
...@@ -597,7 +599,12 @@ export default { ...@@ -597,7 +599,12 @@ export default {
597 submitForm(formName) { 599 submitForm(formName) {
598 this.$refs[formName].validate((valid) => { 600 this.$refs[formName].validate((valid) => {
599 if (valid) { 601 if (valid) {
600 - console.log(this.tableData); 602 + let parmas = {
603 + fltInfoList: this.tableData,
604 + ...this.queryForm,
605 + }
606 + parmas.singleName = this.queryForm.singleName ? 'Y' : 'N'; // N为单品名,Y为多品名
607 + console.log(parmas);
601 } else { 608 } else {
602 console.log("error submit!!"); 609 console.log("error submit!!");
603 return false; 610 return false;
......