jinhui.wang

代码更新,图标增加,bug修复

1 +<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1640932660027" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9915" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M682.496 420.864V597.333333a42.666667 42.666667 0 0 0 85.333333 0V388.565333l128-48.469333v436.736l-341.333333 124.245333V469.333333l128-48.469333zM415.957333 161.834667L511.829333 128l362.666667 128-113.450667 40.021333L416 161.834667z m-102.229333 36.096l345.088 134.186666L511.829333 384l-362.666666-128 164.565333-58.069333z m212.736 799.402666l426.624-155.136a42.666667 42.666667 0 0 0 28.074667-40.106666V243.2a42.666667 42.666667 0 0 0-28.074667-40.106667L526.506667 48.042667a42.666667 42.666667 0 0 0-29.354667 0.085333L70.570667 205.397333A42.666667 42.666667 0 0 0 42.666667 245.674667l3.285333 556.714666a42.666667 42.666667 0 0 0 27.989333 39.808l423.253334 155.093334a42.666667 42.666667 0 0 0 29.269333 0.042666zM469.162667 469.333333v429.226667l-341.333334-124.202667V337.621333l341.333334 131.712z" p-id="9916"></path></svg>
...\ No newline at end of file ...\ No newline at end of file
1 -<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1569915748289" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3062" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M768.35456 416a256 256 0 1 0-512 0 192 192 0 1 0 0 384v64a256 256 0 0 1-58.88-505.216 320.128 320.128 0 0 1 629.76 0A256.128 256.128 0 0 1 768.35456 864v-64a192 192 0 0 0 0-384z m-512 384h64v64H256.35456v-64z m448 0h64v64h-64v-64z" fill="#333333" p-id="3063"></path><path d="M539.04256 845.248V512.192a32.448 32.448 0 0 0-32-32.192c-17.664 0-32 14.912-32 32.192v333.056l-36.096-36.096a32.192 32.192 0 0 0-45.056 0.192 31.616 31.616 0 0 0-0.192 45.056l90.88 90.944a31.36 31.36 0 0 0 22.528 9.088 30.08 30.08 0 0 0 22.4-9.088l90.88-90.88a32.192 32.192 0 0 0-0.192-45.12 31.616 31.616 0 0 0-45.056-0.192l-36.096 36.096z" fill="#333333" p-id="3064"></path></svg>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1569915748289" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3062" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M768.35456 416a256 256 0 1 0-512 0 192 192 0 1 0 0 384v64a256 256 0 0 1-58.88-505.216 320.128 320.128 0 0 1 629.76 0A256.128 256.128 0 0 1 768.35456 864v-64a192 192 0 0 0 0-384z m-512 384h64v64H256.35456v-64z m448 0h64v64h-64v-64z" p-id="3063"></path><path d="M539.04256 845.248V512.192a32.448 32.448 0 0 0-32-32.192c-17.664 0-32 14.912-32 32.192v333.056l-36.096-36.096a32.192 32.192 0 0 0-45.056 0.192 31.616 31.616 0 0 0-0.192 45.056l90.88 90.944a31.36 31.36 0 0 0 22.528 9.088 30.08 30.08 0 0 0 22.4-9.088l90.88-90.88a32.192 32.192 0 0 0-0.192-45.12 31.616 31.616 0 0 0-45.056-0.192l-36.096 36.096z" p-id="3064"></path></svg>
...\ No newline at end of file ...\ No newline at end of file
......
1 +<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1645581110679" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2204" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M950.555 411.291l-380.258-300.594c-32.737-25.963-84.018-25.963-116.754 0l-380.097 300.594c-13.062 10.321-15.158 29.189-4.999 42.090s28.705 15.158 41.768 4.999l11.772-9.676v363.326c0 51.443 54.346 89.985 101.918 89.985h599.899c47.089 0 78.052-36.123 78.052-89.985v-362.036l10.966 8.386c5.483 4.354 12.256 6.451 18.868 6.451 8.87 0 17.739-3.87 23.706-11.45 10.321-12.901 8.225-31.769-4.838-42.090zM481.924 842.025v-166.424c0-8.225 14.997-12.417 29.995-12.417s29.995 4.192 29.995 12.417v166.263l-59.99 0.161zM842.025 812.030c0 19.836-5.483 29.995-18.062 29.995h-221.414c0-0.484-0.645-0.806-0.645-1.29v-165.133c0-34.833-28.059-72.407-89.985-72.407s-89.985 37.574-89.985 72.407v165.133c0 0.484 0.806 0.806 0.806 1.29h-198.676c-18.868 0-41.929-16.287-41.929-29.995v-410.899l308.174-243.346c11.127-8.708 31.124-8.708 42.090 0l309.464 244.797v409.447z" p-id="2205"></path></svg>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1640932917338" class="icon" viewBox="0 0 1333 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16956" xmlns:xlink="http://www.w3.org/1999/xlink" width="260.3515625" height="200"><defs><style type="text/css"></style></defs><path d="M 1101.48 342.52 a 155.844 155.844 0 1 0 -226.753 0 a 244.675 244.675 0 0 0 -53.7662 38.1818 A 197.922 197.922 0 0 0 484.34 373.688 a 243.896 243.896 0 0 0 -63.1169 -48.3117 a 155.844 155.844 0 1 0 -226.753 0 A 245.454 245.454 0 0 0 62.003 544.337 a 38.961 38.961 0 0 0 77.9221 0 a 168.311 168.311 0 0 1 298.441 -105.974 a 38.1818 38.1818 0 0 0 17.1428 13.2468 a 190.909 190.909 0 0 0 66.2337 180.78 a 319.48 319.48 0 0 0 -189.351 290.649 a 38.961 38.961 0 0 0 77.9221 0 a 241.559 241.559 0 0 1 482.337 0 a 38.961 38.961 0 0 0 77.9221 0 a 319.48 319.48 0 0 0 -189.351 -290.649 a 197.922 197.922 0 0 0 69.3506 -149.61 a 196.363 196.363 0 0 0 0 -28.052 a 37.4026 37.4026 0 0 0 17.922 -10.1299 a 166.753 166.753 0 0 1 123.117 -52.9869 A 168.311 168.311 0 0 1 1152.9 559.143 a 38.961 38.961 0 0 0 77.9221 0 a 245.454 245.454 0 0 0 -129.351 -216.623 Z M 308.236 295.767 a 77.9221 77.9221 0 1 1 77.9221 -77.9221 a 77.9221 77.9221 0 0 1 -77.9221 77.9221 Z m 342.857 311.688 a 120.779 120.779 0 1 1 121.558 -124.675 A 121.558 121.558 0 0 1 651.093 607.454 Z m 336.623 -290.649 a 77.9221 77.9221 0 1 1 77.9221 -77.9221 a 77.9221 77.9221 0 0 1 -77.9221 74.8052 Z" p-id="16957"></path></svg>
...\ No newline at end of file ...\ No newline at end of file
...@@ -229,6 +229,7 @@ export default { ...@@ -229,6 +229,7 @@ export default {
229 if (this.shiftKey) { 229 if (this.shiftKey) {
230 const sum = Math.abs(this.start - end); 230 const sum = Math.abs(this.start - end);
231 const min = Math.min(this.start, end); 231 const min = Math.min(this.start, end);
232 + const max = Math.max(this.start, end);
232 let i; 233 let i;
233 if (this.start === -1 && selection.includes(this.data[row.index])) { 234 if (this.start === -1 && selection.includes(this.data[row.index])) {
234 for (i = 0; i < sum; i++) { 235 for (i = 0; i < sum; i++) {
...@@ -238,15 +239,19 @@ export default { ...@@ -238,15 +239,19 @@ export default {
238 } else if (selection.includes(this.data[row.index])) { 239 } else if (selection.includes(this.data[row.index])) {
239 if (!selection.includes(this.data[this.start])) { 240 if (!selection.includes(this.data[this.start])) {
240 this.$refs.tables.toggleRowSelection(this.data[this.start], true); 241 this.$refs.tables.toggleRowSelection(this.data[this.start], true);
241 - this.selectTable.push(this.data[this.start]); 242 + if(this.selectTable.includes(this.data[this.start])){
243 + this.selectTable.push(this.data[this.start]);
244 + }
242 } 245 }
243 - for (i = this.start + 1; i <= this.start + sum; i++) { 246 + for (i = min; i <= sum + min; i++) {
244 this.$refs.tables.toggleRowSelection(this.data[i], true); 247 this.$refs.tables.toggleRowSelection(this.data[i], true);
245 - this.selectTable.push(this.data[i]); 248 + if(!this.selectTable.includes(this.data[i])){
249 + this.selectTable.push(this.data[i]);
250 + }
246 } 251 }
247 } else if (!selection.includes(this.data[row.index])) { 252 } else if (!selection.includes(this.data[row.index])) {
248 - this.selectTable.splice(end - 1, sum + 1); 253 + this.selectTable.splice(min > 1 ? min - 2 : min, sum + 1);
249 - for (i = end; i <= this.start; i++) { 254 + for (i = min; i <= max; i++) {
250 this.$refs.tables.toggleRowSelection(this.data[i], false); 255 this.$refs.tables.toggleRowSelection(this.data[i], false);
251 } 256 }
252 } 257 }
...@@ -254,7 +259,7 @@ export default { ...@@ -254,7 +259,7 @@ export default {
254 } else { 259 } else {
255 this.start = end; 260 this.start = end;
256 if (selection.includes(this.data[end])) { 261 if (selection.includes(this.data[end])) {
257 - this.selectTable.push(row); 262 + this.selectTable = selection;
258 } else { 263 } else {
259 for (let i = 0; i < this.selectTable.length; i++) { 264 for (let i = 0; i < this.selectTable.length; i++) {
260 if (this.selectTable[i].index == row.index) { 265 if (this.selectTable[i].index == row.index) {
...@@ -263,10 +268,11 @@ export default { ...@@ -263,10 +268,11 @@ export default {
263 } 268 }
264 } 269 }
265 } 270 }
266 - selection = this.selectTable; 271 + selection = this.selectTable.sort(this.compare('index','ascending'));
267 this.$emit("tableSelect", { selection, row }); 272 this.$emit("tableSelect", { selection, row });
268 }, 273 },
269 tableSelectAll(selection) { 274 tableSelectAll(selection) {
275 + this.selectTable = selection;
270 this.$emit("tableSelectAll", selection); 276 this.$emit("tableSelectAll", selection);
271 }, 277 },
272 SelectChange(selection) { 278 SelectChange(selection) {
...@@ -289,7 +295,7 @@ export default { ...@@ -289,7 +295,7 @@ export default {
289 // console.log(val); 295 // console.log(val);
290 // }, 296 // },
291 sortChange({ column, prop, order }) { 297 sortChange({ column, prop, order }) {
292 - this.$emit("sortChange",{prop:prop, order:order}) 298 + this.$emit("sortChange", { prop: prop, order: order });
293 }, 299 },
294 compare(propertyName, sort) { 300 compare(propertyName, sort) {
295 return function (obj1, obj2) { 301 return function (obj1, obj2) {
......
...@@ -1016,27 +1016,25 @@ export default { ...@@ -1016,27 +1016,25 @@ export default {
1016 }, 1016 },
1017 //排序 1017 //排序
1018 sortChange(val){ 1018 sortChange(val){
1019 - this.tableData.sort(this.$refs.newTables.compare(val.prop,val.order)); 1019 + let data = []
1020 + let nullData = []
1021 + this.tableData.forEach(item=>{
1022 + if(item[val.prop]){
1023 + data.push(item)
1024 + }else{
1025 + nullData.push(item)
1026 + }
1027 + })
1028 + data = data.sort(this.$refs.newTables.compare(val.prop,val.order))
1029 + if(val.order != "ascending"){
1030 + this.tableData = nullData.concat(data)
1031 + }else{
1032 + this.tableData = data.concat(nullData)
1033 + }
1020 }, 1034 },
1021 //添加到航班 1035 //添加到航班
1022 addFit() { 1036 addFit() {
1023 - let open = true; 1037 + this.dialogVisible = true;
1024 - this.tableSelection.forEach((item) => {
1025 - if (item.statusId != 107966) {
1026 - open = false;
1027 - }
1028 - });
1029 - if (open) {
1030 - this.dialogVisible = open;
1031 - } else {
1032 - this.$message({
1033 - message: "包含不可手动配舱货物",
1034 - type: "warning",
1035 - });
1036 - this.tableSelection = [];
1037 - this.cargoTotal();
1038 - this.$refs.newTables.clearTable();
1039 - }
1040 }, 1038 },
1041 //关闭弹框 1039 //关闭弹框
1042 dialogBeforeClose(val) { 1040 dialogBeforeClose(val) {
......
...@@ -243,8 +243,8 @@ ...@@ -243,8 +243,8 @@
243 <span style="paddingRight: 50px">总重量:{{ allWeight }}</span> 243 <span style="paddingRight: 50px">总重量:{{ allWeight }}</span>
244 <span>总件数:{{ allQty }}</span> 244 <span>总件数:{{ allQty }}</span>
245 </div> 245 </div>
246 - <RightToolbar :showSearch.sync="formShow" size="small"></RightToolbar> 246 + <!-- <RightToolbar :showSearch.sync="formShow" size="small"></RightToolbar> -->
247 - <!-- <div style="formShow" @click="formShow = !formShow">{{formShow?'收起条件':'更多条件'}}</div> --> 247 + <div class="formShow" @click="formShow = !formShow"><i class="el-icon-s-tools"></i>{{formShow?'收起条件':'更多条件'}}</div>
248 </div> 248 </div>
249 </el-form> 249 </el-form>
250 <Tables 250 <Tables
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
256 :limitSize="limitSize" 256 :limitSize="limitSize"
257 :limitStart="limitStart" 257 :limitStart="limitStart"
258 :shiftKey="shiftKey" 258 :shiftKey="shiftKey"
259 - height="430" 259 + height="550"
260 @tableSelect="tableSelect" 260 @tableSelect="tableSelect"
261 @tableSelectAll="tableSelectAll" 261 @tableSelectAll="tableSelectAll"
262 @currentChange="currentChange" 262 @currentChange="currentChange"
...@@ -755,12 +755,9 @@ export default { ...@@ -755,12 +755,9 @@ export default {
755 limitSize: 100, //无限制-1 755 limitSize: 100, //无限制-1
756 page:1, 756 page:1,
757 progress:0, 757 progress:0,
758 - formShow:true, 758 + formShow:false,
759 }; 759 };
760 }, 760 },
761 - activated(){
762 - console.log("cargo")
763 - },
764 created() { 761 created() {
765 //查询条件 762 //查询条件
766 findConditionData().then((res) => { 763 findConditionData().then((res) => {
...@@ -826,6 +823,7 @@ export default { ...@@ -826,6 +823,7 @@ export default {
826 this.$refs.newTables.clearTable(); 823 this.$refs.newTables.clearTable();
827 this.cargoTotal(); 824 this.cargoTotal();
828 }, 825 },
826 + //数据初始化
829 dataInfo(){ 827 dataInfo(){
830 if(this.formData.customsReceiptStatusId != null && this.formData.customsReceiptStatusId.length < 1){ 828 if(this.formData.customsReceiptStatusId != null && this.formData.customsReceiptStatusId.length < 1){
831 this.formData.customsReceiptStatusId = null; 829 this.formData.customsReceiptStatusId = null;
...@@ -859,6 +857,7 @@ export default { ...@@ -859,6 +857,7 @@ export default {
859 this.formData.cargoPlaneEnd = null; 857 this.formData.cargoPlaneEnd = null;
860 } 858 }
861 }, 859 },
860 + //总和
862 cargoTotal(){ 861 cargoTotal(){
863 this.allWeight = 0; 862 this.allWeight = 0;
864 this.allQty = 0; 863 this.allQty = 0;
...@@ -867,25 +866,43 @@ export default { ...@@ -867,25 +866,43 @@ export default {
867 this.allWeight = this.allWeight + item.actualWeight; 866 this.allWeight = this.allWeight + item.actualWeight;
868 this.allQty = this.allQty + item.qty; 867 this.allQty = this.allQty + item.qty;
869 }) 868 })
870 - this.allWeight = this.allWeight.toFixed(); 869 + this.allWeight = this.allWeight.toFixed(2);
871 this.allQty = this.allQty.toFixed(); 870 this.allQty = this.allQty.toFixed();
872 } 871 }
873 }, 872 },
873 + //表格多选
874 tableSelect(val){ 874 tableSelect(val){
875 this.selectTable = val.selection; 875 this.selectTable = val.selection;
876 this.cargoTotal(); 876 this.cargoTotal();
877 }, 877 },
878 + //表格全选
878 tableSelectAll(val){ 879 tableSelectAll(val){
879 this.selectTable = val; 880 this.selectTable = val;
880 this.cargoTotal(); 881 this.cargoTotal();
881 }, 882 },
883 + //分页
882 currentChange(val){ 884 currentChange(val){
883 this.formData.limitStart = val.start; 885 this.formData.limitStart = val.start;
884 this.page = val.page; 886 this.page = val.page;
885 this.select() 887 this.select()
886 }, 888 },
889 + //排序
887 sortChange(val){ 890 sortChange(val){
888 - this.tableData.sort(); 891 + let data = []
892 + let nullData = []
893 + this.tableData.forEach(item=>{
894 + if(item[val.prop]){
895 + data.push(item)
896 + }else{
897 + nullData.push(item)
898 + }
899 + })
900 + data = data.sort(this.$refs.newTables.compare(val.prop,val.order))
901 + if(val.order != "ascending"){
902 + this.tableData = nullData.concat(data)
903 + }else{
904 + this.tableData = data.concat(nullData)
905 + }
889 }, 906 },
890 // 导出表格 907 // 导出表格
891 xlse(page) { 908 xlse(page) {
...@@ -908,7 +925,7 @@ export default { ...@@ -908,7 +925,7 @@ export default {
908 this.downLoadingTip.tip = ""; 925 this.downLoadingTip.tip = "";
909 }) 926 })
910 } else { 927 } else {
911 - if(this.totalCount < 100000){ 928 + if(this.totalCount < 80000){
912 this.downLoadingTip.tip = "正在导出全部结果集请耐心等待" 929 this.downLoadingTip.tip = "正在导出全部结果集请耐心等待"
913 cargoXlse.cargoConditionDto.limitStart = 0; 930 cargoXlse.cargoConditionDto.limitStart = 0;
914 cargoXlse.cargoConditionDto.limitSize = -1; 931 cargoXlse.cargoConditionDto.limitSize = -1;
...@@ -923,7 +940,7 @@ export default { ...@@ -923,7 +940,7 @@ export default {
923 }else{ 940 }else{
924 this.downLoadingTip.downloading = false; 941 this.downLoadingTip.downloading = false;
925 this.$message({ 942 this.$message({
926 - message: "导出数据量过大,请不要超过10W条", 943 + message: "导出数据量过大,请不要超过8万条",
927 type: "warning", 944 type: "warning",
928 }); 945 });
929 } 946 }
...@@ -981,11 +998,13 @@ export default { ...@@ -981,11 +998,13 @@ export default {
981 margin:0 0 0 20px; 998 margin:0 0 0 20px;
982 } 999 }
983 .formShow{ 1000 .formShow{
1001 + width: max-content;
984 height:48px; 1002 height:48px;
985 line-height: 48px; 1003 line-height: 48px;
986 font-weight: 900; 1004 font-weight: 900;
987 color: rgb(64, 158, 255); 1005 color: rgb(64, 158, 255);
988 font-size: 14px; 1006 font-size: 14px;
989 float: right; 1007 float: right;
1008 + margin-right:20px;
990 } 1009 }
991 </style> 1010 </style>
...\ No newline at end of file ...\ No newline at end of file
......