Commit 3dab8c1c4ce9f9a4dfc6a9572c0857d3a708d863
1 parent
ef38926d
删除部分文件初始化
Showing
20 changed files
with
6201 additions
and
0 deletions
src/main/resources/fatso/package-lock.json
0 → 100644
| 1 | +{ | ||
| 2 | + "name": "fatso", | ||
| 3 | + "version": "1.0.0", | ||
| 4 | + "lockfileVersion": 1, | ||
| 5 | + "requires": true, | ||
| 6 | + "dependencies": { | ||
| 7 | + "abab": { | ||
| 8 | + "version": "1.0.4", | ||
| 9 | + "resolved": "https://registry.npmjs.org/abab/-/abab-1.0.4.tgz", | ||
| 10 | + "integrity": "sha1-X6rZwsB/YN12dw9xzwJbYqY8/U4=", | ||
| 11 | + "optional": true | ||
| 12 | + }, | ||
| 13 | + "acorn": { | ||
| 14 | + "version": "2.7.0", | ||
| 15 | + "resolved": "https://registry.npmjs.org/acorn/-/acorn-2.7.0.tgz", | ||
| 16 | + "integrity": "sha1-q259nYhqrKiwhbwzEreaGYQz8Oc=", | ||
| 17 | + "optional": true | ||
| 18 | + }, | ||
| 19 | + "acorn-globals": { | ||
| 20 | + "version": "1.0.9", | ||
| 21 | + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-1.0.9.tgz", | ||
| 22 | + "integrity": "sha1-VbtemGkVB7dFedBRNBMhfDgMVM8=", | ||
| 23 | + "optional": true, | ||
| 24 | + "requires": { | ||
| 25 | + "acorn": "^2.1.0" | ||
| 26 | + } | ||
| 27 | + }, | ||
| 28 | + "ajv": { | ||
| 29 | + "version": "6.12.6", | ||
| 30 | + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", | ||
| 31 | + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", | ||
| 32 | + "optional": true, | ||
| 33 | + "requires": { | ||
| 34 | + "fast-deep-equal": "^3.1.1", | ||
| 35 | + "fast-json-stable-stringify": "^2.0.0", | ||
| 36 | + "json-schema-traverse": "^0.4.1", | ||
| 37 | + "uri-js": "^4.2.2" | ||
| 38 | + } | ||
| 39 | + }, | ||
| 40 | + "align-text": { | ||
| 41 | + "version": "0.1.4", | ||
| 42 | + "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", | ||
| 43 | + "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", | ||
| 44 | + "requires": { | ||
| 45 | + "kind-of": "^3.0.2", | ||
| 46 | + "longest": "^1.0.1", | ||
| 47 | + "repeat-string": "^1.5.2" | ||
| 48 | + } | ||
| 49 | + }, | ||
| 50 | + "asn1": { | ||
| 51 | + "version": "0.2.4", | ||
| 52 | + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", | ||
| 53 | + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", | ||
| 54 | + "optional": true, | ||
| 55 | + "requires": { | ||
| 56 | + "safer-buffer": "~2.1.0" | ||
| 57 | + } | ||
| 58 | + }, | ||
| 59 | + "assert-plus": { | ||
| 60 | + "version": "1.0.0", | ||
| 61 | + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", | ||
| 62 | + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", | ||
| 63 | + "optional": true | ||
| 64 | + }, | ||
| 65 | + "asynckit": { | ||
| 66 | + "version": "0.4.0", | ||
| 67 | + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", | ||
| 68 | + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", | ||
| 69 | + "optional": true | ||
| 70 | + }, | ||
| 71 | + "aws-sign2": { | ||
| 72 | + "version": "0.7.0", | ||
| 73 | + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", | ||
| 74 | + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", | ||
| 75 | + "optional": true | ||
| 76 | + }, | ||
| 77 | + "aws4": { | ||
| 78 | + "version": "1.11.0", | ||
| 79 | + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz", | ||
| 80 | + "integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==", | ||
| 81 | + "optional": true | ||
| 82 | + }, | ||
| 83 | + "bcrypt-pbkdf": { | ||
| 84 | + "version": "1.0.2", | ||
| 85 | + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", | ||
| 86 | + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", | ||
| 87 | + "optional": true, | ||
| 88 | + "requires": { | ||
| 89 | + "tweetnacl": "^0.14.3" | ||
| 90 | + } | ||
| 91 | + }, | ||
| 92 | + "boolbase": { | ||
| 93 | + "version": "1.0.0", | ||
| 94 | + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", | ||
| 95 | + "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=" | ||
| 96 | + }, | ||
| 97 | + "camelcase": { | ||
| 98 | + "version": "1.2.1", | ||
| 99 | + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", | ||
| 100 | + "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=" | ||
| 101 | + }, | ||
| 102 | + "caseless": { | ||
| 103 | + "version": "0.12.0", | ||
| 104 | + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", | ||
| 105 | + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", | ||
| 106 | + "optional": true | ||
| 107 | + }, | ||
| 108 | + "center-align": { | ||
| 109 | + "version": "0.1.3", | ||
| 110 | + "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", | ||
| 111 | + "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", | ||
| 112 | + "requires": { | ||
| 113 | + "align-text": "^0.1.3", | ||
| 114 | + "lazy-cache": "^1.0.3" | ||
| 115 | + } | ||
| 116 | + }, | ||
| 117 | + "cheerio": { | ||
| 118 | + "version": "0.20.0", | ||
| 119 | + "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-0.20.0.tgz", | ||
| 120 | + "integrity": "sha1-XHEPK6uVZTJyhCugHG6mGzVF7DU=", | ||
| 121 | + "requires": { | ||
| 122 | + "css-select": "~1.2.0", | ||
| 123 | + "dom-serializer": "~0.1.0", | ||
| 124 | + "entities": "~1.1.1", | ||
| 125 | + "htmlparser2": "~3.8.1", | ||
| 126 | + "jsdom": "^7.0.2", | ||
| 127 | + "lodash": "^4.1.0" | ||
| 128 | + } | ||
| 129 | + }, | ||
| 130 | + "clean-css": { | ||
| 131 | + "version": "4.2.3", | ||
| 132 | + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.3.tgz", | ||
| 133 | + "integrity": "sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA==", | ||
| 134 | + "requires": { | ||
| 135 | + "source-map": "~0.6.0" | ||
| 136 | + } | ||
| 137 | + }, | ||
| 138 | + "cliui": { | ||
| 139 | + "version": "2.1.0", | ||
| 140 | + "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", | ||
| 141 | + "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", | ||
| 142 | + "requires": { | ||
| 143 | + "center-align": "^0.1.1", | ||
| 144 | + "right-align": "^0.1.1", | ||
| 145 | + "wordwrap": "0.0.2" | ||
| 146 | + } | ||
| 147 | + }, | ||
| 148 | + "colors": { | ||
| 149 | + "version": "1.4.0", | ||
| 150 | + "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", | ||
| 151 | + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==" | ||
| 152 | + }, | ||
| 153 | + "combined-stream": { | ||
| 154 | + "version": "1.0.8", | ||
| 155 | + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", | ||
| 156 | + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", | ||
| 157 | + "optional": true, | ||
| 158 | + "requires": { | ||
| 159 | + "delayed-stream": "~1.0.0" | ||
| 160 | + } | ||
| 161 | + }, | ||
| 162 | + "core-util-is": { | ||
| 163 | + "version": "1.0.2", | ||
| 164 | + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", | ||
| 165 | + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" | ||
| 166 | + }, | ||
| 167 | + "css-select": { | ||
| 168 | + "version": "1.2.0", | ||
| 169 | + "resolved": "https://registry.npmjs.org/css-select/-/css-select-1.2.0.tgz", | ||
| 170 | + "integrity": "sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg=", | ||
| 171 | + "requires": { | ||
| 172 | + "boolbase": "~1.0.0", | ||
| 173 | + "css-what": "2.1", | ||
| 174 | + "domutils": "1.5.1", | ||
| 175 | + "nth-check": "~1.0.1" | ||
| 176 | + } | ||
| 177 | + }, | ||
| 178 | + "css-what": { | ||
| 179 | + "version": "2.1.3", | ||
| 180 | + "resolved": "https://registry.npmjs.org/css-what/-/css-what-2.1.3.tgz", | ||
| 181 | + "integrity": "sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg==" | ||
| 182 | + }, | ||
| 183 | + "cssom": { | ||
| 184 | + "version": "0.3.8", | ||
| 185 | + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", | ||
| 186 | + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", | ||
| 187 | + "optional": true | ||
| 188 | + }, | ||
| 189 | + "cssstyle": { | ||
| 190 | + "version": "0.2.37", | ||
| 191 | + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-0.2.37.tgz", | ||
| 192 | + "integrity": "sha1-VBCXI0yyUTyDzu06zdwn/yeYfVQ=", | ||
| 193 | + "optional": true, | ||
| 194 | + "requires": { | ||
| 195 | + "cssom": "0.3.x" | ||
| 196 | + } | ||
| 197 | + }, | ||
| 198 | + "dashdash": { | ||
| 199 | + "version": "1.14.1", | ||
| 200 | + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", | ||
| 201 | + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", | ||
| 202 | + "optional": true, | ||
| 203 | + "requires": { | ||
| 204 | + "assert-plus": "^1.0.0" | ||
| 205 | + } | ||
| 206 | + }, | ||
| 207 | + "debug": { | ||
| 208 | + "version": "2.2.0", | ||
| 209 | + "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", | ||
| 210 | + "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", | ||
| 211 | + "requires": { | ||
| 212 | + "ms": "0.7.1" | ||
| 213 | + } | ||
| 214 | + }, | ||
| 215 | + "decamelize": { | ||
| 216 | + "version": "1.2.0", | ||
| 217 | + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", | ||
| 218 | + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" | ||
| 219 | + }, | ||
| 220 | + "deep-is": { | ||
| 221 | + "version": "0.1.3", | ||
| 222 | + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", | ||
| 223 | + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", | ||
| 224 | + "optional": true | ||
| 225 | + }, | ||
| 226 | + "delayed-stream": { | ||
| 227 | + "version": "1.0.0", | ||
| 228 | + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", | ||
| 229 | + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", | ||
| 230 | + "optional": true | ||
| 231 | + }, | ||
| 232 | + "dom-serializer": { | ||
| 233 | + "version": "0.1.1", | ||
| 234 | + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.1.tgz", | ||
| 235 | + "integrity": "sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==", | ||
| 236 | + "requires": { | ||
| 237 | + "domelementtype": "^1.3.0", | ||
| 238 | + "entities": "^1.1.1" | ||
| 239 | + } | ||
| 240 | + }, | ||
| 241 | + "domelementtype": { | ||
| 242 | + "version": "1.3.1", | ||
| 243 | + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", | ||
| 244 | + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==" | ||
| 245 | + }, | ||
| 246 | + "domhandler": { | ||
| 247 | + "version": "2.3.0", | ||
| 248 | + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.3.0.tgz", | ||
| 249 | + "integrity": "sha1-LeWaCCLVAn+r/28DLCsloqir5zg=", | ||
| 250 | + "requires": { | ||
| 251 | + "domelementtype": "1" | ||
| 252 | + } | ||
| 253 | + }, | ||
| 254 | + "domutils": { | ||
| 255 | + "version": "1.5.1", | ||
| 256 | + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz", | ||
| 257 | + "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=", | ||
| 258 | + "requires": { | ||
| 259 | + "dom-serializer": "0", | ||
| 260 | + "domelementtype": "1" | ||
| 261 | + } | ||
| 262 | + }, | ||
| 263 | + "ecc-jsbn": { | ||
| 264 | + "version": "0.1.2", | ||
| 265 | + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", | ||
| 266 | + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", | ||
| 267 | + "optional": true, | ||
| 268 | + "requires": { | ||
| 269 | + "jsbn": "~0.1.0", | ||
| 270 | + "safer-buffer": "^2.1.0" | ||
| 271 | + } | ||
| 272 | + }, | ||
| 273 | + "entities": { | ||
| 274 | + "version": "1.1.2", | ||
| 275 | + "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", | ||
| 276 | + "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==" | ||
| 277 | + }, | ||
| 278 | + "escodegen": { | ||
| 279 | + "version": "1.14.3", | ||
| 280 | + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", | ||
| 281 | + "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", | ||
| 282 | + "optional": true, | ||
| 283 | + "requires": { | ||
| 284 | + "esprima": "^4.0.1", | ||
| 285 | + "estraverse": "^4.2.0", | ||
| 286 | + "esutils": "^2.0.2", | ||
| 287 | + "optionator": "^0.8.1", | ||
| 288 | + "source-map": "~0.6.1" | ||
| 289 | + } | ||
| 290 | + }, | ||
| 291 | + "esprima": { | ||
| 292 | + "version": "4.0.1", | ||
| 293 | + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", | ||
| 294 | + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", | ||
| 295 | + "optional": true | ||
| 296 | + }, | ||
| 297 | + "estraverse": { | ||
| 298 | + "version": "4.3.0", | ||
| 299 | + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", | ||
| 300 | + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", | ||
| 301 | + "optional": true | ||
| 302 | + }, | ||
| 303 | + "esutils": { | ||
| 304 | + "version": "2.0.3", | ||
| 305 | + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", | ||
| 306 | + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", | ||
| 307 | + "optional": true | ||
| 308 | + }, | ||
| 309 | + "eventproxy": { | ||
| 310 | + "version": "0.3.5", | ||
| 311 | + "resolved": "https://registry.npmjs.org/eventproxy/-/eventproxy-0.3.5.tgz", | ||
| 312 | + "integrity": "sha1-TbMpDcvFHPBny7Z1LjxAtdkXIS8=", | ||
| 313 | + "requires": { | ||
| 314 | + "debug": "2.2.0" | ||
| 315 | + } | ||
| 316 | + }, | ||
| 317 | + "extend": { | ||
| 318 | + "version": "3.0.2", | ||
| 319 | + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", | ||
| 320 | + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", | ||
| 321 | + "optional": true | ||
| 322 | + }, | ||
| 323 | + "extsprintf": { | ||
| 324 | + "version": "1.3.0", | ||
| 325 | + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", | ||
| 326 | + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", | ||
| 327 | + "optional": true | ||
| 328 | + }, | ||
| 329 | + "fast-deep-equal": { | ||
| 330 | + "version": "3.1.3", | ||
| 331 | + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", | ||
| 332 | + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", | ||
| 333 | + "optional": true | ||
| 334 | + }, | ||
| 335 | + "fast-json-stable-stringify": { | ||
| 336 | + "version": "2.1.0", | ||
| 337 | + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", | ||
| 338 | + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", | ||
| 339 | + "optional": true | ||
| 340 | + }, | ||
| 341 | + "fast-levenshtein": { | ||
| 342 | + "version": "2.0.6", | ||
| 343 | + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", | ||
| 344 | + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", | ||
| 345 | + "optional": true | ||
| 346 | + }, | ||
| 347 | + "forever-agent": { | ||
| 348 | + "version": "0.6.1", | ||
| 349 | + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", | ||
| 350 | + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", | ||
| 351 | + "optional": true | ||
| 352 | + }, | ||
| 353 | + "form-data": { | ||
| 354 | + "version": "2.3.3", | ||
| 355 | + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", | ||
| 356 | + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", | ||
| 357 | + "optional": true, | ||
| 358 | + "requires": { | ||
| 359 | + "asynckit": "^0.4.0", | ||
| 360 | + "combined-stream": "^1.0.6", | ||
| 361 | + "mime-types": "^2.1.12" | ||
| 362 | + } | ||
| 363 | + }, | ||
| 364 | + "getpass": { | ||
| 365 | + "version": "0.1.7", | ||
| 366 | + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", | ||
| 367 | + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", | ||
| 368 | + "optional": true, | ||
| 369 | + "requires": { | ||
| 370 | + "assert-plus": "^1.0.0" | ||
| 371 | + } | ||
| 372 | + }, | ||
| 373 | + "har-schema": { | ||
| 374 | + "version": "2.0.0", | ||
| 375 | + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", | ||
| 376 | + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", | ||
| 377 | + "optional": true | ||
| 378 | + }, | ||
| 379 | + "har-validator": { | ||
| 380 | + "version": "5.1.5", | ||
| 381 | + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", | ||
| 382 | + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", | ||
| 383 | + "optional": true, | ||
| 384 | + "requires": { | ||
| 385 | + "ajv": "^6.12.3", | ||
| 386 | + "har-schema": "^2.0.0" | ||
| 387 | + } | ||
| 388 | + }, | ||
| 389 | + "htmlparser2": { | ||
| 390 | + "version": "3.8.3", | ||
| 391 | + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz", | ||
| 392 | + "integrity": "sha1-mWwosZFRaovoZQGn15dX5ccMEGg=", | ||
| 393 | + "requires": { | ||
| 394 | + "domelementtype": "1", | ||
| 395 | + "domhandler": "2.3", | ||
| 396 | + "domutils": "1.5", | ||
| 397 | + "entities": "1.0", | ||
| 398 | + "readable-stream": "1.1" | ||
| 399 | + }, | ||
| 400 | + "dependencies": { | ||
| 401 | + "entities": { | ||
| 402 | + "version": "1.0.0", | ||
| 403 | + "resolved": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz", | ||
| 404 | + "integrity": "sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY=" | ||
| 405 | + } | ||
| 406 | + } | ||
| 407 | + }, | ||
| 408 | + "http-signature": { | ||
| 409 | + "version": "1.2.0", | ||
| 410 | + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", | ||
| 411 | + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", | ||
| 412 | + "optional": true, | ||
| 413 | + "requires": { | ||
| 414 | + "assert-plus": "^1.0.0", | ||
| 415 | + "jsprim": "^1.2.2", | ||
| 416 | + "sshpk": "^1.7.0" | ||
| 417 | + } | ||
| 418 | + }, | ||
| 419 | + "inherits": { | ||
| 420 | + "version": "2.0.4", | ||
| 421 | + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", | ||
| 422 | + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" | ||
| 423 | + }, | ||
| 424 | + "is-buffer": { | ||
| 425 | + "version": "1.1.6", | ||
| 426 | + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", | ||
| 427 | + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" | ||
| 428 | + }, | ||
| 429 | + "is-typedarray": { | ||
| 430 | + "version": "1.0.0", | ||
| 431 | + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", | ||
| 432 | + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", | ||
| 433 | + "optional": true | ||
| 434 | + }, | ||
| 435 | + "isarray": { | ||
| 436 | + "version": "0.0.1", | ||
| 437 | + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", | ||
| 438 | + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" | ||
| 439 | + }, | ||
| 440 | + "isstream": { | ||
| 441 | + "version": "0.1.2", | ||
| 442 | + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", | ||
| 443 | + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", | ||
| 444 | + "optional": true | ||
| 445 | + }, | ||
| 446 | + "jsbn": { | ||
| 447 | + "version": "0.1.1", | ||
| 448 | + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", | ||
| 449 | + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", | ||
| 450 | + "optional": true | ||
| 451 | + }, | ||
| 452 | + "jsdom": { | ||
| 453 | + "version": "7.2.2", | ||
| 454 | + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-7.2.2.tgz", | ||
| 455 | + "integrity": "sha1-QLQCdwwr2iNGkJa+6Rq2deOx/G4=", | ||
| 456 | + "optional": true, | ||
| 457 | + "requires": { | ||
| 458 | + "abab": "^1.0.0", | ||
| 459 | + "acorn": "^2.4.0", | ||
| 460 | + "acorn-globals": "^1.0.4", | ||
| 461 | + "cssom": ">= 0.3.0 < 0.4.0", | ||
| 462 | + "cssstyle": ">= 0.2.29 < 0.3.0", | ||
| 463 | + "escodegen": "^1.6.1", | ||
| 464 | + "nwmatcher": ">= 1.3.7 < 2.0.0", | ||
| 465 | + "parse5": "^1.5.1", | ||
| 466 | + "request": "^2.55.0", | ||
| 467 | + "sax": "^1.1.4", | ||
| 468 | + "symbol-tree": ">= 3.1.0 < 4.0.0", | ||
| 469 | + "tough-cookie": "^2.2.0", | ||
| 470 | + "webidl-conversions": "^2.0.0", | ||
| 471 | + "whatwg-url-compat": "~0.6.5", | ||
| 472 | + "xml-name-validator": ">= 2.0.1 < 3.0.0" | ||
| 473 | + } | ||
| 474 | + }, | ||
| 475 | + "json-schema": { | ||
| 476 | + "version": "0.2.3", | ||
| 477 | + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", | ||
| 478 | + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", | ||
| 479 | + "optional": true | ||
| 480 | + }, | ||
| 481 | + "json-schema-traverse": { | ||
| 482 | + "version": "0.4.1", | ||
| 483 | + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", | ||
| 484 | + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", | ||
| 485 | + "optional": true | ||
| 486 | + }, | ||
| 487 | + "json-stringify-safe": { | ||
| 488 | + "version": "5.0.1", | ||
| 489 | + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", | ||
| 490 | + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", | ||
| 491 | + "optional": true | ||
| 492 | + }, | ||
| 493 | + "jsprim": { | ||
| 494 | + "version": "1.4.1", | ||
| 495 | + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", | ||
| 496 | + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", | ||
| 497 | + "optional": true, | ||
| 498 | + "requires": { | ||
| 499 | + "assert-plus": "1.0.0", | ||
| 500 | + "extsprintf": "1.3.0", | ||
| 501 | + "json-schema": "0.2.3", | ||
| 502 | + "verror": "1.10.0" | ||
| 503 | + } | ||
| 504 | + }, | ||
| 505 | + "kind-of": { | ||
| 506 | + "version": "3.2.2", | ||
| 507 | + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", | ||
| 508 | + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", | ||
| 509 | + "requires": { | ||
| 510 | + "is-buffer": "^1.1.5" | ||
| 511 | + } | ||
| 512 | + }, | ||
| 513 | + "lazy-cache": { | ||
| 514 | + "version": "1.0.4", | ||
| 515 | + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", | ||
| 516 | + "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=" | ||
| 517 | + }, | ||
| 518 | + "levn": { | ||
| 519 | + "version": "0.3.0", | ||
| 520 | + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", | ||
| 521 | + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", | ||
| 522 | + "optional": true, | ||
| 523 | + "requires": { | ||
| 524 | + "prelude-ls": "~1.1.2", | ||
| 525 | + "type-check": "~0.3.2" | ||
| 526 | + } | ||
| 527 | + }, | ||
| 528 | + "lodash": { | ||
| 529 | + "version": "4.17.21", | ||
| 530 | + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", | ||
| 531 | + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" | ||
| 532 | + }, | ||
| 533 | + "longest": { | ||
| 534 | + "version": "1.0.1", | ||
| 535 | + "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", | ||
| 536 | + "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=" | ||
| 537 | + }, | ||
| 538 | + "mime-db": { | ||
| 539 | + "version": "1.47.0", | ||
| 540 | + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.47.0.tgz", | ||
| 541 | + "integrity": "sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw==", | ||
| 542 | + "optional": true | ||
| 543 | + }, | ||
| 544 | + "mime-types": { | ||
| 545 | + "version": "2.1.30", | ||
| 546 | + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.30.tgz", | ||
| 547 | + "integrity": "sha512-crmjA4bLtR8m9qLpHvgxSChT+XoSlZi8J4n/aIdn3z92e/U47Z0V/yl+Wh9W046GgFVAmoNR/fmdbZYcSSIUeg==", | ||
| 548 | + "optional": true, | ||
| 549 | + "requires": { | ||
| 550 | + "mime-db": "1.47.0" | ||
| 551 | + } | ||
| 552 | + }, | ||
| 553 | + "ms": { | ||
| 554 | + "version": "0.7.1", | ||
| 555 | + "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", | ||
| 556 | + "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=" | ||
| 557 | + }, | ||
| 558 | + "nth-check": { | ||
| 559 | + "version": "1.0.2", | ||
| 560 | + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz", | ||
| 561 | + "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==", | ||
| 562 | + "requires": { | ||
| 563 | + "boolbase": "~1.0.0" | ||
| 564 | + } | ||
| 565 | + }, | ||
| 566 | + "nwmatcher": { | ||
| 567 | + "version": "1.4.4", | ||
| 568 | + "resolved": "https://registry.npmjs.org/nwmatcher/-/nwmatcher-1.4.4.tgz", | ||
| 569 | + "integrity": "sha512-3iuY4N5dhgMpCUrOVnuAdGrgxVqV2cJpM+XNccjR2DKOB1RUP0aA+wGXEiNziG/UKboFyGBIoKOaNlJxx8bciQ==", | ||
| 570 | + "optional": true | ||
| 571 | + }, | ||
| 572 | + "oauth-sign": { | ||
| 573 | + "version": "0.9.0", | ||
| 574 | + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", | ||
| 575 | + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", | ||
| 576 | + "optional": true | ||
| 577 | + }, | ||
| 578 | + "optionator": { | ||
| 579 | + "version": "0.8.3", | ||
| 580 | + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", | ||
| 581 | + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", | ||
| 582 | + "optional": true, | ||
| 583 | + "requires": { | ||
| 584 | + "deep-is": "~0.1.3", | ||
| 585 | + "fast-levenshtein": "~2.0.6", | ||
| 586 | + "levn": "~0.3.0", | ||
| 587 | + "prelude-ls": "~1.1.2", | ||
| 588 | + "type-check": "~0.3.2", | ||
| 589 | + "word-wrap": "~1.2.3" | ||
| 590 | + } | ||
| 591 | + }, | ||
| 592 | + "parse5": { | ||
| 593 | + "version": "1.5.1", | ||
| 594 | + "resolved": "https://registry.npmjs.org/parse5/-/parse5-1.5.1.tgz", | ||
| 595 | + "integrity": "sha1-m387DeMr543CQBsXVzzK8Pb1nZQ=", | ||
| 596 | + "optional": true | ||
| 597 | + }, | ||
| 598 | + "performance-now": { | ||
| 599 | + "version": "2.1.0", | ||
| 600 | + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", | ||
| 601 | + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", | ||
| 602 | + "optional": true | ||
| 603 | + }, | ||
| 604 | + "prelude-ls": { | ||
| 605 | + "version": "1.1.2", | ||
| 606 | + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", | ||
| 607 | + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", | ||
| 608 | + "optional": true | ||
| 609 | + }, | ||
| 610 | + "psl": { | ||
| 611 | + "version": "1.8.0", | ||
| 612 | + "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", | ||
| 613 | + "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", | ||
| 614 | + "optional": true | ||
| 615 | + }, | ||
| 616 | + "punycode": { | ||
| 617 | + "version": "2.1.1", | ||
| 618 | + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", | ||
| 619 | + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", | ||
| 620 | + "optional": true | ||
| 621 | + }, | ||
| 622 | + "qs": { | ||
| 623 | + "version": "6.5.2", | ||
| 624 | + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", | ||
| 625 | + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", | ||
| 626 | + "optional": true | ||
| 627 | + }, | ||
| 628 | + "readable-stream": { | ||
| 629 | + "version": "1.1.14", | ||
| 630 | + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", | ||
| 631 | + "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", | ||
| 632 | + "requires": { | ||
| 633 | + "core-util-is": "~1.0.0", | ||
| 634 | + "inherits": "~2.0.1", | ||
| 635 | + "isarray": "0.0.1", | ||
| 636 | + "string_decoder": "~0.10.x" | ||
| 637 | + } | ||
| 638 | + }, | ||
| 639 | + "repeat-string": { | ||
| 640 | + "version": "1.6.1", | ||
| 641 | + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", | ||
| 642 | + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=" | ||
| 643 | + }, | ||
| 644 | + "request": { | ||
| 645 | + "version": "2.88.2", | ||
| 646 | + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", | ||
| 647 | + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", | ||
| 648 | + "optional": true, | ||
| 649 | + "requires": { | ||
| 650 | + "aws-sign2": "~0.7.0", | ||
| 651 | + "aws4": "^1.8.0", | ||
| 652 | + "caseless": "~0.12.0", | ||
| 653 | + "combined-stream": "~1.0.6", | ||
| 654 | + "extend": "~3.0.2", | ||
| 655 | + "forever-agent": "~0.6.1", | ||
| 656 | + "form-data": "~2.3.2", | ||
| 657 | + "har-validator": "~5.1.3", | ||
| 658 | + "http-signature": "~1.2.0", | ||
| 659 | + "is-typedarray": "~1.0.0", | ||
| 660 | + "isstream": "~0.1.2", | ||
| 661 | + "json-stringify-safe": "~5.0.1", | ||
| 662 | + "mime-types": "~2.1.19", | ||
| 663 | + "oauth-sign": "~0.9.0", | ||
| 664 | + "performance-now": "^2.1.0", | ||
| 665 | + "qs": "~6.5.2", | ||
| 666 | + "safe-buffer": "^5.1.2", | ||
| 667 | + "tough-cookie": "~2.5.0", | ||
| 668 | + "tunnel-agent": "^0.6.0", | ||
| 669 | + "uuid": "^3.3.2" | ||
| 670 | + } | ||
| 671 | + }, | ||
| 672 | + "right-align": { | ||
| 673 | + "version": "0.1.3", | ||
| 674 | + "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", | ||
| 675 | + "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", | ||
| 676 | + "requires": { | ||
| 677 | + "align-text": "^0.1.1" | ||
| 678 | + } | ||
| 679 | + }, | ||
| 680 | + "safe-buffer": { | ||
| 681 | + "version": "5.2.1", | ||
| 682 | + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", | ||
| 683 | + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", | ||
| 684 | + "optional": true | ||
| 685 | + }, | ||
| 686 | + "safer-buffer": { | ||
| 687 | + "version": "2.1.2", | ||
| 688 | + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", | ||
| 689 | + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", | ||
| 690 | + "optional": true | ||
| 691 | + }, | ||
| 692 | + "sax": { | ||
| 693 | + "version": "1.2.4", | ||
| 694 | + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", | ||
| 695 | + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", | ||
| 696 | + "optional": true | ||
| 697 | + }, | ||
| 698 | + "source-map": { | ||
| 699 | + "version": "0.6.1", | ||
| 700 | + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", | ||
| 701 | + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" | ||
| 702 | + }, | ||
| 703 | + "sshpk": { | ||
| 704 | + "version": "1.16.1", | ||
| 705 | + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", | ||
| 706 | + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", | ||
| 707 | + "optional": true, | ||
| 708 | + "requires": { | ||
| 709 | + "asn1": "~0.2.3", | ||
| 710 | + "assert-plus": "^1.0.0", | ||
| 711 | + "bcrypt-pbkdf": "^1.0.0", | ||
| 712 | + "dashdash": "^1.12.0", | ||
| 713 | + "ecc-jsbn": "~0.1.1", | ||
| 714 | + "getpass": "^0.1.1", | ||
| 715 | + "jsbn": "~0.1.0", | ||
| 716 | + "safer-buffer": "^2.0.2", | ||
| 717 | + "tweetnacl": "~0.14.0" | ||
| 718 | + } | ||
| 719 | + }, | ||
| 720 | + "string_decoder": { | ||
| 721 | + "version": "0.10.31", | ||
| 722 | + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", | ||
| 723 | + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" | ||
| 724 | + }, | ||
| 725 | + "symbol-tree": { | ||
| 726 | + "version": "3.2.4", | ||
| 727 | + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", | ||
| 728 | + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", | ||
| 729 | + "optional": true | ||
| 730 | + }, | ||
| 731 | + "tough-cookie": { | ||
| 732 | + "version": "2.5.0", | ||
| 733 | + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", | ||
| 734 | + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", | ||
| 735 | + "optional": true, | ||
| 736 | + "requires": { | ||
| 737 | + "psl": "^1.1.28", | ||
| 738 | + "punycode": "^2.1.1" | ||
| 739 | + } | ||
| 740 | + }, | ||
| 741 | + "tr46": { | ||
| 742 | + "version": "0.0.3", | ||
| 743 | + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", | ||
| 744 | + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", | ||
| 745 | + "optional": true | ||
| 746 | + }, | ||
| 747 | + "tunnel-agent": { | ||
| 748 | + "version": "0.6.0", | ||
| 749 | + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", | ||
| 750 | + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", | ||
| 751 | + "optional": true, | ||
| 752 | + "requires": { | ||
| 753 | + "safe-buffer": "^5.0.1" | ||
| 754 | + } | ||
| 755 | + }, | ||
| 756 | + "tweetnacl": { | ||
| 757 | + "version": "0.14.5", | ||
| 758 | + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", | ||
| 759 | + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", | ||
| 760 | + "optional": true | ||
| 761 | + }, | ||
| 762 | + "type-check": { | ||
| 763 | + "version": "0.3.2", | ||
| 764 | + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", | ||
| 765 | + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", | ||
| 766 | + "optional": true, | ||
| 767 | + "requires": { | ||
| 768 | + "prelude-ls": "~1.1.2" | ||
| 769 | + } | ||
| 770 | + }, | ||
| 771 | + "uglify-js": { | ||
| 772 | + "version": "2.8.29", | ||
| 773 | + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", | ||
| 774 | + "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", | ||
| 775 | + "requires": { | ||
| 776 | + "source-map": "~0.5.1", | ||
| 777 | + "uglify-to-browserify": "~1.0.0", | ||
| 778 | + "yargs": "~3.10.0" | ||
| 779 | + }, | ||
| 780 | + "dependencies": { | ||
| 781 | + "source-map": { | ||
| 782 | + "version": "0.5.7", | ||
| 783 | + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", | ||
| 784 | + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" | ||
| 785 | + } | ||
| 786 | + } | ||
| 787 | + }, | ||
| 788 | + "uglify-to-browserify": { | ||
| 789 | + "version": "1.0.2", | ||
| 790 | + "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", | ||
| 791 | + "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", | ||
| 792 | + "optional": true | ||
| 793 | + }, | ||
| 794 | + "uri-js": { | ||
| 795 | + "version": "4.4.1", | ||
| 796 | + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", | ||
| 797 | + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", | ||
| 798 | + "optional": true, | ||
| 799 | + "requires": { | ||
| 800 | + "punycode": "^2.1.0" | ||
| 801 | + } | ||
| 802 | + }, | ||
| 803 | + "uuid": { | ||
| 804 | + "version": "3.4.0", | ||
| 805 | + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", | ||
| 806 | + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", | ||
| 807 | + "optional": true | ||
| 808 | + }, | ||
| 809 | + "verror": { | ||
| 810 | + "version": "1.10.0", | ||
| 811 | + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", | ||
| 812 | + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", | ||
| 813 | + "optional": true, | ||
| 814 | + "requires": { | ||
| 815 | + "assert-plus": "^1.0.0", | ||
| 816 | + "core-util-is": "1.0.2", | ||
| 817 | + "extsprintf": "^1.2.0" | ||
| 818 | + } | ||
| 819 | + }, | ||
| 820 | + "webidl-conversions": { | ||
| 821 | + "version": "2.0.1", | ||
| 822 | + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-2.0.1.tgz", | ||
| 823 | + "integrity": "sha1-O/glj30xjHRDw28uFpQCoaZwNQY=", | ||
| 824 | + "optional": true | ||
| 825 | + }, | ||
| 826 | + "whatwg-url-compat": { | ||
| 827 | + "version": "0.6.5", | ||
| 828 | + "resolved": "https://registry.npmjs.org/whatwg-url-compat/-/whatwg-url-compat-0.6.5.tgz", | ||
| 829 | + "integrity": "sha1-AImBEa9om7CXVBzVpFymyHmERb8=", | ||
| 830 | + "optional": true, | ||
| 831 | + "requires": { | ||
| 832 | + "tr46": "~0.0.1" | ||
| 833 | + } | ||
| 834 | + }, | ||
| 835 | + "window-size": { | ||
| 836 | + "version": "0.1.0", | ||
| 837 | + "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", | ||
| 838 | + "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=" | ||
| 839 | + }, | ||
| 840 | + "word-wrap": { | ||
| 841 | + "version": "1.2.3", | ||
| 842 | + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", | ||
| 843 | + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", | ||
| 844 | + "optional": true | ||
| 845 | + }, | ||
| 846 | + "wordwrap": { | ||
| 847 | + "version": "0.0.2", | ||
| 848 | + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", | ||
| 849 | + "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=" | ||
| 850 | + }, | ||
| 851 | + "xml-name-validator": { | ||
| 852 | + "version": "2.0.1", | ||
| 853 | + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-2.0.1.tgz", | ||
| 854 | + "integrity": "sha1-TYuPHszTQZqjYgYb7O9RXh5VljU=", | ||
| 855 | + "optional": true | ||
| 856 | + }, | ||
| 857 | + "yargs": { | ||
| 858 | + "version": "3.10.0", | ||
| 859 | + "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", | ||
| 860 | + "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", | ||
| 861 | + "requires": { | ||
| 862 | + "camelcase": "^1.0.2", | ||
| 863 | + "cliui": "^2.1.0", | ||
| 864 | + "decamelize": "^1.0.0", | ||
| 865 | + "window-size": "0.1.0" | ||
| 866 | + } | ||
| 867 | + } | ||
| 868 | + } | ||
| 869 | +} |
src/main/resources/static/pages/mforms/alllines/allline.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | +.table-bordered { | ||
| 3 | + border: 1px solid; | ||
| 4 | +} | ||
| 5 | + | ||
| 6 | +.table-bordered>thead>tr>th, .table-bordered>thead>tr>td, | ||
| 7 | + .table-bordered>tbody>tr>th, .table-bordered>tbody>tr>td, | ||
| 8 | + .table-bordered>tfoot>tr>th, .table-bordered>tfoot>tr>td { | ||
| 9 | + border: 1px solid; | ||
| 10 | +} | ||
| 11 | + | ||
| 12 | +.table-bordered>thead>tr>th, .table-bordered>thead>tr>td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center; | ||
| 15 | +} | ||
| 16 | + | ||
| 17 | +.table>tbody+tbody { | ||
| 18 | + border-top: 1px solid; | ||
| 19 | +} | ||
| 20 | + | ||
| 21 | +.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, | ||
| 22 | + .table>thead>tr>td, .table>thead>tr>th { | ||
| 23 | + text-align: center; | ||
| 24 | +} | ||
| 25 | + | ||
| 26 | +.table-checkable tr>th:first-child, .table-checkable tr>td:first-child { | ||
| 27 | + text-align: center; | ||
| 28 | + max-width: initial; | ||
| 29 | + min-width: 40px; | ||
| 30 | + padding-left: 0; | ||
| 31 | + padding-right: 0; | ||
| 32 | +} | ||
| 33 | +</style> | ||
| 34 | + | ||
| 35 | +<div class="page-head"> | ||
| 36 | + <div class="page-title"> | ||
| 37 | + <h1>营运线路名称统计表</h1> | ||
| 38 | + </div> | ||
| 39 | +</div> | ||
| 40 | + | ||
| 41 | +<div class="row"> | ||
| 42 | + <div class="col-md-12"> | ||
| 43 | + <div class="portlet light porttlet-fit bordered"> | ||
| 44 | + <div class="portlet-title"> | ||
| 45 | + <form class="form-inline" action="" method="post"> | ||
| 46 | + <div style="display: inline-block; margin-left: 24px;" | ||
| 47 | + id="gsdmDiv_allline"> | ||
| 48 | + <span class="item-label" style="width: 80px;">公司: </span> <select | ||
| 49 | + class="form-control" name="company" id="gsdmAllline" | ||
| 50 | + style="width: 140px;"></select> | ||
| 51 | + </div> | ||
| 52 | + <div style="display: inline-block; margin-left: 15px;" | ||
| 53 | + id="fgsdmDiv_allline"> | ||
| 54 | + <span class="item-label" style="width: 80px;">分公司: </span> <select | ||
| 55 | + class="form-control" name="subCompany" id="fgsdmAllline" | ||
| 56 | + style="width: 140px;"></select> | ||
| 57 | + </div> | ||
| 58 | + <div style="display: inline-block; margin-left: 15px;"> | ||
| 59 | + <span class="item-label" style="width: 80px;">线路: </span> <select | ||
| 60 | + class="form-control" name="line" id="line" style="width: 120px;"></select> | ||
| 61 | + </div> | ||
| 62 | + <div style="display: inline-block; margin-left: 15px;"> | ||
| 63 | + <span class="item-label" style="width: 80px;">开始时间: </span> <input | ||
| 64 | + class="form-control" type="text" id="startDate" | ||
| 65 | + style="width: 120px;" /> | ||
| 66 | + </div> | ||
| 67 | + <div style="display: inline-block; margin-left: 15px;"> | ||
| 68 | + <span class="item-label" style="width: 80px;">结束时间: </span> <input | ||
| 69 | + class="form-control" type="text" id="endDate" | ||
| 70 | + style="width: 120px;" /> | ||
| 71 | + </div> | ||
| 72 | + <div class="form-group"> | ||
| 73 | + <input class="btn btn-default" type="button" id="query" value="筛选" /> | ||
| 74 | + <input class="btn btn-default" type="button" id="export" | ||
| 75 | + value="导出" /> | ||
| 76 | + </div> | ||
| 77 | + </form> | ||
| 78 | + </div> | ||
| 79 | + <div class="portlet-body"> | ||
| 80 | + <div class="table-container" | ||
| 81 | + style="margin-top: 20px; overflow: auto; min-width: 1000px"> | ||
| 82 | + <table class="table table-bordered table-hover table-checkable" | ||
| 83 | + id="forms1"> | ||
| 84 | + <thead> | ||
| 85 | + <tr> | ||
| 86 | + <th colspan="15">营运线路名称统计表</th> | ||
| 87 | + </tr> | ||
| 88 | + <tr> | ||
| 89 | + <td rowspan="2" style="padding-top: 20px;">日期</td> | ||
| 90 | + <td rowspan="2" style="padding-top: 20px;">公司</td> | ||
| 91 | + <td rowspan="2" style="padding-top: 20px;">直属公司</td> | ||
| 92 | + <td rowspan="2" style="padding-top: 20px;">线路名称</td> | ||
| 93 | + <td colspan="2">出车数</td> | ||
| 94 | + <td rowspan="2">出车率</td> | ||
| 95 | + <td colspan="2">班次数</td> | ||
| 96 | + <td rowspan="2" style="padding-top: 20px;">班次执行率</td> | ||
| 97 | + <td rowspan="2" style="padding-top: 20px;">说明</td> | ||
| 98 | + </tr> | ||
| 99 | + <tr> | ||
| 100 | + <td>计划</td> | ||
| 101 | + <td>实际</td> | ||
| 102 | + <td>计划</td> | ||
| 103 | + <td>实际</td> | ||
| 104 | + </tr> | ||
| 105 | + </thead> | ||
| 106 | + <tbody id="tbody"> | ||
| 107 | + | ||
| 108 | + </tbody> | ||
| 109 | + <tr> | ||
| 110 | + <td colspan="1">分类汇总</td> | ||
| 111 | + <td><span id="total_gs"> </span></td> | ||
| 112 | + <td><span id="total_zhgs"> </span></td> | ||
| 113 | + <td><span id="total_xlts"> </span></td> | ||
| 114 | + <td><span id="total_jh"> </span></td> | ||
| 115 | + <td><span id="total_sj"> </span></td> | ||
| 116 | + <td><span id="total_ccl"> </span></td> | ||
| 117 | + <td><span id="total_bcjh"> </span></td> | ||
| 118 | + <td><span id="total_bcsj"> </span></td> | ||
| 119 | + <td><span id="total_bczxl"> </span></td> | ||
| 120 | + <td><span id="total_sm"> </span></td> | ||
| 121 | + </tr> | ||
| 122 | + </table> | ||
| 123 | + </div> | ||
| 124 | + </div> | ||
| 125 | + </div> | ||
| 126 | + </div> | ||
| 127 | +</div> | ||
| 128 | + | ||
| 129 | +<script> | ||
| 130 | + $(function() { | ||
| 131 | + // 关闭左侧栏 | ||
| 132 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 133 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 134 | + | ||
| 135 | + $("#startDate,#endDate").datetimepicker({ | ||
| 136 | + format : 'YYYY-MM-DD', | ||
| 137 | + locale : 'zh-cn' | ||
| 138 | + }); | ||
| 139 | + | ||
| 140 | + var obj = []; | ||
| 141 | + $.get('/user/companyData', function(result) { | ||
| 142 | + obj = result; | ||
| 143 | + var options = ''; | ||
| 144 | + for (var i = 0; i < obj.length; i++) { | ||
| 145 | + options += '<option value="'+obj[i].companyCode+'">' | ||
| 146 | + + obj[i].companyName + '</option>'; | ||
| 147 | + } | ||
| 148 | + | ||
| 149 | + if (obj.length == 0) { | ||
| 150 | + $("#gsdmDiv_allline").css('display', 'none'); | ||
| 151 | + $('#fgsdmDiv_allline').css('display', 'none'); | ||
| 152 | + } else if (obj.length == 1) { | ||
| 153 | + $("#gsdmDiv_allline").css('display', 'none'); | ||
| 154 | + if (obj[0].children.length == 1 || obj[0].children.length == 0) | ||
| 155 | + $('#fgsdmDiv_allline').css('display', 'none'); | ||
| 156 | + } | ||
| 157 | + $('#gsdmAllline').html(options); | ||
| 158 | + updateCompany(); | ||
| 159 | + }); | ||
| 160 | + | ||
| 161 | + $("#gsdmAllline").on("change", updateCompany); | ||
| 162 | + function updateCompany() { | ||
| 163 | + var company = $('#gsdmAllline').val(); | ||
| 164 | + var options = ''; | ||
| 165 | + for (var i = 0; i < obj.length; i++) { | ||
| 166 | + if (obj[i].companyCode == company) { | ||
| 167 | + var children = obj[i].children; | ||
| 168 | + for (var j = 0; j < children.length; j++) { | ||
| 169 | + options += '<option value="'+children[j].code+'">' | ||
| 170 | + + children[j].name + '</option>'; | ||
| 171 | + } | ||
| 172 | + } | ||
| 173 | + } | ||
| 174 | + $('#fgsdmAllline').html(options); | ||
| 175 | + } | ||
| 176 | + | ||
| 177 | + var fage=false; | ||
| 178 | + var xlList; | ||
| 179 | + var obj = []; | ||
| 180 | + | ||
| 181 | + $.get('/report/lineList',function(result){ | ||
| 182 | + xlList=result; | ||
| 183 | + $.get('/user/companyData', function(result){ | ||
| 184 | + obj = result; | ||
| 185 | + var options = ''; | ||
| 186 | + for(var i = 0; i < obj.length; i++){ | ||
| 187 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 188 | + } | ||
| 189 | + | ||
| 190 | + if(obj.length ==0){ | ||
| 191 | + $("#gsdmDiv_allline").css('display','none'); | ||
| 192 | + }else if(obj.length ==1){ | ||
| 193 | + $("#gsdmDiv_allline").css('display','none'); | ||
| 194 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 195 | + $('#fgsdmDiv_allline').css('display','none'); | ||
| 196 | + } | ||
| 197 | + $('#gsdmAllline').html(options); | ||
| 198 | + updateCompany(); | ||
| 199 | + }); | ||
| 200 | + }) | ||
| 201 | + $("#gsdmAllline").on("change",updateCompany); | ||
| 202 | + function updateCompany(){ | ||
| 203 | + var company = $('#gsdmAllline').val(); | ||
| 204 | + var options = ''; | ||
| 205 | + for(var i = 0; i < obj.length; i++){ | ||
| 206 | + if(obj[i].companyCode == company){ | ||
| 207 | + var children = obj[i].children; | ||
| 208 | + for(var j = 0; j < children.length; j++){ | ||
| 209 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 210 | + } | ||
| 211 | + } | ||
| 212 | + } | ||
| 213 | + $('#fgsdmAllline').html(options); | ||
| 214 | + initXl(); | ||
| 215 | + } | ||
| 216 | + | ||
| 217 | + /* $.get('/basic/lineCode2Name',function(result){ | ||
| 218 | + var data=[]; | ||
| 219 | + | ||
| 220 | + for(var code in result){ | ||
| 221 | + data.push({id: code, text: result[code]}); | ||
| 222 | + } | ||
| 223 | + initPinYinSelect2('#line',data,''); | ||
| 224 | + | ||
| 225 | + }) */ | ||
| 226 | + | ||
| 227 | + $("#fgsdmAllline").on("change",initXl); | ||
| 228 | + function initXl(){ | ||
| 229 | + var data=[]; | ||
| 230 | + if(fage){ | ||
| 231 | + $("#line").select2("destroy").html(''); | ||
| 232 | + } | ||
| 233 | + var fgs=$('#fgsdmAllline').val(); | ||
| 234 | + var gs=$('#gsdmAllline').val(); | ||
| 235 | + for(var i=0;i<xlList.length;i++){ | ||
| 236 | + if(gs!=""){ | ||
| 237 | + if(fgs!=""){ | ||
| 238 | + if(xlList[i]["fgsbm"]==fgs && xlList[i]["gsbm"]==gs){ | ||
| 239 | + data.push({id: xlList[i]["xlbm"], text: xlList[i]["xlname"]}); | ||
| 240 | + } | ||
| 241 | + }else{ | ||
| 242 | + if(xlList[i]["gsbm"]==gs){ | ||
| 243 | + data.push({id: xlList[i]["xlbm"], text: xlList[i]["xlname"]}); | ||
| 244 | + } | ||
| 245 | + } | ||
| 246 | + } | ||
| 247 | + } | ||
| 248 | + initPinYinSelect2('#line',data,''); | ||
| 249 | + fage=true; | ||
| 250 | + } | ||
| 251 | + | ||
| 252 | + var line; | ||
| 253 | + var startDate; | ||
| 254 | + var endDate; | ||
| 255 | + var gsdmAllline; | ||
| 256 | + var fgsdmAllline; | ||
| 257 | + $("#query") | ||
| 258 | + .on( | ||
| 259 | + "click", | ||
| 260 | + function() { | ||
| 261 | + line = $("#line").val(); | ||
| 262 | + startDate1 = $("#startDate").val(); | ||
| 263 | + endDate1 = $("#endDate").val(); | ||
| 264 | + gsdmAllline = $("#gsdmAllline").val(); | ||
| 265 | + fgsdmAllline = $("#fgsdmAllline").val(); | ||
| 266 | + if (startDate1 != '' && endDate1 != '') { | ||
| 267 | + $post( | ||
| 268 | + '/mcy_forms/allline', | ||
| 269 | + { | ||
| 270 | + gsdmAllline:gsdmAllline, | ||
| 271 | + fgsdmAllline:fgsdmAllline, | ||
| 272 | + line : line, | ||
| 273 | + startDate : $("#startDate").val(), | ||
| 274 | + endDate : $("#endDate").val(), | ||
| 275 | + type : 'query' | ||
| 276 | + }, | ||
| 277 | + function(result) { | ||
| 278 | + // 把数据填充到模版中 | ||
| 279 | + var tbodyHtml = template('allline', | ||
| 280 | + { | ||
| 281 | + list : result | ||
| 282 | + }); | ||
| 283 | + // 把渲染好的模版html文本追加到表格中 | ||
| 284 | + $('#tbody').html(tbodyHtml); | ||
| 285 | + line = $("#line").val(); | ||
| 286 | + startDate = $("#startDate").val(); | ||
| 287 | + endDate = $("#endDate").val(); | ||
| 288 | + $("#sDate").text(startDate); | ||
| 289 | + $("#eDate").text(endDate); | ||
| 290 | + | ||
| 291 | + var total_jh = 0; | ||
| 292 | + var total_sj = 0, total_ccl = 0, total_bcjh = 0; | ||
| 293 | + var total_bcjh = 0, total_bcsj = 0, total_bczxl = 0; | ||
| 294 | + var total_gs = 0; | ||
| 295 | + var total_zhgs = 0; | ||
| 296 | + $.each( | ||
| 297 | + result, | ||
| 298 | + function(i, obj) { | ||
| 299 | + total_gs += Number(obj.gsgs); | ||
| 300 | + total_zhgs += Number(obj.fgsgs); | ||
| 301 | + total_jh = Number(obj.cchjh) | ||
| 302 | + + Number(total_jh); | ||
| 303 | + total_sj = Number(obj.cchsj) | ||
| 304 | + + Number(total_sj); | ||
| 305 | + | ||
| 306 | + total_ccl = (Number(total_sj) / Number(total_jh)) * 100; | ||
| 307 | + total_bcjh = Number(obj.bcjh) | ||
| 308 | + + Number(total_bcjh); | ||
| 309 | + total_bcsj = Number(obj.bcsj) | ||
| 310 | + + Number(total_bcsj); | ||
| 311 | + total_bczxl = (Number(total_bcsj) / Number(total_bcjh)) * 100; | ||
| 312 | + | ||
| 313 | + }); | ||
| 314 | + $("#total_gs").text(total_gs); | ||
| 315 | + $("#total_zhgs").text(total_zhgs); | ||
| 316 | + $("#total_jh").text(total_jh); | ||
| 317 | + $("#total_sj").text(total_sj); | ||
| 318 | + $("#total_ccl").text( | ||
| 319 | + total_ccl.toFixed(2) + '%'); | ||
| 320 | + $("#total_bcjh").text(total_bcjh); | ||
| 321 | + $("#total_bcsj").text(total_bcsj); | ||
| 322 | + $("#total_bczxl").text( | ||
| 323 | + total_bczxl.toFixed(2) | ||
| 324 | + + '%'); | ||
| 325 | + | ||
| 326 | + var temp = {}; | ||
| 327 | + var today_account = 0; | ||
| 328 | + | ||
| 329 | + temp["line"] = $("#line").text(); | ||
| 330 | + $ | ||
| 331 | + .each( | ||
| 332 | + result, | ||
| 333 | + function(i, obj) { | ||
| 334 | + if (moment( | ||
| 335 | + obj.schedule_date_str) | ||
| 336 | + .format( | ||
| 337 | + "YYYY-MM-DD") == moment( | ||
| 338 | + obj.startDate) | ||
| 339 | + .format( | ||
| 340 | + "YYYY-MM-DD")) { | ||
| 341 | + today_account++; | ||
| 342 | + } | ||
| 343 | + obj.updateDate = moment( | ||
| 344 | + obj.startDate) | ||
| 345 | + .format( | ||
| 346 | + "YYYY-MM-DD HH:mm:ss"); | ||
| 347 | + }); | ||
| 348 | + | ||
| 349 | + }) | ||
| 350 | + | ||
| 351 | + } else { | ||
| 352 | + layer.msg("请选择时间范围!"); | ||
| 353 | + } | ||
| 354 | + }); | ||
| 355 | + | ||
| 356 | + $("#export").on( | ||
| 357 | + "click", | ||
| 358 | + function() { | ||
| 359 | + line = $("#line").val(); | ||
| 360 | + startDate1 = $("#startDate").val(); | ||
| 361 | + endDate1 = $("#endDate").val(); | ||
| 362 | + gsdmAllline = $("#gsdmAllline").val(); | ||
| 363 | + fgsdmAllline = $("#fgsdmAllline").val(); | ||
| 364 | + $post('/mcy_export/alllineExport', { | ||
| 365 | + gsdmAllline : gsdmAllline, | ||
| 366 | + fgsdmAllline : fgsdmAllline, | ||
| 367 | + line : line, | ||
| 368 | + startDate : startDate, | ||
| 369 | + endDate : endDate, | ||
| 370 | + type : 'export' | ||
| 371 | + }, function(result) { | ||
| 372 | + window.open("/downloadFile/download?fileName=营运线路名称统计表" | ||
| 373 | + + moment(startDate).format("YYYYMMDD")); | ||
| 374 | + }); | ||
| 375 | + }); | ||
| 376 | + }); | ||
| 377 | +</script> | ||
| 378 | +<script type="text/html" id="allline"> | ||
| 379 | + {{each list as obj i}} | ||
| 380 | + <tr> | ||
| 381 | + <td>{{obj.rq}}</td> | ||
| 382 | + <td>{{obj.gs}}</td> | ||
| 383 | + <td>{{obj.zhgs}}</td> | ||
| 384 | + <td>{{obj.xl}}</td> | ||
| 385 | + <td>{{obj.cchjh}}</td> | ||
| 386 | + <td>{{obj.cchsj}}</td> | ||
| 387 | + <td>{{obj.chl}}</td> | ||
| 388 | + <td>{{obj.bcjh}}</td> | ||
| 389 | + <td>{{obj.bcsj}}</td> | ||
| 390 | + <td>{{obj.bbzxl}}</td> | ||
| 391 | + <td>{{obj.xl}}</td> | ||
| 392 | + </tr> | ||
| 393 | + {{/each}} | ||
| 394 | + {{if list.length == 0}} | ||
| 395 | + <tr> | ||
| 396 | + <td colspan="12"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 397 | + </tr> | ||
| 398 | + {{/if}} | ||
| 399 | +</script> |
src/main/resources/static/pages/mforms/changetochanges/changetochange.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | +.table-bordered { | ||
| 3 | + border: 1px solid; | ||
| 4 | +} | ||
| 5 | + | ||
| 6 | +.table-bordered>thead>tr>th, .table-bordered>thead>tr>td, | ||
| 7 | + .table-bordered>tbody>tr>th, .table-bordered>tbody>tr>td, | ||
| 8 | + .table-bordered>tfoot>tr>th, .table-bordered>tfoot>tr>td { | ||
| 9 | + border: 1px solid; | ||
| 10 | +} | ||
| 11 | + | ||
| 12 | +.table-bordered>thead>tr>th, .table-bordered>thead>tr>td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center; | ||
| 15 | +} | ||
| 16 | + | ||
| 17 | +.table>tbody+tbody { | ||
| 18 | + border-top: 1px solid; | ||
| 19 | +} | ||
| 20 | + | ||
| 21 | +.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, | ||
| 22 | + .table>thead>tr>td, .table>thead>tr>th { | ||
| 23 | + text-align: center; | ||
| 24 | +} | ||
| 25 | + | ||
| 26 | +.table-checkable tr>th:first-child, .table-checkable tr>td:first-child { | ||
| 27 | + text-align: center; | ||
| 28 | + max-width: initial; | ||
| 29 | + min-width: 40px; | ||
| 30 | + padding-left: 0; | ||
| 31 | + padding-right: 0; | ||
| 32 | +} | ||
| 33 | +</style> | ||
| 34 | + | ||
| 35 | +<div class="page-head"> | ||
| 36 | + <div class="page-title"> | ||
| 37 | + <h1>换人换车情况统计表</h1> | ||
| 38 | + </div> | ||
| 39 | +</div> | ||
| 40 | + | ||
| 41 | +<div class="row"> | ||
| 42 | + <div class="col-md-12"> | ||
| 43 | + <div class="portlet light porttlet-fit bordered"> | ||
| 44 | + <div class="portlet-title"> | ||
| 45 | + <form class="form-inline" action="" method="post"> | ||
| 46 | + <div style="display: inline-block; margin-left: 33px;" | ||
| 47 | + id="gsdmDiv_change"> | ||
| 48 | + <span class="item-label" style="width: 80px;">公司: </span> <select | ||
| 49 | + class="form-control" name="company" id="gsdmChange" | ||
| 50 | + style="width: 140px;"></select> | ||
| 51 | + </div> | ||
| 52 | + <div style="display: inline-block; margin-left: 19px;" | ||
| 53 | + id="fgsdmDiv_change"> | ||
| 54 | + <span class="item-label" style="width: 80px;">分公司: </span> <select | ||
| 55 | + class="form-control" name="subCompany" id="fgsdmChange" | ||
| 56 | + style="width: 140px;"></select> | ||
| 57 | + </div> | ||
| 58 | + <div style="display: inline-block; margin-left: 33px;"> | ||
| 59 | + <span class="item-label" style="width: 80px;">线路: </span> <select | ||
| 60 | + class="form-control" name="line" id="line" style="width: 180px;"></select> | ||
| 61 | + </div> | ||
| 62 | + <div style="margin-top: 10px"></div> | ||
| 63 | + <div style="display: inline-block; margin-left: 5px"> | ||
| 64 | + <span class="item-label" style="width: 80px;">是否营运: </span> | ||
| 65 | + <select class="form-control" name="sfyy" id="sfyy" style="width: 140px;"> | ||
| 66 | + <option value="0">全部线路</option> | ||
| 67 | + <option value="1" selected="selected">营运线路</option> | ||
| 68 | + <option value="2">非营运线路</option> | ||
| 69 | + </select> | ||
| 70 | + </div> | ||
| 71 | + <div style="display: inline-block; margin-left: 5px;"> | ||
| 72 | + <span class="item-label" style="width: 80px;">开始时间: </span> <input | ||
| 73 | + class="form-control" type="text" id="startDate" | ||
| 74 | + style="width: 140px;" /> | ||
| 75 | + </div> | ||
| 76 | + <div style="display: inline-block; margin-left: 5px;"> | ||
| 77 | + <span class="item-label" style="width: 80px;">结束时间: </span> <input | ||
| 78 | + class="form-control" type="text" id="endDate" | ||
| 79 | + style="width: 140px;" /> | ||
| 80 | + </div> | ||
| 81 | +<!-- <div style="display: inline-block; margin-left: 10px;"> --> | ||
| 82 | +<!-- <span class="item-label" style="width: 120px;">类型: </span> <select --> | ||
| 83 | +<!-- class="form-control" id="sel"> --> | ||
| 84 | +<!-- <option value="">请选择</option> --> | ||
| 85 | +<!-- <option value="1">换人</option> --> | ||
| 86 | +<!-- <option value="2">换车</option> --> | ||
| 87 | +<!-- </select> --> | ||
| 88 | +<!-- </div> --> | ||
| 89 | + <div class="form-group"> | ||
| 90 | + <input class="btn btn-default" type="button" id="query" value="筛选" /> | ||
| 91 | + <input class="btn btn-default" type="button" id="export" | ||
| 92 | + value="导出" /> | ||
| 93 | + </div> | ||
| 94 | + </form> | ||
| 95 | + </div> | ||
| 96 | + <div class="portlet-body"> | ||
| 97 | + <div class="table-container" | ||
| 98 | + style="margin-top: 20px; overflow: auto; min-width: 1000px"> | ||
| 99 | + <table class="table table-bordered table-hover table-checkable" | ||
| 100 | + id="forms"> | ||
| 101 | + <thead> | ||
| 102 | + <tr> | ||
| 103 | + <th colspan="15">换人换车情况统计表</th> | ||
| 104 | + </tr> | ||
| 105 | + <tr> | ||
| 106 | + <td rowspan="3" style="padding-top: 50px;">日期</td> | ||
| 107 | + <td rowspan="3" style="padding-top: 50px;">公司</td> | ||
| 108 | + <td rowspan="3" style="padding-top: 50px;">分公司</td> | ||
| 109 | + <td rowspan="3" style="padding-top: 50px;">线路</td> | ||
| 110 | + <td rowspan="3" style="padding-top: 50px;">路牌</td> | ||
| 111 | + <td rowspan="3" style="padding-top: 50px;">发车时间</td> | ||
| 112 | + <td rowspan="3" style="padding-top: 50px;">修改时间</td> | ||
| 113 | + <td colspan="2">配车</td> | ||
| 114 | + <td colspan="4">人员</td> | ||
| 115 | + <td rowspan="3" style="padding-top: 50px;">原因</td> | ||
| 116 | + <td rowspan="3" style="padding-top: 50px;">修改人</td> | ||
| 117 | + </tr> | ||
| 118 | + <tr> | ||
| 119 | + <td>计划</td> | ||
| 120 | + <td>实际</td> | ||
| 121 | + <td colspan="2">计划</td> | ||
| 122 | + <td colspan="2">实际</td> | ||
| 123 | + | ||
| 124 | + </tr> | ||
| 125 | + <tr> | ||
| 126 | + <td>车号</td> | ||
| 127 | + <td>车号</td> | ||
| 128 | + <td colspan="2">工号/人员</td> | ||
| 129 | + <td colspan="2">工号/人员</td> | ||
| 130 | + </tr> | ||
| 131 | + </thead> | ||
| 132 | + <tbody> | ||
| 133 | + | ||
| 134 | + </tbody> | ||
| 135 | + </table> | ||
| 136 | + </div> | ||
| 137 | + </div> | ||
| 138 | + </div> | ||
| 139 | + </div> | ||
| 140 | +</div> | ||
| 141 | + | ||
| 142 | +<script> | ||
| 143 | + $(function() { | ||
| 144 | + // 关闭左侧栏 | ||
| 145 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 146 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 147 | + | ||
| 148 | + var d = new Date(); | ||
| 149 | + d.setTime(d.getTime() - 1*1000*60*60*24); | ||
| 150 | + var year = d.getFullYear(); | ||
| 151 | + var month = d.getMonth() + 1; | ||
| 152 | + var day = d.getDate(); | ||
| 153 | + if(month < 10) | ||
| 154 | + month = "0" + month; | ||
| 155 | + if(day < 10) | ||
| 156 | + day = "0" + day; | ||
| 157 | + var dateTime = year + "-" + month + "-" + day; | ||
| 158 | + $("#startDate,#endDate").datetimepicker({ | ||
| 159 | + format : 'YYYY-MM-DD', | ||
| 160 | + locale : 'zh-cn', | ||
| 161 | + maxDate : dateTime | ||
| 162 | + }); | ||
| 163 | + $("#startDate,#endDate").val(dateTime); | ||
| 164 | + | ||
| 165 | + var fage=false; | ||
| 166 | + var xlList; | ||
| 167 | + var obj = []; | ||
| 168 | + | ||
| 169 | + | ||
| 170 | + $.get('/report/lineList',function(result){ | ||
| 171 | + xlList=result; | ||
| 172 | + $.get('/user/companyData', function(result){ | ||
| 173 | + obj = result; | ||
| 174 | + var options = ''; | ||
| 175 | + for(var i = 0; i < obj.length; i++){ | ||
| 176 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 177 | + } | ||
| 178 | + | ||
| 179 | + if(obj.length ==0){ | ||
| 180 | + $("#gsdmDiv_change").css('display','none'); | ||
| 181 | + }else if(obj.length ==1){ | ||
| 182 | + $("#gsdmDiv_change").css('display','none'); | ||
| 183 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 184 | + $('#fgsdmDiv_change').css('display','none'); | ||
| 185 | + } | ||
| 186 | + $('#gsdmChange').html(options); | ||
| 187 | + updateCompany(); | ||
| 188 | + }); | ||
| 189 | + }) | ||
| 190 | + $("#gsdmChange").on("change",updateCompany); | ||
| 191 | + function updateCompany(){ | ||
| 192 | + var company = $('#gsdmChange').val(); | ||
| 193 | + var options = '<option value="">全部分公司</option>'; | ||
| 194 | + for(var i = 0; i < obj.length; i++){ | ||
| 195 | + if(obj[i].companyCode == company){ | ||
| 196 | + var children = obj[i].children; | ||
| 197 | + for(var j = 0; j < children.length; j++){ | ||
| 198 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 199 | + } | ||
| 200 | + } | ||
| 201 | + } | ||
| 202 | + $('#fgsdmChange').html(options); | ||
| 203 | + } | ||
| 204 | + | ||
| 205 | + | ||
| 206 | + var tempData = {}; | ||
| 207 | + $.get('/report/lineList',function(xlList){ | ||
| 208 | + var data = []; | ||
| 209 | + data.push({id: " ", text: "全部线路"}); | ||
| 210 | + $.get('/user/companyData', function(result){ | ||
| 211 | + for(var i = 0; i < result.length; i++){ | ||
| 212 | + var companyCode = result[i].companyCode; | ||
| 213 | + var children = result[i].children; | ||
| 214 | + for(var j = 0; j < children.length; j++){ | ||
| 215 | + var code = children[j].code; | ||
| 216 | + for(var k=0;k < xlList.length;k++ ){ | ||
| 217 | + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){ | ||
| 218 | + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]}); | ||
| 219 | + tempData[xlList[k]["xlbm"]] = companyCode+":"+code; | ||
| 220 | + } | ||
| 221 | + } | ||
| 222 | + } | ||
| 223 | + } | ||
| 224 | + initPinYinSelect2('#line',data,''); | ||
| 225 | + | ||
| 226 | + }); | ||
| 227 | + }); | ||
| 228 | + | ||
| 229 | + $("#line").on("change", function(){ | ||
| 230 | + if($("#line").val() == " "){ | ||
| 231 | + $("#gsdmChange").attr("disabled", false); | ||
| 232 | + $("#fgsdmChange").attr("disabled", false); | ||
| 233 | + } else { | ||
| 234 | + var temp = tempData[$("#line").val()].split(":"); | ||
| 235 | + $("#gsdmChange").val(temp[0]); | ||
| 236 | + updateCompany(); | ||
| 237 | +// $("#fgsdmChange").val(temp[1]); | ||
| 238 | + $("#fgsdmChange").val(""); | ||
| 239 | + $("#gsdmChange").attr("disabled", true); | ||
| 240 | +// $("#fgsdmChange").attr("disabled", true); | ||
| 241 | + } | ||
| 242 | + }); | ||
| 243 | + | ||
| 244 | + var line; | ||
| 245 | + var startDate; | ||
| 246 | + var endDate; | ||
| 247 | + var sfyy = 0; | ||
| 248 | + $("#query").on( | ||
| 249 | + "click", | ||
| 250 | + function() { | ||
| 251 | + sfyy = $("#sfyy").val(); | ||
| 252 | + line = $("#line").val(); | ||
| 253 | + sel = $("#sel").val(); | ||
| 254 | + var startDate1 = $("#startDate").val(); | ||
| 255 | + var endDate1 = $("#endDate").val(); | ||
| 256 | + var gsdmChange= $("#gsdmChange").val(); | ||
| 257 | + var fgsdmChange= $("#fgsdmChange").val(); | ||
| 258 | + if (startDate1 != '' && endDate1 != '') { | ||
| 259 | + var i = layer.load(2); | ||
| 260 | + $get('/mcy_forms/changetochange', { | ||
| 261 | + sel : sel, | ||
| 262 | + line : line, | ||
| 263 | + sfyy : sfyy, | ||
| 264 | + startDate : $("#startDate").val(), | ||
| 265 | + endDate : $("#endDate").val(), | ||
| 266 | + gsdm:gsdmChange, | ||
| 267 | + fgsdm:fgsdmChange, | ||
| 268 | + type : 'query' | ||
| 269 | + }, function(result) { | ||
| 270 | + // 把数据填充到模版中 | ||
| 271 | + var tbodyHtml = template('changetochange', { | ||
| 272 | + list : result | ||
| 273 | + }); | ||
| 274 | + // 把渲染好的模版html文本追加到表格中 | ||
| 275 | + $('#forms tbody').html(tbodyHtml); | ||
| 276 | + layer.close(i); | ||
| 277 | + }) | ||
| 278 | + | ||
| 279 | + } else { | ||
| 280 | + alert("请选择时间范围!"); | ||
| 281 | + } | ||
| 282 | + }); | ||
| 283 | + | ||
| 284 | + $("#export").on( | ||
| 285 | + "click", | ||
| 286 | + function() { | ||
| 287 | + sfyy = $("#sfyy").val(); | ||
| 288 | + line = $("#line").val(); | ||
| 289 | + var sel = $("#sel").val(); | ||
| 290 | + var startDate = $("#startDate").val(); | ||
| 291 | + var endDate = $("#endDate").val(); | ||
| 292 | + var lpName = $("#lpName").val(); | ||
| 293 | + var gsdmChange= $("#gsdmChange").val(); | ||
| 294 | + var fgsdmChange= $("#fgsdmChange").val(); | ||
| 295 | + var lineName = $('#line option:selected').text(); | ||
| 296 | + if(lineName == "全部线路") | ||
| 297 | + lineName = $('#fgsdmChange option:selected').text(); | ||
| 298 | + var i = layer.load(2); | ||
| 299 | + $post('/mcy_export/changetochangeExport', { | ||
| 300 | + sel:sel, | ||
| 301 | + line:line, | ||
| 302 | + sfyy:sfyy, | ||
| 303 | + gsdm:gsdmChange, | ||
| 304 | + fgsdm:fgsdmChange, | ||
| 305 | + startDate : startDate, | ||
| 306 | + endDate : endDate, | ||
| 307 | + type : 'export', | ||
| 308 | + lineName : lineName | ||
| 309 | + }, function(result) { | ||
| 310 | + var dateTime = ""; | ||
| 311 | + if(startDate == endDate){ | ||
| 312 | + dateTime = moment(startDate).format("YYYYMMDD"); | ||
| 313 | + } else { | ||
| 314 | + dateTime = moment(startDate).format("YYYYMMDD") | ||
| 315 | + +"-"+moment(endDate).format("YYYYMMDD"); | ||
| 316 | + } | ||
| 317 | + window.open("/downloadFile/download?fileName=" | ||
| 318 | + +dateTime+"-"+lineName+"-换人换车情况日统计"); | ||
| 319 | + layer.close(i); | ||
| 320 | + }); | ||
| 321 | + }); | ||
| 322 | + }); | ||
| 323 | +</script> | ||
| 324 | +<script type="text/html" id="changetochange"> | ||
| 325 | + {{each list as obj i}} | ||
| 326 | + <tr> | ||
| 327 | + <td>{{obj.rq}}</td> | ||
| 328 | + <td>{{obj.gs}}</td> | ||
| 329 | + <td>{{obj.fgs}}</td> | ||
| 330 | + <td>{{obj.xl}}</td> | ||
| 331 | + <td>{{obj.lp}}</td> | ||
| 332 | + <td>{{obj.fssj}}</td> | ||
| 333 | + <td>{{obj.xgsj}}</td> | ||
| 334 | + <td>{{obj.pcch}}</td> | ||
| 335 | + <td>{{obj.sjch}}</td> | ||
| 336 | + <td colspan="2">{{obj.pcry}}</td> | ||
| 337 | + <td colspan="2">{{obj.sjgh}}</td> | ||
| 338 | + <td>{{obj.yy}}</td> | ||
| 339 | + <td>{{obj.xgr}}</td> | ||
| 340 | + </tr> | ||
| 341 | + {{/each}} | ||
| 342 | + {{if list.length == 0}} | ||
| 343 | + <tr> | ||
| 344 | + <td colspan="15"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 345 | + </tr> | ||
| 346 | + {{/if}} | ||
| 347 | +</script> | ||
| 0 | \ No newline at end of file | 348 | \ No newline at end of file |
src/main/resources/static/pages/mforms/executionrates/executionrate.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center;} | ||
| 15 | + | ||
| 16 | + .table > tbody + tbody { | ||
| 17 | + border-top: 1px solid; } | ||
| 18 | + .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th{ text-align: center; } | ||
| 19 | +.table-checkable tr > th:first-child, .table-checkable tr > td:first-child { | ||
| 20 | + text-align: center; | ||
| 21 | + max-width: initial; | ||
| 22 | + min-width: 40px; | ||
| 23 | + padding-left: 0; | ||
| 24 | + padding-right: 0; | ||
| 25 | +} | ||
| 26 | + | ||
| 27 | +</style> | ||
| 28 | + | ||
| 29 | +<div class="page-head"> | ||
| 30 | + <div class="page-title"> | ||
| 31 | + <h1>班次执行率统计表</h1> | ||
| 32 | + </div> | ||
| 33 | +</div> | ||
| 34 | + | ||
| 35 | +<div class="row"> | ||
| 36 | + <div class="col-md-12"> | ||
| 37 | + <div class="portlet light porttlet-fit bordered"> | ||
| 38 | + <div class="portlet-title"> | ||
| 39 | + <form class="form-inline" action="" method="post"> | ||
| 40 | + <div style="display: inline-block; margin-left: 33px;" id="gsdmDiv_ececut"> | ||
| 41 | + <span class="item-label" style="width: 80px;">公司: </span> | ||
| 42 | + <select class="form-control" name="company" id="gsdmEcecut" style="width: 140px;"></select> | ||
| 43 | + </div> | ||
| 44 | + <div style="display: inline-block; margin-left: 24px;" id="fgsdmDiv_ececut"> | ||
| 45 | + <span class="item-label" style="width: 80px;">分公司: </span> | ||
| 46 | + <select class="form-control" name="subCompany" id="fgsdmEcecut" style="width: 140px;"></select> | ||
| 47 | + </div> | ||
| 48 | + <div style="display: inline-block;"> | ||
| 49 | + <span class="item-label" style="width: 80px;">线路: </span> | ||
| 50 | + <select class="form-control" name="line" id="line" style="width: 120px;"></select> | ||
| 51 | + </div> | ||
| 52 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 53 | + <span class="item-label" style="width: 80px;">开始时间: </span> | ||
| 54 | + <input class="form-control" type="text" id="startDate" style="width: 120px;"/> | ||
| 55 | + </div> | ||
| 56 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 57 | + <span class="item-label" style="width: 80px;">结束时间: </span> | ||
| 58 | + <input class="form-control" type="text" id="endDate" style="width: 120px;"/> | ||
| 59 | + </div> | ||
| 60 | + <div class="form-group"> | ||
| 61 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 62 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 63 | + </div> | ||
| 64 | + </form> | ||
| 65 | + </div> | ||
| 66 | + <div class="portlet-body"> | ||
| 67 | + <div class="table-container" style="margin-top: 20px;overflow:auto;min-width: 1000px"> | ||
| 68 | + <table class="table table-bordered table-hover table-checkable" id="forms1"> | ||
| 69 | + <thead> | ||
| 70 | + <tr> | ||
| 71 | + <th colspan="11">班次执行率统计表</th> | ||
| 72 | + </tr> | ||
| 73 | + <tr> | ||
| 74 | + <td rowspan="2" style=" padding-top: 20px;">日期</td> | ||
| 75 | + <td rowspan="2" style=" padding-top: 20px;">公司</td> | ||
| 76 | + <td rowspan="2" style=" padding-top: 20px;">直属公司</td> | ||
| 77 | + <td rowspan="2" style=" padding-top: 20px;">线路条数</td> | ||
| 78 | + <td colspan="2">出车数</td> | ||
| 79 | + <td rowspan="2" >出车率</td> | ||
| 80 | + <td colspan="2" >班次数</td> | ||
| 81 | + <td rowspan="2" style=" padding-top: 20px;">班次执行率</td> | ||
| 82 | + <td rowspan="2" style=" padding-top: 20px;">说明</td> | ||
| 83 | + </tr> | ||
| 84 | + <tr> | ||
| 85 | + <td>计划</td> | ||
| 86 | + <td>实际</td> | ||
| 87 | + <td>计划</td> | ||
| 88 | + <td>实际</td> | ||
| 89 | + </tr> | ||
| 90 | + </thead> | ||
| 91 | + <tbody id="tbody"> | ||
| 92 | + | ||
| 93 | + </tbody> | ||
| 94 | + <tr> | ||
| 95 | + <td colspan="1">分类汇总</td> | ||
| 96 | + <td><span id="total_gs"> </span></td> | ||
| 97 | + <td><span id="total_zhgs"> </span></td> | ||
| 98 | + <td><span id="total_xlts"> </span></td> | ||
| 99 | + <td><span id="total_jh"> </span></td> | ||
| 100 | + <td><span id="total_sj"> </span></td> | ||
| 101 | + <td><span id="total_ccl"> </span></td> | ||
| 102 | + <td><span id="total_bcjh"> </span></td> | ||
| 103 | + <td><span id="total_bcsj"> </span></td> | ||
| 104 | + <td><span id="total_bczxl"> </span></td> | ||
| 105 | + <td><span id="total_sm"> </span></td> | ||
| 106 | + </tr> | ||
| 107 | + </table> | ||
| 108 | + </div> | ||
| 109 | + </div> | ||
| 110 | + </div> | ||
| 111 | + </div> | ||
| 112 | +</div> | ||
| 113 | + | ||
| 114 | +<script> | ||
| 115 | + $(function(){ | ||
| 116 | + // 关闭左侧栏 | ||
| 117 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 118 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 119 | + | ||
| 120 | + $("#startDate,#endDate").datetimepicker({ | ||
| 121 | + format : 'YYYY-MM-DD', | ||
| 122 | + locale : 'zh-cn' | ||
| 123 | + }); | ||
| 124 | + | ||
| 125 | + | ||
| 126 | + var obj = []; | ||
| 127 | + $.get('/user/companyData', function(result){ | ||
| 128 | + obj = result; | ||
| 129 | + var options = ''; | ||
| 130 | + for(var i = 0; i < obj.length; i++){ | ||
| 131 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 132 | + } | ||
| 133 | + | ||
| 134 | + if(obj.length ==0){ | ||
| 135 | + $("#gsdmDiv_ececut").css('display','none'); | ||
| 136 | + $('#fgsdmDiv_ececut').css('display','none'); | ||
| 137 | + }else if(obj.length ==1){ | ||
| 138 | + $("#gsdmDiv_ececut").css('display','none'); | ||
| 139 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 140 | + $('#fgsdmDiv_ececut').css('display','none'); | ||
| 141 | + } | ||
| 142 | + $('#gsdmEcecut').html(options); | ||
| 143 | + updateCompany(); | ||
| 144 | + }); | ||
| 145 | + | ||
| 146 | + $("#gsdmEcecut").on("change",updateCompany); | ||
| 147 | + function updateCompany(){ | ||
| 148 | + var company = $('#gsdmEcecut').val(); | ||
| 149 | + var options = ''; | ||
| 150 | + for(var i = 0; i < obj.length; i++){ | ||
| 151 | + if(obj[i].companyCode == company){ | ||
| 152 | + var children = obj[i].children; | ||
| 153 | + for(var j = 0; j < children.length; j++){ | ||
| 154 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 155 | + } | ||
| 156 | + } | ||
| 157 | + } | ||
| 158 | + $('#fgsdmEcecut').html(options); | ||
| 159 | + } | ||
| 160 | + | ||
| 161 | + $.get('/basic/lineCode2Name',function(result){ | ||
| 162 | + var data=[]; | ||
| 163 | + | ||
| 164 | + for(var code in result){ | ||
| 165 | + data.push({id: code, text: result[code]}); | ||
| 166 | + } | ||
| 167 | + initPinYinSelect2('#line',data,''); | ||
| 168 | + | ||
| 169 | + }) | ||
| 170 | + | ||
| 171 | + var line; | ||
| 172 | + var startDate; | ||
| 173 | + var endDate; | ||
| 174 | + var gsdmEcecut; | ||
| 175 | + var fgsdmEcecut; | ||
| 176 | + $("#query").on("click",function(){ | ||
| 177 | + | ||
| 178 | + line = $("#line").val(); | ||
| 179 | + startDate1=$("#startDate").val(); | ||
| 180 | + endDate1=$("#endDate").val(); | ||
| 181 | + gsdmEcecut=$("#gsdmEcecut").val(); | ||
| 182 | + fgsdmEcecut=$("#fgsdmEcecut").val(); | ||
| 183 | + if(startDate1!=''&&endDate1!=''){ | ||
| 184 | + $post('/mcy_forms/executionrate',{ gsdmEcecut:gsdmEcecut,fgsdmEcecut:fgsdmEcecut, line:line,startDate:$("#startDate").val(),endDate:$("#endDate").val(),type:'query'},function(result){ | ||
| 185 | + // 把数据填充到模版中 | ||
| 186 | + var tbodyHtml = template('executionrate',{list:result}); | ||
| 187 | + // 把渲染好的模版html文本追加到表格中 | ||
| 188 | + $('#tbody').html(tbodyHtml); | ||
| 189 | + line = $("#line").val(); | ||
| 190 | + | ||
| 191 | + startDate = $("#startDate").val(); | ||
| 192 | + endDate = $("#endDate").val(); | ||
| 193 | + $("#sDate").text(startDate); | ||
| 194 | + $("#eDate").text(endDate); | ||
| 195 | + | ||
| 196 | + var total_xlts = 0,total_jh = 0; | ||
| 197 | + var total_sj = 0,total_ccl = 0,total_bcjh = 0; | ||
| 198 | + var total_bcjh = 0,total_bcsj = 0,total_bczxl = 0; | ||
| 199 | + var total_gs=0; | ||
| 200 | + var total_zhgs=0; | ||
| 201 | + $.each(result, function(i, obj) { | ||
| 202 | + total_gs +=Number(obj.gsgs); | ||
| 203 | + total_zhgs +=Number(obj.fgsgs); | ||
| 204 | + total_xlts += Number(obj.xl); | ||
| 205 | + total_jh = Number(obj.cchjh)+Number(total_jh); | ||
| 206 | + total_sj = Number(obj.cchsj)+Number(total_sj); | ||
| 207 | + | ||
| 208 | + total_ccl =(Number(total_sj)/Number(total_jh))*100; | ||
| 209 | + total_bcjh = Number(obj.bcjh)+Number(total_bcjh); | ||
| 210 | + total_bcsj = Number(obj.bcsj)+Number(total_bcsj); | ||
| 211 | + total_bczxl = (Number(total_bcsj)/Number(total_bcjh))*100; | ||
| 212 | + | ||
| 213 | + }); | ||
| 214 | + $("#total_gs").text(total_gs); | ||
| 215 | + $("#total_zhgs").text(total_zhgs); | ||
| 216 | + $("#total_xlts").text(total_xlts); | ||
| 217 | + $("#total_jh").text(total_jh); | ||
| 218 | + $("#total_sj").text(total_sj); | ||
| 219 | + $("#total_ccl").text(total_ccl.toFixed(2)+'%'); | ||
| 220 | + $("#total_bcjh").text(total_bcjh); | ||
| 221 | + $("#total_bcsj").text(total_bcsj); | ||
| 222 | + $("#total_bczxl").text(total_bczxl.toFixed(2)+'%'); | ||
| 223 | + | ||
| 224 | + var temp = {}; | ||
| 225 | + var today_account = 0; | ||
| 226 | + | ||
| 227 | + temp["line"] = $("#line").text(); | ||
| 228 | + $.each(result, function(i, obj) { | ||
| 229 | + if(moment(obj.schedule_date_str).format("YYYY-MM-DD") == moment(obj.startDate).format("YYYY-MM-DD")){ | ||
| 230 | + today_account++; | ||
| 231 | + } | ||
| 232 | + obj.updateDate = moment(obj.startDate).format("YYYY-MM-DD HH:mm:ss"); | ||
| 233 | + }); | ||
| 234 | + | ||
| 235 | + }) | ||
| 236 | + | ||
| 237 | + }else{ | ||
| 238 | + alert("请选择时间范围!"); | ||
| 239 | + } | ||
| 240 | + }); | ||
| 241 | + | ||
| 242 | + $("#export").on("click",function(){ | ||
| 243 | + line = $("#line").val(); | ||
| 244 | + startDate=$("#startDate").val(); | ||
| 245 | + endDate=$("#endDate").val(); | ||
| 246 | + gsdmEcecut=$("#gsdmEcecut").val(); | ||
| 247 | + fgsdmEcecut=$("#fgsdmEcecut").val(); | ||
| 248 | + $post('/mcy_export/executionrateExport',{gsdmEcecut:gsdmEcecut,fgsdmEcecut:fgsdmEcecut,line:line,startDate:startDate,endDate:endDate,type:'export'},function(result){ | ||
| 249 | + window.open("/downloadFile/download?fileName=班次执行率统计表"+moment(startDate).format("YYYYMMDD")); | ||
| 250 | + }); | ||
| 251 | + }); | ||
| 252 | + }); | ||
| 253 | +</script> | ||
| 254 | +<script type="text/html" id="executionrate"> | ||
| 255 | + {{each list as obj i}} | ||
| 256 | + <tr> | ||
| 257 | + <td>{{obj.rq}}</td> | ||
| 258 | + <td>{{obj.gs}}</td> | ||
| 259 | + <td>{{obj.zhgs}}</td> | ||
| 260 | + <td>{{obj.xl}}</td> | ||
| 261 | + <td>{{obj.cchjh}}</td> | ||
| 262 | + <td>{{obj.cchsj}}</td> | ||
| 263 | + <td>{{obj.chl}}</td> | ||
| 264 | + <td>{{obj.bcjh}}</td> | ||
| 265 | + <td>{{obj.bcsj}}</td> | ||
| 266 | + <td>{{obj.bbzxl}}</td> | ||
| 267 | + <td>{{obj.sm}}</td> | ||
| 268 | + </tr> | ||
| 269 | + {{/each}} | ||
| 270 | + {{if list.length == 0}} | ||
| 271 | + <tr> | ||
| 272 | + <td colspan="11"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 273 | + </tr> | ||
| 274 | + {{/if}} | ||
| 275 | +</script> |
src/main/resources/static/pages/mforms/linepassengerflows/linepassengerflow.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; } | ||
| 14 | + | ||
| 15 | + .table > tbody + tbody { | ||
| 16 | + border-top: 1px solid; } | ||
| 17 | +</style> | ||
| 18 | + | ||
| 19 | +<div class="page-head"> | ||
| 20 | + <div class="page-title"> | ||
| 21 | + <h1>线路客流量报表</h1> | ||
| 22 | + </div> | ||
| 23 | +</div> | ||
| 24 | + | ||
| 25 | +<div class="row"> | ||
| 26 | + <div class="col-md-12"> | ||
| 27 | + <div class="portlet light porttlet-fit bordered"> | ||
| 28 | + <div class="portlet-title"> | ||
| 29 | + <form class="form-inline" action=""> | ||
| 30 | + <div style="display: inline-block; margin-left: 33px;" id="gsdmDiv_line"> | ||
| 31 | + <span class="item-label" style="width: 80px;">公司: </span> | ||
| 32 | + <select class="form-control" name="company" id="gsdmLine" style="width: 140px;"></select> | ||
| 33 | + </div> | ||
| 34 | + <div style="display: inline-block; margin-left: 24px;" id="fgsdmDiv_line"> | ||
| 35 | + <span class="item-label" style="width: 80px;">分公司: </span> | ||
| 36 | + <select class="form-control" name="subCompany" id="fgsdmLine" style="width: 140px;"></select> | ||
| 37 | + </div> | ||
| 38 | + <div style="display: inline-block;"> | ||
| 39 | + <span class="item-label" style="width: 80px;">线路: </span> | ||
| 40 | + <select class="form-control" name="line" id="line" style="width: 180px;"></select> | ||
| 41 | + </div> | ||
| 42 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 43 | + <span class="item-label" style="width: 80px;">时间: </span> | ||
| 44 | + <input class="form-control" type="text" id="date" style="width: 180px;"/> | ||
| 45 | + </div> | ||
| 46 | + <div class="form-group"> | ||
| 47 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 48 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 49 | + </div> | ||
| 50 | + </form> | ||
| 51 | + </div> | ||
| 52 | + <div class="portlet-body"> | ||
| 53 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | ||
| 54 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | ||
| 55 | + <thead> | ||
| 56 | + <tr> | ||
| 57 | + <th>序号</th> | ||
| 58 | + <th>站点名称</th> | ||
| 59 | + <th>pos机刷卡金额</th> | ||
| 60 | + <th>投币金额</th> | ||
| 61 | + </tr> | ||
| 62 | + </thead> | ||
| 63 | + <tbody> | ||
| 64 | + | ||
| 65 | + </tbody> | ||
| 66 | + </table> | ||
| 67 | + </div> | ||
| 68 | + </div> | ||
| 69 | + </div> | ||
| 70 | + </div> | ||
| 71 | +</div> | ||
| 72 | + | ||
| 73 | +<script> | ||
| 74 | + $(function(){ | ||
| 75 | + var reqCodeMap = {"0xA1": '请求恢复运营', "0xA2": '申请调档', "0xA3": '出场请求', "0xA5": '进场请求', "0xA7": '加油请求', "0x50": '车辆故障', "0x70": '路阻报告', "0x60": '事故报告', "0x11": '扣证纠纷', "0x12" : '报警'}; | ||
| 76 | + // 关闭左侧栏 | ||
| 77 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 78 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 79 | + | ||
| 80 | + $("#date").datetimepicker({ | ||
| 81 | + format : 'YYYY-MM-DD', | ||
| 82 | + locale : 'zh-cn' | ||
| 83 | + }); | ||
| 84 | + | ||
| 85 | + var fage=false; | ||
| 86 | + var xlList; | ||
| 87 | + var obj = []; | ||
| 88 | + | ||
| 89 | + $.get('/report/lineList',function(result){ | ||
| 90 | + xlList=result; | ||
| 91 | + $.get('/user/companyData', function(result){ | ||
| 92 | + obj = result; | ||
| 93 | + var options = ''; | ||
| 94 | + for(var i = 0; i < obj.length; i++){ | ||
| 95 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 96 | + } | ||
| 97 | + | ||
| 98 | + if(obj.length ==0){ | ||
| 99 | + $("#gsdmDiv_line").css('display','none'); | ||
| 100 | + }else if(obj.length ==1){ | ||
| 101 | + $("#gsdmDiv_line").css('display','none'); | ||
| 102 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 103 | + $('#fgsdmDiv_line').css('display','none'); | ||
| 104 | + } | ||
| 105 | + $('#gsdmLine').html(options); | ||
| 106 | + updateCompany(); | ||
| 107 | + }); | ||
| 108 | + }) | ||
| 109 | + $("#gsdmLine").on("change",updateCompany); | ||
| 110 | + function updateCompany(){ | ||
| 111 | + var company = $('#gsdmLine').val(); | ||
| 112 | + var options = ''; | ||
| 113 | + for(var i = 0; i < obj.length; i++){ | ||
| 114 | + if(obj[i].companyCode == company){ | ||
| 115 | + var children = obj[i].children; | ||
| 116 | + for(var j = 0; j < children.length; j++){ | ||
| 117 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 118 | + } | ||
| 119 | + } | ||
| 120 | + } | ||
| 121 | + $('#fgsdmLine').html(options); | ||
| 122 | + initXl(); | ||
| 123 | + } | ||
| 124 | + | ||
| 125 | + $("#fgsdmLine").on("change",initXl); | ||
| 126 | + function initXl(){ | ||
| 127 | + var data=[]; | ||
| 128 | + if(fage){ | ||
| 129 | + $("#line").select2("destroy").html(''); | ||
| 130 | + } | ||
| 131 | + var fgs=$('#fgsdmLine').val(); | ||
| 132 | + var gs=$('#gsdmLine').val(); | ||
| 133 | + for(var i=0;i<xlList.length;i++){ | ||
| 134 | + if(gs!=""){ | ||
| 135 | + if(fgs!=""){ | ||
| 136 | + if(xlList[i]["fgsbm"]==fgs && xlList[i]["gsbm"]==gs){ | ||
| 137 | + data.push({id: xlList[i]["xlbm"], text: xlList[i]["xlname"]}); | ||
| 138 | + } | ||
| 139 | + }else{ | ||
| 140 | + if(xlList[i]["gsbm"]==gs){ | ||
| 141 | + data.push({id: xlList[i]["xlbm"], text: xlList[i]["xlname"]}); | ||
| 142 | + } | ||
| 143 | + } | ||
| 144 | + } | ||
| 145 | + } | ||
| 146 | + initPinYinSelect2('#line',data,''); | ||
| 147 | + fage=true; | ||
| 148 | + } | ||
| 149 | + | ||
| 150 | + var line; | ||
| 151 | + var date; | ||
| 152 | + var gsdmLine; | ||
| 153 | + var fgsdmLine; | ||
| 154 | + $("#query").on("click",function(){ | ||
| 155 | + var line = $("#line").val(); | ||
| 156 | + var date = $("#date").val(); | ||
| 157 | + var gsdmLine = $("#gsdmLine").val(); | ||
| 158 | + var fgsdmLine = $("#fgsdmLine").val(); | ||
| 159 | + $post('/mcy_forms/linepasswengerflow',{ gsdmLine:gsdmLine,fgsdmLine:fgsdmLine,line:line,date:date,type:'query'},function(result){ | ||
| 160 | + $.each(result, function(i, obj) { | ||
| 161 | + obj.requestType = reqCodeMap[obj.requestType]; | ||
| 162 | + }); | ||
| 163 | + // 把数据填充到模版中 | ||
| 164 | + var tbodyHtml = template('list_linepasswengerflow',{list:result}); | ||
| 165 | + // 把渲染好的模版html文本追加到表格中 | ||
| 166 | + $('#forms tbody').html(tbodyHtml); | ||
| 167 | + }); | ||
| 168 | + }); | ||
| 169 | + | ||
| 170 | + $("#export").on("click",function(){ | ||
| 171 | + var line = $("#line").val(); | ||
| 172 | + var date = $("#date").val(); | ||
| 173 | + var gsdmLine = $("#gsdmLine").val(); | ||
| 174 | + var fgsdmLine = $("#fgsdmLine").val(); | ||
| 175 | + $post('/mcy_export/linepasswengerflowExport',{gsdmLine:gsdmLine,fgsdmLine:fgsdmLine,line:line,date:date,type:'export'},function(result){ | ||
| 176 | + window.open("/downloadFile/download?fileName=线路客流量报表"+moment(date).format("YYYYMMDD")); | ||
| 177 | + }); | ||
| 178 | + }); | ||
| 179 | + }); | ||
| 180 | +</script> | ||
| 181 | +<script type="text/html" id="list_linepasswengerflow"> | ||
| 182 | + {{each list as obj i}} | ||
| 183 | + <tr> | ||
| 184 | + <td>{{i+1}}</td> | ||
| 185 | + <td>{{obj.stationName}}</td> | ||
| 186 | + <td> </td> | ||
| 187 | + <td> </td> | ||
| 188 | + </tr> | ||
| 189 | + {{/each}} | ||
| 190 | + {{if list.length == 0}} | ||
| 191 | + <tr> | ||
| 192 | + <td colspan="6"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 193 | + </tr> | ||
| 194 | + {{/if}} | ||
| 195 | +</script> | ||
| 0 | \ No newline at end of file | 196 | \ No newline at end of file |
src/main/resources/static/pages/mforms/online/online.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center;} | ||
| 15 | + | ||
| 16 | + .table > tbody + tbody { | ||
| 17 | + border-top: 1px solid; } | ||
| 18 | + .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th{ text-align: center; } | ||
| 19 | +.table-checkable tr > th:first-child, .table-checkable tr > td:first-child { | ||
| 20 | + text-align: center; | ||
| 21 | + max-width: initial; | ||
| 22 | + min-width: 40px; | ||
| 23 | + padding-left: 0; | ||
| 24 | + padding-right: 0; | ||
| 25 | +} | ||
| 26 | + | ||
| 27 | +</style> | ||
| 28 | + | ||
| 29 | +<div class="page-head"> | ||
| 30 | + <div class="page-title"> | ||
| 31 | + <h1>车辆在线率统计表</h1> | ||
| 32 | + </div> | ||
| 33 | +</div> | ||
| 34 | + | ||
| 35 | +<div class="row"> | ||
| 36 | + <div class="col-md-12"> | ||
| 37 | + <div class="portlet light porttlet-fit bordered"> | ||
| 38 | + <div class="portlet-title"> | ||
| 39 | + <form class="form-inline" action="" method="post"> | ||
| 40 | + <div style="display: inline-block; margin-left: 20px;" id="gsdmDiv_turn"> | ||
| 41 | + <span class="item-label" style="width: 80px;">公司: </span> | ||
| 42 | + <select class="form-control" name="company" id="gsdmTurn" style="width: 140px;"></select> | ||
| 43 | + </div> | ||
| 44 | + <div style="display: inline-block; margin-left: 20px;" id="fgsdmDiv_turn"> | ||
| 45 | + <span class="item-label" style="width: 80px;">分公司: </span> | ||
| 46 | + <select class="form-control" name="subCompany" id="fgsdmTurn" style="width: 140px;"></select> | ||
| 47 | + </div> | ||
| 48 | + <div style="display: inline-block; margin-left: 15px;"> | ||
| 49 | + <span class="item-label" style="width: 80px;">线路: </span> | ||
| 50 | + <select class="form-control" name="line" id="line" style="width: 120px;"></select> | ||
| 51 | + </div> | ||
| 52 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 53 | + <span class="item-label" style="width: 80px;">日期: </span> | ||
| 54 | + <input class="form-control" type="text" id="date" style="width: 120px;"/> | ||
| 55 | + </div> | ||
| 56 | + | ||
| 57 | + <div class="form-group"> | ||
| 58 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 59 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 60 | + </div> | ||
| 61 | + </form> | ||
| 62 | + </div> | ||
| 63 | + <div class="portlet-body"> | ||
| 64 | + <div class="table-container" style="margin-top: 20px;overflow:auto;min-width: 1000px"> | ||
| 65 | + <table class="table table-bordered table-hover table-checkable" id="forms1"> | ||
| 66 | + <thead> | ||
| 67 | + <tr> | ||
| 68 | + <th colspan="6">车辆在线率统计表</th> | ||
| 69 | + </tr> | ||
| 70 | + <tr> | ||
| 71 | + <td>日期</td> | ||
| 72 | + <td>线路</td> | ||
| 73 | + <td>权证配车数</td> | ||
| 74 | + <td>实际出车数</td> | ||
| 75 | + <td>在线车辆数</td> | ||
| 76 | + <td>在线率</td> | ||
| 77 | + </tr> | ||
| 78 | + </thead> | ||
| 79 | + <tbody id="tbody"> | ||
| 80 | + | ||
| 81 | + </tbody> | ||
| 82 | + </table> | ||
| 83 | + </div> | ||
| 84 | + </div> | ||
| 85 | + </div> | ||
| 86 | + </div> | ||
| 87 | +</div> | ||
| 88 | + | ||
| 89 | +<script> | ||
| 90 | + $(function(){ | ||
| 91 | + // 关闭左侧栏 | ||
| 92 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 93 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 94 | + | ||
| 95 | + $("#date").datetimepicker({ | ||
| 96 | + format : 'YYYY-MM-DD', | ||
| 97 | + locale : 'zh-cn' | ||
| 98 | + }); | ||
| 99 | + | ||
| 100 | + var d = new Date(); | ||
| 101 | + var year = d.getFullYear(); | ||
| 102 | + var month = d.getMonth() + 1; | ||
| 103 | + var day = d.getDate(); | ||
| 104 | + if(month < 10) | ||
| 105 | + month = "0" + month; | ||
| 106 | + if(day < 10) | ||
| 107 | + day = "0" + day; | ||
| 108 | + $("#date").val(year + "-" + month + "-" + day); | ||
| 109 | + | ||
| 110 | + var fage=false; | ||
| 111 | + var xlList; | ||
| 112 | + var obj = []; | ||
| 113 | + | ||
| 114 | + $.get('/report/lineList',function(result){ | ||
| 115 | + xlList=result; | ||
| 116 | + $.get('/user/companyData', function(result){ | ||
| 117 | + obj = result; | ||
| 118 | + var options = ''; | ||
| 119 | + for(var i = 0; i < obj.length; i++){ | ||
| 120 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 121 | + } | ||
| 122 | + | ||
| 123 | + if(obj.length ==0){ | ||
| 124 | + $("#gsdmDiv_turn").css('display','none'); | ||
| 125 | + }else if(obj.length ==1){ | ||
| 126 | + $("#gsdmDiv_turn").css('display','none'); | ||
| 127 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 128 | + $('#fgsdmDiv_turn').css('display','none'); | ||
| 129 | + } | ||
| 130 | + $('#gsdmTurn').html(options); | ||
| 131 | + updateCompany(); | ||
| 132 | + }); | ||
| 133 | + }) | ||
| 134 | + $("#gsdmTurn").on("change",updateCompany); | ||
| 135 | + function updateCompany(){ | ||
| 136 | + var company = $('#gsdmTurn').val(); | ||
| 137 | + var options = ''; | ||
| 138 | + for(var i = 0; i < obj.length; i++){ | ||
| 139 | + if(obj[i].companyCode == company){ | ||
| 140 | + var children = obj[i].children; | ||
| 141 | + for(var j = 0; j < children.length; j++){ | ||
| 142 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 143 | + } | ||
| 144 | + } | ||
| 145 | + } | ||
| 146 | + $('#fgsdmTurn').html(options); | ||
| 147 | + } | ||
| 148 | + | ||
| 149 | + var tempData = {}; | ||
| 150 | + $.get('/report/lineList',function(xlList){ | ||
| 151 | + var data = []; | ||
| 152 | +// data.push({id: " ", text: "全部线路"}); | ||
| 153 | + $.get('/user/companyData', function(result){ | ||
| 154 | + for(var i = 0; i < result.length; i++){ | ||
| 155 | + var companyCode = result[i].companyCode; | ||
| 156 | + var children = result[i].children; | ||
| 157 | + for(var j = 0; j < children.length; j++){ | ||
| 158 | + var code = children[j].code; | ||
| 159 | + for(var k=0;k < xlList.length;k++ ){ | ||
| 160 | + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){ | ||
| 161 | + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]}); | ||
| 162 | + tempData[xlList[k]["xlbm"]] = companyCode+":"+code; | ||
| 163 | + } | ||
| 164 | + } | ||
| 165 | + } | ||
| 166 | + } | ||
| 167 | + initPinYinSelect2('#line',data,''); | ||
| 168 | + | ||
| 169 | + }); | ||
| 170 | + }); | ||
| 171 | + | ||
| 172 | + $("#line").on("change", function(){ | ||
| 173 | + if($("#line").val() == " "){ | ||
| 174 | + $("#gsdmTurn").attr("disabled", false); | ||
| 175 | + $("#fgsdmTurn").attr("disabled", false); | ||
| 176 | + } else { | ||
| 177 | + var temp = tempData[$("#line").val()].split(":"); | ||
| 178 | + $("#gsdmTurn").val(temp[0]); | ||
| 179 | + updateCompany(); | ||
| 180 | + $("#fgsdmTurn").val(temp[1]); | ||
| 181 | + $("#gsdmTurn").attr("disabled", true); | ||
| 182 | + $("#fgsdmTurn").attr("disabled", true); | ||
| 183 | + } | ||
| 184 | + }); | ||
| 185 | + | ||
| 186 | + var line; | ||
| 187 | + var date; | ||
| 188 | + $("#query").on("click",function(){ | ||
| 189 | + line = $("#line").val(); | ||
| 190 | + date=$("#date").val(); | ||
| 191 | + if(date!=''){ | ||
| 192 | + $get('/report/online', | ||
| 193 | + { line:line,date:date,type:'query'},function(result){ | ||
| 194 | + // 把数据填充到模版中 | ||
| 195 | + var tbodyHtml = template('online',result); | ||
| 196 | + // 把渲染好的模版html文本追加到表格中 | ||
| 197 | + $('#tbody').html(tbodyHtml); | ||
| 198 | + }); | ||
| 199 | + | ||
| 200 | + }else{ | ||
| 201 | + layer.msg("请选择时间!"); | ||
| 202 | + } | ||
| 203 | + }); | ||
| 204 | + | ||
| 205 | + $("#export").on("click",function(){ | ||
| 206 | + line = $("#line").val(); | ||
| 207 | + date=$("#date").val(); | ||
| 208 | + $get('/report/online',{line:line,date:date,type:'export'},function(result){ | ||
| 209 | + window.open("/downloadFile/download?fileName=车辆在线率统计"); | ||
| 210 | + }); | ||
| 211 | + }); | ||
| 212 | + }); | ||
| 213 | +</script> | ||
| 214 | +<script type="text/html" id="online"> | ||
| 215 | + <tr> | ||
| 216 | + <td>{{date}}</td> | ||
| 217 | + <td>{{xlName}}</td> | ||
| 218 | + <td>{{qzpcs}}</td> | ||
| 219 | + <td>{{ccs}}</td> | ||
| 220 | + <td>{{zxcl}}</td> | ||
| 221 | + <td>{{zxl}}</td> | ||
| 222 | + </tr> | ||
| 223 | +</script> |
src/main/resources/static/pages/mforms/operationservices/operationservice.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | +.table-bordered { | ||
| 3 | + border: 1px solid; | ||
| 4 | +} | ||
| 5 | + | ||
| 6 | +.table-bordered>thead>tr>th, .table-bordered>thead>tr>td, | ||
| 7 | + .table-bordered>tbody>tr>th, .table-bordered>tbody>tr>td, | ||
| 8 | + .table-bordered>tfoot>tr>th, .table-bordered>tfoot>tr>td { | ||
| 9 | + border: 1px solid; | ||
| 10 | +} | ||
| 11 | + | ||
| 12 | +.table-bordered>thead>tr>th, .table-bordered>thead>tr>td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center; | ||
| 15 | +} | ||
| 16 | + | ||
| 17 | +.table>tbody+tbody { | ||
| 18 | + border-top: 1px solid; | ||
| 19 | +} | ||
| 20 | +</style> | ||
| 21 | + | ||
| 22 | +<div class="page-head"> | ||
| 23 | + <div class="page-title"> | ||
| 24 | + <h1>运营服务阶段报表</h1> | ||
| 25 | + </div> | ||
| 26 | +</div> | ||
| 27 | + | ||
| 28 | +<div class="row"> | ||
| 29 | + <div class="col-md-12"> | ||
| 30 | + <div class="portlet light porttlet-fit bordered"> | ||
| 31 | + <div class="portlet-title"> | ||
| 32 | + <form class="form-inline" action="" method="post"> | ||
| 33 | + <div style="display: inline-block; margin-left: 33px;" | ||
| 34 | + id="gsdmDiv_operat"> | ||
| 35 | + <span class="item-label" style="width: 80px;">公司: </span> <select | ||
| 36 | + class="form-control" name="company" id="gsdmOperat" | ||
| 37 | + style="width: 150px;"></select> | ||
| 38 | + </div> | ||
| 39 | + <div style="display: inline-block; margin-left: 19px;" | ||
| 40 | + id="fgsdmDiv_operat"> | ||
| 41 | + <span class="item-label" style="width: 80px;">分公司: </span> <select | ||
| 42 | + class="form-control" name="subCompany" id="fgsdmOperat" | ||
| 43 | + style="width: 150px;"></select> | ||
| 44 | + </div> | ||
| 45 | + <div style="display: inline-block;margin-left: 33px;"> | ||
| 46 | + <span class="item-label" style="width: 80px;">线路: </span> <select | ||
| 47 | + class="form-control" name="line" id="line" style="width: 150px;"></select> | ||
| 48 | + </div> | ||
| 49 | + <div style="margin-top: 10px"></div> | ||
| 50 | + <div style="display: inline-block; margin-left: 5px"> | ||
| 51 | + <span class="item-label" style="width: 80px;">是否营运: </span> | ||
| 52 | + <select class="form-control" name="sfyy" id="sfyy" style="width: 150px;"> | ||
| 53 | + <option value="0">全部线路</option> | ||
| 54 | + <option value="1" selected="selected">营运线路</option> | ||
| 55 | + <option value="2">非营运线路</option> | ||
| 56 | + </select> | ||
| 57 | + </div> | ||
| 58 | + <div style="display: inline-block; margin-left: 5px;"> | ||
| 59 | + <span class="item-label" style="width: 80px;">开始时间: </span> <input | ||
| 60 | + class="form-control" type="text" id="startDate" | ||
| 61 | + style="width: 150px;" /> | ||
| 62 | + </div> | ||
| 63 | + <div style="display: inline-block; margin-left: 5px;"> | ||
| 64 | + <span class="item-label" style="width: 80px;">结束时间: </span> <input | ||
| 65 | + class="form-control" type="text" id="endDate" | ||
| 66 | + style="width: 150px;" /> | ||
| 67 | + </div> | ||
| 68 | + <div style="display: inline-block; margin-left: 10px"> | ||
| 69 | + <span class="item-label" style="width: 150px;">统计: </span> | ||
| 70 | + </div> | ||
| 71 | + <div class="form-group"> | ||
| 72 | + <input class="btn btn-default" type="button" id="query" value="筛选" /> | ||
| 73 | + <input class="btn btn-default" type="button" id="export" | ||
| 74 | + value="导出" /> | ||
| 75 | + </div> | ||
| 76 | + </form> | ||
| 77 | + </div> | ||
| 78 | + <div class="portlet-body"> | ||
| 79 | + <div class="table-container" | ||
| 80 | + style="margin-top: 10px; overflow: auto; min-width: 906px"> | ||
| 81 | + <table class="table table-bordered table-hover table-checkable" | ||
| 82 | + id="forms"> | ||
| 83 | + <thead> | ||
| 84 | + <tr> | ||
| 85 | + <th>序号</th> | ||
| 86 | + <th>公司</th> | ||
| 87 | + <th>线路名称</th> | ||
| 88 | + <th>加注量</th> | ||
| 89 | + <th>消耗量</th> | ||
| 90 | + <th>行驶总公里(含空驶里程)</th> | ||
| 91 | + <th>空驶里程</th> | ||
| 92 | + <th>实际班次(包含空放班次)</th> | ||
| 93 | + </tr> | ||
| 94 | + </thead> | ||
| 95 | + <tbody> | ||
| 96 | + | ||
| 97 | + </tbody> | ||
| 98 | + </table> | ||
| 99 | + </div> | ||
| 100 | + </div> | ||
| 101 | + </div> | ||
| 102 | + </div> | ||
| 103 | +</div> | ||
| 104 | + | ||
| 105 | +<script> | ||
| 106 | + $(function() { | ||
| 107 | + // 关闭左侧栏 | ||
| 108 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 109 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 110 | + | ||
| 111 | + $("#startDate,#endDate").datetimepicker({ | ||
| 112 | + format : 'YYYY-MM-DD', | ||
| 113 | + locale : 'zh-cn' | ||
| 114 | + }); | ||
| 115 | + | ||
| 116 | + var d = new Date(); | ||
| 117 | + var year = d.getFullYear(); | ||
| 118 | + var month = d.getMonth() + 1; | ||
| 119 | + var day = d.getDate(); | ||
| 120 | + if(month < 10) | ||
| 121 | + month = "0" + month; | ||
| 122 | + if(day < 10) | ||
| 123 | + day = "0" + day; | ||
| 124 | + $("#startDate").val(year + "-" + month + "-" + day); | ||
| 125 | + $("#endDate").val(year + "-" + month + "-" + day); | ||
| 126 | + | ||
| 127 | + var fage=false; | ||
| 128 | + var xlList; | ||
| 129 | + var obj = []; | ||
| 130 | + | ||
| 131 | + | ||
| 132 | + $.get('/report/lineList',function(result){ | ||
| 133 | + xlList=result; | ||
| 134 | + $.get('/user/companyData', function(result){ | ||
| 135 | + obj = result; | ||
| 136 | + var options = ''; | ||
| 137 | + for(var i = 0; i < obj.length; i++){ | ||
| 138 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 139 | + } | ||
| 140 | + | ||
| 141 | + if(obj.length ==0){ | ||
| 142 | + $("#gsdmDiv_operat").css('display','none'); | ||
| 143 | + }else if(obj.length ==1){ | ||
| 144 | + $("#gsdmDiv_operat").css('display','none'); | ||
| 145 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 146 | + $('#fgsdmDiv_operat').css('display','none'); | ||
| 147 | + } | ||
| 148 | + $('#gsdmOperat').html(options); | ||
| 149 | + updateCompany(); | ||
| 150 | + }); | ||
| 151 | + }) | ||
| 152 | + $("#gsdmOperat").on("change",updateCompany); | ||
| 153 | + function updateCompany(){ | ||
| 154 | + var company = $('#gsdmOperat').val(); | ||
| 155 | + var options = '<option value="">全部分公司</option>'; | ||
| 156 | + for(var i = 0; i < obj.length; i++){ | ||
| 157 | + if(obj[i].companyCode == company){ | ||
| 158 | + var children = obj[i].children; | ||
| 159 | + for(var j = 0; j < children.length; j++){ | ||
| 160 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 161 | + } | ||
| 162 | + } | ||
| 163 | + } | ||
| 164 | + $('#fgsdmOperat').html(options); | ||
| 165 | + } | ||
| 166 | + | ||
| 167 | + var tempData = {}; | ||
| 168 | + $.get('/report/lineList',function(xlList){ | ||
| 169 | + var data = []; | ||
| 170 | + data.push({id: " ", text: "全部线路"}); | ||
| 171 | + $.get('/user/companyData', function(result){ | ||
| 172 | + for(var i = 0; i < result.length; i++){ | ||
| 173 | + var companyCode = result[i].companyCode; | ||
| 174 | + var children = result[i].children; | ||
| 175 | + for(var j = 0; j < children.length; j++){ | ||
| 176 | + var code = children[j].code; | ||
| 177 | + for(var k=0;k < xlList.length;k++ ){ | ||
| 178 | + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){ | ||
| 179 | + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]}); | ||
| 180 | + tempData[xlList[k]["xlbm"]] = companyCode+":"+code; | ||
| 181 | + } | ||
| 182 | + } | ||
| 183 | + } | ||
| 184 | + } | ||
| 185 | + initPinYinSelect2('#line',data,''); | ||
| 186 | + | ||
| 187 | + }); | ||
| 188 | + }); | ||
| 189 | + | ||
| 190 | + $("#line").on("change", function(){ | ||
| 191 | + if($("#line").val() == " "){ | ||
| 192 | + $("#gsdmOperat").attr("disabled", false); | ||
| 193 | + $("#fgsdmOperat").attr("disabled", false); | ||
| 194 | + } else { | ||
| 195 | + var temp = tempData[$("#line").val()].split(":"); | ||
| 196 | + $("#gsdmOperat").val(temp[0]); | ||
| 197 | + updateCompany(); | ||
| 198 | +// $("#fgsdmOperat").val(temp[1]); | ||
| 199 | + $("#fgsdmOperat").val(""); | ||
| 200 | + $("#gsdmOperat").attr("disabled", true); | ||
| 201 | +// $("#fgsdmOperat").attr("disabled", true); | ||
| 202 | + } | ||
| 203 | + }); | ||
| 204 | + | ||
| 205 | + | ||
| 206 | + $("#query").on( | ||
| 207 | + "click", | ||
| 208 | + function() { | ||
| 209 | + var sfyy = $("#sfyy").val(); | ||
| 210 | + var line = $("#line").val(); | ||
| 211 | + var startDate = $("#startDate").val(); | ||
| 212 | + var endDate = $("#endDate").val(); | ||
| 213 | + var lpName = $("#lpName").val(); | ||
| 214 | + var gsdmOperat = $("#gsdmOperat").val(); | ||
| 215 | + var fgsdmOperat = $("#fgsdmOperat").val(); | ||
| 216 | + var i = layer.load(2); | ||
| 217 | + $get("/mcy_forms/operationservice", { | ||
| 218 | + sfyy : sfyy, | ||
| 219 | + line : line, | ||
| 220 | + gsdmOperat : gsdmOperat, | ||
| 221 | + fgsdmOperat : fgsdmOperat, | ||
| 222 | + startDate : startDate, | ||
| 223 | + endDate : endDate, | ||
| 224 | + lpName : lpName, | ||
| 225 | + type:'query' | ||
| 226 | + }, function(result) { | ||
| 227 | + $("#sDate").text(startDate); | ||
| 228 | + $("#eDate").text(endDate); | ||
| 229 | + var temp = {}; | ||
| 230 | + var today_account = 0; | ||
| 231 | + temp["line"] = $("#line").text(); | ||
| 232 | + $.each(result, function(i, obj) { | ||
| 233 | + if (moment(obj.schedule_date_str).format( | ||
| 234 | + "YYYY-MM-DD") == moment(obj.startDate) | ||
| 235 | + .format("YYYY-MM-DD")) { | ||
| 236 | + today_account++; | ||
| 237 | + } | ||
| 238 | + obj.updateDate = moment(obj.startDate).format( | ||
| 239 | + "YYYY-MM-DD HH:mm:ss"); | ||
| 240 | + }); | ||
| 241 | + var operationservice = template('operationservice', { | ||
| 242 | + list : result | ||
| 243 | + }); | ||
| 244 | + // 把渲染好的模版html文本追加到表格中 | ||
| 245 | + $('#forms tbody').html(operationservice); | ||
| 246 | + layer.close(i); | ||
| 247 | + | ||
| 248 | + }); | ||
| 249 | + }); | ||
| 250 | + $("#export").on("click",function(){ | ||
| 251 | + sfyy = $("#sfyy").val(); | ||
| 252 | + line = $("#line").val(); | ||
| 253 | + startDate=$("#startDate").val(); | ||
| 254 | + endDate=$("#endDate").val(); | ||
| 255 | + gsdmOperat=$("#gsdmOperat").val(); | ||
| 256 | + fgsdmOperat=$("#fgsdmOperat").val(); | ||
| 257 | + var lineName = $('#line option:selected').text(); | ||
| 258 | + if(lineName == "全部线路") | ||
| 259 | + lineName = $('#fgsdmOperat option:selected').text(); | ||
| 260 | + var i = layer.load(2); | ||
| 261 | + $get('/mcy_export/operationserviceExport',{sfyy:sfyy,line:line,gsdmOperat:gsdmOperat,fgsdmOperat:fgsdmOperat,startDate:startDate,endDate:endDate,type:'export',lineName:lineName},function(result){ | ||
| 262 | + var dateTime = ""; | ||
| 263 | + if(startDate == endDate){ | ||
| 264 | + dateTime = moment(startDate).format("YYYYMMDD"); | ||
| 265 | + } else { | ||
| 266 | + dateTime = moment(startDate).format("YYYYMMDD") | ||
| 267 | + +"-"+moment(endDate).format("YYYYMMDD"); | ||
| 268 | + } | ||
| 269 | + window.open("/downloadFile/download?fileName=" | ||
| 270 | + +dateTime+"-"+lineName+"-运营服务阶段报表"); | ||
| 271 | + layer.close(i); | ||
| 272 | + }); | ||
| 273 | + }); | ||
| 274 | + | ||
| 275 | + | ||
| 276 | + }); | ||
| 277 | +</script> | ||
| 278 | +<script type="text/html" id="operationservice"> | ||
| 279 | + {{each list as obj i}} | ||
| 280 | + <tr> | ||
| 281 | + <td>{{i+1}}</td> | ||
| 282 | + <td>{{obj.fgs}}</td> | ||
| 283 | + <td>{{obj.xlName}}</td> | ||
| 284 | + <td>{{obj.jzl}}</td> | ||
| 285 | + <td>{{obj.xhl}}</td> | ||
| 286 | + <td>{{obj.xsgl}}</td> | ||
| 287 | + <td>{{obj.emptMileage}}</td> | ||
| 288 | + <td>{{obj.sjbc}}</td> | ||
| 289 | + </tr> | ||
| 290 | + {{/each}} | ||
| 291 | + {{if list.length == 0}} | ||
| 292 | + <tr> | ||
| 293 | + <td colspan="8"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 294 | + </tr> | ||
| 295 | + {{/if}} | ||
| 296 | +</script> | ||
| 297 | +</script> | ||
| 0 | \ No newline at end of file | 298 | \ No newline at end of file |
src/main/resources/static/pages/mforms/shifdays/shifday.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center; } | ||
| 15 | + | ||
| 16 | + .table > tbody + tbody { | ||
| 17 | + border-top: 1px solid; } | ||
| 18 | +</style> | ||
| 19 | + | ||
| 20 | +<div class="page-head"> | ||
| 21 | + <div class="page-title"> | ||
| 22 | + <h1>班次车辆人员日报表</h1> | ||
| 23 | + </div> | ||
| 24 | +</div> | ||
| 25 | + | ||
| 26 | +<div class="row"> | ||
| 27 | + <div class="col-md-12"> | ||
| 28 | + <div class="portlet light porttlet-fit bordered"> | ||
| 29 | + <div class="portlet-title"> | ||
| 30 | + <form class="form-inline" action="" method="get"> | ||
| 31 | + <div style="display: inline-block; margin-left: 33px;" id="gsdmDiv_shif"> | ||
| 32 | + <span class="item-label" style="width: 80px;">公司: </span> | ||
| 33 | + <select class="form-control" name="company" id="gsdmShif" style="width: 140px;"></select> | ||
| 34 | + </div> | ||
| 35 | + <div style="display: inline-block; margin-left: 24px;" id="fgsdmDiv_shif"> | ||
| 36 | + <span class="item-label" style="width: 80px;">分公司: </span> | ||
| 37 | + <select class="form-control" name="subCompany" id="fgsdmShif" style="width: 140px;"></select> | ||
| 38 | + </div> | ||
| 39 | + <div style="display: inline-block;"> | ||
| 40 | + <span class="item-label" style="width: 80px;">线路: </span> | ||
| 41 | + <select class="form-control" name="line" id="line" style="width: 180px;"></select> | ||
| 42 | + </div> | ||
| 43 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 44 | + <span class="item-label" style="width: 80px;">时间: </span> | ||
| 45 | + <input class="form-control" type="text" id="date" style="width: 180px;"/> | ||
| 46 | + </div> | ||
| 47 | + <div class="form-group"> | ||
| 48 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 49 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 50 | + </div> | ||
| 51 | + </form> | ||
| 52 | + </div> | ||
| 53 | + <div style="display: none"> | ||
| 54 | + <h3>数据显示</h3> | ||
| 55 | + <a>驾驶员 售票员 路牌</a> | ||
| 56 | + <a>售票员 路牌 车辆</a> | ||
| 57 | + <a>车辆 人员 车辆</a> | ||
| 58 | + <a>驾驶员</a> | ||
| 59 | + <a>售票员</a> | ||
| 60 | + <a>路牌</a> | ||
| 61 | + <a>车辆</a> | ||
| 62 | + </div> | ||
| 63 | + <div class="portlet-body" style="text-align:center"> | ||
| 64 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | ||
| 65 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | ||
| 66 | + <thead> | ||
| 67 | + <tr> | ||
| 68 | + <th class="jsypx" style="cursor:pointer ">驾驶员</th> | ||
| 69 | + <th>售票员</th> | ||
| 70 | + <th>路牌</th> | ||
| 71 | + <th class="zbhpx" style="cursor:pointer ">车辆</th> | ||
| 72 | + <th>计划里程</th> | ||
| 73 | + <th>实际计划里程</th> | ||
| 74 | + <th>运营里程</th> | ||
| 75 | + <th>空驶里程</th> | ||
| 76 | + <th>抽减里程</th> | ||
| 77 | + <th>增加里程</th> | ||
| 78 | + <th>总里程</th> | ||
| 79 | + <th>计划班次</th> | ||
| 80 | + <th>实际计划班次</th> | ||
| 81 | + <th>抽减班次</th> | ||
| 82 | + <th>增加班次</th> | ||
| 83 | + <th>实际班次</th> | ||
| 84 | + </tr> | ||
| 85 | + </thead> | ||
| 86 | + <tbody> | ||
| 87 | + | ||
| 88 | + </tbody> | ||
| 89 | + </table> | ||
| 90 | + </div> | ||
| 91 | + </div> | ||
| 92 | + </div> | ||
| 93 | + </div> | ||
| 94 | +</div> | ||
| 95 | + | ||
| 96 | +<script> | ||
| 97 | +$(function(){ | ||
| 98 | + var reqCodeMap = {"0xA1": '请求恢复运营', "0xA2": '申请调档', "0xA3": '出场请求', "0xA5": '进场请求', "0xA7": '加油请求', "0x50": '车辆故障', "0x70": '路阻报告', "0x60": '事故报告', "0x11": '扣证纠纷', "0x12" : '报警'}; | ||
| 99 | + // 关闭左侧栏 | ||
| 100 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 101 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 102 | + | ||
| 103 | + $("#date").datetimepicker({ | ||
| 104 | + format : 'YYYY-MM-DD', | ||
| 105 | + locale : 'zh-cn' | ||
| 106 | + }); | ||
| 107 | + var d = new Date(); | ||
| 108 | + var year = d.getFullYear(); | ||
| 109 | + var month = d.getMonth() + 1; | ||
| 110 | + var day = d.getDate(); | ||
| 111 | + if(month < 10) | ||
| 112 | + month = "0" + month; | ||
| 113 | + if(day < 10) | ||
| 114 | + day = "0" + day; | ||
| 115 | + $("#date").val(year + "-" + month + "-" + day); | ||
| 116 | + | ||
| 117 | + var fage=false; | ||
| 118 | + var obj = []; | ||
| 119 | + var xlList; | ||
| 120 | + | ||
| 121 | + $.get('/report/lineList',function(result){ | ||
| 122 | + xlList=result; | ||
| 123 | + $.get('/user/companyData', function(result){ | ||
| 124 | + obj = result; | ||
| 125 | + var options = ''; | ||
| 126 | + for(var i = 0; i < obj.length; i++){ | ||
| 127 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 128 | + } | ||
| 129 | + | ||
| 130 | + if(obj.length ==0){ | ||
| 131 | + $("#gsdmDiv_shif").css('display','none'); | ||
| 132 | + $('#fgsdmDiv_shif').css('display','none'); | ||
| 133 | + }else if(obj.length ==1){ | ||
| 134 | + $("#gsdmDiv_shif").css('display','none'); | ||
| 135 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 136 | + $('#fgsdmDiv_shif').css('display','none'); | ||
| 137 | + } | ||
| 138 | + $('#gsdmShif').html(options); | ||
| 139 | + updateCompany(); | ||
| 140 | + }); | ||
| 141 | + }) | ||
| 142 | + $("#gsdmShif").on("change",updateCompany); | ||
| 143 | + function updateCompany(){ | ||
| 144 | + var company = $('#gsdmShif').val(); | ||
| 145 | + var options = ''; | ||
| 146 | + for(var i = 0; i < obj.length; i++){ | ||
| 147 | + if(obj[i].companyCode == company){ | ||
| 148 | + var children = obj[i].children; | ||
| 149 | + for(var j = 0; j < children.length; j++){ | ||
| 150 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 151 | + } | ||
| 152 | + } | ||
| 153 | + } | ||
| 154 | + $('#fgsdmShif').html(options); | ||
| 155 | + } | ||
| 156 | + | ||
| 157 | + | ||
| 158 | +// $.get('/basic/lineCode2Name',function(result){ | ||
| 159 | +// var data=[]; | ||
| 160 | + | ||
| 161 | +// for(var code in result){ | ||
| 162 | +// data.push({id: code, text: result[code]}); | ||
| 163 | +// } | ||
| 164 | +// initPinYinSelect2('#line',data,''); | ||
| 165 | + | ||
| 166 | +// }) | ||
| 167 | + | ||
| 168 | + var tempData = {}; | ||
| 169 | + $.get('/report/lineList',function(xlList){ | ||
| 170 | + var data = []; | ||
| 171 | +// data.push({id: " ", text: "全部线路"}); | ||
| 172 | + $.get('/user/companyData', function(result){ | ||
| 173 | + for(var i = 0; i < result.length; i++){ | ||
| 174 | + var companyCode = result[i].companyCode; | ||
| 175 | + var children = result[i].children; | ||
| 176 | + for(var j = 0; j < children.length; j++){ | ||
| 177 | + var code = children[j].code; | ||
| 178 | + for(var k=0;k < xlList.length;k++ ){ | ||
| 179 | + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){ | ||
| 180 | + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]}); | ||
| 181 | + tempData[xlList[k]["xlbm"]] = companyCode+":"+code; | ||
| 182 | + } | ||
| 183 | + } | ||
| 184 | + } | ||
| 185 | + } | ||
| 186 | + initPinYinSelect2('#line',data,''); | ||
| 187 | + | ||
| 188 | + }); | ||
| 189 | + }); | ||
| 190 | + | ||
| 191 | + $("#line").on("change", function(){ | ||
| 192 | + if($("#line").val() == " "){ | ||
| 193 | + $("#gsdmShif").attr("disabled", false); | ||
| 194 | + $("#fgsdmShif").attr("disabled", false); | ||
| 195 | + } else { | ||
| 196 | + var temp = (tempData[$("#line").val()] ? tempData[$("#line").val()] : " : ").split(":"); | ||
| 197 | + $("#gsdmShif").val(temp[0]); | ||
| 198 | + updateCompany(); | ||
| 199 | + $("#fgsdmShif").val(temp[1]); | ||
| 200 | + $("#gsdmShif").attr("disabled", true); | ||
| 201 | + $("#fgsdmShif").attr("disabled", true); | ||
| 202 | + } | ||
| 203 | + }); | ||
| 204 | + | ||
| 205 | + var type="desc"; | ||
| 206 | + $(".jsypx").on("click",function(){ | ||
| 207 | + var line = $("#line").val(); | ||
| 208 | + var date = $("#date").val(); | ||
| 209 | + var gsdmShif = $("#gsdmShif").val(); | ||
| 210 | + var fgsdmShif = $("#fgsdmShif").val(); | ||
| 211 | + var params = {}; | ||
| 212 | + params.fgsdmShif =fgsdmShif; | ||
| 213 | + params.date =date; | ||
| 214 | + params.gsdmShif =gsdmShif; | ||
| 215 | + params.line =line; | ||
| 216 | + params.state="j_name"; | ||
| 217 | + params.type=type; | ||
| 218 | + if(date=="" || date ==null){ | ||
| 219 | + layer.msg('请选择日期.'); | ||
| 220 | + }else{ | ||
| 221 | + var i = layer.load(2); | ||
| 222 | + $get('/mcy_forms/shifday',params,function(result){ | ||
| 223 | + if(type=="desc"){ | ||
| 224 | + type ="asc"; | ||
| 225 | + }else{ | ||
| 226 | + type ="desc"; | ||
| 227 | + } | ||
| 228 | + $.each(result, function(i, obj) { | ||
| 229 | + obj.requestType = reqCodeMap[obj.requestType]; | ||
| 230 | + }); | ||
| 231 | + // 把数据填充到模版中 | ||
| 232 | + var tbodyHtml = template('shifday',{list:result}); | ||
| 233 | + // 把渲染好的模版html文本追加到表格中 | ||
| 234 | + $('#forms tbody').html(tbodyHtml); | ||
| 235 | + layer.close(i); | ||
| 236 | + }); | ||
| 237 | + } | ||
| 238 | + }) | ||
| 239 | + | ||
| 240 | + $(".zbhpx").on("click",function(){ | ||
| 241 | + var line = $("#line").val(); | ||
| 242 | + var date = $("#date").val(); | ||
| 243 | + var gsdmShif = $("#gsdmShif").val(); | ||
| 244 | + var fgsdmShif = $("#fgsdmShif").val(); | ||
| 245 | + var params = {}; | ||
| 246 | + params.fgsdmShif =fgsdmShif; | ||
| 247 | + params.date =date; | ||
| 248 | + params.gsdmShif =gsdmShif; | ||
| 249 | + params.line =line; | ||
| 250 | + params.state="cl_zbh"; | ||
| 251 | + params.type=type; | ||
| 252 | + if(date=="" || date ==null){ | ||
| 253 | + layer.msg('请选择日期.'); | ||
| 254 | + }else{ | ||
| 255 | + var i = layer.load(2); | ||
| 256 | + $get('/mcy_forms/shifday',params,function(result){ | ||
| 257 | + if(type=="desc"){ | ||
| 258 | + type ="asc"; | ||
| 259 | + }else{ | ||
| 260 | + type ="desc"; | ||
| 261 | + } | ||
| 262 | + $.each(result, function(i, obj) { | ||
| 263 | + obj.requestType = reqCodeMap[obj.requestType]; | ||
| 264 | + }); | ||
| 265 | + // 把数据填充到模版中 | ||
| 266 | + var tbodyHtml = template('shifday',{list:result}); | ||
| 267 | + // 把渲染好的模版html文本追加到表格中 | ||
| 268 | + $('#forms tbody').html(tbodyHtml); | ||
| 269 | + layer.close(i); | ||
| 270 | + }); | ||
| 271 | + } | ||
| 272 | + }) | ||
| 273 | + | ||
| 274 | + $("#query").on("click",function(){ | ||
| 275 | + var line = $("#line").val(); | ||
| 276 | + var date = $("#date").val(); | ||
| 277 | + var gsdmShif = $("#gsdmShif").val(); | ||
| 278 | + var fgsdmShif = $("#fgsdmShif").val(); | ||
| 279 | + var params = {}; | ||
| 280 | + if(line ) | ||
| 281 | + if(line ==" " || line ==""){ | ||
| 282 | + params.fgsdmShif =fgsdmShif; | ||
| 283 | + } | ||
| 284 | + params.date =date; | ||
| 285 | + params.gsdmShif =gsdmShif; | ||
| 286 | + params.line =line; | ||
| 287 | + params.state="j_name"; | ||
| 288 | + params.type=type; | ||
| 289 | + if(date=="" || date ==null){ | ||
| 290 | + layer.msg('请选择日期.'); | ||
| 291 | + }else{ | ||
| 292 | + var i = layer.load(2); | ||
| 293 | + $get('/mcy_forms/shifday',params,function(result){ | ||
| 294 | + type ='asc'; | ||
| 295 | + $.each(result, function(i, obj) { | ||
| 296 | + obj.requestType = reqCodeMap[obj.requestType]; | ||
| 297 | + }); | ||
| 298 | + // 把数据填充到模版中 | ||
| 299 | + var tbodyHtml = template('shifday',{list:result}); | ||
| 300 | + // 把渲染好的模版html文本追加到表格中 | ||
| 301 | + $('#forms tbody').html(tbodyHtml); | ||
| 302 | + layer.close(i); | ||
| 303 | + }); | ||
| 304 | + } | ||
| 305 | + }); | ||
| 306 | + | ||
| 307 | + $("#export").on("click",function(){ | ||
| 308 | + var line = $("#line").val(); | ||
| 309 | + var date = $("#date").val(); | ||
| 310 | + var gsdmShif = $("#gsdmShif").val(); | ||
| 311 | + var fgsdmShif = $("#fgsdmShif").val(); | ||
| 312 | + var lineName = $('#line option:selected').text(); | ||
| 313 | + var params = {}; | ||
| 314 | + if(line ==" " || line ==""){ | ||
| 315 | + params.fgsdmShif =fgsdmShif; | ||
| 316 | + } | ||
| 317 | + params.date =date; | ||
| 318 | + params.gsdmShif =gsdmShif; | ||
| 319 | + params.line =line; | ||
| 320 | + params.type='export'; | ||
| 321 | + params.lineName =lineName; | ||
| 322 | + $get('/mcy_export/shifdayExport',params,function(result){ | ||
| 323 | + window.open("/downloadFile/download?fileName=" | ||
| 324 | + +moment(date).format("YYYYMMDD")+ | ||
| 325 | + "-"+lineName+"-班次车辆人员日报表"); | ||
| 326 | + }); | ||
| 327 | + }); | ||
| 328 | +}); | ||
| 329 | +</script> | ||
| 330 | +<script type="text/html" id="shifday"> | ||
| 331 | + {{each list as obj i}} | ||
| 332 | + <tr> | ||
| 333 | + {{if obj.jName == '汇总合计'}} | ||
| 334 | + <td colspan='4'>{{obj.jName}}</td> | ||
| 335 | + {{else}} | ||
| 336 | + <td>{{obj.jName}}</td> | ||
| 337 | + <td>{{obj.sName}}</td> | ||
| 338 | + <td>{{obj.lpName}}</td> | ||
| 339 | + <td>{{obj.carPlate}}</td> | ||
| 340 | + {{/if}} | ||
| 341 | + <td>{{obj.jhlc}}</td> | ||
| 342 | + <td>{{obj.sjjhlc}}</td> | ||
| 343 | + <td>{{obj.yygl}}</td> | ||
| 344 | + <td>{{obj.emptMileage}}</td> | ||
| 345 | + <td>{{obj.remMileage}}</td> | ||
| 346 | + <td>{{obj.addMileage}}</td> | ||
| 347 | + <td>{{obj.totalm}}</td> | ||
| 348 | + <td>{{obj.jhbc}}</td> | ||
| 349 | + <td>{{obj.sjjhbc}}</td> | ||
| 350 | + <td>{{obj.cjbc}}</td> | ||
| 351 | + <td>{{obj.ljbc}}</td> | ||
| 352 | + <td>{{obj.sjbc}}</td> | ||
| 353 | + </tr> | ||
| 354 | + {{/each}} | ||
| 355 | + {{if list.length == 0}} | ||
| 356 | + <tr> | ||
| 357 | + <td colspan="16"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 358 | + </tr> | ||
| 359 | + {{/if}} | ||
| 360 | +</script> | ||
| 0 | \ No newline at end of file | 361 | \ No newline at end of file |
src/main/resources/static/pages/mforms/shiftuehiclemanths/shiftuehiclemanth.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; | ||
| 11 | + text-align: center; } | ||
| 12 | + .table-bordered > thead > tr > th, | ||
| 13 | + .table-bordered > thead > tr > td { | ||
| 14 | + border-bottom-width: 2px; | ||
| 15 | + text-align: center; } | ||
| 16 | + | ||
| 17 | + .table > tbody + tbody { | ||
| 18 | + border-top: 1px solid; } | ||
| 19 | +</style> | ||
| 20 | + | ||
| 21 | +<div class="page-head"> | ||
| 22 | + <div class="page-title"> | ||
| 23 | + <h1>班次车辆人员月报表</h1> | ||
| 24 | + </div> | ||
| 25 | +</div> | ||
| 26 | + | ||
| 27 | +<div class="row"> | ||
| 28 | + <div class="col-md-12"> | ||
| 29 | + <div class="portlet light porttlet-fit bordered"> | ||
| 30 | + <div class="portlet-title"> | ||
| 31 | + <form class="form-inline" action=""> | ||
| 32 | + <div style="display: inline-block; margin-left: 33px;" id="gsdmDiv_manth"> | ||
| 33 | + <span class="item-label" style="width: 80px;">公司: </span> | ||
| 34 | + <select class="form-control" name="company" id="gsdmManth" style="width: 140px;"></select> | ||
| 35 | + </div> | ||
| 36 | + <div style="display: inline-block; margin-left: 24px;" id="fgsdmDiv_manth"> | ||
| 37 | + <span class="item-label" style="width: 80px;">分公司: </span> | ||
| 38 | + <select class="form-control" name="subCompany" id="fgsdmManth" style="width: 140px;"></select> | ||
| 39 | + </div> | ||
| 40 | + <div style="display: inline-block;margin-left: 10px"> | ||
| 41 | + <span class="item-label" style="width: 150px;">线路: </span> | ||
| 42 | + <select class="form-control" name="line" id="line" style="width: 136px;"></select> | ||
| 43 | + </div> | ||
| 44 | + <div style="margin-top: 10px"> | ||
| 45 | + | ||
| 46 | + </div> | ||
| 47 | + <div style="display: inline-block;margin-left: 5px;"> | ||
| 48 | + <span class="item-label" style="width: 80px;">开始时间: </span> | ||
| 49 | + <input class="form-control" type="text" id="startDate" style="width: 140px;"/> | ||
| 50 | + </div> | ||
| 51 | + <div style="display: inline-block;margin-left: 10px;"> | ||
| 52 | + <span class="item-label" style="width: 80px;">结束时间: </span> | ||
| 53 | + <input class="form-control" type="text" id="endDate" style="width: 140px;"/> | ||
| 54 | + </div> | ||
| 55 | + <div style="display: inline-block;margin-left: 10px"> | ||
| 56 | + <span class="item-label" style="width: 80px;">统计: </span> | ||
| 57 | + <select class="form-control" style="width: 136px;" id='empnames'> | ||
| 58 | + <option value="驾驶员">驾驶员</option> | ||
| 59 | + <option value="售票员">售票员</option> | ||
| 60 | + <option value="车辆自编号">车辆自编号</option> | ||
| 61 | + </select> | ||
| 62 | + </div> | ||
| 63 | + <div class="form-group"> | ||
| 64 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 65 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 66 | + </div> | ||
| 67 | + </form> | ||
| 68 | + </div> | ||
| 69 | + <div class="portlet-body"> | ||
| 70 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | ||
| 71 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | ||
| 72 | + <thead> | ||
| 73 | + <tr> | ||
| 74 | + <th>序号</th> | ||
| 75 | + <th id='empname'>驾驶员</th> | ||
| 76 | + <th>运营里程</th> | ||
| 77 | + <th>空驶里程</th> | ||
| 78 | + <th>抽减里程</th> | ||
| 79 | + <th>增加里程</th> | ||
| 80 | + <th>总里程</th> | ||
| 81 | + <th>抽减班次</th> | ||
| 82 | + <th>增加班次</th> | ||
| 83 | + <th>实际班次</th> | ||
| 84 | + </tr> | ||
| 85 | + </thead> | ||
| 86 | + <tbody> | ||
| 87 | + | ||
| 88 | + </tbody> | ||
| 89 | + </table> | ||
| 90 | + </div> | ||
| 91 | + </div> | ||
| 92 | + </div> | ||
| 93 | + </div> | ||
| 94 | +</div> | ||
| 95 | + | ||
| 96 | +<script> | ||
| 97 | + $(function(){ | ||
| 98 | + // 关闭左侧栏 | ||
| 99 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 100 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 101 | + | ||
| 102 | + var d = new Date(); | ||
| 103 | + d.setTime(d.getTime() - 1*1000*60*60*24); | ||
| 104 | + var year = d.getFullYear(); | ||
| 105 | + var month = d.getMonth() + 1; | ||
| 106 | + var day = d.getDate(); | ||
| 107 | + if(month < 10) | ||
| 108 | + month = "0" + month; | ||
| 109 | + if(day < 10) | ||
| 110 | + day = "0" + day; | ||
| 111 | + var dateTime = year + "-" + month + "-" + day; | ||
| 112 | + $("#startDate,#endDate").datetimepicker({ | ||
| 113 | + format : 'YYYY-MM-DD', | ||
| 114 | + locale : 'zh-cn', | ||
| 115 | + maxDate : dateTime | ||
| 116 | + }); | ||
| 117 | + $("#startDate,#endDate").val(year + "-" + month + "-" + day); | ||
| 118 | + | ||
| 119 | + var fage=false; | ||
| 120 | + var obj = []; | ||
| 121 | + var xlList; | ||
| 122 | + $.get('/report/lineList',function(result){ | ||
| 123 | + xlList=result; | ||
| 124 | + $.get('/user/companyData', function(result){ | ||
| 125 | + obj = result; | ||
| 126 | + var options = ''; | ||
| 127 | + for(var i = 0; i < obj.length; i++){ | ||
| 128 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 129 | + } | ||
| 130 | + | ||
| 131 | + if(obj.length ==0){ | ||
| 132 | + $("#gsdmDiv_manth").css('display','none'); | ||
| 133 | + $('#fgsdmDiv_manth').css('display','none'); | ||
| 134 | + }else if(obj.length ==1){ | ||
| 135 | + $("#gsdmDiv_manth").css('display','none'); | ||
| 136 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 137 | + $('#fgsdmDiv_manth').css('display','none'); | ||
| 138 | + } | ||
| 139 | + $('#gsdmManth').html(options); | ||
| 140 | + updateCompany(); | ||
| 141 | + }); | ||
| 142 | + }) | ||
| 143 | + $("#gsdmManth").on("change",updateCompany); | ||
| 144 | + function updateCompany(){ | ||
| 145 | + var company = $('#gsdmManth').val(); | ||
| 146 | + var options = ''; | ||
| 147 | + for(var i = 0; i < obj.length; i++){ | ||
| 148 | + if(obj[i].companyCode == company){ | ||
| 149 | + var children = obj[i].children; | ||
| 150 | + for(var j = 0; j < children.length; j++){ | ||
| 151 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 152 | + } | ||
| 153 | + } | ||
| 154 | + } | ||
| 155 | + $('#fgsdmManth').html(options); | ||
| 156 | + } | ||
| 157 | + | ||
| 158 | + | ||
| 159 | + var tempData = {}; | ||
| 160 | + $.get('/report/lineList',function(xlList){ | ||
| 161 | + var data = []; | ||
| 162 | + $.get('/user/companyData', function(result){ | ||
| 163 | + for(var i = 0; i < result.length; i++){ | ||
| 164 | + var companyCode = result[i].companyCode; | ||
| 165 | + var children = result[i].children; | ||
| 166 | + for(var j = 0; j < children.length; j++){ | ||
| 167 | + var code = children[j].code; | ||
| 168 | + for(var k=0;k < xlList.length;k++ ){ | ||
| 169 | + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){ | ||
| 170 | + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]}); | ||
| 171 | + tempData[xlList[k]["xlbm"]] = companyCode+":"+code; | ||
| 172 | + } | ||
| 173 | + } | ||
| 174 | + } | ||
| 175 | + } | ||
| 176 | + initPinYinSelect2('#line',data,''); | ||
| 177 | + | ||
| 178 | + }); | ||
| 179 | + }); | ||
| 180 | + | ||
| 181 | + $("#line").on("change", function(){ | ||
| 182 | + if($("#line").val() == " "){ | ||
| 183 | + $("#gsdmManth").attr("disabled", false); | ||
| 184 | + $("#fgsdmManth").attr("disabled", false); | ||
| 185 | + } else { | ||
| 186 | + var temp = tempData[$("#line").val()].split(":"); | ||
| 187 | + $("#gsdmManth").val(temp[0]); | ||
| 188 | + updateCompany(); | ||
| 189 | + $("#fgsdmManth").val(temp[1]); | ||
| 190 | + $("#gsdmManth").attr("disabled", true); | ||
| 191 | +// $("#fgsdmManth").attr("disabled", true); | ||
| 192 | + } | ||
| 193 | + }); | ||
| 194 | + | ||
| 195 | + $("#query").on("click",function(){ | ||
| 196 | + if($("#startDate").val() == null || $("#startDate").val().trim().length == 0){ | ||
| 197 | + layer.msg("请选择时间范围!"); | ||
| 198 | + return; | ||
| 199 | + } | ||
| 200 | + if($("#endDate").val() == null || $("#endDate").val().trim().length == 0){ | ||
| 201 | + layer.msg("请选择时间范围!"); | ||
| 202 | + return; | ||
| 203 | + } | ||
| 204 | + $("#empname").html($("#empnames").val()) | ||
| 205 | + var params={}; | ||
| 206 | + params.empnames=$("#empnames").val(); | ||
| 207 | + params.line = $("#line").val(); | ||
| 208 | + params.startDate = $("#startDate").val(); | ||
| 209 | + params.endDate = $("#endDate").val(); | ||
| 210 | + params.lpName = $("#lpName").val(); | ||
| 211 | + params.gsdmManth= $("#gsdmManth").val(); | ||
| 212 | + params.fgsdmManth= $("#fgsdmManth").val(); | ||
| 213 | + var i = layer.load(2); | ||
| 214 | + $get("/mcy_forms/shiftuehiclemanth",params,function(result){ | ||
| 215 | + $("#sDate").text(startDate); | ||
| 216 | + $("#eDate").text(endDate); | ||
| 217 | + var temp = {}; | ||
| 218 | + var today_account = 0; | ||
| 219 | + temp["line"] = $("#line").text(); | ||
| 220 | + $.each(result, function(i, obj) { | ||
| 221 | + if(moment(obj.schedule_date_str).format("YYYY-MM-DD") == moment(obj.startDate).format("YYYY-MM-DD")){ | ||
| 222 | + today_account++; | ||
| 223 | + } | ||
| 224 | + obj.updateDate = moment(obj.startDate).format("YYYY-MM-DD HH:mm:ss"); | ||
| 225 | + }); | ||
| 226 | + | ||
| 227 | + var list_shiftuehiclemanth = template('list_shiftuehiclemanth',{list:result}); | ||
| 228 | + // 把渲染好的模版html文本追加到表格中 | ||
| 229 | + $('#forms tbody').html(list_shiftuehiclemanth); | ||
| 230 | + layer.close(i); | ||
| 231 | + | ||
| 232 | + }); | ||
| 233 | + }); | ||
| 234 | + | ||
| 235 | + $("#export").on("click",function(){ | ||
| 236 | + var lineName = $('#line option:selected').text(); | ||
| 237 | + var startDate = $("#startDate").val(); | ||
| 238 | + var endDate = $("#endDate").val(); | ||
| 239 | + var params={}; | ||
| 240 | + params.empnames=$("#empnames").val(); | ||
| 241 | + params.line = $("#line").val(); | ||
| 242 | + params.startDate = $("#startDate").val(); | ||
| 243 | + params.endDate = $("#endDate").val(); | ||
| 244 | + params.lpName = $("#lpName").val(); | ||
| 245 | + params.gsdmManth= $("#gsdmManth").val(); | ||
| 246 | + params.fgsdmManth= $("#fgsdmManth").val(); | ||
| 247 | + params.lineName = lineName; | ||
| 248 | + params.type='export'; | ||
| 249 | + var i = layer.load(2); | ||
| 250 | + $get('/mcy_export/shiftuehiclemanthExport',params,function(result){ | ||
| 251 | + var dateTime = ""; | ||
| 252 | + if(startDate == endDate){ | ||
| 253 | + dateTime = moment(startDate).format("YYYYMMDD"); | ||
| 254 | + } else { | ||
| 255 | + dateTime = moment(startDate).format("YYYYMMDD") | ||
| 256 | + +"-"+moment(endDate).format("YYYYMMDD"); | ||
| 257 | + } | ||
| 258 | + window.open("/downloadFile/download?fileName=" | ||
| 259 | + +dateTime+"-"+lineName+"-班次车辆人员月报表"); | ||
| 260 | + layer.close(i); | ||
| 261 | + }); | ||
| 262 | + }); | ||
| 263 | + | ||
| 264 | + }); | ||
| 265 | + | ||
| 266 | +// $("#empnames").change(function(){ | ||
| 267 | +// $("#empname").html($("#empnames").val()) | ||
| 268 | +// // $("#query").click(); | ||
| 269 | + | ||
| 270 | +// }); | ||
| 271 | + | ||
| 272 | +</script> | ||
| 273 | +<script type="text/html" id="list_shiftuehiclemanth"> | ||
| 274 | + {{each list as obj i}} | ||
| 275 | + <tr> | ||
| 276 | + <td>{{i+1}}</td> | ||
| 277 | + <td>{{obj.jName}}</td> | ||
| 278 | + <td>{{obj.jhlc}}</td> | ||
| 279 | + <td>{{obj.emptMileage}}</td> | ||
| 280 | + <td>{{obj.remMileage}}</td> | ||
| 281 | + <td>{{obj.addMileage}}</td> | ||
| 282 | + <td>{{obj.totalm}}</td> | ||
| 283 | + <td>{{obj.cjbc}}</td> | ||
| 284 | + <td>{{obj.ljbc}}</td> | ||
| 285 | + <td>{{obj.sjbc}}</td> | ||
| 286 | + </tr> | ||
| 287 | + {{/each}} | ||
| 288 | + {{if list.length == 0}} | ||
| 289 | + <tr> | ||
| 290 | + <td colspan="10"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 291 | + </tr> | ||
| 292 | + {{/if}} | ||
| 293 | +</script> | ||
| 0 | \ No newline at end of file | 294 | \ No newline at end of file |
src/main/resources/static/pages/mforms/singledatas/jquery.table2excel.min.js
0 → 100644
| 1 | +/* | ||
| 2 | + * jQuery table2excel - v1.1.1 | ||
| 3 | + * jQuery plugin to export an .xls file in browser from an HTML table | ||
| 4 | + * https://github.com/rainabba/jquery-table2excel | ||
| 5 | + * | ||
| 6 | + * Made by rainabba | ||
| 7 | + * Under MIT License | ||
| 8 | + */ | ||
| 9 | +!function(a,b,c,d){function e(b,c){this.element=b,this.settings=a.extend({},k,c),this._defaults=k,this._name=j,this.init()}function f(a){return a.filename?a.filename:"table2excel"}function g(a){var b=/(\s+alt\s*=\s*"([^"]*)"|\s+alt\s*=\s*'([^']*)')/i;return a.replace(/<img[^>]*>/gi,function(a){var c=b.exec(a);return null!==c&&c.length>=2?c[2]:""})}function h(a){return a.replace(/<a[^>]*>|<\/a>/gi,"")}function i(a){var b=/(\s+value\s*=\s*"([^"]*)"|\s+value\s*=\s*'([^']*)')/i;return a.replace(/<input[^>]*>|<\/input>/gi,function(a){var c=b.exec(a);return null!==c&&c.length>=2?c[2]:""})}var j="table2excel",k={exclude:".noExl",name:"Table2Excel",filename:"table2excel",fileext:".xls",exclude_img:!0,exclude_links:!0,exclude_inputs:!0};e.prototype={init:function(){var b=this;b.template={head:'<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><meta http-equiv="content-type" content="application/vnd.ms-excel; charset=UTF-8"><head>\x3c!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets>',sheet:{head:"<x:ExcelWorksheet><x:Name>",tail:"</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet>"},mid:"</x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--\x3e</head><body>",table:{head:"<table>",tail:"</table>"},foot:"</body></html>"},b.tableRows=[],a(b.element).each(function(c,d){var e="";a(d).find("tr").not(b.settings.exclude).each(function(c,d){e+="<tr>",a(d).find("td,th").not(b.settings.exclude).each(function(c,d){var f={rows:a(this).attr("rowspan"),cols:a(this).attr("colspan"),flag:a(d).find(b.settings.exclude)};f.flag.length>0?e+="<td> </td>":f.rows&f.cols?e+="<td>"+a(d).html()+"</td>":(e+="<td",f.rows>0&&(e+=" rowspan='"+f.rows+"' "),f.cols>0&&(e+=" colspan='"+f.cols+"' "),e+="/>"+a(d).html()+"</td>")}),e+="</tr>"}),b.settings.exclude_img&&(e=g(e)),b.settings.exclude_links&&(e=h(e)),b.settings.exclude_inputs&&(e=i(e)),b.tableRows.push(e)}),b.tableToExcel(b.tableRows,b.settings.name,b.settings.sheetName)},tableToExcel:function(d,e,g){var h,i,j,k=this,l="";if(k.format=function(a,b){return a.replace(/{(\w+)}/g,function(a,c){return b[c]})},g=void 0===g?"Sheet":g,k.ctx={worksheet:e||"Worksheet",table:d,sheetName:g},l=k.template.head,a.isArray(d))for(h in d)l+=k.template.sheet.head+g+h+k.template.sheet.tail;if(l+=k.template.mid,a.isArray(d))for(h in d)l+=k.template.table.head+"{table"+h+"}"+k.template.table.tail;l+=k.template.foot;for(h in d)k.ctx["table"+h]=d[h];if(delete k.ctx.table,!c.documentMode){var m=new Blob([k.format(l,k.ctx)],{type:"application/vnd.ms-excel"});b.URL=b.URL||b.webkitURL,i=b.URL.createObjectURL(m),j=c.createElement("a"),j.download=f(k.settings),j.href=i,c.body.appendChild(j),j.click(),c.body.removeChild(j)}else if("undefined"!=typeof Blob){l=k.format(l,k.ctx),l=[l];var n=new Blob(l,{type:"text/html"});b.navigator.msSaveBlob(n,f(k.settings))}else txtArea1.document.open("text/html","replace"),txtArea1.document.write(k.format(l,k.ctx)),txtArea1.document.close(),txtArea1.focus(),sa=txtArea1.document.execCommand("SaveAs",!0,f(k.settings));return!0}},a.fn[j]=function(b){var c=this;return c.each(function(){a.data(c,"plugin_"+j)||a.data(c,"plugin_"+j,new e(this,b))}),c}}(jQuery,window,document); | ||
| 0 | \ No newline at end of file | 10 | \ No newline at end of file |
src/main/resources/static/pages/mforms/singledatas/singledata.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center; } | ||
| 15 | + | ||
| 16 | + .table > tbody + tbody { | ||
| 17 | + border-top: 1px solid; } | ||
| 18 | +</style> | ||
| 19 | + | ||
| 20 | +<div class="page-head"> | ||
| 21 | + <div class="page-title"> | ||
| 22 | + <h1>路单数据</h1> | ||
| 23 | + </div> | ||
| 24 | +</div> | ||
| 25 | + | ||
| 26 | +<div class="row"> | ||
| 27 | + <div class="col-md-12"> | ||
| 28 | + <div class="portlet light porttlet-fit bordered"> | ||
| 29 | + <div class="portlet-title"> | ||
| 30 | + <form class="form-inline" action=""> | ||
| 31 | + <div style="display: inline-block; margin-left: 33px;" id="gsdmDiv_sing"> | ||
| 32 | + <span class="item-label" style="width: 80px;">公司: </span> | ||
| 33 | + <select class="form-control" name="company" id="gsdmSing" style="width: 140px;"></select> | ||
| 34 | + </div> | ||
| 35 | + <div style="display: inline-block; margin-left: 10px;" id="fgsdmDiv_sing"> | ||
| 36 | + <span class="item-label" style="width: 80px;">分公司: </span> | ||
| 37 | + <select class="form-control" name="subCompany" id="fgsdmSing" style="width: 140px;"></select> | ||
| 38 | + </div> | ||
| 39 | + <div style="display: inline-block; margin-left: 15px;"> | ||
| 40 | + <span class="item-label" style="width: 80px;">线路: </span> | ||
| 41 | + <select class="form-control" name="line" id="line" style="width: 140px;"></select> | ||
| 42 | + </div> | ||
| 43 | + <div style="margin-top: 10px"></div> | ||
| 44 | + <!-- <div style="display: inline-block; margin-left: 5px"> | ||
| 45 | + <span class="item-label" style="width: 80px;">是否营运: </span> | ||
| 46 | + <select class="form-control" name="sfyy" id="sfyy" style="width: 140px;"> | ||
| 47 | + <option value="0">全部线路</option> | ||
| 48 | + <option value="1" selected="selected">营运线路</option> | ||
| 49 | + <option value="2">非营运线路</option> | ||
| 50 | + </select> | ||
| 51 | + </div> --> | ||
| 52 | + <div style="display: inline-block;margin-left: 33px;"> | ||
| 53 | + <span class="item-label" style="width: 140px;">时间: </span> | ||
| 54 | + <input class="form-control" type="text" id="startDate" style="width: 140px;"/> | ||
| 55 | + </div> | ||
| 56 | + | ||
| 57 | + <div style="display: inline-block;margin-left: 15px"> | ||
| 58 | + <span class="item-label" style="width: 150px;">统计: </span> | ||
| 59 | + <select class="form-control" name="tjtype" id="tjtype" style="width: 140px;"> | ||
| 60 | + <option value="jsy">驾驶员</option> | ||
| 61 | + <option value="spy">售票员</option> | ||
| 62 | + </select> | ||
| 63 | + | ||
| 64 | + </div> | ||
| 65 | + <div class="form-group"> | ||
| 66 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 67 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 68 | + </div> | ||
| 69 | + </form> | ||
| 70 | + </div> | ||
| 71 | + <div class="portlet-body"> | ||
| 72 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | ||
| 73 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | ||
| 74 | + <thead> | ||
| 75 | + <tr> | ||
| 76 | + <th>序号</th> | ||
| 77 | + <th>日期</th> | ||
| 78 | + <th>所属公司</th> | ||
| 79 | + <th>线路</th> | ||
| 80 | + <th>车号</th> | ||
| 81 | + <th>司机职号</th> | ||
| 82 | + <th>司机姓名</th> | ||
| 83 | + <th>售票员职号</th> | ||
| 84 | + <th>售票员姓名</th> | ||
| 85 | + <th>行驶里程(包括空放)</th> | ||
| 86 | + <th>空驶里程</th> | ||
| 87 | + <th>耗油量</th> | ||
| 88 | + <th>加注量</th> | ||
| 89 | + <th>非营业用油</th> | ||
| 90 | + <th>计划公里</th> | ||
| 91 | + </tr> | ||
| 92 | + </thead> | ||
| 93 | + <tbody> | ||
| 94 | + | ||
| 95 | + </tbody> | ||
| 96 | + </table> | ||
| 97 | + </div> | ||
| 98 | + </div> | ||
| 99 | + </div> | ||
| 100 | + </div> | ||
| 101 | +</div> | ||
| 102 | + | ||
| 103 | +<script> | ||
| 104 | + $(function(){ | ||
| 105 | + // 关闭左侧栏 | ||
| 106 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 107 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 108 | + | ||
| 109 | + $("#startDate,#endDate").datetimepicker({ | ||
| 110 | + format : 'YYYY-MM-DD', | ||
| 111 | + locale : 'zh-cn' | ||
| 112 | + }); | ||
| 113 | + | ||
| 114 | + var d = new Date(); | ||
| 115 | + var year = d.getFullYear(); | ||
| 116 | + var month = d.getMonth() + 1; | ||
| 117 | + var day = d.getDate(); | ||
| 118 | + if(month < 10) | ||
| 119 | + month = "0" + month; | ||
| 120 | + if(day < 10) | ||
| 121 | + day = "0" + day; | ||
| 122 | + $("#startDate").val(year + "-" + month + "-" + day); | ||
| 123 | + | ||
| 124 | + var fage=false; | ||
| 125 | + var xlList; | ||
| 126 | + var obj = []; | ||
| 127 | + | ||
| 128 | + $.get('/report/lineList',function(result){ | ||
| 129 | + xlList=result; | ||
| 130 | + $.get('/user/companyData', function(result){ | ||
| 131 | + obj = result; | ||
| 132 | + var options = ''; | ||
| 133 | + for(var i = 0; i < obj.length; i++){ | ||
| 134 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 135 | + } | ||
| 136 | + | ||
| 137 | + if(obj.length ==0){ | ||
| 138 | + $("#gsdmDiv_sing").css('display','none'); | ||
| 139 | + }else if(obj.length ==1){ | ||
| 140 | + $("#gsdmDiv_sing").css('display','none'); | ||
| 141 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 142 | + $('#fgsdmDiv_sing').css('display','none'); | ||
| 143 | + } | ||
| 144 | + $('#gsdmSing').html(options); | ||
| 145 | + updateCompany(); | ||
| 146 | + }); | ||
| 147 | + }) | ||
| 148 | + $("#gsdmSing").on("change",updateCompany); | ||
| 149 | + function updateCompany(){ | ||
| 150 | + var company = $('#gsdmSing').val(); | ||
| 151 | +// var options = '<option value="">全部分公司</option>'; | ||
| 152 | + var options =''; | ||
| 153 | + for(var i = 0; i < obj.length; i++){ | ||
| 154 | + if(obj[i].companyCode == company){ | ||
| 155 | + var children = obj[i].children; | ||
| 156 | + for(var j = 0; j < children.length; j++){ | ||
| 157 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 158 | + } | ||
| 159 | + } | ||
| 160 | + } | ||
| 161 | + $('#fgsdmSing').html(options); | ||
| 162 | + } | ||
| 163 | + | ||
| 164 | + var tempData = {}; | ||
| 165 | + $.get('/report/lineList',function(xlList){ | ||
| 166 | + var data = []; | ||
| 167 | + data.push({id: " ", text: "全部线路"}); | ||
| 168 | + $.get('/user/companyData', function(result){ | ||
| 169 | + for(var i = 0; i < result.length; i++){ | ||
| 170 | + var companyCode = result[i].companyCode; | ||
| 171 | + var children = result[i].children; | ||
| 172 | + for(var j = 0; j < children.length; j++){ | ||
| 173 | + var code = children[j].code; | ||
| 174 | + for(var k=0;k < xlList.length;k++ ){ | ||
| 175 | + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){ | ||
| 176 | + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]}); | ||
| 177 | + tempData[xlList[k]["xlbm"]] = companyCode+":"+code; | ||
| 178 | + } | ||
| 179 | + } | ||
| 180 | + } | ||
| 181 | + } | ||
| 182 | + initPinYinSelect2('#line',data,''); | ||
| 183 | + | ||
| 184 | + }); | ||
| 185 | + }); | ||
| 186 | + | ||
| 187 | + $("#line").on("change", function(){ | ||
| 188 | + if($("#line").val() == " "){ | ||
| 189 | + $("#gsdmSing").attr("disabled", false); | ||
| 190 | + $("#fgsdmSing").attr("disabled", false); | ||
| 191 | + } else { | ||
| 192 | + var temp = tempData[$("#line").val()].split(":"); | ||
| 193 | + $("#gsdmSing").val(temp[0]); | ||
| 194 | + updateCompany(); | ||
| 195 | + $("#fgsdmSing").val(temp[1]); | ||
| 196 | +// $("#fgsdmSing").val(""); | ||
| 197 | + $("#gsdmSing").attr("disabled", true); | ||
| 198 | +// $("#fgsdmSing").attr("disabled", true); | ||
| 199 | + } | ||
| 200 | + }); | ||
| 201 | + | ||
| 202 | + | ||
| 203 | + $("#query").on("click",function(){ | ||
| 204 | + if($("#startDate").val() == null || $("#startDate").val().trim().length == 0){ | ||
| 205 | + layer.msg("请选择时间!"); | ||
| 206 | + return; | ||
| 207 | + } | ||
| 208 | + var sfyy = $("#sfyy").val(); | ||
| 209 | + var line = $("#line").val(); | ||
| 210 | + var startDate = $("#startDate").val(); | ||
| 211 | + var lpName = $("#lpName").val(); | ||
| 212 | + var gsdmSing = $("#gsdmSing").val(); | ||
| 213 | + var fgsdmSing = $("#fgsdmSing").val(); | ||
| 214 | + var tjtype=$("#tjtype").val(); | ||
| 215 | + var params = {}; | ||
| 216 | + var i = layer.load(2); | ||
| 217 | + if(tjtype=='jsy'){ | ||
| 218 | + $get("/mcy_forms/singledatatj",{sfyy:sfyy,gsdmSing:gsdmSing,fgsdmSing:fgsdmSing,line:line,startDate:startDate,lpName:lpName,tjtype:tjtype},function(result){ | ||
| 219 | + layer.close(i); | ||
| 220 | + var singledata = template('singledata',{list:result}); | ||
| 221 | + // 把渲染好的模版html文本追加到表格中 | ||
| 222 | + $('#forms tbody').html(singledata); | ||
| 223 | + | ||
| 224 | + }); | ||
| 225 | + }else{ | ||
| 226 | + $get("/mcy_forms/singledatatj2",{sfyy:sfyy,gsdmSing:gsdmSing,fgsdmSing:fgsdmSing,line:line,startDate:startDate,lpName:lpName,tjtype:tjtype},function(result){ | ||
| 227 | + layer.close(i); | ||
| 228 | + var singledata = template('singledata',{list:result}); | ||
| 229 | + // 把渲染好的模版html文本追加到表格中 | ||
| 230 | + $('#forms tbody').html(singledata); | ||
| 231 | + | ||
| 232 | + }); | ||
| 233 | + } | ||
| 234 | + | ||
| 235 | + }); | ||
| 236 | + | ||
| 237 | + $("#export").on("click",function(){ | ||
| 238 | + var sfyy = $("#sfyy").val(); | ||
| 239 | + var line = $("#line").val(); | ||
| 240 | + var startDate = $("#startDate").val(); | ||
| 241 | + var endDate = $("#endDate").val(); | ||
| 242 | + var lpName = $("#lpName").val(); | ||
| 243 | + var gsdmSing = $("#gsdmSing").val(); | ||
| 244 | + var fgsdmSing = $("#fgsdmSing").val(); | ||
| 245 | + var tjtype=$("#tjtype").val(); | ||
| 246 | + var lineName = $('#line option:selected').text(); | ||
| 247 | + if(lineName == "全部线路") | ||
| 248 | + lineName = $('#fgsdmSing option:selected').text(); | ||
| 249 | + var i = layer.load(2); | ||
| 250 | +// if(tjtype=='jsy'){ | ||
| 251 | + $get('/mcy_export/singledataExportTj',{sfyy:sfyy,gsdmSing:gsdmSing,fgsdmSing:fgsdmSing,line:line,startDate:startDate,endDate:endDate,tjtype:tjtype,type:'export',lineName:lineName},function(result){ | ||
| 252 | + window.open("/downloadFile/download?fileName=" | ||
| 253 | + +moment(startDate).format("YYYYMMDD") | ||
| 254 | + +"-"+lineName+"-路单数据"); | ||
| 255 | + layer.close(i); | ||
| 256 | + }); | ||
| 257 | +// }else{ | ||
| 258 | +// $get('/mcy_export/singledataExport',{gsdmSing:gsdmSing,fgsdmSing:fgsdmSing,line:line,startDate:startDate,endDate:endDate,tjtype:tjtype,type:'export'},function(result){ | ||
| 259 | +// window.open("/downloadFile/download?fileName=路单数据"+moment(startDate).format("YYYYMMDD")); | ||
| 260 | +// }); | ||
| 261 | +// } | ||
| 262 | + | ||
| 263 | + }); | ||
| 264 | + }); | ||
| 265 | +</script> | ||
| 266 | +<script type="text/html" id="singledata"> | ||
| 267 | + {{each list as obj i}} | ||
| 268 | + <tr> | ||
| 269 | + <td>{{i+1}}</td> | ||
| 270 | + <td>{{obj.rQ}}</td> | ||
| 271 | + <td>{{obj.gS}}</td> | ||
| 272 | + <td>{{obj.xlmc}}</td> | ||
| 273 | + <td>{{obj.clzbh}}</td> | ||
| 274 | + <td>{{obj.jsy}}</td> | ||
| 275 | + <td>{{obj.jName}}</td> | ||
| 276 | + <td>{{obj.sgh}}</td> | ||
| 277 | + <td>{{obj.sName}}</td> | ||
| 278 | + <td>{{obj.jhlc}}</td> | ||
| 279 | + <td>{{obj.emptMileage}}</td> | ||
| 280 | + <td>{{obj.hyl}}</td> | ||
| 281 | + <td>{{obj.jzl}}</td> | ||
| 282 | + <td>{{obj.unyyyl}}</td> | ||
| 283 | + <td>{{obj.jhjl}}</td> | ||
| 284 | + </tr> | ||
| 285 | + {{/each}} | ||
| 286 | + {{if list.length == 0}} | ||
| 287 | + <tr> | ||
| 288 | + <td colspan="16"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 289 | + </tr> | ||
| 290 | + {{/if}} | ||
| 291 | +</script> | ||
| 292 | +<script type="text/html" id="singledata2"> | ||
| 293 | + {{each list as obj i}} | ||
| 294 | + <tr> | ||
| 295 | + <td>{{i+1}}</td> | ||
| 296 | + <td>{{obj.rQ}}</td> | ||
| 297 | + <td>{{obj.gS}}</td> | ||
| 298 | + <td>{{obj.xlmc}}</td> | ||
| 299 | + <td>{{obj.clzbh}}</td> | ||
| 300 | + <td></td> | ||
| 301 | + <td></td> | ||
| 302 | + <td>{{obj.sgh}}</td> | ||
| 303 | + <td>{{obj.sName}}</td> | ||
| 304 | + <td>{{obj.jhlc}}</td> | ||
| 305 | + <td>{{obj.emptMileage}}</td> | ||
| 306 | + <td></td> | ||
| 307 | + <td></td> | ||
| 308 | + <td></td> | ||
| 309 | + <td>{{obj.jhjl}}</td> | ||
| 310 | + </tr> | ||
| 311 | + {{/each}} | ||
| 312 | + {{if list.length == 0}} | ||
| 313 | + <tr> | ||
| 314 | + <td colspan="16"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 315 | + </tr> | ||
| 316 | + {{/if}} | ||
| 317 | +</script> |
src/main/resources/static/pages/mforms/singledatas/singledata2.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center; } | ||
| 15 | + | ||
| 16 | + .table > tbody + tbody { | ||
| 17 | + border-top: 1px solid; } | ||
| 18 | +</style> | ||
| 19 | + | ||
| 20 | +<div class="page-head"> | ||
| 21 | + <div class="page-title"> | ||
| 22 | + <h1>路单数据</h1> | ||
| 23 | + </div> | ||
| 24 | +</div> | ||
| 25 | + | ||
| 26 | +<div class="row"> | ||
| 27 | + <div class="col-md-12"> | ||
| 28 | + <div class="portlet light porttlet-fit bordered"> | ||
| 29 | + <div class="portlet-title"> | ||
| 30 | + <form class="form-inline" action=""> | ||
| 31 | + <div style="display: inline-block; margin-left: 33px;" id="gsdmDiv_sing"> | ||
| 32 | + <span class="item-label" style="width: 80px;">公司: </span> | ||
| 33 | + <select class="form-control" name="company" id="gsdmSing" style="width: 140px;"></select> | ||
| 34 | + </div> | ||
| 35 | + <div style="display: inline-block; margin-left: 24px;" id="fgsdmDiv_sing"> | ||
| 36 | + <span class="item-label" style="width: 80px;">分公司: </span> | ||
| 37 | + <select class="form-control" name="subCompany" id="fgsdmSing" style="width: 140px;"></select> | ||
| 38 | + </div> | ||
| 39 | + <div style="display: inline-block;"> | ||
| 40 | + <span class="item-label" style="width: 80px;"> 线路: </span> | ||
| 41 | + <select class="form-control" name="line" id="line" style="width: 140px;"></select> | ||
| 42 | + </div> | ||
| 43 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 44 | + <span class="item-label" style="width: 140px;">时间: </span> | ||
| 45 | + <input class="form-control" type="text" id="startDate" style="width: 140px;"/> | ||
| 46 | + </div> | ||
| 47 | + | ||
| 48 | + <div style="display: inline-block;margin-left: 15px"> | ||
| 49 | + <span class="item-label" style="width: 150px;">统计: </span> | ||
| 50 | + <select class="form-control" name="tjtype" id="tjtype" style="width: 140px;"> | ||
| 51 | + <option value="jsy">驾驶员</option> | ||
| 52 | + <option value="spy">售票员</option> | ||
| 53 | + </select> | ||
| 54 | + | ||
| 55 | + </div> | ||
| 56 | + <div class="form-group"> | ||
| 57 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 58 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 59 | + </div> | ||
| 60 | + </form> | ||
| 61 | + </div> | ||
| 62 | + <div class="portlet-body"> | ||
| 63 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | ||
| 64 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | ||
| 65 | + <thead> | ||
| 66 | + <tr> | ||
| 67 | + <th>序号</th> | ||
| 68 | + <th>日期</th> | ||
| 69 | + <th>所属公司</th> | ||
| 70 | + <th>线路</th> | ||
| 71 | + <th>车号</th> | ||
| 72 | + <th>司机职号</th> | ||
| 73 | + <th>司机姓名</th> | ||
| 74 | + <th>售票员职号</th> | ||
| 75 | + <th>售票员姓名</th> | ||
| 76 | + <th>行驶里程(包括空放)</th> | ||
| 77 | + <th>空驶里程</th> | ||
| 78 | + <th>耗油量</th> | ||
| 79 | + <th>加注量</th> | ||
| 80 | + <th>非营业用油</th> | ||
| 81 | + <th>计划公里</th> | ||
| 82 | + </tr> | ||
| 83 | + </thead> | ||
| 84 | + <tbody id="sinTboday"> | ||
| 85 | + | ||
| 86 | + </tbody> | ||
| 87 | + <tr> | ||
| 88 | + <td colspan="9">小计</td> | ||
| 89 | + <td><span id="total_zgl"> </span></td> | ||
| 90 | + <td><span id="total_ks"> </span></td> | ||
| 91 | + <td><span id="total_yh"> </span></td> | ||
| 92 | + <td><span id="total_jzl"> </span></td> | ||
| 93 | + <td><span id="total_fyy"> </span></td> | ||
| 94 | + <td><span id="total_jh"> </span></td> | ||
| 95 | + </tr> | ||
| 96 | + </table> | ||
| 97 | + </div> | ||
| 98 | + </div> | ||
| 99 | + </div> | ||
| 100 | + </div> | ||
| 101 | +</div> | ||
| 102 | + | ||
| 103 | +<script> | ||
| 104 | + $(function(){ | ||
| 105 | + // 关闭左侧栏 | ||
| 106 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 107 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 108 | + | ||
| 109 | + $("#startDate,#endDate").datetimepicker({ | ||
| 110 | + format : 'YYYY-MM-DD', | ||
| 111 | + locale : 'zh-cn' | ||
| 112 | + }); | ||
| 113 | + | ||
| 114 | + var fage=false; | ||
| 115 | + var xlList; | ||
| 116 | + var obj = []; | ||
| 117 | + | ||
| 118 | + $.get('/report/lineList',function(result){ | ||
| 119 | + xlList=result; | ||
| 120 | + $.get('/user/companyData', function(result){ | ||
| 121 | + obj = result; | ||
| 122 | + var options = ''; | ||
| 123 | + for(var i = 0; i < obj.length; i++){ | ||
| 124 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 125 | + } | ||
| 126 | + | ||
| 127 | + if(obj.length ==0){ | ||
| 128 | + $("#gsdmDiv_sing").css('display','none'); | ||
| 129 | + }else if(obj.length ==1){ | ||
| 130 | + $("#gsdmDiv_sing").css('display','none'); | ||
| 131 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 132 | + $('#fgsdmDiv_sing').css('display','none'); | ||
| 133 | + } | ||
| 134 | + $('#gsdmSing').html(options); | ||
| 135 | + updateCompany(); | ||
| 136 | + }); | ||
| 137 | + }) | ||
| 138 | + $("#gsdmSing").on("change",updateCompany); | ||
| 139 | + function updateCompany(){ | ||
| 140 | + var company = $('#gsdmSing').val(); | ||
| 141 | + var options = ''; | ||
| 142 | + for(var i = 0; i < obj.length; i++){ | ||
| 143 | + if(obj[i].companyCode == company){ | ||
| 144 | + var children = obj[i].children; | ||
| 145 | + for(var j = 0; j < children.length; j++){ | ||
| 146 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 147 | + } | ||
| 148 | + } | ||
| 149 | + } | ||
| 150 | + $('#fgsdmSing').html(options); | ||
| 151 | + } | ||
| 152 | + | ||
| 153 | + var tempData = {}; | ||
| 154 | + $.get('/report/lineList',function(xlList){ | ||
| 155 | + var data = []; | ||
| 156 | + data.push({id: " ", text: "全部线路"}); | ||
| 157 | + $.get('/user/companyData', function(result){ | ||
| 158 | + for(var i = 0; i < result.length; i++){ | ||
| 159 | + var companyCode = result[i].companyCode; | ||
| 160 | + var children = result[i].children; | ||
| 161 | + for(var j = 0; j < children.length; j++){ | ||
| 162 | + var code = children[j].code; | ||
| 163 | + for(var k=0;k < xlList.length;k++ ){ | ||
| 164 | + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){ | ||
| 165 | + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]}); | ||
| 166 | + tempData[xlList[k]["xlbm"]] = companyCode+":"+code; | ||
| 167 | + } | ||
| 168 | + } | ||
| 169 | + } | ||
| 170 | + } | ||
| 171 | + initPinYinSelect2('#line',data,''); | ||
| 172 | + | ||
| 173 | + }); | ||
| 174 | + }); | ||
| 175 | + | ||
| 176 | + $("#line").on("change", function(){ | ||
| 177 | + if($("#line").val() == " "){ | ||
| 178 | + $("#gsdmSing").attr("disabled", false); | ||
| 179 | + $("#fgsdmSing").attr("disabled", false); | ||
| 180 | + } else { | ||
| 181 | + var temp = tempData[$("#line").val()].split(":"); | ||
| 182 | + $("#gsdmSing").val(temp[0]); | ||
| 183 | + updateCompany(); | ||
| 184 | + $("#fgsdmSing").val(temp[1]); | ||
| 185 | + $("#gsdmSing").attr("disabled", true); | ||
| 186 | + $("#fgsdmSing").attr("disabled", true); | ||
| 187 | + } | ||
| 188 | + }); | ||
| 189 | + | ||
| 190 | + | ||
| 191 | + $("#query").on("click",function(){ | ||
| 192 | + if($("#startDate").val() == null || $("#startDate").val().trim().length == 0){ | ||
| 193 | + layer.msg("请选择时间!"); | ||
| 194 | + return; | ||
| 195 | + } | ||
| 196 | + var line = $("#line").val(); | ||
| 197 | + var startDate = $("#startDate").val(); | ||
| 198 | + var lpName = $("#lpName").val(); | ||
| 199 | + var gsdmSing = $("#gsdmSing").val(); | ||
| 200 | + var fgsdmSing = $("#fgsdmSing").val(); | ||
| 201 | + var tjtype=$("#tjtype").val(); | ||
| 202 | + var params = {}; | ||
| 203 | + var i = layer.load(2); | ||
| 204 | +// if(tjtype=='jsy'){ | ||
| 205 | + $get("/mcy_forms/singledatatj",{ gsdmSing:gsdmSing,fgsdmSing:fgsdmSing, line:line,startDate:startDate,lpName:lpName,tjtype:tjtype},function(result){ | ||
| 206 | + layer.close(i); | ||
| 207 | + var singledata = template('singledata',{list:result}); | ||
| 208 | + // 把渲染好的模版html文本追加到表格中 | ||
| 209 | + $('#sinTboday').html(singledata); | ||
| 210 | + var total_zgl = 0,total_ks = 0,total_jh = 0; | ||
| 211 | + var total_yh = 0,total_jzl=0,total_fyy=0; | ||
| 212 | + | ||
| 213 | + $.each(result, function(i, obj) { | ||
| 214 | + total_zgl +=Number(obj.jhlc*10000); | ||
| 215 | + total_ks +=Number(obj.emptMileage*10000); | ||
| 216 | + total_yh += Number(obj.hyl*10000); | ||
| 217 | + total_jzl +=Number(obj.jzl*10000) | ||
| 218 | + total_fyy +=Number(obj.unyyyl*10000) | ||
| 219 | + total_jh += Number(obj.jhjl*10000); | ||
| 220 | + | ||
| 221 | + }); | ||
| 222 | + $("#total_zgl").text((total_zgl/10000).toFixed(3)); | ||
| 223 | + $("#total_ks").text((total_ks/10000).toFixed(3)); | ||
| 224 | + $("#total_yh").text((total_yh/10000).toFixed(2)); | ||
| 225 | + $("#total_jzl").text((total_jzl/10000).toFixed(2)); | ||
| 226 | + $("#total_fyy").text((total_fyy/10000).toFixed(2)); | ||
| 227 | + $("#total_jh").text((total_jh/10000).toFixed(3)); | ||
| 228 | + | ||
| 229 | + }); | ||
| 230 | +// }else{ | ||
| 231 | +// $get("/mcy_forms/singledata",{ gsdmSing:gsdmSing,fgsdmSing:fgsdmSing, line:line,startDate:startDate,lpName:lpName,tjtype:tjtype},function(result){ | ||
| 232 | +// layer.close(i); | ||
| 233 | +// var date=new Array(); //存放文本框数组 | ||
| 234 | +// $.each(result, function (i, obj) { | ||
| 235 | +// if(obj.sgh !='' && obj.sgh!=null){ | ||
| 236 | +// date.push(obj); | ||
| 237 | +// } | ||
| 238 | +// }); | ||
| 239 | +// var singledata = template('singledata2',{result}); | ||
| 240 | +// // 把渲染好的模版html文本追加到表格中 | ||
| 241 | +// $('#forms tbody').html(singledata); | ||
| 242 | + | ||
| 243 | +// }); | ||
| 244 | +// } | ||
| 245 | + | ||
| 246 | + }); | ||
| 247 | + | ||
| 248 | + $("#export").on("click",function(){ | ||
| 249 | + var line = $("#line").val(); | ||
| 250 | + var startDate = $("#startDate").val(); | ||
| 251 | + var endDate = $("#endDate").val(); | ||
| 252 | + var lpName = $("#lpName").val(); | ||
| 253 | + var gsdmSing = $("#gsdmSing").val(); | ||
| 254 | + var fgsdmSing = $("#fgsdmSing").val(); | ||
| 255 | + var tjtype=$("#tjtype").val(); | ||
| 256 | +// if(tjtype=='jsy'){ | ||
| 257 | + $get('/mcy_export/singledataExportTj',{gsdmSing:gsdmSing,fgsdmSing:fgsdmSing,line:line,startDate:startDate,endDate:endDate,tjtype:tjtype,type:'export'},function(result){ | ||
| 258 | + window.open("/downloadFile/download?fileName=路单数据"+moment(startDate).format("YYYYMMDD")); | ||
| 259 | + }); | ||
| 260 | +// }else{ | ||
| 261 | +// $get('/mcy_export/singledataExport',{gsdmSing:gsdmSing,fgsdmSing:fgsdmSing,line:line,startDate:startDate,endDate:endDate,tjtype:tjtype,type:'export'},function(result){ | ||
| 262 | +// window.open("/downloadFile/download?fileName=路单数据"+moment(startDate).format("YYYYMMDD")); | ||
| 263 | +// }); | ||
| 264 | +// } | ||
| 265 | + | ||
| 266 | + }); | ||
| 267 | + }); | ||
| 268 | +</script> | ||
| 269 | +<script type="text/html" id="singledata"> | ||
| 270 | + {{each list as obj i}} | ||
| 271 | + <tr> | ||
| 272 | + <td>{{i+1}}</td> | ||
| 273 | + <td>{{obj.rQ}}</td> | ||
| 274 | + <td>{{obj.gS}}</td> | ||
| 275 | + <td>{{obj.xlmc}}</td> | ||
| 276 | + <td>{{obj.clzbh}}</td> | ||
| 277 | + <td>{{obj.jsy}}</td> | ||
| 278 | + <td>{{obj.jName}}</td> | ||
| 279 | + <td>{{obj.sgh}}</td> | ||
| 280 | + <td>{{obj.sName}}</td> | ||
| 281 | + <td>{{obj.jhlc}}</td> | ||
| 282 | + <td>{{obj.emptMileage}}</td> | ||
| 283 | + <td>{{obj.hyl}}</td> | ||
| 284 | + <td>{{obj.jzl}}</td> | ||
| 285 | + <td>{{obj.unyyyl}}</td> | ||
| 286 | + <td>{{obj.jhjl}}</td> | ||
| 287 | + </tr> | ||
| 288 | + {{/each}} | ||
| 289 | + {{if list.length == 0}} | ||
| 290 | + <tr> | ||
| 291 | + <td colspan="16"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 292 | + </tr> | ||
| 293 | + {{/if}} | ||
| 294 | +</script> | ||
| 295 | +<script type="text/html" id="singledata2"> | ||
| 296 | + {{each list as obj i}} | ||
| 297 | + <tr> | ||
| 298 | + <td>{{i+1}}</td> | ||
| 299 | + <td>{{obj.rQ}}</td> | ||
| 300 | + <td>{{obj.gS}}</td> | ||
| 301 | + <td>{{obj.xlmc}}</td> | ||
| 302 | + <td>{{obj.clzbh}}</td> | ||
| 303 | + <td></td> | ||
| 304 | + <td></td> | ||
| 305 | + <td>{{obj.sgh}}</td> | ||
| 306 | + <td>{{obj.sName}}</td> | ||
| 307 | + <td>{{obj.jhlc}}</td> | ||
| 308 | + <td>{{obj.emptMileage}}</td> | ||
| 309 | + <td></td> | ||
| 310 | + <td></td> | ||
| 311 | + <td></td> | ||
| 312 | + <td>{{obj.jhjl}}</td> | ||
| 313 | + </tr> | ||
| 314 | + {{/each}} | ||
| 315 | + {{if list.length == 0}} | ||
| 316 | + <tr> | ||
| 317 | + <td colspan="16"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 318 | + </tr> | ||
| 319 | + {{/if}} | ||
| 320 | +</script> |
src/main/resources/static/pages/mforms/singledatas/singledata_date.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center; } | ||
| 15 | + | ||
| 16 | + .table > tbody + tbody { | ||
| 17 | + border-top: 1px solid; } | ||
| 18 | +</style> | ||
| 19 | + | ||
| 20 | +<div class="page-head"> | ||
| 21 | + <div class="page-title"> | ||
| 22 | + <h1>路单统计</h1> | ||
| 23 | + </div> | ||
| 24 | +</div> | ||
| 25 | + | ||
| 26 | +<div class="row"> | ||
| 27 | + <div class="col-md-12"> | ||
| 28 | + <div class="portlet light porttlet-fit bordered"> | ||
| 29 | + <div class="portlet-title"> | ||
| 30 | + <form class="form-inline" action=""> | ||
| 31 | + <div style="display: inline-block; margin-left: 33px;" id="gsdmDiv_sing"> | ||
| 32 | + <span class="item-label" style="width: 140px;"> | ||
| 33 | + | ||
| 34 | + 公司: </span> | ||
| 35 | + <select class="form-control" name="company" id="gsdmSing" style="width: 140px;"></select> | ||
| 36 | + </div> | ||
| 37 | + <div style="display: inline-block; margin-left: 10px;" id="fgsdmDiv_sing"> | ||
| 38 | + <span class="item-label" style="width: 140px;"> 分公司: </span> | ||
| 39 | + <select class="form-control" name="subCompany" id="fgsdmSing" style="width: 140px;"></select> | ||
| 40 | + </div> | ||
| 41 | + <div style="display: inline-block; margin-left: 15px;"> | ||
| 42 | + <span class="item-label" style="width: 80px;">线路: </span> | ||
| 43 | + <select class="form-control" name="line" id="line" style="width: 140px;"></select> | ||
| 44 | + </div> | ||
| 45 | + <div style="margin-top: 10px"></div> | ||
| 46 | + | ||
| 47 | + <div style="display: inline-block;margin-left: 33px;"> | ||
| 48 | + <span class="item-label" style="width: 140px;">开始时间: </span> | ||
| 49 | + <input class="form-control" type="text" id="startDate" style="width: 140px;"/> | ||
| 50 | + </div> | ||
| 51 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 52 | + <span class="item-label" style="width: 140px;">结束时间: </span> | ||
| 53 | + <input class="form-control" type="text" id="endDate" style="width: 140px;"/> | ||
| 54 | + </div> | ||
| 55 | + | ||
| 56 | + <div style="display: inline-block;margin-left: 15px"> | ||
| 57 | + <span class="item-label" style="width: 150px;">统计: </span> | ||
| 58 | + <select class="form-control" name="tjtype" id="tjtype" style="width: 140px;"> | ||
| 59 | + <option value="jsy">驾驶员</option> | ||
| 60 | + <option value="spy">售票员</option> | ||
| 61 | + </select> | ||
| 62 | + | ||
| 63 | + </div> | ||
| 64 | + <div class="form-group"> | ||
| 65 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 66 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 67 | + </div> | ||
| 68 | + </form> | ||
| 69 | + </div> | ||
| 70 | + <div class="portlet-body"> | ||
| 71 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | ||
| 72 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | ||
| 73 | + <thead> | ||
| 74 | + <tr> | ||
| 75 | + <th>序号</th> | ||
| 76 | + <th>日期</th> | ||
| 77 | + <th>所属公司</th> | ||
| 78 | + <th>线路</th> | ||
| 79 | + <th>车号</th> | ||
| 80 | + <th>司机职号</th> | ||
| 81 | + <th>司机姓名</th> | ||
| 82 | + <th>售票员职号</th> | ||
| 83 | + <th>售票员姓名</th> | ||
| 84 | + <th>行驶里程(包括空放)</th> | ||
| 85 | + <th>空驶里程</th> | ||
| 86 | + <th>耗油量</th> | ||
| 87 | + <th>加注量</th> | ||
| 88 | + <th>非营业用油</th> | ||
| 89 | + <th>计划公里</th> | ||
| 90 | + </tr> | ||
| 91 | + </thead> | ||
| 92 | + <tbody> | ||
| 93 | + | ||
| 94 | + </tbody> | ||
| 95 | + </table> | ||
| 96 | + </div> | ||
| 97 | + </div> | ||
| 98 | + </div> | ||
| 99 | + </div> | ||
| 100 | +</div> | ||
| 101 | + | ||
| 102 | +<script> | ||
| 103 | + $(function(){ | ||
| 104 | + // 关闭左侧栏 | ||
| 105 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 106 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 107 | + | ||
| 108 | + $("#startDate,#endDate").datetimepicker({ | ||
| 109 | + format : 'YYYY-MM-DD', | ||
| 110 | + locale : 'zh-cn' | ||
| 111 | + }); | ||
| 112 | + var d = new Date(); | ||
| 113 | + var year = d.getFullYear(); | ||
| 114 | + var month = d.getMonth() + 1; | ||
| 115 | + var day = d.getDate(); | ||
| 116 | + if(month < 10) | ||
| 117 | + month = "0" + month; | ||
| 118 | + if(day < 10) | ||
| 119 | + day = "0" + day; | ||
| 120 | + $("#startDate").val(year + "-" + month + "-" + day); | ||
| 121 | + $("#endDate").val(year + "-" + month + "-" + day); | ||
| 122 | + | ||
| 123 | + | ||
| 124 | + var fage=false; | ||
| 125 | + var xlList; | ||
| 126 | + var obj = []; | ||
| 127 | + | ||
| 128 | + $.get('/report/lineList',function(result){ | ||
| 129 | + xlList=result; | ||
| 130 | + $.get('/user/companyData', function(result){ | ||
| 131 | + obj = result; | ||
| 132 | + var options = ''; | ||
| 133 | + for(var i = 0; i < obj.length; i++){ | ||
| 134 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 135 | + } | ||
| 136 | + | ||
| 137 | + if(obj.length ==0){ | ||
| 138 | + $("#gsdmDiv_sing").css('display','none'); | ||
| 139 | + }else if(obj.length ==1){ | ||
| 140 | + $("#gsdmDiv_sing").css('display','none'); | ||
| 141 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 142 | + $('#fgsdmDiv_sing').css('display','none'); | ||
| 143 | + } | ||
| 144 | + $('#gsdmSing').html(options); | ||
| 145 | + updateCompany(); | ||
| 146 | + }); | ||
| 147 | + }) | ||
| 148 | + $("#gsdmSing").on("change",updateCompany); | ||
| 149 | + function updateCompany(){ | ||
| 150 | + var company = $('#gsdmSing').val(); | ||
| 151 | + var options =''; | ||
| 152 | +// var options = '<option value="">全部分公司</option>'; | ||
| 153 | + for(var i = 0; i < obj.length; i++){ | ||
| 154 | + if(obj[i].companyCode == company){ | ||
| 155 | + var children = obj[i].children; | ||
| 156 | + for(var j = 0; j < children.length; j++){ | ||
| 157 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 158 | + } | ||
| 159 | + } | ||
| 160 | + } | ||
| 161 | + $('#fgsdmSing').html(options); | ||
| 162 | + } | ||
| 163 | + | ||
| 164 | + var tempData = {}; | ||
| 165 | + $.get('/report/lineList',function(xlList){ | ||
| 166 | + var data = []; | ||
| 167 | + data.push({id: " ", text: "全部线路"}); | ||
| 168 | + $.get('/user/companyData', function(result){ | ||
| 169 | + for(var i = 0; i < result.length; i++){ | ||
| 170 | + var companyCode = result[i].companyCode; | ||
| 171 | + var children = result[i].children; | ||
| 172 | + for(var j = 0; j < children.length; j++){ | ||
| 173 | + var code = children[j].code; | ||
| 174 | + for(var k=0;k < xlList.length;k++ ){ | ||
| 175 | + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){ | ||
| 176 | + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]}); | ||
| 177 | + tempData[xlList[k]["xlbm"]] = companyCode+":"+code; | ||
| 178 | + } | ||
| 179 | + } | ||
| 180 | + } | ||
| 181 | + } | ||
| 182 | + initPinYinSelect2('#line',data,''); | ||
| 183 | + | ||
| 184 | + }); | ||
| 185 | + }); | ||
| 186 | + | ||
| 187 | + $("#line").on("change", function(){ | ||
| 188 | + if($("#line").val() == " "){ | ||
| 189 | + $("#gsdmSing").attr("disabled", false); | ||
| 190 | + $("#fgsdmSing").attr("disabled", false); | ||
| 191 | + } else { | ||
| 192 | + var temp = tempData[$("#line").val()].split(":"); | ||
| 193 | + $("#gsdmSing").val(temp[0]); | ||
| 194 | + updateCompany(); | ||
| 195 | + $("#fgsdmSing").val(temp[1]); | ||
| 196 | +// $("#fgsdmSing").val(""); | ||
| 197 | + $("#gsdmSing").attr("disabled", true); | ||
| 198 | + $("#fgsdmSing").attr("disabled", true); | ||
| 199 | + } | ||
| 200 | + }); | ||
| 201 | + | ||
| 202 | + | ||
| 203 | + $("#query").on("click",function(){ | ||
| 204 | + if($("#startDate").val() == null || $("#startDate").val().trim().length == 0){ | ||
| 205 | + layer.msg("请选择时间!"); | ||
| 206 | + return; | ||
| 207 | + } | ||
| 208 | + var i = layer.load(2); | ||
| 209 | + var params = {}; | ||
| 210 | + params['sfyy'] = $("#sfyy").val(); | ||
| 211 | + params['gsdmSing'] = $("#gsdmSing").val(); | ||
| 212 | + params['fgsdmSing'] = $("#fgsdmSing").val(); | ||
| 213 | + params['line'] = $("#line").val(); | ||
| 214 | + params['startDate'] = $("#startDate").val(); | ||
| 215 | + params['endDate'] = $("#endDate").val(); | ||
| 216 | + params['lpName'] = $("#lpName").val(); | ||
| 217 | + params['tjtype'] = $("#tjtype").val(); | ||
| 218 | + params['spy'] = "zrw"; | ||
| 219 | + | ||
| 220 | + $get("/report/singledatatj",params,function(result){ | ||
| 221 | + layer.close(i); | ||
| 222 | + var singledata = template('singledata',{list:result}); | ||
| 223 | + // 把渲染好的模版html文本追加到表格中 | ||
| 224 | + $('#forms tbody').html(singledata); | ||
| 225 | + | ||
| 226 | + }); | ||
| 227 | + | ||
| 228 | + }); | ||
| 229 | + | ||
| 230 | + $("#export").on("click",function(){ | ||
| 231 | + var params = {}; | ||
| 232 | + params['sfyy'] = $("#sfyy").val(); | ||
| 233 | + params['gsdmSing'] = $("#gsdmSing").val(); | ||
| 234 | + params['fgsdmSing'] = $("#fgsdmSing").val(); | ||
| 235 | + params['line'] = $("#line").val(); | ||
| 236 | + params['startDate'] = $("#startDate").val(); | ||
| 237 | + params['endDate'] = $("#endDate").val(); | ||
| 238 | + params['lpName'] = $("#lpName").val(); | ||
| 239 | + params['tjtype'] = $("#tjtype").val(); | ||
| 240 | + params['spy'] = "zrw"; | ||
| 241 | + var lineName = $('#line option:selected').text(); | ||
| 242 | + if(lineName == "全部线路") | ||
| 243 | + lineName = $('#fgsdmSing option:selected').text(); | ||
| 244 | + | ||
| 245 | + params['lineName'] =lineName; | ||
| 246 | + params['type'] ='export'; | ||
| 247 | + var i = layer.load(2); | ||
| 248 | + $get('/report/singledatatj',params,function(result){ | ||
| 249 | + var exportDate=""; | ||
| 250 | + if( $("#startDate").val()==$("#endDate").val()){ | ||
| 251 | + exportDate=moment($("#startDate").val()).format("YYYYMMDD"); | ||
| 252 | + }else{ | ||
| 253 | + exportDate=moment($("#startDate").val()).format("YYYYMMDD") | ||
| 254 | + +"-"+moment($("#endDate").val()).format("YYYYMMDD"); | ||
| 255 | + | ||
| 256 | + } | ||
| 257 | + console.log("exportDate:"+exportDate); | ||
| 258 | + window.open("/downloadFile/download?fileName=" | ||
| 259 | + +exportDate | ||
| 260 | + +"-"+lineName+"-路单统计"); | ||
| 261 | + layer.close(i); | ||
| 262 | + }); | ||
| 263 | + | ||
| 264 | + }); | ||
| 265 | + }); | ||
| 266 | +</script> | ||
| 267 | +<script type="text/html" id="singledata"> | ||
| 268 | + {{each list as obj i}} | ||
| 269 | + <tr> | ||
| 270 | + <td>{{i+1}}</td> | ||
| 271 | + <td>{{obj.rQ}}</td> | ||
| 272 | + <td>{{obj.gS}}</td> | ||
| 273 | + <td>{{obj.xlmc}}</td> | ||
| 274 | + <td>{{obj.clzbh}}</td> | ||
| 275 | + <td>{{obj.jsy}}</td> | ||
| 276 | + <td>{{obj.jName}}</td> | ||
| 277 | + <td>{{obj.sgh}}</td> | ||
| 278 | + <td>{{obj.sName}}</td> | ||
| 279 | + <td>{{obj.jhlc}}</td> | ||
| 280 | + <td>{{obj.emptMileage}}</td> | ||
| 281 | + <td>{{obj.hyl}}</td> | ||
| 282 | + <td>{{obj.jzl}}</td> | ||
| 283 | + <td>{{obj.unyyyl}}</td> | ||
| 284 | + <td>{{obj.jhjl}}</td> | ||
| 285 | + </tr> | ||
| 286 | + {{/each}} | ||
| 287 | + {{if list.length == 0}} | ||
| 288 | + <tr> | ||
| 289 | + <td colspan="16"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 290 | + </tr> | ||
| 291 | + {{/if}} | ||
| 292 | +</script> | ||
| 293 | +<script type="text/html" id="singledata2"> | ||
| 294 | + {{each list as obj i}} | ||
| 295 | + <tr> | ||
| 296 | + <td>{{i+1}}</td> | ||
| 297 | + <td>{{obj.rQ}}</td> | ||
| 298 | + <td>{{obj.gS}}</td> | ||
| 299 | + <td>{{obj.xlmc}}</td> | ||
| 300 | + <td>{{obj.clzbh}}</td> | ||
| 301 | + <td></td> | ||
| 302 | + <td></td> | ||
| 303 | + <td>{{obj.sgh}}</td> | ||
| 304 | + <td>{{obj.sName}}</td> | ||
| 305 | + <td>{{obj.jhlc}}</td> | ||
| 306 | + <td>{{obj.emptMileage}}</td> | ||
| 307 | + <td></td> | ||
| 308 | + <td></td> | ||
| 309 | + <td></td> | ||
| 310 | + <td>{{obj.jhjl}}</td> | ||
| 311 | + </tr> | ||
| 312 | + {{/each}} | ||
| 313 | + {{if list.length == 0}} | ||
| 314 | + <tr> | ||
| 315 | + <td colspan="16"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 316 | + </tr> | ||
| 317 | + {{/if}} | ||
| 318 | +</script> |
src/main/resources/static/pages/mforms/singledatas/singledatanew.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center; } | ||
| 15 | + | ||
| 16 | + .table > tbody + tbody { | ||
| 17 | + border-top: 1px solid; } | ||
| 18 | +</style> | ||
| 19 | + | ||
| 20 | +<div class="page-head"> | ||
| 21 | + <div class="page-title"> | ||
| 22 | + <h1>路单数据</h1> | ||
| 23 | + </div> | ||
| 24 | +</div> | ||
| 25 | + | ||
| 26 | +<div class="row"> | ||
| 27 | + <div class="col-md-12"> | ||
| 28 | + <div class="portlet light porttlet-fit bordered"> | ||
| 29 | + <div class="portlet-title"> | ||
| 30 | + <form class="form-inline" action=""> | ||
| 31 | + <div style="display: inline-block; margin-left: 33px;" id="gsdmDiv_sing"> | ||
| 32 | + <span class="item-label" style="width: 80px;">公司: </span> | ||
| 33 | + <select class="form-control" name="company" id="gsdmSing" style="width: 140px;"></select> | ||
| 34 | + </div> | ||
| 35 | + <div style="display: inline-block; margin-left: 24px;" id="fgsdmDiv_sing"> | ||
| 36 | + <span class="item-label" style="width: 80px;">分公司: </span> | ||
| 37 | + <select class="form-control" name="subCompany" id="fgsdmSing" style="width: 140px;"></select> | ||
| 38 | + </div> | ||
| 39 | + <div style="display: inline-block;"> | ||
| 40 | + <span class="item-label" style="width: 80px;"> 线路: </span> | ||
| 41 | + <select class="form-control" name="line" id="line" style="width: 140px;"></select> | ||
| 42 | + </div> | ||
| 43 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 44 | + <span class="item-label" style="width: 140px;">时间: </span> | ||
| 45 | + <input class="form-control" type="text" id="startDate" style="width: 140px;"/> | ||
| 46 | + </div> | ||
| 47 | + | ||
| 48 | + <div style="display: inline-block;margin-left: 15px"> | ||
| 49 | + <span class="item-label" style="width: 150px;">统计: </span> | ||
| 50 | + </div> | ||
| 51 | + <div class="form-group"> | ||
| 52 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 53 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 54 | + </div> | ||
| 55 | + </form> | ||
| 56 | + </div> | ||
| 57 | + <div class="portlet-body"> | ||
| 58 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | ||
| 59 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | ||
| 60 | + <thead> | ||
| 61 | + <tr> | ||
| 62 | + <th>序号</th> | ||
| 63 | + <th>日期</th> | ||
| 64 | + <th>所属公司</th> | ||
| 65 | + <th>线路</th> | ||
| 66 | + <th>车号</th> | ||
| 67 | + <th>司机职号</th> | ||
| 68 | + <th>司机姓名</th> | ||
| 69 | + <th>售票员职号</th> | ||
| 70 | + <th>售票员姓名</th> | ||
| 71 | + <th>行驶里程(包括空放)</th> | ||
| 72 | + <th>空驶里程</th> | ||
| 73 | + <th>耗油量</th> | ||
| 74 | + <th>加注量</th> | ||
| 75 | + <th>非营业用油</th> | ||
| 76 | + <th>计划公里</th> | ||
| 77 | + </tr> | ||
| 78 | + </thead> | ||
| 79 | + <tbody> | ||
| 80 | + | ||
| 81 | + </tbody> | ||
| 82 | + </table> | ||
| 83 | + </div> | ||
| 84 | + </div> | ||
| 85 | + </div> | ||
| 86 | + </div> | ||
| 87 | +</div> | ||
| 88 | + | ||
| 89 | +<script> | ||
| 90 | + $(function(){ | ||
| 91 | + // 关闭左侧栏 | ||
| 92 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 93 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 94 | + | ||
| 95 | + $("#startDate,#endDate").datetimepicker({ | ||
| 96 | + format : 'YYYY-MM-DD', | ||
| 97 | + locale : 'zh-cn' | ||
| 98 | + }); | ||
| 99 | + | ||
| 100 | + var fage=false; | ||
| 101 | + var xlList; | ||
| 102 | + var obj = []; | ||
| 103 | + | ||
| 104 | + $.get('/report/lineList',function(result){ | ||
| 105 | + xlList=result; | ||
| 106 | + $.get('/user/companyData', function(result){ | ||
| 107 | + obj = result; | ||
| 108 | + var options = ''; | ||
| 109 | + for(var i = 0; i < obj.length; i++){ | ||
| 110 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 111 | + } | ||
| 112 | + | ||
| 113 | + if(obj.length ==0){ | ||
| 114 | + $("#gsdmDiv_sing").css('display','none'); | ||
| 115 | + }else if(obj.length ==1){ | ||
| 116 | + $("#gsdmDiv_sing").css('display','none'); | ||
| 117 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 118 | + $('#fgsdmDiv_sing').css('display','none'); | ||
| 119 | + } | ||
| 120 | + $('#gsdmSing').html(options); | ||
| 121 | + updateCompany(); | ||
| 122 | + }); | ||
| 123 | + }) | ||
| 124 | + $("#gsdmSing").on("change",updateCompany); | ||
| 125 | + function updateCompany(){ | ||
| 126 | + var company = $('#gsdmSing').val(); | ||
| 127 | + var options = ''; | ||
| 128 | + for(var i = 0; i < obj.length; i++){ | ||
| 129 | + if(obj[i].companyCode == company){ | ||
| 130 | + var children = obj[i].children; | ||
| 131 | + for(var j = 0; j < children.length; j++){ | ||
| 132 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 133 | + } | ||
| 134 | + } | ||
| 135 | + } | ||
| 136 | + $('#fgsdmSing').html(options); | ||
| 137 | + } | ||
| 138 | + | ||
| 139 | + var tempData = {}; | ||
| 140 | + $.get('/report/lineList',function(xlList){ | ||
| 141 | + var data = []; | ||
| 142 | + data.push({id: " ", text: "全部线路"}); | ||
| 143 | + $.get('/user/companyData', function(result){ | ||
| 144 | + for(var i = 0; i < result.length; i++){ | ||
| 145 | + var companyCode = result[i].companyCode; | ||
| 146 | + var children = result[i].children; | ||
| 147 | + for(var j = 0; j < children.length; j++){ | ||
| 148 | + var code = children[j].code; | ||
| 149 | + for(var k=0;k < xlList.length;k++ ){ | ||
| 150 | + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){ | ||
| 151 | + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]}); | ||
| 152 | + tempData[xlList[k]["xlbm"]] = companyCode+":"+code; | ||
| 153 | + } | ||
| 154 | + } | ||
| 155 | + } | ||
| 156 | + } | ||
| 157 | + initPinYinSelect2('#line',data,''); | ||
| 158 | + | ||
| 159 | + }); | ||
| 160 | + }); | ||
| 161 | + | ||
| 162 | + $("#line").on("change", function(){ | ||
| 163 | + if($("#line").val() == " "){ | ||
| 164 | + $("#gsdmSing").attr("disabled", false); | ||
| 165 | + $("#fgsdmSing").attr("disabled", false); | ||
| 166 | + } else { | ||
| 167 | + var temp = tempData[$("#line").val()].split(":"); | ||
| 168 | + $("#gsdmSing").val(temp[0]); | ||
| 169 | + updateCompany(); | ||
| 170 | + $("#fgsdmSing").val(temp[1]); | ||
| 171 | + $("#gsdmSing").attr("disabled", true); | ||
| 172 | + $("#fgsdmSing").attr("disabled", true); | ||
| 173 | + } | ||
| 174 | + }); | ||
| 175 | + | ||
| 176 | + | ||
| 177 | + $("#query").on("click",function(){ | ||
| 178 | + if($("#startDate").val() == null || $("#startDate").val().trim().length == 0){ | ||
| 179 | + layer.msg("请选择时间!"); | ||
| 180 | + return; | ||
| 181 | + } | ||
| 182 | + var line = $("#line").val(); | ||
| 183 | + var startDate = $("#startDate").val(); | ||
| 184 | + var lpName = $("#lpName").val(); | ||
| 185 | + var gsdmSing = $("#gsdmSing").val(); | ||
| 186 | + var fgsdmSing = $("#fgsdmSing").val(); var params = {}; | ||
| 187 | + $get("/mcy_forms/singledata",{ gsdmSing:gsdmSing,fgsdmSing:fgsdmSing, line:line,startDate:startDate,lpName:lpName},function(result){ | ||
| 188 | + var temp = {}; | ||
| 189 | + var today_account = 0; | ||
| 190 | + temp["line"] = $("#line").text(); | ||
| 191 | + $.each(result, function(i, obj) { | ||
| 192 | + if(moment(obj.schedule_date_str).format("YYYY-MM-DD") == moment(obj.startDate).format("YYYY-MM-DD")){ | ||
| 193 | + today_account++; | ||
| 194 | + } | ||
| 195 | + obj.updateDate = moment(obj.startDate).format("YYYY-MM-DD HH:mm:ss"); | ||
| 196 | + }); | ||
| 197 | + var singledata = template('singledata',{list:result}); | ||
| 198 | + // 把渲染好的模版html文本追加到表格中 | ||
| 199 | + $('#forms tbody').html(singledata); | ||
| 200 | + | ||
| 201 | + }); | ||
| 202 | + }); | ||
| 203 | + | ||
| 204 | + $("#export").on("click",function(){ | ||
| 205 | + var line = $("#line").val(); | ||
| 206 | + var startDate = $("#startDate").val(); | ||
| 207 | + var endDate = $("#endDate").val(); | ||
| 208 | + var lpName = $("#lpName").val(); | ||
| 209 | + var gsdmSing = $("#gsdmSing").val(); | ||
| 210 | + var fgsdmSing = $("#fgsdmSing").val(); | ||
| 211 | + $get('/mcy_export/singledataExport',{gsdmSing:gsdmSing,fgsdmSing:fgsdmSing,line:line,startDate:startDate,endDate:endDate,type:'export'},function(result){ | ||
| 212 | + window.open("/downloadFile/download?fileName=路单数据"+moment(startDate).format("YYYYMMDD")); | ||
| 213 | + }); | ||
| 214 | + }); | ||
| 215 | + }); | ||
| 216 | +</script> | ||
| 217 | +<script type="text/html" id="singledata"> | ||
| 218 | + {{each list as obj i}} | ||
| 219 | + <tr> | ||
| 220 | + <td>{{i+1}}</td> | ||
| 221 | + <td>{{obj.rQ}}</td> | ||
| 222 | + <td>{{obj.gS}}</td> | ||
| 223 | + <td>{{obj.xL}}</td> | ||
| 224 | + <td>{{obj.clzbh}}</td> | ||
| 225 | + <td>{{obj.jsy}}</td> | ||
| 226 | + <td>{{obj.jName}}</td> | ||
| 227 | + <td>{{obj.sgh}}</td> | ||
| 228 | + <td>{{obj.sName}}</td> | ||
| 229 | + <td>{{obj.jhlc}}</td> | ||
| 230 | + <td>{{obj.emptMileage}}</td> | ||
| 231 | + <td>{{obj.hyl}}</td> | ||
| 232 | + <td>{{obj.jzl}}</td> | ||
| 233 | + <td>{{obj.unyyyl}}</td> | ||
| 234 | + <td>{{obj.jhjl}}</td> | ||
| 235 | + </tr> | ||
| 236 | + {{/each}} | ||
| 237 | + {{if list.length == 0}} | ||
| 238 | + <tr> | ||
| 239 | + <td colspan="16"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 240 | + </tr> | ||
| 241 | + {{/if}} | ||
| 242 | +</script> | ||
| 243 | +</script> | ||
| 0 | \ No newline at end of file | 244 | \ No newline at end of file |
src/main/resources/static/pages/mforms/singledatas/singledatas.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center; } | ||
| 15 | + | ||
| 16 | + .table > tbody + tbody { | ||
| 17 | + border-top: 1px solid; } | ||
| 18 | +</style> | ||
| 19 | + | ||
| 20 | +<div class="page-head"> | ||
| 21 | + <div class="page-title"> | ||
| 22 | + <h1>路单数据</h1> | ||
| 23 | + </div> | ||
| 24 | +</div> | ||
| 25 | + | ||
| 26 | +<div class="row"> | ||
| 27 | + <div class="col-md-12"> | ||
| 28 | + <div class="portlet light porttlet-fit bordered"> | ||
| 29 | + <div class="portlet-title"> | ||
| 30 | + <form class="form-inline" action=""> | ||
| 31 | + <div style="display: inline-block; margin-left: 33px;" id="gsdmDiv_sing"> | ||
| 32 | + <span class="item-label" style="width: 80px;">公司: </span> | ||
| 33 | + <select class="form-control" name="company" id="gsdmSing" style="width: 140px;"></select> | ||
| 34 | + </div> | ||
| 35 | + <div style="display: inline-block; margin-left: 24px;" id="fgsdmDiv_sing"> | ||
| 36 | + <span class="item-label" style="width: 80px;">分公司: </span> | ||
| 37 | + <select class="form-control" name="subCompany" id="fgsdmSing" style="width: 140px;"></select> | ||
| 38 | + </div> | ||
| 39 | + <div style="display: inline-block;"> | ||
| 40 | + <span class="item-label" style="width: 80px;"> 线路: </span> | ||
| 41 | + <select class="form-control" name="line" id="line" style="width: 140px;"></select> | ||
| 42 | + </div> | ||
| 43 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 44 | + <span class="item-label" style="width: 140px;">时间: </span> | ||
| 45 | + <input class="form-control" type="text" id="startDate" style="width: 140px;"/> | ||
| 46 | + </div> | ||
| 47 | + | ||
| 48 | + <div style="display: inline-block;margin-left: 15px"> | ||
| 49 | + <span class="item-label" style="width: 150px;">统计: </span> | ||
| 50 | + <select class="form-control" name="tjtype" id="tjtype" style="width: 140px;"> | ||
| 51 | + <option value="jsy">驾驶员</option> | ||
| 52 | + <option value="spy">售票员</option> | ||
| 53 | + | ||
| 54 | + </select> | ||
| 55 | + | ||
| 56 | + </div> | ||
| 57 | + <div class="form-group"> | ||
| 58 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 59 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 60 | + </div> | ||
| 61 | + </form> | ||
| 62 | + </div> | ||
| 63 | + <div class="portlet-body"> | ||
| 64 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | ||
| 65 | + <table class="table table-bordered table-hover table-checkable" id="forms"> | ||
| 66 | + <thead> | ||
| 67 | + <tr> | ||
| 68 | + <th>序号</th> | ||
| 69 | + <th>日期</th> | ||
| 70 | + <th>所属公司</th> | ||
| 71 | + <th>线路</th> | ||
| 72 | + <th>车号</th> | ||
| 73 | + <th>司机职号</th> | ||
| 74 | + <th>司机姓名</th> | ||
| 75 | + <th>售票员职号</th> | ||
| 76 | + <th>售票员姓名</th> | ||
| 77 | + <th>行驶里程(包括空放)</th> | ||
| 78 | + <th>空驶里程</th> | ||
| 79 | + <th>耗油量</th> | ||
| 80 | + <th>加注量</th> | ||
| 81 | + <th>非营业用油</th> | ||
| 82 | + <th>计划公里</th> | ||
| 83 | + </tr> | ||
| 84 | + </thead> | ||
| 85 | + <tbody> | ||
| 86 | + | ||
| 87 | + </tbody> | ||
| 88 | + </table> | ||
| 89 | + </div> | ||
| 90 | + </div> | ||
| 91 | + </div> | ||
| 92 | + </div> | ||
| 93 | +</div> | ||
| 94 | + | ||
| 95 | +<script type="text/javascript" src="/pages/mforms/singledatas/jquery.table2excel.min.js"></script> | ||
| 96 | + | ||
| 97 | +<script> | ||
| 98 | + $(function(){ | ||
| 99 | + // 关闭左侧栏 | ||
| 100 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 101 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 102 | + | ||
| 103 | + $("#startDate,#endDate").datetimepicker({ | ||
| 104 | + format : 'YYYY-MM-DD', | ||
| 105 | + locale : 'zh-cn' | ||
| 106 | + }); | ||
| 107 | + | ||
| 108 | + var fage=false; | ||
| 109 | + var xlList; | ||
| 110 | + var obj = []; | ||
| 111 | + | ||
| 112 | + $.get('/report/lineList',function(result){ | ||
| 113 | + xlList=result; | ||
| 114 | + $.get('/user/companyData', function(result){ | ||
| 115 | + obj = result; | ||
| 116 | + var options = ''; | ||
| 117 | + for(var i = 0; i < obj.length; i++){ | ||
| 118 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 119 | + } | ||
| 120 | + | ||
| 121 | + if(obj.length ==0){ | ||
| 122 | + $("#gsdmDiv_sing").css('display','none'); | ||
| 123 | + }else if(obj.length ==1){ | ||
| 124 | + $("#gsdmDiv_sing").css('display','none'); | ||
| 125 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 126 | + $('#fgsdmDiv_sing').css('display','none'); | ||
| 127 | + } | ||
| 128 | + $('#gsdmSing').html(options); | ||
| 129 | + updateCompany(); | ||
| 130 | + }); | ||
| 131 | + }) | ||
| 132 | + $("#gsdmSing").on("change",updateCompany); | ||
| 133 | + function updateCompany(){ | ||
| 134 | + var company = $('#gsdmSing').val(); | ||
| 135 | + var options = ''; | ||
| 136 | + for(var i = 0; i < obj.length; i++){ | ||
| 137 | + if(obj[i].companyCode == company){ | ||
| 138 | + var children = obj[i].children; | ||
| 139 | + for(var j = 0; j < children.length; j++){ | ||
| 140 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 141 | + } | ||
| 142 | + } | ||
| 143 | + } | ||
| 144 | + $('#fgsdmSing').html(options); | ||
| 145 | + } | ||
| 146 | + | ||
| 147 | + var tempData = {}; | ||
| 148 | + $.get('/report/lineList',function(xlList){ | ||
| 149 | + var data = []; | ||
| 150 | + data.push({id: " ", text: "全部线路"}); | ||
| 151 | + $.get('/user/companyData', function(result){ | ||
| 152 | + for(var i = 0; i < result.length; i++){ | ||
| 153 | + var companyCode = result[i].companyCode; | ||
| 154 | + var children = result[i].children; | ||
| 155 | + for(var j = 0; j < children.length; j++){ | ||
| 156 | + var code = children[j].code; | ||
| 157 | + for(var k=0;k < xlList.length;k++ ){ | ||
| 158 | + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){ | ||
| 159 | + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]}); | ||
| 160 | + tempData[xlList[k]["xlbm"]] = companyCode+":"+code; | ||
| 161 | + } | ||
| 162 | + } | ||
| 163 | + } | ||
| 164 | + } | ||
| 165 | + initPinYinSelect2('#line',data,''); | ||
| 166 | + | ||
| 167 | + }); | ||
| 168 | + }); | ||
| 169 | + | ||
| 170 | + $("#line").on("change", function(){ | ||
| 171 | + if($("#line").val() == " "){ | ||
| 172 | + $("#gsdmSing").attr("disabled", false); | ||
| 173 | + $("#fgsdmSing").attr("disabled", false); | ||
| 174 | + } else { | ||
| 175 | + var temp = tempData[$("#line").val()].split(":"); | ||
| 176 | + $("#gsdmSing").val(temp[0]); | ||
| 177 | + updateCompany(); | ||
| 178 | + $("#fgsdmSing").val(temp[1]); | ||
| 179 | + $("#gsdmSing").attr("disabled", true); | ||
| 180 | + $("#fgsdmSing").attr("disabled", true); | ||
| 181 | + } | ||
| 182 | + }); | ||
| 183 | + | ||
| 184 | + | ||
| 185 | + $("#query").on("click",function(){ | ||
| 186 | + if($("#startDate").val() == null || $("#startDate").val().trim().length == 0){ | ||
| 187 | + layer.msg("请选择时间!"); | ||
| 188 | + return; | ||
| 189 | + } | ||
| 190 | + var line = $("#line").val(); | ||
| 191 | + var startDate = $("#startDate").val(); | ||
| 192 | + var lpName = $("#lpName").val(); | ||
| 193 | + var gsdmSing = $("#gsdmSing").val(); | ||
| 194 | + var fgsdmSing = $("#fgsdmSing").val(); | ||
| 195 | + var tjtype=$("#tjtype").val(); | ||
| 196 | + var params = {}; | ||
| 197 | + var i = layer.load(2); | ||
| 198 | + if(tjtype=='jsy'){ | ||
| 199 | + $get("/mcy_forms/singledata",{ gsdmSing:gsdmSing,fgsdmSing:fgsdmSing, line:line,startDate:startDate,lpName:lpName,tjtype:tjtype},function(result){ | ||
| 200 | + layer.close(i); | ||
| 201 | + var singledata = template('singledata',{list:result}); | ||
| 202 | + // 把渲染好的模版html文本追加到表格中 | ||
| 203 | + $('#forms tbody').html(singledata); | ||
| 204 | + | ||
| 205 | + }); | ||
| 206 | + }else{ | ||
| 207 | + $get("/mcy_forms/singledata2",{ gsdmSing:gsdmSing,fgsdmSing:fgsdmSing, line:line,startDate:startDate,lpName:lpName,tjtype:tjtype},function(result){ | ||
| 208 | + | ||
| 209 | + layer.close(i); | ||
| 210 | + | ||
| 211 | + var singledata = template('singledata2',{list:result}); | ||
| 212 | + // 把渲染好的模版html文本追加到表格中 | ||
| 213 | + $('#forms tbody').html(singledata); | ||
| 214 | + | ||
| 215 | + }); | ||
| 216 | + } | ||
| 217 | + | ||
| 218 | + }); | ||
| 219 | + | ||
| 220 | + $("#export").on("click",function(){ | ||
| 221 | + var line = $("#line").val(); | ||
| 222 | + var startDate = $("#startDate").val(); | ||
| 223 | + var endDate = $("#endDate").val(); | ||
| 224 | + var lpName = $("#lpName").val(); | ||
| 225 | + var gsdmSing = $("#gsdmSing").val(); | ||
| 226 | + var fgsdmSing = $("#fgsdmSing").val(); | ||
| 227 | + var tjtype=$("#tjtype").val(); | ||
| 228 | + if(tjtype=='jsy'){ | ||
| 229 | + $get('/mcy_export/singledataExport',{gsdmSing:gsdmSing,fgsdmSing:fgsdmSing,line:line,startDate:startDate,endDate:endDate,tjtype:tjtype,type:'export'},function(result){ | ||
| 230 | + window.open("/downloadFile/download?fileName=路单数据"+moment(startDate).format("YYYYMMDD")); | ||
| 231 | + }); | ||
| 232 | + }else{ | ||
| 233 | + $get('/mcy_export/singledataExport2',{gsdmSing:gsdmSing,fgsdmSing:fgsdmSing,line:line,startDate:startDate,endDate:endDate,tjtype:tjtype,type:'export'},function(result){ | ||
| 234 | + window.open("/downloadFile/download?fileName=路单数据"+moment(startDate).format("YYYYMMDD")); | ||
| 235 | + }); | ||
| 236 | + } | ||
| 237 | + | ||
| 238 | + }); | ||
| 239 | + }); | ||
| 240 | +</script> | ||
| 241 | +<script type="text/html" id="singledata"> | ||
| 242 | + {{each list as obj i}} | ||
| 243 | + <tr> | ||
| 244 | + <td>{{i+1}}</td> | ||
| 245 | + <td>{{obj.rQ}}</td> | ||
| 246 | + <td>{{obj.gS}}</td> | ||
| 247 | + <td>{{obj.xlmc}}</td> | ||
| 248 | + <td>{{obj.clzbh}}</td> | ||
| 249 | + <td>{{obj.jsy}}</td> | ||
| 250 | + <td>{{obj.jName}}</td> | ||
| 251 | + <td>{{obj.sgh}}</td> | ||
| 252 | + <td>{{obj.sName}}</td> | ||
| 253 | + <td>{{obj.jhlc}}</td> | ||
| 254 | + <td>{{obj.emptMileage}}</td> | ||
| 255 | + <td>{{obj.hyl}}</td> | ||
| 256 | + <td>{{obj.jzl}}</td> | ||
| 257 | + <td>{{obj.unyyyl}}</td> | ||
| 258 | + <td>{{obj.jhjl}}</td> | ||
| 259 | + </tr> | ||
| 260 | + {{/each}} | ||
| 261 | + {{if list.length == 0}} | ||
| 262 | + <tr> | ||
| 263 | + <td colspan="16"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 264 | + </tr> | ||
| 265 | + {{/if}} | ||
| 266 | +</script> | ||
| 267 | +<script type="text/html" id="singledata2"> | ||
| 268 | + {{each list as obj i}} | ||
| 269 | + <tr> | ||
| 270 | + <td>{{i+1}}</td> | ||
| 271 | + <td>{{obj.rQ}}</td> | ||
| 272 | + <td>{{obj.gS}}</td> | ||
| 273 | + <td>{{obj.xlmc}}</td> | ||
| 274 | + <td>{{obj.clzbh}}</td> | ||
| 275 | + <td></td> | ||
| 276 | + <td></td> | ||
| 277 | + <td>{{obj.sgh}}</td> | ||
| 278 | + <td>{{obj.sName}}</td> | ||
| 279 | + <td>{{obj.jhlc}}</td> | ||
| 280 | + <td>{{obj.emptMileage}}</td> | ||
| 281 | + <td></td> | ||
| 282 | + <td></td> | ||
| 283 | + <td></td> | ||
| 284 | + <td>{{obj.jhjl}}</td> | ||
| 285 | + </tr> | ||
| 286 | + {{/each}} | ||
| 287 | + {{if list.length == 0}} | ||
| 288 | + <tr> | ||
| 289 | + <td colspan="16"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 290 | + </tr> | ||
| 291 | + {{/if}} | ||
| 292 | +</script> |
src/main/resources/static/pages/mforms/turnoutrates/calcTurnoutrate.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center;} | ||
| 15 | + | ||
| 16 | + .table > tbody + tbody { | ||
| 17 | + border-top: 1px solid; } | ||
| 18 | + .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th{ text-align: center; } | ||
| 19 | +.table-checkable tr > th:first-child, .table-checkable tr > td:first-child { | ||
| 20 | + text-align: center; | ||
| 21 | + max-width: initial; | ||
| 22 | + min-width: 40px; | ||
| 23 | + padding-left: 0; | ||
| 24 | + padding-right: 0; | ||
| 25 | +} | ||
| 26 | + | ||
| 27 | +</style> | ||
| 28 | + | ||
| 29 | +<div class="page-head"> | ||
| 30 | + <div class="page-title"> | ||
| 31 | + <h1>营运线路出车率统计表</h1> | ||
| 32 | + </div> | ||
| 33 | +</div> | ||
| 34 | + | ||
| 35 | +<div class="row"> | ||
| 36 | + <div class="col-md-12"> | ||
| 37 | + <div class="portlet light porttlet-fit bordered"> | ||
| 38 | + <div class="portlet-title"> | ||
| 39 | + <form class="form-inline" action="" method="post"> | ||
| 40 | + <div style="display: inline-block; margin-left: 20px;" id="gsdmDiv_turn"> | ||
| 41 | + <span class="item-label" style="width: 80px;margin-left: 11px;">公司: </span> | ||
| 42 | + <select class="form-control" name="company" id="gsdmTurn" style="width: 140px;"></select> | ||
| 43 | + </div> | ||
| 44 | + <div style="display: inline-block; margin-left: 20px;" id="fgsdmDiv_turn"> | ||
| 45 | + <span class="item-label" style="width: 80px;margin-left: 5px;">分公司: </span> | ||
| 46 | + <select class="form-control" name="subCompany" id="fgsdmTurn" style="width: 140px;"></select> | ||
| 47 | + </div> | ||
| 48 | + <div style="display: inline-block; margin-left: 33px;"> | ||
| 49 | + <span class="item-label" style="width: 80px;margin-left: 11px;">线路: </span> | ||
| 50 | + <select class="form-control" name="line" id="line" style="width: 140px;"></select> | ||
| 51 | + </div> | ||
| 52 | + <div style="margin-top: 10px"></div> | ||
| 53 | + <div style="display: inline-block;"> | ||
| 54 | + <span class="item-label" style="width: 80px;">线路性质: </span> <select | ||
| 55 | + class="form-control" name="nature" id="nature" | ||
| 56 | + style="width: 140px;"> | ||
| 57 | + <option value="0">全部线路</option> | ||
| 58 | + <option value="1" selected="selected">营运线路</option> | ||
| 59 | + <option value="2">非营运线路</option> | ||
| 60 | + </select> | ||
| 61 | + </div> | ||
| 62 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 63 | + <span class="item-label" style="width: 80px;">开始时间: </span> | ||
| 64 | + <input class="form-control" type="text" id="startDate" style="width: 140px;"/> | ||
| 65 | + </div> | ||
| 66 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 67 | + <span class="item-label" style="width: 80px;">结束时间: </span> | ||
| 68 | + <input class="form-control" type="text" id="endDate" style="width: 140px;"/> | ||
| 69 | + </div> | ||
| 70 | + <div class="form-group"> | ||
| 71 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 72 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 73 | + </div> | ||
| 74 | + </form> | ||
| 75 | + </div> | ||
| 76 | + <div class="portlet-body"> | ||
| 77 | + <div class="table-container" style="margin-top: 20px;overflow:auto;min-width: 1000px"> | ||
| 78 | + <table class="table table-bordered table-hover table-checkable" id="forms1"> | ||
| 79 | + <thead> | ||
| 80 | + <tr> | ||
| 81 | + <th colspan="15">营运线路出车率统计表</th> | ||
| 82 | + </tr> | ||
| 83 | + <tr> | ||
| 84 | + <td rowspan="3" style=" padding-top: 20px;">日期</td> | ||
| 85 | + <td rowspan="3" style=" padding-top: 20px;">公司</td> | ||
| 86 | + <td rowspan="3" style=" padding-top: 20px;">直属公司</td> | ||
| 87 | + <td rowspan="3" style=" padding-top: 20px;">线路条数</td> | ||
| 88 | + <td colspan="4">出车数</td> | ||
| 89 | + <td colspan="2">出车率</td> | ||
| 90 | + <td colspan="2" >班次数</td> | ||
| 91 | + <td rowspan="3" style=" padding-top: 20px;">班次执行率</td> | ||
| 92 | + <td rowspan="3" style=" padding-top: 20px;">说明</td> | ||
| 93 | + </tr> | ||
| 94 | + <tr> | ||
| 95 | + <td rowspan="2">权证</td> | ||
| 96 | + <td rowspan="2">计划</td> | ||
| 97 | + <td colspan="2">实际</td> | ||
| 98 | + <td rowspan="2">全日</td> | ||
| 99 | + <td rowspan="2">早高峰</td> | ||
| 100 | + <td rowspan="2">计划</td> | ||
| 101 | + <td rowspan="2">实际</td> | ||
| 102 | + </tr> | ||
| 103 | + <tr> | ||
| 104 | + <td>全日</td> | ||
| 105 | + <td>早高峰</td> | ||
| 106 | + </tr> | ||
| 107 | + </thead> | ||
| 108 | + <tbody id="tbody"> | ||
| 109 | + | ||
| 110 | + </tbody> | ||
| 111 | + </table> | ||
| 112 | + </div> | ||
| 113 | + </div> | ||
| 114 | + </div> | ||
| 115 | + </div> | ||
| 116 | +</div> | ||
| 117 | + | ||
| 118 | +<script> | ||
| 119 | + $(function(){ | ||
| 120 | + // 关闭左侧栏 | ||
| 121 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 122 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 123 | + | ||
| 124 | + | ||
| 125 | + var d = new Date(); | ||
| 126 | + //d.setTime(d.getTime() - 1*1000*60*60*24); | ||
| 127 | + var year = d.getFullYear(); | ||
| 128 | + var month = d.getMonth() + 1; | ||
| 129 | + var day = d.getDate(); | ||
| 130 | + if(month < 10) | ||
| 131 | + month = "0" + month; | ||
| 132 | + if(day < 10) | ||
| 133 | + day = "0" + day; | ||
| 134 | + var dateTime = year + "-" + month + "-" + day; | ||
| 135 | + $("#startDate,#endDate").datetimepicker({ | ||
| 136 | + format : 'YYYY-MM-DD', | ||
| 137 | + locale : 'zh-cn', | ||
| 138 | + maxDate : dateTime | ||
| 139 | + }); | ||
| 140 | + $("#startDate").val(dateTime); | ||
| 141 | + $("#endDate").val(dateTime); | ||
| 142 | + | ||
| 143 | + var fage=true; | ||
| 144 | + var xlList; | ||
| 145 | + var obj = []; | ||
| 146 | + | ||
| 147 | + $.get('/report/lineList',function(result){ | ||
| 148 | + xlList=result; | ||
| 149 | + $.get('/user/companyData', function(result){ | ||
| 150 | + obj = result; | ||
| 151 | + var options = ''; | ||
| 152 | + for(var i = 0; i < obj.length; i++){ | ||
| 153 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 154 | + } | ||
| 155 | + | ||
| 156 | + if(obj.length ==0){ | ||
| 157 | + $("#gsdmDiv_turn").css('display','none'); | ||
| 158 | + }else if(obj.length ==1){ | ||
| 159 | + $("#gsdmDiv_turn").css('display','none'); | ||
| 160 | + if(obj[0].children.length == 1 || obj[0].children.length ==0){ | ||
| 161 | + fage=false; | ||
| 162 | + $('#fgsdmDiv_turn').css('display','none'); | ||
| 163 | + | ||
| 164 | + } | ||
| 165 | + } | ||
| 166 | + $('#gsdmTurn').html(options); | ||
| 167 | + updateCompany(); | ||
| 168 | + }); | ||
| 169 | + }) | ||
| 170 | + $("#gsdmTurn").on("change",updateCompany); | ||
| 171 | + function updateCompany(){ | ||
| 172 | + var company = $('#gsdmTurn').val(); | ||
| 173 | + var options = ''; | ||
| 174 | + if(fage){ | ||
| 175 | + options = '<option value="">请选择</option>'; | ||
| 176 | + } | ||
| 177 | + for(var i = 0; i < obj.length; i++){ | ||
| 178 | + if(obj[i].companyCode == company){ | ||
| 179 | + var children = obj[i].children; | ||
| 180 | + for(var j = 0; j < children.length; j++){ | ||
| 181 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 182 | + } | ||
| 183 | + } | ||
| 184 | + } | ||
| 185 | + $('#fgsdmTurn').html(options); | ||
| 186 | + } | ||
| 187 | + | ||
| 188 | + var tempData = {}; | ||
| 189 | + $.get('/report/lineList',function(xlList){ | ||
| 190 | + var data = []; | ||
| 191 | + data.push({id: " ", text: "全部线路"}); | ||
| 192 | + $.get('/user/companyData', function(result){ | ||
| 193 | + for(var i = 0; i < result.length; i++){ | ||
| 194 | + var companyCode = result[i].companyCode; | ||
| 195 | + var children = result[i].children; | ||
| 196 | + for(var j = 0; j < children.length; j++){ | ||
| 197 | + var code = children[j].code; | ||
| 198 | + for(var k=0;k < xlList.length;k++ ){ | ||
| 199 | + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){ | ||
| 200 | + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]}); | ||
| 201 | + tempData[xlList[k]["xlbm"]] = companyCode+":"+code; | ||
| 202 | + } | ||
| 203 | + } | ||
| 204 | + } | ||
| 205 | + } | ||
| 206 | + initPinYinSelect2('#line',data,''); | ||
| 207 | + | ||
| 208 | + }); | ||
| 209 | + }); | ||
| 210 | + | ||
| 211 | + $("#line").on("change", function(){ | ||
| 212 | + if($("#line").val() == " "){ | ||
| 213 | + $("#gsdmTurn").attr("disabled", false); | ||
| 214 | + $("#fgsdmTurn").attr("disabled", false); | ||
| 215 | + } else { | ||
| 216 | + var temp = tempData[$("#line").val()].split(":"); | ||
| 217 | + $("#gsdmTurn").val(temp[0]); | ||
| 218 | + updateCompany(); | ||
| 219 | + $("#fgsdmTurn").val(temp[1]); | ||
| 220 | + $("#gsdmTurn").attr("disabled", true); | ||
| 221 | + $("#fgsdmTurn").attr("disabled", true); | ||
| 222 | + } | ||
| 223 | + }); | ||
| 224 | + | ||
| 225 | + var line; | ||
| 226 | + var startDate; | ||
| 227 | + var endDate; | ||
| 228 | + var gsdmTurn; | ||
| 229 | + var fgsdmTurn; | ||
| 230 | + var nature; | ||
| 231 | + $("#query").on("click",function(){ | ||
| 232 | + | ||
| 233 | + line = $("#line").val(); | ||
| 234 | + startDate=$("#startDate").val(); | ||
| 235 | + endDate=$("#endDate").val(); | ||
| 236 | + gsdmTurn=$("#gsdmTurn").val(); | ||
| 237 | + fgsdmTurn=$("#fgsdmTurn").val(); | ||
| 238 | + nature=$("#nature").val(); | ||
| 239 | + if(startDate!=''&&endDate!=''){ | ||
| 240 | + var i = layer.load(2); | ||
| 241 | + $get('/calcSheet/calcTurnoutrate', | ||
| 242 | + { gsdmTurn:gsdmTurn,fgsdmTurn:fgsdmTurn, line:line,startDate:startDate,endDate:endDate,nature:nature,type:'query'},function(result){ | ||
| 243 | +// var result=[]; | ||
| 244 | + // 把数据填充到模版中 | ||
| 245 | + var tbodyHtml = template('calcTurnoutrate',{list:result}); | ||
| 246 | + // 把渲染好的模版html文本追加到表格中 | ||
| 247 | + $('#tbody').html(tbodyHtml); | ||
| 248 | + layer.close(i); | ||
| 249 | + line = $("#line").val(); | ||
| 250 | + startDate = $("#startDate").val(); | ||
| 251 | + endDate = $("#endDate").val(); | ||
| 252 | + $("#sDate").text(startDate); | ||
| 253 | + $("#eDate").text(endDate); | ||
| 254 | + var temp = {}; | ||
| 255 | + var today_account = 0; | ||
| 256 | + | ||
| 257 | + temp["line"] = $("#line").text(); | ||
| 258 | + $.each(result, function(i, obj) { | ||
| 259 | + if(moment(obj.schedule_date_str).format("YYYY-MM-DD") == moment(obj.startDate).format("YYYY-MM-DD")){ | ||
| 260 | + today_account++; | ||
| 261 | + } | ||
| 262 | + obj.updateDate = moment(obj.startDate).format("YYYY-MM-DD HH:mm:ss"); | ||
| 263 | + }); | ||
| 264 | + | ||
| 265 | + }); | ||
| 266 | + | ||
| 267 | + }else{ | ||
| 268 | + layer.msg("请选择时间范围!"); | ||
| 269 | + } | ||
| 270 | + }); | ||
| 271 | + | ||
| 272 | + $("#export").on("click",function(){ | ||
| 273 | + line = $("#line").val(); | ||
| 274 | + startDate=$("#startDate").val(); | ||
| 275 | + endDate=$("#endDate").val(); | ||
| 276 | + gsdmTurn=$("#gsdmTurn").val(); | ||
| 277 | + fgsdmTurn=$("#fgsdmTurn").val(); | ||
| 278 | + nature=$("#nature").val(); | ||
| 279 | + var lineName = $('#line option:selected').text(); | ||
| 280 | + if(lineName == "全部线路") | ||
| 281 | + lineName = $('#fgsdmTurn option:selected').text(); | ||
| 282 | + if(lineName =="请选择") | ||
| 283 | + lineName = $('#gsdmTurn option:selected').text(); | ||
| 284 | + var i = layer.load(2); | ||
| 285 | + $get('/calcSheet/calcTurnoutrate',{gsdmTurn:gsdmTurn,fgsdmTurn:fgsdmTurn,line:line,startDate:startDate,endDate:endDate,nature:nature,type:'export',lineName:lineName},function(result){ | ||
| 286 | + var dateTime = ""; | ||
| 287 | + if(startDate == endDate){ | ||
| 288 | + dateTime = startDate; | ||
| 289 | + } else { | ||
| 290 | + dateTime = startDate+"-"+endDate; | ||
| 291 | + } | ||
| 292 | + window.open("/downloadFile/download?fileName=" | ||
| 293 | + +dateTime+"-"+lineName+"-营运线路出车率统计表"); | ||
| 294 | + layer.close(i); | ||
| 295 | + }); | ||
| 296 | + }); | ||
| 297 | + }); | ||
| 298 | +</script> | ||
| 299 | +<script type="text/html" id="calcTurnoutrate"> | ||
| 300 | + {{each list as obj i}} | ||
| 301 | + <tr> | ||
| 302 | + {{if obj.rq == '分类汇总'}} | ||
| 303 | + <td colspan='3'>{{obj.rq}}</td> | ||
| 304 | + {{/if}} | ||
| 305 | + {{if obj.rq != '分类汇总'}} | ||
| 306 | + <td>{{obj.rq}}</td> | ||
| 307 | + <td>{{obj.gsName}}</td> | ||
| 308 | + <td>{{obj.fgsName}}</td> | ||
| 309 | + {{/if}} | ||
| 310 | + <td>{{obj.xlName}}</td> | ||
| 311 | + <td>{{obj.qzpcs}}</td> | ||
| 312 | + <td>{{obj.jhcc}}</td> | ||
| 313 | + <td>{{obj.sjcc}}</td> | ||
| 314 | + <td>{{obj.sjcczgf}}</td> | ||
| 315 | + <td>{{obj.ccl}}</td> | ||
| 316 | + <td>{{obj.cclzgf}}</td> | ||
| 317 | + <td>{{obj.jhbc}}</td> | ||
| 318 | + <td>{{obj.sjbc}}</td> | ||
| 319 | + <td>{{obj.zxl}}</td> | ||
| 320 | + <td>{{obj.sm}}</td> | ||
| 321 | + </tr> | ||
| 322 | + {{/each}} | ||
| 323 | + {{if list.length == 0}} | ||
| 324 | + <tr> | ||
| 325 | + <td colspan="12"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 326 | + </tr> | ||
| 327 | + {{/if}} | ||
| 328 | +</script> |
src/main/resources/static/pages/mforms/turnoutrates/calcTurnoutrateZgf.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center;} | ||
| 15 | + | ||
| 16 | + .table > tbody + tbody { | ||
| 17 | + border-top: 1px solid; } | ||
| 18 | + .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th{ text-align: center; } | ||
| 19 | +.table-checkable tr > th:first-child, .table-checkable tr > td:first-child { | ||
| 20 | + text-align: center; | ||
| 21 | + max-width: initial; | ||
| 22 | + min-width: 40px; | ||
| 23 | + padding-left: 0; | ||
| 24 | + padding-right: 0; | ||
| 25 | +} | ||
| 26 | + | ||
| 27 | +</style> | ||
| 28 | + | ||
| 29 | +<div class="page-head"> | ||
| 30 | + <div class="page-title"> | ||
| 31 | + <h1>营运线路早高峰出车率统计表</h1> | ||
| 32 | + </div> | ||
| 33 | +</div> | ||
| 34 | + | ||
| 35 | +<div class="row"> | ||
| 36 | + <div class="col-md-12"> | ||
| 37 | + <div class="portlet light porttlet-fit bordered"> | ||
| 38 | + <div class="portlet-title"> | ||
| 39 | + <form class="form-inline" action="" method="post"> | ||
| 40 | + <div style="display: inline-block; margin-left: 20px;" id="gsdmDiv_turn"> | ||
| 41 | + <span class="item-label" style="width: 80px;margin-left: 11px;">公司: </span> | ||
| 42 | + <select class="form-control" name="company" id="gsdmTurn" style="width: 140px;"></select> | ||
| 43 | + </div> | ||
| 44 | + <div style="display: inline-block; margin-left: 20px;" id="fgsdmDiv_turn"> | ||
| 45 | + <span class="item-label" style="width: 80px;margin-left: 5px;">分公司: </span> | ||
| 46 | + <select class="form-control" name="subCompany" id="fgsdmTurn" style="width: 140px;"></select> | ||
| 47 | + </div> | ||
| 48 | + <div style="display: inline-block; margin-left: 33px;"> | ||
| 49 | + <span class="item-label" style="width: 80px;margin-left: 11px;">线路: </span> | ||
| 50 | + <select class="form-control" name="line" id="line" style="width: 140px;"></select> | ||
| 51 | + </div> | ||
| 52 | + <div style="margin-top: 10px"></div> | ||
| 53 | + <div style="display: inline-block;"> | ||
| 54 | + <span class="item-label" style="width: 80px;">线路性质: </span> <select | ||
| 55 | + class="form-control" name="nature" id="nature" | ||
| 56 | + style="width: 140px;"> | ||
| 57 | + <option value="0">全部线路</option> | ||
| 58 | + <option value="1" selected="selected">营运线路</option> | ||
| 59 | + <option value="2">非营运线路</option> | ||
| 60 | + </select> | ||
| 61 | + </div> | ||
| 62 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 63 | + <span class="item-label" style="width: 80px;">开始时间: </span> | ||
| 64 | + <input class="form-control" type="text" id="startDate" style="width: 140px;"/> | ||
| 65 | + </div> | ||
| 66 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 67 | + <span class="item-label" style="width: 80px;">结束时间: </span> | ||
| 68 | + <input class="form-control" type="text" id="endDate" style="width: 140px;"/> | ||
| 69 | + </div> | ||
| 70 | + <div class="form-group"> | ||
| 71 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 72 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 73 | + </div> | ||
| 74 | + </form> | ||
| 75 | + </div> | ||
| 76 | + <div class="portlet-body"> | ||
| 77 | + <div class="table-container" style="margin-top: 20px;overflow:auto;min-width: 1000px"> | ||
| 78 | + <table class="table table-bordered table-hover table-checkable" id="forms1"> | ||
| 79 | + <thead> | ||
| 80 | + <tr> | ||
| 81 | + <th colspan="15">营运线路出车率统计表</th> | ||
| 82 | + </tr> | ||
| 83 | + <tr> | ||
| 84 | + <td style=" padding-top: 20px;">日期</td> | ||
| 85 | + <td style=" padding-top: 20px;">公司</td> | ||
| 86 | + <td style=" padding-top: 20px;">直属公司</td> | ||
| 87 | + <td style=" padding-top: 20px;">线路</td> | ||
| 88 | + <td style=" padding-top: 20px;">计划全日</td> | ||
| 89 | + <td style=" padding-top: 20px;">实际全日</td> | ||
| 90 | + <td style=" padding-top: 20px;">出车率</td> | ||
| 91 | + <td style=" padding-top: 20px;">计划早高峰</td> | ||
| 92 | + <td style=" padding-top: 20px;">实际早高峰</td> | ||
| 93 | + <td style=" padding-top: 20px;">出车率</td> | ||
| 94 | + </tr> | ||
| 95 | + | ||
| 96 | + | ||
| 97 | + </thead> | ||
| 98 | + <tbody id="tbody"> | ||
| 99 | + | ||
| 100 | + </tbody> | ||
| 101 | + </table> | ||
| 102 | + </div> | ||
| 103 | + </div> | ||
| 104 | + </div> | ||
| 105 | + </div> | ||
| 106 | +</div> | ||
| 107 | + | ||
| 108 | +<script> | ||
| 109 | + $(function(){ | ||
| 110 | + // 关闭左侧栏 | ||
| 111 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 112 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 113 | + | ||
| 114 | + | ||
| 115 | + var d = new Date(); | ||
| 116 | + //d.setTime(d.getTime() - 1*1000*60*60*24); | ||
| 117 | + var year = d.getFullYear(); | ||
| 118 | + var month = d.getMonth() + 1; | ||
| 119 | + var day = d.getDate(); | ||
| 120 | + if(month < 10) | ||
| 121 | + month = "0" + month; | ||
| 122 | + if(day < 10) | ||
| 123 | + day = "0" + day; | ||
| 124 | + var dateTime = year + "-" + month + "-" + day; | ||
| 125 | + $("#startDate,#endDate").datetimepicker({ | ||
| 126 | + format : 'YYYY-MM-DD', | ||
| 127 | + locale : 'zh-cn', | ||
| 128 | + maxDate : dateTime | ||
| 129 | + }); | ||
| 130 | + $("#startDate").val(dateTime); | ||
| 131 | + $("#endDate").val(dateTime); | ||
| 132 | + | ||
| 133 | + var fage=true; | ||
| 134 | + var xlList; | ||
| 135 | + var obj = []; | ||
| 136 | + | ||
| 137 | + $.get('/report/lineList',function(result){ | ||
| 138 | + xlList=result; | ||
| 139 | + $.get('/user/companyData', function(result){ | ||
| 140 | + obj = result; | ||
| 141 | + var options = ''; | ||
| 142 | + for(var i = 0; i < obj.length; i++){ | ||
| 143 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 144 | + } | ||
| 145 | + | ||
| 146 | + if(obj.length ==0){ | ||
| 147 | + $("#gsdmDiv_turn").css('display','none'); | ||
| 148 | + }else if(obj.length ==1){ | ||
| 149 | + $("#gsdmDiv_turn").css('display','none'); | ||
| 150 | + if(obj[0].children.length == 1 || obj[0].children.length ==0){ | ||
| 151 | + fage=false; | ||
| 152 | + $('#fgsdmDiv_turn').css('display','none'); | ||
| 153 | + | ||
| 154 | + } | ||
| 155 | + } | ||
| 156 | + $('#gsdmTurn').html(options); | ||
| 157 | + updateCompany(); | ||
| 158 | + }); | ||
| 159 | + }) | ||
| 160 | + $("#gsdmTurn").on("change",updateCompany); | ||
| 161 | + function updateCompany(){ | ||
| 162 | + var company = $('#gsdmTurn').val(); | ||
| 163 | + var options = ''; | ||
| 164 | + if(fage){ | ||
| 165 | + options = '<option value="">请选择</option>'; | ||
| 166 | + } | ||
| 167 | + for(var i = 0; i < obj.length; i++){ | ||
| 168 | + if(obj[i].companyCode == company){ | ||
| 169 | + var children = obj[i].children; | ||
| 170 | + for(var j = 0; j < children.length; j++){ | ||
| 171 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 172 | + } | ||
| 173 | + } | ||
| 174 | + } | ||
| 175 | + $('#fgsdmTurn').html(options); | ||
| 176 | + } | ||
| 177 | + | ||
| 178 | + var tempData = {}; | ||
| 179 | + $.get('/report/lineList',function(xlList){ | ||
| 180 | + var data = []; | ||
| 181 | + data.push({id: " ", text: "全部线路"}); | ||
| 182 | + $.get('/user/companyData', function(result){ | ||
| 183 | + for(var i = 0; i < result.length; i++){ | ||
| 184 | + var companyCode = result[i].companyCode; | ||
| 185 | + var children = result[i].children; | ||
| 186 | + for(var j = 0; j < children.length; j++){ | ||
| 187 | + var code = children[j].code; | ||
| 188 | + for(var k=0;k < xlList.length;k++ ){ | ||
| 189 | + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){ | ||
| 190 | + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]}); | ||
| 191 | + tempData[xlList[k]["xlbm"]] = companyCode+":"+code; | ||
| 192 | + } | ||
| 193 | + } | ||
| 194 | + } | ||
| 195 | + } | ||
| 196 | + initPinYinSelect2('#line',data,''); | ||
| 197 | + | ||
| 198 | + }); | ||
| 199 | + }); | ||
| 200 | + | ||
| 201 | + $("#line").on("change", function(){ | ||
| 202 | + if($("#line").val() == " "){ | ||
| 203 | + $("#gsdmTurn").attr("disabled", false); | ||
| 204 | + $("#fgsdmTurn").attr("disabled", false); | ||
| 205 | + } else { | ||
| 206 | + var temp = tempData[$("#line").val()].split(":"); | ||
| 207 | + $("#gsdmTurn").val(temp[0]); | ||
| 208 | + updateCompany(); | ||
| 209 | + $("#fgsdmTurn").val(temp[1]); | ||
| 210 | + $("#gsdmTurn").attr("disabled", true); | ||
| 211 | + $("#fgsdmTurn").attr("disabled", true); | ||
| 212 | + } | ||
| 213 | + }); | ||
| 214 | + | ||
| 215 | + var line; | ||
| 216 | + var startDate; | ||
| 217 | + var endDate; | ||
| 218 | + var gsdmTurn; | ||
| 219 | + var fgsdmTurn; | ||
| 220 | + var nature; | ||
| 221 | + $("#query").on("click",function(){ | ||
| 222 | + | ||
| 223 | + line = $("#line").val(); | ||
| 224 | + startDate=$("#startDate").val(); | ||
| 225 | + endDate=$("#endDate").val(); | ||
| 226 | + gsdmTurn=$("#gsdmTurn").val(); | ||
| 227 | + fgsdmTurn=$("#fgsdmTurn").val(); | ||
| 228 | + nature=$("#nature").val(); | ||
| 229 | + if(startDate!=''&&endDate!=''){ | ||
| 230 | + var i = layer.load(2); | ||
| 231 | + $get('/calcSheet/calcTurnoutrateZgf', | ||
| 232 | + { gsdmTurn:gsdmTurn,fgsdmTurn:fgsdmTurn, line:line,startDate:startDate,endDate:endDate,nature:nature,type:'query'},function(result){ | ||
| 233 | +// var result=[]; | ||
| 234 | + // 把数据填充到模版中 | ||
| 235 | + var tbodyHtml = template('calcTurnoutrate',{list:result}); | ||
| 236 | + // 把渲染好的模版html文本追加到表格中 | ||
| 237 | + $('#tbody').html(tbodyHtml); | ||
| 238 | + layer.close(i); | ||
| 239 | + line = $("#line").val(); | ||
| 240 | + startDate = $("#startDate").val(); | ||
| 241 | + endDate = $("#endDate").val(); | ||
| 242 | + $("#sDate").text(startDate); | ||
| 243 | + $("#eDate").text(endDate); | ||
| 244 | + var temp = {}; | ||
| 245 | + var today_account = 0; | ||
| 246 | + | ||
| 247 | + temp["line"] = $("#line").text(); | ||
| 248 | + $.each(result, function(i, obj) { | ||
| 249 | + if(moment(obj.schedule_date_str).format("YYYY-MM-DD") == moment(obj.startDate).format("YYYY-MM-DD")){ | ||
| 250 | + today_account++; | ||
| 251 | + } | ||
| 252 | + obj.updateDate = moment(obj.startDate).format("YYYY-MM-DD HH:mm:ss"); | ||
| 253 | + }); | ||
| 254 | + | ||
| 255 | + }); | ||
| 256 | + | ||
| 257 | + }else{ | ||
| 258 | + layer.msg("请选择时间范围!"); | ||
| 259 | + } | ||
| 260 | + }); | ||
| 261 | + | ||
| 262 | + $("#export").on("click",function(){ | ||
| 263 | + line = $("#line").val(); | ||
| 264 | + startDate=$("#startDate").val(); | ||
| 265 | + endDate=$("#endDate").val(); | ||
| 266 | + gsdmTurn=$("#gsdmTurn").val(); | ||
| 267 | + fgsdmTurn=$("#fgsdmTurn").val(); | ||
| 268 | + nature=$("#nature").val(); | ||
| 269 | + var lineName = $('#line option:selected').text(); | ||
| 270 | + if(lineName == "全部线路") | ||
| 271 | + lineName = $('#fgsdmTurn option:selected').text(); | ||
| 272 | + if(lineName =="请选择") | ||
| 273 | + lineName = $('#gsdmTurn option:selected').text(); | ||
| 274 | + var i = layer.load(2); | ||
| 275 | + $get('/calcSheet/calcTurnoutrateZgf',{gsdmTurn:gsdmTurn,fgsdmTurn:fgsdmTurn,line:line,startDate:startDate,endDate:endDate,nature:nature,type:'export',lineName:lineName},function(result){ | ||
| 276 | + var dateTime = ""; | ||
| 277 | + if(startDate == endDate){ | ||
| 278 | + dateTime = startDate; | ||
| 279 | + } else { | ||
| 280 | + dateTime = startDate+"-"+endDate; | ||
| 281 | + } | ||
| 282 | + window.open("/downloadFile/download?fileName=" | ||
| 283 | + +dateTime+"-"+lineName+"-营运线路出车率统计表"); | ||
| 284 | + layer.close(i); | ||
| 285 | + }); | ||
| 286 | + }); | ||
| 287 | + }); | ||
| 288 | +</script> | ||
| 289 | +<script type="text/html" id="calcTurnoutrate"> | ||
| 290 | + {{each list as obj i}} | ||
| 291 | + <tr> | ||
| 292 | + <td>{{obj.rq}}</td> | ||
| 293 | + <td>{{obj.gsName}}</td> | ||
| 294 | + <td>{{obj.fgsName}}</td> | ||
| 295 | + <td>{{obj.xlName}}</td> | ||
| 296 | + <td>{{obj.jhcc}}</td> | ||
| 297 | + <td>{{obj.sjcc}}</td> | ||
| 298 | + <td>{{obj.ccl}}</td> | ||
| 299 | + <td>{{obj.jhcczgf}}</td> | ||
| 300 | + <td>{{obj.sjcczgf}}</td> | ||
| 301 | + <td>{{obj.cclzgf}}</td> | ||
| 302 | + </tr> | ||
| 303 | + {{/each}} | ||
| 304 | + {{if list.length == 0}} | ||
| 305 | + <tr> | ||
| 306 | + <td colspan="12"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 307 | + </tr> | ||
| 308 | + {{/if}} | ||
| 309 | +</script> |
src/main/resources/static/pages/mforms/turnoutrates/turnoutrate.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center;} | ||
| 15 | + | ||
| 16 | + .table > tbody + tbody { | ||
| 17 | + border-top: 1px solid; } | ||
| 18 | + .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th{ text-align: center; } | ||
| 19 | +.table-checkable tr > th:first-child, .table-checkable tr > td:first-child { | ||
| 20 | + text-align: center; | ||
| 21 | + max-width: initial; | ||
| 22 | + min-width: 40px; | ||
| 23 | + padding-left: 0; | ||
| 24 | + padding-right: 0; | ||
| 25 | +} | ||
| 26 | + | ||
| 27 | +</style> | ||
| 28 | + | ||
| 29 | +<div class="page-head"> | ||
| 30 | + <div class="page-title"> | ||
| 31 | + <h1>营运线路出车率统计表</h1> | ||
| 32 | + </div> | ||
| 33 | +</div> | ||
| 34 | + | ||
| 35 | +<div class="row"> | ||
| 36 | + <div class="col-md-12"> | ||
| 37 | + <div class="portlet light porttlet-fit bordered"> | ||
| 38 | + <div class="portlet-title"> | ||
| 39 | + <form class="form-inline" action="" method="post"> | ||
| 40 | + <div style="display: inline-block; margin-left: 20px;" id="gsdmDiv_turn"> | ||
| 41 | + <span class="item-label" style="width: 80px;">公司: </span> | ||
| 42 | + <select class="form-control" name="company" id="gsdmTurn" style="width: 140px;"></select> | ||
| 43 | + </div> | ||
| 44 | + <div style="display: inline-block; margin-left: 20px;" id="fgsdmDiv_turn"> | ||
| 45 | + <span class="item-label" style="width: 80px;">分公司: </span> | ||
| 46 | + <select class="form-control" name="subCompany" id="fgsdmTurn" style="width: 140px;"></select> | ||
| 47 | + </div> | ||
| 48 | + <div style="display: inline-block; margin-left: 15px;"> | ||
| 49 | + <span class="item-label" style="width: 80px;">线路: </span> | ||
| 50 | + <select class="form-control" name="line" id="line" style="width: 120px;"></select> | ||
| 51 | + </div> | ||
| 52 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 53 | + <span class="item-label" style="width: 80px;">开始时间: </span> | ||
| 54 | + <input class="form-control" type="text" id="startDate" style="width: 120px;"/> | ||
| 55 | + </div> | ||
| 56 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 57 | + <span class="item-label" style="width: 80px;">结束时间: </span> | ||
| 58 | + <input class="form-control" type="text" id="endDate" style="width: 120px;"/> | ||
| 59 | + </div> | ||
| 60 | + <div class="form-group"> | ||
| 61 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 62 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 63 | + </div> | ||
| 64 | + </form> | ||
| 65 | + </div> | ||
| 66 | + <div class="portlet-body"> | ||
| 67 | + <div class="table-container" style="margin-top: 20px;overflow:auto;min-width: 1000px"> | ||
| 68 | + <table class="table table-bordered table-hover table-checkable" id="forms1"> | ||
| 69 | + <thead> | ||
| 70 | + <tr> | ||
| 71 | + <th colspan="15">营运线路出车率统计表</th> | ||
| 72 | + </tr> | ||
| 73 | + <tr> | ||
| 74 | + <td rowspan="2" style=" padding-top: 20px;">日期</td> | ||
| 75 | + <td rowspan="2" style=" padding-top: 20px;">公司</td> | ||
| 76 | + <td rowspan="2" style=" padding-top: 20px;">直属公司</td> | ||
| 77 | + <td rowspan="2" style=" padding-top: 20px;">线路条数</td> | ||
| 78 | + <td colspan="3">出车数</td> | ||
| 79 | + <td rowspan="2" >出车率</td> | ||
| 80 | + <td colspan="2" >班次数</td> | ||
| 81 | + <td rowspan="2" style=" padding-top: 20px;">班次执行率</td> | ||
| 82 | + <td rowspan="2" style=" padding-top: 20px;">说明</td> | ||
| 83 | + </tr> | ||
| 84 | + <tr> | ||
| 85 | + <td>计划</td> | ||
| 86 | + <td>实际</td> | ||
| 87 | + <td>权证</td> | ||
| 88 | + <td>计划</td> | ||
| 89 | + <td>实际</td> | ||
| 90 | + </tr> | ||
| 91 | + </thead> | ||
| 92 | + <tbody id="tbody"> | ||
| 93 | + | ||
| 94 | + </tbody> | ||
| 95 | +<!-- <tr> --> | ||
| 96 | +<!-- <td colspan="1">分类汇总</td> --> | ||
| 97 | +<!-- <td><span id="total_gs"> </span></td> --> | ||
| 98 | +<!-- <td><span id="total_zhgs"> </span></td> --> | ||
| 99 | +<!-- <td><span id="total_xlts"> </span></td> --> | ||
| 100 | +<!-- <td><span id="total_jh"> </span></td> --> | ||
| 101 | +<!-- <td><span id="total_sj"> </span></td> --> | ||
| 102 | +<!-- <td><span id="total_qz"> </span></td> --> | ||
| 103 | +<!-- <td><span id="total_ccl"> </span></td> --> | ||
| 104 | +<!-- <td><span id="total_bcjh"> </span></td> --> | ||
| 105 | +<!-- <td><span id="total_bcsj"> </span></td> --> | ||
| 106 | +<!-- <td><span id="total_bczxl"> </span></td> --> | ||
| 107 | +<!-- <td><span id="total_sm"> </span></td> --> | ||
| 108 | +<!-- </tr> --> | ||
| 109 | + </table> | ||
| 110 | + </div> | ||
| 111 | + </div> | ||
| 112 | + </div> | ||
| 113 | + </div> | ||
| 114 | +</div> | ||
| 115 | + | ||
| 116 | +<script> | ||
| 117 | + $(function(){ | ||
| 118 | + // 关闭左侧栏 | ||
| 119 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 120 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 121 | + | ||
| 122 | + | ||
| 123 | + var d = new Date(); | ||
| 124 | + d.setTime(d.getTime() - 1*1000*60*60*24); | ||
| 125 | + var year = d.getFullYear(); | ||
| 126 | + var month = d.getMonth() + 1; | ||
| 127 | + var day = d.getDate(); | ||
| 128 | + if(month < 10) | ||
| 129 | + month = "0" + month; | ||
| 130 | + if(day < 10) | ||
| 131 | + day = "0" + day; | ||
| 132 | + var dateTime = year + "-" + month + "-" + day; | ||
| 133 | + $("#startDate,#endDate").datetimepicker({ | ||
| 134 | + format : 'YYYY-MM-DD', | ||
| 135 | + locale : 'zh-cn', | ||
| 136 | + maxDate : dateTime | ||
| 137 | + }); | ||
| 138 | + $("#startDate").val(dateTime); | ||
| 139 | + $("#endDate").val(dateTime); | ||
| 140 | + | ||
| 141 | + var fage=false; | ||
| 142 | + var xlList; | ||
| 143 | + var obj = []; | ||
| 144 | + | ||
| 145 | + $.get('/report/lineList',function(result){ | ||
| 146 | + xlList=result; | ||
| 147 | + $.get('/user/companyData', function(result){ | ||
| 148 | + obj = result; | ||
| 149 | + var options = ''; | ||
| 150 | + for(var i = 0; i < obj.length; i++){ | ||
| 151 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 152 | + } | ||
| 153 | + | ||
| 154 | + if(obj.length ==0){ | ||
| 155 | + $("#gsdmDiv_turn").css('display','none'); | ||
| 156 | + }else if(obj.length ==1){ | ||
| 157 | + $("#gsdmDiv_turn").css('display','none'); | ||
| 158 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 159 | + $('#fgsdmDiv_turn').css('display','none'); | ||
| 160 | + } | ||
| 161 | + $('#gsdmTurn').html(options); | ||
| 162 | + updateCompany(); | ||
| 163 | + }); | ||
| 164 | + }) | ||
| 165 | + $("#gsdmTurn").on("change",updateCompany); | ||
| 166 | + function updateCompany(){ | ||
| 167 | + var company = $('#gsdmTurn').val(); | ||
| 168 | + var options = ''; | ||
| 169 | + for(var i = 0; i < obj.length; i++){ | ||
| 170 | + if(obj[i].companyCode == company){ | ||
| 171 | + var children = obj[i].children; | ||
| 172 | + for(var j = 0; j < children.length; j++){ | ||
| 173 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 174 | + } | ||
| 175 | + } | ||
| 176 | + } | ||
| 177 | + $('#fgsdmTurn').html(options); | ||
| 178 | + } | ||
| 179 | + | ||
| 180 | + var tempData = {}; | ||
| 181 | + $.get('/report/lineList',function(xlList){ | ||
| 182 | + var data = []; | ||
| 183 | + data.push({id: " ", text: "全部线路"}); | ||
| 184 | + $.get('/user/companyData', function(result){ | ||
| 185 | + for(var i = 0; i < result.length; i++){ | ||
| 186 | + var companyCode = result[i].companyCode; | ||
| 187 | + var children = result[i].children; | ||
| 188 | + for(var j = 0; j < children.length; j++){ | ||
| 189 | + var code = children[j].code; | ||
| 190 | + for(var k=0;k < xlList.length;k++ ){ | ||
| 191 | + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){ | ||
| 192 | + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]}); | ||
| 193 | + tempData[xlList[k]["xlbm"]] = companyCode+":"+code; | ||
| 194 | + } | ||
| 195 | + } | ||
| 196 | + } | ||
| 197 | + } | ||
| 198 | + initPinYinSelect2('#line',data,''); | ||
| 199 | + | ||
| 200 | + }); | ||
| 201 | + }); | ||
| 202 | + | ||
| 203 | + $("#line").on("change", function(){ | ||
| 204 | + if($("#line").val() == " "){ | ||
| 205 | + $("#gsdmTurn").attr("disabled", false); | ||
| 206 | + $("#fgsdmTurn").attr("disabled", false); | ||
| 207 | + } else { | ||
| 208 | + var temp = tempData[$("#line").val()].split(":"); | ||
| 209 | + $("#gsdmTurn").val(temp[0]); | ||
| 210 | + updateCompany(); | ||
| 211 | + $("#fgsdmTurn").val(temp[1]); | ||
| 212 | + $("#gsdmTurn").attr("disabled", true); | ||
| 213 | + $("#fgsdmTurn").attr("disabled", true); | ||
| 214 | + } | ||
| 215 | + }); | ||
| 216 | + | ||
| 217 | + var line; | ||
| 218 | + var startDate; | ||
| 219 | + var endDate; | ||
| 220 | + var gsdmTurn; | ||
| 221 | + var fgsdmTurn; | ||
| 222 | + $("#query").on("click",function(){ | ||
| 223 | + | ||
| 224 | + line = $("#line").val(); | ||
| 225 | + startDate=$("#startDate").val(); | ||
| 226 | + endDate=$("#endDate").val(); | ||
| 227 | + gsdmTurn=$("#gsdmTurn").val(); | ||
| 228 | + fgsdmTurn=$("#fgsdmTurn").val(); | ||
| 229 | + if(startDate!=''&&endDate!=''){ | ||
| 230 | + var i = layer.load(2); | ||
| 231 | + $post('/mcy_forms/turnoutrate', | ||
| 232 | + { gsdmTurn:gsdmTurn,fgsdmTurn:fgsdmTurn, line:line,startDate:startDate,endDate:endDate,type:'query'},function(result){ | ||
| 233 | +// var result=[]; | ||
| 234 | + // 把数据填充到模版中 | ||
| 235 | + var tbodyHtml = template('turnoutrate',{list:result}); | ||
| 236 | + // 把渲染好的模版html文本追加到表格中 | ||
| 237 | + $('#tbody').html(tbodyHtml); | ||
| 238 | + layer.close(i); | ||
| 239 | + | ||
| 240 | + line = $("#line").val(); | ||
| 241 | + startDate = $("#startDate").val(); | ||
| 242 | + endDate = $("#endDate").val(); | ||
| 243 | + $("#sDate").text(startDate); | ||
| 244 | + $("#eDate").text(endDate); | ||
| 245 | + | ||
| 246 | +// var total_xlts = 0,total_jh = 0; | ||
| 247 | +// var total_sj = 0,total_qz = 0,total_ccl = 0,total_bcjh = 0; | ||
| 248 | +// var total_bcjh = 0,total_bcsj = 0,total_bczxl = 0; | ||
| 249 | +// var total_gs=0; | ||
| 250 | +// var total_zhgs=0; | ||
| 251 | +// $.each(result, function(i, obj) { | ||
| 252 | +// total_gs +=Number(obj.gsgs); | ||
| 253 | +// total_zhgs +=Number(obj.fgsgs); | ||
| 254 | +// total_xlts += Number(obj.xl); | ||
| 255 | +// total_jh = Number(obj.cchjh)+Number(total_jh); | ||
| 256 | +// total_sj = Number(obj.cchsj)+Number(total_sj); | ||
| 257 | +// total_qz = Number(obj.cchqz)+Number(total_qz); | ||
| 258 | + | ||
| 259 | +// total_ccl =(Number(total_sj)/Number(total_jh))*100; | ||
| 260 | +// total_bcjh = Number(obj.bcjh)+Number(total_bcjh); | ||
| 261 | +// total_bcsj = Number(obj.bcsj)+Number(total_bcsj); | ||
| 262 | +// total_bczxl = (Number(total_bcsj)/Number(total_bcjh))*100; | ||
| 263 | + | ||
| 264 | +// }); | ||
| 265 | +// $("#total_gs").text(total_gs); | ||
| 266 | +// $("#total_zhgs").text(total_zhgs); | ||
| 267 | +// $("#total_xlts").text(total_xlts); | ||
| 268 | +// $("#total_jh").text(total_jh); | ||
| 269 | +// $("#total_sj").text(total_sj); | ||
| 270 | +// $("#total_qz").text(total_qz); | ||
| 271 | +// $("#total_ccl").text(total_ccl.toFixed(2)+'%'); | ||
| 272 | +// $("#total_bcjh").text(total_bcjh); | ||
| 273 | +// $("#total_bcsj").text(total_bcsj); | ||
| 274 | +// $("#total_bczxl").text(total_bczxl.toFixed(2)+'%'); | ||
| 275 | + | ||
| 276 | + var temp = {}; | ||
| 277 | + var today_account = 0; | ||
| 278 | + | ||
| 279 | + temp["line"] = $("#line").text(); | ||
| 280 | + $.each(result, function(i, obj) { | ||
| 281 | + if(moment(obj.schedule_date_str).format("YYYY-MM-DD") == moment(obj.startDate).format("YYYY-MM-DD")){ | ||
| 282 | + today_account++; | ||
| 283 | + } | ||
| 284 | + obj.updateDate = moment(obj.startDate).format("YYYY-MM-DD HH:mm:ss"); | ||
| 285 | + }); | ||
| 286 | + | ||
| 287 | + }); | ||
| 288 | + | ||
| 289 | + }else{ | ||
| 290 | + layer.msg("请选择时间范围!"); | ||
| 291 | + } | ||
| 292 | + }); | ||
| 293 | + | ||
| 294 | + $("#export").on("click",function(){ | ||
| 295 | + line = $("#line").val(); | ||
| 296 | + startDate=$("#startDate").val(); | ||
| 297 | + endDate=$("#endDate").val(); | ||
| 298 | + gsdmTurn=$("#gsdmTurn").val(); | ||
| 299 | + fgsdmTurn=$("#fgsdmTurn").val(); | ||
| 300 | + var lineName = $('#line option:selected').text(); | ||
| 301 | + if(lineName == "全部线路") | ||
| 302 | + lineName = $('#fgsdmTurn option:selected').text(); | ||
| 303 | + var i = layer.load(2); | ||
| 304 | + $post('/mcy_export/turnoutrateExport',{gsdmTurn:gsdmTurn,fgsdmTurn:fgsdmTurn,line:line,startDate:startDate,endDate:endDate,type:'export',lineName:lineName},function(result){ | ||
| 305 | + var dateTime = ""; | ||
| 306 | + if(startDate == endDate){ | ||
| 307 | + dateTime = moment(startDate).format("YYYYMMDD"); | ||
| 308 | + } else { | ||
| 309 | + dateTime = moment(startDate).format("YYYYMMDD") | ||
| 310 | + +"-"+moment(endDate).format("YYYYMMDD"); | ||
| 311 | + } | ||
| 312 | + window.open("/downloadFile/download?fileName=" | ||
| 313 | + +dateTime+"-"+lineName+"-营运线路出车率统计表"); | ||
| 314 | + layer.close(i); | ||
| 315 | + }); | ||
| 316 | + }); | ||
| 317 | + }); | ||
| 318 | +</script> | ||
| 319 | +<script type="text/html" id="turnoutrate"> | ||
| 320 | + {{each list as obj i}} | ||
| 321 | + <tr> | ||
| 322 | + {{if obj.rq == '分类汇总'}} | ||
| 323 | + <td colspan='3'>{{obj.rq}}</td> | ||
| 324 | + {{/if}} | ||
| 325 | + {{if obj.rq != '分类汇总'}} | ||
| 326 | + <td>{{obj.rq}}</td> | ||
| 327 | + <td>{{obj.gsName}}</td> | ||
| 328 | + <td>{{obj.fgsName}}</td> | ||
| 329 | + {{/if}} | ||
| 330 | + <td>{{obj.line}}</td> | ||
| 331 | + <td>{{obj.jhcc}}</td> | ||
| 332 | + <td>{{obj.sjcc}}</td> | ||
| 333 | + <td>{{obj.qz}}</td> | ||
| 334 | + <td>{{obj.ccl}}</td> | ||
| 335 | + <td>{{obj.jhbc}}</td> | ||
| 336 | + <td>{{obj.sjbc}}</td> | ||
| 337 | + <td>{{obj.zxl}}</td> | ||
| 338 | + <td>{{obj.sm}}</td> | ||
| 339 | + </tr> | ||
| 340 | + {{/each}} | ||
| 341 | + {{if list.length == 0}} | ||
| 342 | + <tr> | ||
| 343 | + <td colspan="12"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 344 | + </tr> | ||
| 345 | + {{/if}} | ||
| 346 | +</script> |
src/main/resources/static/pages/mforms/vehicleloadings/vehicleloading.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center; } | ||
| 15 | + | ||
| 16 | + .table > tbody + tbody { | ||
| 17 | + border-top: 1px solid; } | ||
| 18 | +</style> | ||
| 19 | + | ||
| 20 | +<div class="page-head"> | ||
| 21 | + <div class="page-title"> | ||
| 22 | + <h1>车辆加注</h1> | ||
| 23 | + </div> | ||
| 24 | +</div> | ||
| 25 | + | ||
| 26 | +<div class="row"> | ||
| 27 | + <div class="col-md-12"> | ||
| 28 | + <div class="portlet light porttlet-fit bordered"> | ||
| 29 | + <div class="portlet-title"> | ||
| 30 | + <form class="form-inline" action="" method="post"> | ||
| 31 | + <div style="display: inline-block; margin-left: 33px;" id="gsdmDiv_vehic"> | ||
| 32 | + <span class="item-label" style="width: 80px;">公司: </span> | ||
| 33 | + <select class="form-control" name="company" id="gsdmVehic" style="width: 140px;"></select> | ||
| 34 | + </div> | ||
| 35 | + <div style="display: inline-block; margin-left: 24px;" id="fgsdmDiv_vehic"> | ||
| 36 | + <span class="item-label" style="width: 80px;">分公司: </span> | ||
| 37 | + <select class="form-control" name="subCompany" id="fgsdmVehic" style="width: 140px;"></select> | ||
| 38 | + </div> | ||
| 39 | + <div style="display: inline-block;"> | ||
| 40 | + <span class="item-label" style="width: 80px;">线路: </span> | ||
| 41 | + <select class="form-control" name="line" id="line" style="width: 180px;"></select> | ||
| 42 | + </div> | ||
| 43 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 44 | + <span class="item-label" style="width: 80px;">时间: </span> | ||
| 45 | + <input class="form-control" type="text" id="date" style="width: 180px;"/> | ||
| 46 | + </div> | ||
| 47 | + <div class="form-group"> | ||
| 48 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 49 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 50 | + </div> | ||
| 51 | + </form> | ||
| 52 | + </div> | ||
| 53 | + <div class="portlet-body"> | ||
| 54 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | ||
| 55 | + <table class="table table-bordered table-hover table-checkable" id="forms" > | ||
| 56 | + <thead> | ||
| 57 | + <tr> | ||
| 58 | + <th>序号</th> | ||
| 59 | + <th>日期</th> | ||
| 60 | + <th>所属公司</th> | ||
| 61 | + <th>线路</th> | ||
| 62 | + <th>车号</th> | ||
| 63 | + <th>加注量</th> | ||
| 64 | + <th>耗油量(不含非营业性用油)</th> | ||
| 65 | + <th>尿素</th> | ||
| 66 | + <th>实际公里(含空放公里)</th> | ||
| 67 | + <th>非营业性用油</th> | ||
| 68 | + <th>计划班次</th> | ||
| 69 | + <th>实际班次</th> | ||
| 70 | + </tr> | ||
| 71 | + </thead> | ||
| 72 | + <tbody> | ||
| 73 | + | ||
| 74 | + </tbody> | ||
| 75 | + </table> | ||
| 76 | + </div> | ||
| 77 | + </div> | ||
| 78 | + </div> | ||
| 79 | + </div> | ||
| 80 | +</div> | ||
| 81 | +<script> | ||
| 82 | + $(function(){ | ||
| 83 | + // 关闭左侧栏 | ||
| 84 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 85 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 86 | + | ||
| 87 | + | ||
| 88 | + $("#date").datetimepicker({ | ||
| 89 | + format : 'YYYY-MM-DD', | ||
| 90 | + locale : 'zh-cn' | ||
| 91 | + }); | ||
| 92 | + var fage=false; | ||
| 93 | + var xlList; | ||
| 94 | + var obj = []; | ||
| 95 | + | ||
| 96 | + | ||
| 97 | + $.get('/report/lineList',function(result){ | ||
| 98 | + xlList=result; | ||
| 99 | + $.get('/user/companyData', function(result){ | ||
| 100 | + obj = result; | ||
| 101 | + var options = ''; | ||
| 102 | + for(var i = 0; i < obj.length; i++){ | ||
| 103 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 104 | + } | ||
| 105 | + | ||
| 106 | + if(obj.length ==0){ | ||
| 107 | + $("#gsdmDiv_vehic").css('display','none'); | ||
| 108 | + }else if(obj.length ==1){ | ||
| 109 | + $("#gsdmDiv_vehic").css('display','none'); | ||
| 110 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 111 | + $('#fgsdmDiv_vehic').css('display','none'); | ||
| 112 | + } | ||
| 113 | + $('#gsdmVehic').html(options); | ||
| 114 | + updateCompany(); | ||
| 115 | + }); | ||
| 116 | + }) | ||
| 117 | + $("#gsdmVehic").on("change",updateCompany); | ||
| 118 | + function updateCompany(){ | ||
| 119 | + var company = $('#gsdmVehic').val(); | ||
| 120 | + var options = ''; | ||
| 121 | + for(var i = 0; i < obj.length; i++){ | ||
| 122 | + if(obj[i].companyCode == company){ | ||
| 123 | + var children = obj[i].children; | ||
| 124 | + for(var j = 0; j < children.length; j++){ | ||
| 125 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 126 | + } | ||
| 127 | + } | ||
| 128 | + } | ||
| 129 | + $('#fgsdmVehic').html(options); | ||
| 130 | + } | ||
| 131 | + | ||
| 132 | + var tempData = {}; | ||
| 133 | + $.get('/report/lineList',function(xlList){ | ||
| 134 | + var data = []; | ||
| 135 | + $.get('/user/companyData', function(result){ | ||
| 136 | + for(var i = 0; i < result.length; i++){ | ||
| 137 | + var companyCode = result[i].companyCode; | ||
| 138 | + var children = result[i].children; | ||
| 139 | + for(var j = 0; j < children.length; j++){ | ||
| 140 | + var code = children[j].code; | ||
| 141 | + for(var k=0;k < xlList.length;k++ ){ | ||
| 142 | + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){ | ||
| 143 | + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]}); | ||
| 144 | + tempData[xlList[k]["xlbm"]] = companyCode+":"+code; | ||
| 145 | + } | ||
| 146 | + } | ||
| 147 | + } | ||
| 148 | + } | ||
| 149 | + initPinYinSelect2('#line',data,''); | ||
| 150 | + | ||
| 151 | + }); | ||
| 152 | + }); | ||
| 153 | + | ||
| 154 | + $("#line").on("change", function(){ | ||
| 155 | + if($("#line").val() == " "){ | ||
| 156 | + $("#gsdmVehic").attr("disabled", false); | ||
| 157 | + $("#fgsdmVehic").attr("disabled", false); | ||
| 158 | + } else { | ||
| 159 | + var temp = tempData[$("#line").val()].split(":"); | ||
| 160 | + $("#gsdmVehic").val(temp[0]); | ||
| 161 | + updateCompany(); | ||
| 162 | + $("#fgsdmVehic").val(temp[1]); | ||
| 163 | + $("#gsdmVehic").attr("disabled", true); | ||
| 164 | + $("#fgsdmVehic").attr("disabled", true); | ||
| 165 | + } | ||
| 166 | + }); | ||
| 167 | + | ||
| 168 | + var line ; | ||
| 169 | + var date ; | ||
| 170 | + var gsdmVehic ; | ||
| 171 | + var fgsdmVehic ; | ||
| 172 | + $("#query").on("click",function(){ | ||
| 173 | + if($("#date").val() == null || $("#date").val().trim().length == 0){ | ||
| 174 | + layer.msg("请选择时间!"); | ||
| 175 | + return; | ||
| 176 | + } | ||
| 177 | + line = $("#line").val(); | ||
| 178 | + date = $("#date").val(); | ||
| 179 | +// gsdmVehic = $("#gsdmVehic").val(); | ||
| 180 | +// fgsdmVehic = $("#fgsdmVehic").val(); | ||
| 181 | + var i = layer.load(2); | ||
| 182 | + $get('/mcy_forms/vehicleloading',{line:line,data:date},function(result){ | ||
| 183 | + // 把数据填充到模版中 | ||
| 184 | + var tbodyHtml = template('vehicleloading',{list:result}); | ||
| 185 | + // 把渲染好的模版html文本追加到表格中 | ||
| 186 | + $('#forms tbody').html(tbodyHtml); | ||
| 187 | + layer.close(i); | ||
| 188 | + }); | ||
| 189 | + }); | ||
| 190 | + | ||
| 191 | + $("#export").on("click",function(){ | ||
| 192 | + line = $("#line").val(); | ||
| 193 | + date = $("#date").val(); | ||
| 194 | + gsdmVehic = $("#gsdmVehic").val(); | ||
| 195 | + fgsdmVehic = $("#fgsdmVehic").val(); | ||
| 196 | + var lineName = $('#line option:selected').text(); | ||
| 197 | + var i = layer.load(2); | ||
| 198 | + $get('/mcy_export/vehicleloadingExport',{line:line,data:date,gsdmVehic: gsdmVehic,fgsdmVehic:fgsdmVehic,type:'export',lineName:lineName},function(result){ | ||
| 199 | + window.open("/downloadFile/download?fileName=" | ||
| 200 | + +moment(date).format("YYYYMMDD") | ||
| 201 | + +"-"+lineName+"-车辆加注"); | ||
| 202 | + layer.close(i); | ||
| 203 | + }); | ||
| 204 | + }); | ||
| 205 | + }); | ||
| 206 | +</script> | ||
| 207 | +<script type="text/html" id="vehicleloading"> | ||
| 208 | + {{each list as obj i}} | ||
| 209 | + <tr> | ||
| 210 | + <td>{{i+1}}</td> | ||
| 211 | + <td>{{obj.rQ}}</td> | ||
| 212 | + <td>{{obj.gS}}</td> | ||
| 213 | + <td>{{obj.xL}}</td> | ||
| 214 | + <td>{{obj.clzbh}}</td> | ||
| 215 | + <td>{{obj.jzl}}</td> | ||
| 216 | + <td>{{obj.hyl}}</td> | ||
| 217 | + <td>{{obj.ls}}</td> | ||
| 218 | + <td>{{obj.jhlc}}</td> | ||
| 219 | + <td>{{obj.unyyyl}}</td> | ||
| 220 | + <td>{{obj.jhbc}}</td> | ||
| 221 | + <td>{{obj.sjbc}}</td> | ||
| 222 | + </tr> | ||
| 223 | + {{/each}} | ||
| 224 | + {{if list.length == 0}} | ||
| 225 | + <tr> | ||
| 226 | + <td colspan="12"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 227 | + </tr> | ||
| 228 | + {{/if}} | ||
| 229 | +</script> |
src/main/resources/static/pages/mforms/waybilldays/waybillday.html
0 → 100644
| 1 | +<style type="text/css"> | ||
| 2 | + .table-bordered { | ||
| 3 | + border: 1px solid; } | ||
| 4 | + .table-bordered > thead > tr > th, | ||
| 5 | + .table-bordered > thead > tr > td, | ||
| 6 | + .table-bordered > tbody > tr > th, | ||
| 7 | + .table-bordered > tbody > tr > td, | ||
| 8 | + .table-bordered > tfoot > tr > th, | ||
| 9 | + .table-bordered > tfoot > tr > td { | ||
| 10 | + border: 1px solid; } | ||
| 11 | + .table-bordered > thead > tr > th, | ||
| 12 | + .table-bordered > thead > tr > td { | ||
| 13 | + border-bottom-width: 2px; | ||
| 14 | + text-align: center; } | ||
| 15 | + | ||
| 16 | + .table > tbody + tbody { | ||
| 17 | + border-top: 1px solid; } | ||
| 18 | +</style> | ||
| 19 | + | ||
| 20 | +<div class="page-head"> | ||
| 21 | + <div class="page-title"> | ||
| 22 | + <h1>行车路单日报表</h1> | ||
| 23 | + </div> | ||
| 24 | +</div> | ||
| 25 | + | ||
| 26 | +<div class="row"> | ||
| 27 | + <div class="col-md-12"> | ||
| 28 | + <div class="portlet light porttlet-fit bordered"> | ||
| 29 | + <div class="portlet-title"> | ||
| 30 | + <form class="form-inline" action="" method="post"> | ||
| 31 | + <div style="display: inline-block; margin-left: 33px;" id="gsdmDiv_waybillday"> | ||
| 32 | + <span class="item-label" style="width: 80px;">公司: </span> | ||
| 33 | + <select class="form-control" name="company" id="gsdmWaybillday" style="width: 140px;"></select> | ||
| 34 | + </div> | ||
| 35 | + <div style="display: inline-block; margin-left: 24px;" id="fgsdmDiv_waybillday"> | ||
| 36 | + <span class="item-label" style="width: 80px;">分公司: </span> | ||
| 37 | + <select class="form-control" name="subCompany" id="fgsdmWaybillday" style="width: 140px;"></select> | ||
| 38 | + </div> | ||
| 39 | + <div style="display: inline-block;"> | ||
| 40 | + <span class="item-label" style="width: 80px;">线路: </span> | ||
| 41 | + <select class="form-control" name="line" id="line" style="width: 180px;"></select> | ||
| 42 | + </div> | ||
| 43 | + <div style="display: inline-block;margin-left: 15px;"> | ||
| 44 | + <span class="item-label" style="width: 80px;">时间: </span> | ||
| 45 | + <input class="form-control" type="text" id="date" style="width: 180px;"/> | ||
| 46 | + </div> | ||
| 47 | + <div class="form-group"> | ||
| 48 | + <input class="btn btn-default" type="button" id="query" value="筛选"/> | ||
| 49 | + <input class="btn btn-default" type="button" id="export" value="导出"/> | ||
| 50 | + </div> | ||
| 51 | + </form> | ||
| 52 | + </div> | ||
| 53 | + <div class="portlet-body"> | ||
| 54 | + <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | ||
| 55 | + <table class="table table-bordered table-hover table-checkable" id="forms" > | ||
| 56 | + <thead> | ||
| 57 | + <tr> | ||
| 58 | + <th>车号</th> | ||
| 59 | + <th>空驶公里</th> | ||
| 60 | + <th>加注量</th> | ||
| 61 | + <th>机油</th> | ||
| 62 | + <th>损耗</th> | ||
| 63 | + <th>驾驶员</th> | ||
| 64 | + <th>里程</th> | ||
| 65 | + <th>油耗</th> | ||
| 66 | + </tr> | ||
| 67 | + </thead> | ||
| 68 | + <tbody> | ||
| 69 | + | ||
| 70 | + </tbody> | ||
| 71 | + </table> | ||
| 72 | + </div> | ||
| 73 | + </div> | ||
| 74 | + </div> | ||
| 75 | + </div> | ||
| 76 | +</div> | ||
| 77 | + | ||
| 78 | +<script> | ||
| 79 | + $(function(){ | ||
| 80 | + var reqCodeMap = {"0xA1": '请求恢复运营', "0xA2": '申请调档', "0xA3": '出场请求', "0xA5": '进场请求', "0xA7": '加油请求', "0x50": '车辆故障', "0x70": '路阻报告', "0x60": '事故报告', "0x11": '扣证纠纷', "0x12" : '报警'}; | ||
| 81 | + // 关闭左侧栏 | ||
| 82 | + if (!$('body').hasClass('page-sidebar-closed')) | ||
| 83 | + $('.menu-toggler.sidebar-toggler').click(); | ||
| 84 | + | ||
| 85 | + $("#date").datetimepicker({ | ||
| 86 | + format : 'YYYY-MM-DD', | ||
| 87 | + locale : 'zh-cn' | ||
| 88 | + }); | ||
| 89 | + var d = new Date(); | ||
| 90 | + var year = d.getFullYear(); | ||
| 91 | + var month = d.getMonth() + 1; | ||
| 92 | + var day = d.getDate(); | ||
| 93 | + if(month < 10) | ||
| 94 | + month = "0" + month; | ||
| 95 | + if(day < 10) | ||
| 96 | + day = "0" + day; | ||
| 97 | + $("#date").val(year + "-" + month + "-" + day); | ||
| 98 | + var fage=false; | ||
| 99 | + var obj = []; | ||
| 100 | + var xlList; | ||
| 101 | + $.get('/report/lineList',function(result){ | ||
| 102 | + xlList=result; | ||
| 103 | + $.get('/user/companyData', function(result){ | ||
| 104 | + obj = result; | ||
| 105 | + var options = ''; | ||
| 106 | + for(var i = 0; i < obj.length; i++){ | ||
| 107 | + options += '<option value="'+obj[i].companyCode+'">'+obj[i].companyName+'</option>'; | ||
| 108 | + } | ||
| 109 | + | ||
| 110 | + if(obj.length ==0){ | ||
| 111 | + $("#gsdmDiv_waybillday").css('display','none'); | ||
| 112 | + }else if(obj.length ==1){ | ||
| 113 | + $("#gsdmDiv_waybillday").css('display','none'); | ||
| 114 | + if(obj[0].children.length == 1 || obj[0].children.length ==0) | ||
| 115 | + $('#fgsdmDiv_waybillday').css('display','none'); | ||
| 116 | + } | ||
| 117 | + $('#gsdmWaybillday').html(options); | ||
| 118 | + updateCompany(); | ||
| 119 | + }); | ||
| 120 | + }) | ||
| 121 | + $("#gsdmWaybillday").on("change",updateCompany); | ||
| 122 | + function updateCompany(){ | ||
| 123 | + var company = $('#gsdmWaybillday').val(); | ||
| 124 | + var options = ''; | ||
| 125 | + for(var i = 0; i < obj.length; i++){ | ||
| 126 | + if(obj[i].companyCode == company){ | ||
| 127 | + var children = obj[i].children; | ||
| 128 | + for(var j = 0; j < children.length; j++){ | ||
| 129 | + options += '<option value="'+children[j].code+'">'+children[j].name+'</option>'; | ||
| 130 | + } | ||
| 131 | + } | ||
| 132 | + } | ||
| 133 | + $('#fgsdmWaybillday').html(options); | ||
| 134 | +// initXl(); | ||
| 135 | + } | ||
| 136 | + | ||
| 137 | + var tempData = {}; | ||
| 138 | + $.get('/report/lineList',function(xlList){ | ||
| 139 | + var data = []; | ||
| 140 | +// data.push({id: " ", text: "全部线路"}); | ||
| 141 | + $.get('/user/companyData', function(result){ | ||
| 142 | + for(var i = 0; i < result.length; i++){ | ||
| 143 | + var companyCode = result[i].companyCode; | ||
| 144 | + var children = result[i].children; | ||
| 145 | + for(var j = 0; j < children.length; j++){ | ||
| 146 | + var code = children[j].code; | ||
| 147 | + for(var k=0;k < xlList.length;k++ ){ | ||
| 148 | + if(xlList[k]["fgsbm"]==code && xlList[k]["gsbm"]==companyCode){ | ||
| 149 | + data.push({id: xlList[k]["xlbm"], text: xlList[k]["xlname"]}); | ||
| 150 | + tempData[xlList[k]["xlbm"]] = companyCode+":"+code; | ||
| 151 | + } | ||
| 152 | + } | ||
| 153 | + } | ||
| 154 | + } | ||
| 155 | + initPinYinSelect2('#line',data,''); | ||
| 156 | + | ||
| 157 | + }); | ||
| 158 | + }); | ||
| 159 | + | ||
| 160 | + $("#line").on("change", function(){ | ||
| 161 | + if($("#line").val() == " "){ | ||
| 162 | + $("#gsdmWaybillday").attr("disabled", false); | ||
| 163 | + $("#fgsdmWaybillday").attr("disabled", false); | ||
| 164 | + } else { | ||
| 165 | + var temp = tempData[$("#line").val()].split(":"); | ||
| 166 | + $("#gsdmWaybillday").val(temp[0]); | ||
| 167 | + updateCompany(); | ||
| 168 | + $("#fgsdmWaybillday").val(temp[1]); | ||
| 169 | + $("#gsdmWaybillday").attr("disabled", true); | ||
| 170 | + $("#fgsdmWaybillday").attr("disabled", true); | ||
| 171 | + } | ||
| 172 | + }); | ||
| 173 | + | ||
| 174 | + var line; | ||
| 175 | + var date; | ||
| 176 | + var gsdmWaybillday; | ||
| 177 | + var fgsdmWaybillday; | ||
| 178 | + $("#query").on("click",function(){ | ||
| 179 | + line = $("#line").val(); | ||
| 180 | + date = $("#date").val(); | ||
| 181 | + gsdmWaybillday=$("#gsdmWaybillday").val(); | ||
| 182 | + fgsdmWaybillday = $("#fgsdmWaybillday").val(); | ||
| 183 | + if(date=="" || date ==null){ | ||
| 184 | + layer.msg('请选择日期.'); | ||
| 185 | + }else{ | ||
| 186 | + var i = layer.load(2); | ||
| 187 | + $post('/mcy_forms/waybillday',{line:line,date:date,type:'query'},function(result){ | ||
| 188 | + $.each(result, function(i, obj) { | ||
| 189 | + obj.requestType = reqCodeMap[obj.requestType]; | ||
| 190 | + }); | ||
| 191 | + // 把数据填充到模版中 | ||
| 192 | + var tbodyHtml = template('waybillday',{list:result}); | ||
| 193 | + // 把渲染好的模版html文本追加到表格中 | ||
| 194 | + $('#forms tbody').html(tbodyHtml); | ||
| 195 | + layer.close(i); | ||
| 196 | + }); | ||
| 197 | + } | ||
| 198 | + }); | ||
| 199 | + | ||
| 200 | + $("#export").on("click",function(){ | ||
| 201 | + line = $("#line").val(); | ||
| 202 | + date = $("#date").val(); | ||
| 203 | + lineName = $('#line option:selected').text(); | ||
| 204 | + gsdmWaybillday=$("#gsdmWaybillday").val(); | ||
| 205 | + fgsdmWaybillday = $("#fgsdmWaybillday").val(); | ||
| 206 | + $post('/mcy_export/waybilldayExport',{gsdmWaybillday:gsdmWaybillday,fgsdmWaybillday:fgsdmWaybillday,line:line,date:date,lineName:lineName,type:'export'},function(result){ | ||
| 207 | + window.open("/downloadFile/download?fileName=" | ||
| 208 | + +moment(date).format("YYYYMMDD") | ||
| 209 | + +"-"+lineName+"-行车路单日报表"); | ||
| 210 | + }); | ||
| 211 | + }); | ||
| 212 | + }); | ||
| 213 | +</script> | ||
| 214 | +<script type="text/html" id="waybillday"> | ||
| 215 | + {{each list as obj i}} | ||
| 216 | + <tr> | ||
| 217 | + <td>{{obj.nbbm}}</td> | ||
| 218 | + <td>{{obj.jzl1}} </td> | ||
| 219 | + <td>{{obj.jzl}}</td> | ||
| 220 | + <td> </td> | ||
| 221 | + <td>{{obj.sh}}</td> | ||
| 222 | + <td>{{obj.jName}}</td> | ||
| 223 | + <td>{{obj.zlc}}</td> | ||
| 224 | + <td>{{obj.yh}}</td> | ||
| 225 | + </tr> | ||
| 226 | + {{/each}} | ||
| 227 | + {{if list.length == 0}} | ||
| 228 | + <tr> | ||
| 229 | + <td colspan="8"><h6 class="muted">没有找到相关数据</h6></td> | ||
| 230 | + </tr> | ||
| 231 | + {{/if}} | ||
| 232 | +</script> | ||
| 0 | \ No newline at end of file | 233 | \ No newline at end of file |