Commit a3a4a145 authored by 高铭波's avatar 高铭波

perf(order):勘查材料信息优化调整

parent 66c3bdd7
......@@ -41,7 +41,7 @@
"dependencies": {
"source-map": {
"version": "0.5.7",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.5.7.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.5.7.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.5.7.tgz",
"integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w="
}
}
......@@ -58,7 +58,7 @@
"dependencies": {
"source-map": {
"version": "0.5.7",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.5.7.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.5.7.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.5.7.tgz",
"integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w="
}
}
......@@ -1094,8 +1094,8 @@
},
"@dcloudio/uni-helper-json": {
"version": "1.0.13",
"resolved": "https://registry.npm.taobao.org/@dcloudio/uni-helper-json/download/@dcloudio/uni-helper-json-1.0.13.tgz",
"integrity": "sha1-ToqgYtqu+zDZiXPANaewq2KDKcc="
"resolved": "https://repo.huaweicloud.com/repository/npm/@dcloudio/uni-helper-json/-/uni-helper-json-1.0.13.tgz",
"integrity": "sha512-FO9Iu4zW4td3Tr+eiCDWuele2ehkJ4qxQ/UhpAMLjso+ZdWz6NagK5Syh6cdy1hoDqbxpNoqnLynuJXe81Ereg=="
},
"@dcloudio/uni-i18n": {
"version": "2.0.0-31820210406002",
......@@ -1567,7 +1567,7 @@
"dependencies": {
"find-up": {
"version": "4.1.0",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz?cache=0&sync_timestamp=1599054261724&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-4.1.0.tgz",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz",
"integrity": "sha1-l6/n1s3AvFkoWEt8jXsW6KmqXRk=",
"dev": true,
"requires": {
......@@ -1795,7 +1795,7 @@
},
"rimraf": {
"version": "3.0.2",
"resolved": "https://registry.npm.taobao.org/rimraf/download/rimraf-3.0.2.tgz?cache=0&sync_timestamp=1599054104695&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frimraf%2Fdownload%2Frimraf-3.0.2.tgz",
"resolved": "https://registry.npm.taobao.org/rimraf/download/rimraf-3.0.2.tgz?cache=0&sync_timestamp=1614946161596&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frimraf%2Fdownload%2Frimraf-3.0.2.tgz",
"integrity": "sha1-8aVAK6YiCtUswSgrrBrjqkn9Bho=",
"dev": true,
"requires": {
......@@ -1944,7 +1944,7 @@
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
"dev": true
},
......@@ -1978,7 +1978,7 @@
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
"dev": true
}
......@@ -2115,7 +2115,7 @@
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
"dev": true
},
......@@ -2639,7 +2639,7 @@
},
"@types/prettier": {
"version": "1.19.1",
"resolved": "https://registry.npm.taobao.org/@types/prettier/download/@types/prettier-1.19.1.tgz?cache=0&sync_timestamp=1615835297466&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fprettier%2Fdownload%2F%40types%2Fprettier-1.19.1.tgz",
"resolved": "https://registry.npm.taobao.org/@types/prettier/download/@types/prettier-1.19.1.tgz?cache=0&sync_timestamp=1615834927359&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fprettier%2Fdownload%2F%40types%2Fprettier-1.19.1.tgz",
"integrity": "sha1-M1CYSfjmeeSt0ViVn9sIZEDpVT8=",
"dev": true
},
......@@ -2684,12 +2684,12 @@
},
"@types/tapable": {
"version": "1.0.7",
"resolved": "https://registry.npm.taobao.org/@types/tapable/download/@types/tapable-1.0.7.tgz?cache=0&sync_timestamp=1617127562296&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Ftapable%2Fdownload%2F%40types%2Ftapable-1.0.7.tgz",
"resolved": "https://registry.npm.taobao.org/@types/tapable/download/@types/tapable-1.0.7.tgz",
"integrity": "sha1-VFFYNC+Uno/Tv9gTIklx7N3D+sQ="
},
"@types/uglify-js": {
"version": "3.13.0",
"resolved": "https://registry.npm.taobao.org/@types/uglify-js/download/@types/uglify-js-3.13.0.tgz",
"resolved": "https://registry.npm.taobao.org/@types/uglify-js/download/@types/uglify-js-3.13.0.tgz?cache=0&sync_timestamp=1615112070873&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fuglify-js%2Fdownload%2F%40types%2Fuglify-js-3.13.0.tgz",
"integrity": "sha1-HK2N8fsLFDxaugjeVxLqnR/3ESQ=",
"requires": {
"source-map": "^0.6.1"
......@@ -2697,7 +2697,7 @@
"dependencies": {
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM="
}
}
......@@ -2717,7 +2717,7 @@
"dependencies": {
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM="
}
}
......@@ -2752,7 +2752,7 @@
},
"@types/yargs": {
"version": "15.0.13",
"resolved": "https://registry.npm.taobao.org/@types/yargs/download/@types/yargs-15.0.13.tgz",
"resolved": "https://registry.npm.taobao.org/@types/yargs/download/@types/yargs-15.0.13.tgz?cache=0&sync_timestamp=1616697526605&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fyargs%2Fdownload%2F%40types%2Fyargs-15.0.13.tgz",
"integrity": "sha1-NPf+yLOJ1/PB/QgCaldj4HLTxtw=",
"dev": true,
"requires": {
......@@ -3023,7 +3023,6 @@
"terser-webpack-plugin": "^2.3.6",
"thread-loader": "^2.1.3",
"url-loader": "^2.2.0",
"vue-loader": "^15.9.2",
"vue-style-loader": "^4.1.2",
"webpack": "^4.0.0",
"webpack-bundle-analyzer": "^3.8.0",
......@@ -3038,6 +3037,14 @@
"integrity": "sha1-/q7SVZc9LndVW4PbwIhRpsY1IPo=",
"dev": true
},
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://repo.huaweicloud.com/repository/npm/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"requires": {
"color-convert": "^2.0.1"
}
},
"cacache": {
"version": "13.0.1",
"resolved": "https://registry.npm.taobao.org/cacache/download/cacache-13.0.1.tgz?cache=0&sync_timestamp=1616431156987&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcacache%2Fdownload%2Fcacache-13.0.1.tgz",
......@@ -3064,6 +3071,28 @@
"unique-filename": "^1.1.1"
}
},
"chalk": {
"version": "4.1.1",
"resolved": "https://repo.huaweicloud.com/repository/npm/chalk/-/chalk-4.1.1.tgz",
"integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==",
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://repo.huaweicloud.com/repository/npm/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://repo.huaweicloud.com/repository/npm/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
},
"css-loader": {
"version": "3.6.0",
"resolved": "https://registry.npm.taobao.org/css-loader/download/css-loader-3.6.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcss-loader%2Fdownload%2Fcss-loader-3.6.0.tgz",
......@@ -3096,7 +3125,7 @@
},
"execa": {
"version": "3.4.0",
"resolved": "https://registry.npm.taobao.org/execa/download/execa-3.4.0.tgz?cache=0&sync_timestamp=1606972869049&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fexeca%2Fdownload%2Fexeca-3.4.0.tgz",
"resolved": "https://registry.npm.taobao.org/execa/download/execa-3.4.0.tgz",
"integrity": "sha1-wI7UVQ72XYWPrCaf/IVyRG8364k=",
"dev": true,
"requires": {
......@@ -3125,7 +3154,7 @@
},
"find-up": {
"version": "4.1.0",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz?cache=0&sync_timestamp=1599054261724&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-4.1.0.tgz",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz",
"integrity": "sha1-l6/n1s3AvFkoWEt8jXsW6KmqXRk=",
"dev": true,
"requires": {
......@@ -3158,11 +3187,15 @@
"slash": "^2.0.0"
}
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://repo.huaweicloud.com/repository/npm/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="
},
"hash-sum": {
"version": "2.0.0",
"resolved": "https://registry.npm.taobao.org/hash-sum/download/hash-sum-2.0.0.tgz",
"integrity": "sha1-gdAbtd6OpKIUrV1urRtSNGCwtFo=",
"dev": true
"integrity": "sha1-gdAbtd6OpKIUrV1urRtSNGCwtFo="
},
"human-signals": {
"version": "1.1.1",
......@@ -3308,7 +3341,7 @@
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
"dev": true
},
......@@ -3322,6 +3355,14 @@
"minipass": "^3.1.1"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://repo.huaweicloud.com/repository/npm/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"requires": {
"has-flag": "^4.0.0"
}
},
"terser-webpack-plugin": {
"version": "2.3.8",
"resolved": "https://registry.npm.taobao.org/terser-webpack-plugin/download/terser-webpack-plugin-2.3.8.tgz?cache=0&sync_timestamp=1610196021147&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fterser-webpack-plugin%2Fdownload%2Fterser-webpack-plugin-2.3.8.tgz",
......@@ -3338,6 +3379,28 @@
"terser": "^4.6.12",
"webpack-sources": "^1.4.3"
}
},
"vue-loader": {
"version": "16.3.0",
"resolved": "https://repo.huaweicloud.com/repository/npm/vue-loader/-/vue-loader-16.3.0.tgz",
"integrity": "sha512-UDgni/tUVSdwHuQo+vuBmEgamWx88SuSlEb5fgdvHrlJSPB9qMBRF6W7bfPWSqDns425Gt1wxAUif+f+h/rWjg==",
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"loader-utils": {
"version": "2.0.0",
"resolved": "https://repo.huaweicloud.com/repository/npm/loader-utils/-/loader-utils-2.0.0.tgz",
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
}
}
}
}
},
......@@ -3384,7 +3447,7 @@
},
"execa": {
"version": "1.0.0",
"resolved": "https://registry.npm.taobao.org/execa/download/execa-1.0.0.tgz?cache=0&sync_timestamp=1606972869049&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fexeca%2Fdownload%2Fexeca-1.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/execa/download/execa-1.0.0.tgz",
"integrity": "sha1-xiNqW7TfbW8V6I5/AXeYIWdJ3dg=",
"dev": true,
"requires": {
......@@ -3471,7 +3534,7 @@
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM="
},
"yallist": {
......@@ -4132,7 +4195,7 @@
},
"aws-sign2": {
"version": "0.7.0",
"resolved": "https://registry.npm.taobao.org/aws-sign2/download/aws-sign2-0.7.0.tgz",
"resolved": "https://registry.npm.taobao.org/aws-sign2/download/aws-sign2-0.7.0.tgz?cache=0&sync_timestamp=1589682812085&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Faws-sign2%2Fdownload%2Faws-sign2-0.7.0.tgz",
"integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
},
"aws4": {
......@@ -4236,7 +4299,7 @@
},
"find-up": {
"version": "4.1.0",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz?cache=0&sync_timestamp=1599054261724&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-4.1.0.tgz",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz",
"integrity": "sha1-l6/n1s3AvFkoWEt8jXsW6KmqXRk=",
"requires": {
"locate-path": "^5.0.0",
......@@ -4770,7 +4833,7 @@
},
"safe-buffer": {
"version": "5.2.1",
"resolved": "https://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.2.1.tgz?cache=0&sync_timestamp=1599054209520&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsafe-buffer%2Fdownload%2Fsafe-buffer-5.2.1.tgz",
"resolved": "https://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.2.1.tgz?cache=0&sync_timestamp=1589682795646&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsafe-buffer%2Fdownload%2Fsafe-buffer-5.2.1.tgz",
"integrity": "sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY="
}
}
......@@ -4806,7 +4869,7 @@
},
"buffer": {
"version": "4.9.2",
"resolved": "https://registry.npm.taobao.org/buffer/download/buffer-4.9.2.tgz?cache=0&sync_timestamp=1606098159535&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbuffer%2Fdownload%2Fbuffer-4.9.2.tgz",
"resolved": "https://registry.npm.taobao.org/buffer/download/buffer-4.9.2.tgz?cache=0&sync_timestamp=1606098108344&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbuffer%2Fdownload%2Fbuffer-4.9.2.tgz",
"integrity": "sha1-Iw6tNEACmIZEhBqwJEr4xEu+Pvg=",
"requires": {
"base64-js": "^1.0.2",
......@@ -4843,7 +4906,7 @@
},
"bytes": {
"version": "3.1.0",
"resolved": "https://registry.npm.taobao.org/bytes/download/bytes-3.1.0.tgz?cache=0&sync_timestamp=1589682741197&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbytes%2Fdownload%2Fbytes-3.1.0.tgz",
"resolved": "https://registry.npm.taobao.org/bytes/download/bytes-3.1.0.tgz",
"integrity": "sha1-9s95M6Ng4FiPqf3oVlHNx/gF0fY="
},
"cacache": {
......@@ -4920,7 +4983,7 @@
},
"find-up": {
"version": "4.1.0",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz?cache=0&sync_timestamp=1599054261724&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-4.1.0.tgz",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz",
"integrity": "sha1-l6/n1s3AvFkoWEt8jXsW6KmqXRk=",
"dev": true,
"requires": {
......@@ -5229,7 +5292,7 @@
"dependencies": {
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
"dev": true
}
......@@ -5353,7 +5416,7 @@
},
"execa": {
"version": "1.0.0",
"resolved": "https://registry.npm.taobao.org/execa/download/execa-1.0.0.tgz?cache=0&sync_timestamp=1606972869049&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fexeca%2Fdownload%2Fexeca-1.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/execa/download/execa-1.0.0.tgz",
"integrity": "sha1-xiNqW7TfbW8V6I5/AXeYIWdJ3dg=",
"dev": true,
"requires": {
......@@ -5495,7 +5558,7 @@
},
"clone": {
"version": "1.0.4",
"resolved": "https://registry.npm.taobao.org/clone/download/clone-1.0.4.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fclone%2Fdownload%2Fclone-1.0.4.tgz",
"resolved": "https://registry.npm.taobao.org/clone/download/clone-1.0.4.tgz?cache=0&sync_timestamp=1589682821772&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fclone%2Fdownload%2Fclone-1.0.4.tgz",
"integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=",
"dev": true
},
......@@ -5659,7 +5722,7 @@
"dependencies": {
"bytes": {
"version": "3.0.0",
"resolved": "https://registry.npm.taobao.org/bytes/download/bytes-3.0.0.tgz?cache=0&sync_timestamp=1589682741197&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbytes%2Fdownload%2Fbytes-3.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/bytes/download/bytes-3.0.0.tgz",
"integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=",
"dev": true
},
......@@ -5749,7 +5812,7 @@
},
"cookie": {
"version": "0.4.1",
"resolved": "https://registry.npm.taobao.org/cookie/download/cookie-0.4.1.tgz?cache=0&sync_timestamp=1599054117231&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcookie%2Fdownload%2Fcookie-0.4.1.tgz",
"resolved": "https://registry.npm.taobao.org/cookie/download/cookie-0.4.1.tgz",
"integrity": "sha1-r9cT/ibr0hupXOth+agRblClN9E="
},
"cookie-signature": {
......@@ -5993,7 +6056,7 @@
"dependencies": {
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM="
}
}
......@@ -6070,7 +6133,7 @@
"dependencies": {
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
"dev": true
}
......@@ -6190,7 +6253,7 @@
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
"dev": true
}
......@@ -6620,7 +6683,7 @@
},
"ecc-jsbn": {
"version": "0.1.2",
"resolved": "https://registry.npm.taobao.org/ecc-jsbn/download/ecc-jsbn-0.1.2.tgz",
"resolved": "https://registry.npm.taobao.org/ecc-jsbn/download/ecc-jsbn-0.1.2.tgz?cache=0&sync_timestamp=1589682745945&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fecc-jsbn%2Fdownload%2Fecc-jsbn-0.1.2.tgz",
"integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
"requires": {
"jsbn": "~0.1.0",
......@@ -6889,7 +6952,7 @@
},
"escape-string-regexp": {
"version": "1.0.5",
"resolved": "https://registry.npm.taobao.org/escape-string-regexp/download/escape-string-regexp-1.0.5.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fescape-string-regexp%2Fdownload%2Fescape-string-regexp-1.0.5.tgz",
"resolved": "https://registry.npm.taobao.org/escape-string-regexp/download/escape-string-regexp-1.0.5.tgz",
"integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ="
},
"escodegen": {
......@@ -6906,7 +6969,7 @@
"dependencies": {
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
"optional": true
}
......@@ -7000,7 +7063,7 @@
},
"execa": {
"version": "5.0.0",
"resolved": "https://registry.npm.taobao.org/execa/download/execa-5.0.0.tgz?cache=0&sync_timestamp=1606972869049&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fexeca%2Fdownload%2Fexeca-5.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/execa/download/execa-5.0.0.tgz",
"integrity": "sha1-QCmwAHmYqEH70QMuX03oajweM3Y=",
"requires": {
"cross-spawn": "^7.0.3",
......@@ -7107,7 +7170,7 @@
},
"express": {
"version": "4.17.1",
"resolved": "https://registry.npm.taobao.org/express/download/express-4.17.1.tgz?cache=0&sync_timestamp=1599054274660&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fexpress%2Fdownload%2Fexpress-4.17.1.tgz",
"resolved": "https://registry.npm.taobao.org/express/download/express-4.17.1.tgz",
"integrity": "sha1-RJH8OGBc9R+GKdOcK10Cb5ikwTQ=",
"dev": true,
"requires": {
......@@ -7145,7 +7208,7 @@
"dependencies": {
"cookie": {
"version": "0.4.0",
"resolved": "https://registry.npm.taobao.org/cookie/download/cookie-0.4.0.tgz?cache=0&sync_timestamp=1599054117231&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcookie%2Fdownload%2Fcookie-0.4.0.tgz",
"resolved": "https://registry.npm.taobao.org/cookie/download/cookie-0.4.0.tgz",
"integrity": "sha1-vrQ35wIrO21JAZ0IhmUwPr6cFLo=",
"dev": true
},
......@@ -7180,7 +7243,7 @@
},
"extend": {
"version": "3.0.2",
"resolved": "https://registry.npm.taobao.org/extend/download/extend-3.0.2.tgz",
"resolved": "https://registry.npm.taobao.org/extend/download/extend-3.0.2.tgz?cache=0&sync_timestamp=1589682707348&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fextend%2Fdownload%2Fextend-3.0.2.tgz",
"integrity": "sha1-+LETa0Bx+9jrFAr/hYsQGewpFfo="
},
"extend-shallow": {
......@@ -7446,7 +7509,7 @@
},
"find-up": {
"version": "3.0.0",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-3.0.0.tgz?cache=0&sync_timestamp=1599054261724&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-3.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-3.0.0.tgz",
"integrity": "sha1-SRafHXmTQwZG2mHsxa41XCHJe3M=",
"requires": {
"locate-path": "^3.0.0"
......@@ -7699,7 +7762,7 @@
},
"getpass": {
"version": "0.1.7",
"resolved": "https://registry.npm.taobao.org/getpass/download/getpass-0.1.7.tgz",
"resolved": "https://registry.npm.taobao.org/getpass/download/getpass-0.1.7.tgz?cache=0&sync_timestamp=1589682745510&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fgetpass%2Fdownload%2Fgetpass-0.1.7.tgz",
"integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
"requires": {
"assert-plus": "^1.0.0"
......@@ -7804,7 +7867,7 @@
},
"har-validator": {
"version": "5.1.5",
"resolved": "https://registry.npm.taobao.org/har-validator/download/har-validator-5.1.5.tgz",
"resolved": "https://registry.npm.taobao.org/har-validator/download/har-validator-5.1.5.tgz?cache=0&sync_timestamp=1596082584903&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhar-validator%2Fdownload%2Fhar-validator-5.1.5.tgz",
"integrity": "sha1-HwgDufjLIMD6E4It8ezds2veHv0=",
"requires": {
"ajv": "^6.12.3",
......@@ -7929,7 +7992,7 @@
},
"safe-buffer": {
"version": "5.2.1",
"resolved": "https://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.2.1.tgz?cache=0&sync_timestamp=1599054209520&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsafe-buffer%2Fdownload%2Fsafe-buffer-5.2.1.tgz",
"resolved": "https://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.2.1.tgz?cache=0&sync_timestamp=1589682795646&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsafe-buffer%2Fdownload%2Fsafe-buffer-5.2.1.tgz",
"integrity": "sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY="
}
}
......@@ -8256,7 +8319,7 @@
},
"http-signature": {
"version": "1.2.0",
"resolved": "https://registry.npm.taobao.org/http-signature/download/http-signature-1.2.0.tgz",
"resolved": "https://registry.npm.taobao.org/http-signature/download/http-signature-1.2.0.tgz?cache=0&sync_timestamp=1600868452638&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhttp-signature%2Fdownload%2Fhttp-signature-1.2.0.tgz",
"integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
"requires": {
"assert-plus": "^1.0.0",
......@@ -8450,7 +8513,7 @@
},
"execa": {
"version": "1.0.0",
"resolved": "https://registry.npm.taobao.org/execa/download/execa-1.0.0.tgz?cache=0&sync_timestamp=1606972869049&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fexeca%2Fdownload%2Fexeca-1.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/execa/download/execa-1.0.0.tgz",
"integrity": "sha1-xiNqW7TfbW8V6I5/AXeYIWdJ3dg=",
"dev": true,
"requires": {
......@@ -8953,7 +9016,7 @@
"dependencies": {
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
"dev": true
}
......@@ -9022,7 +9085,7 @@
},
"find-up": {
"version": "4.1.0",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz?cache=0&sync_timestamp=1599054261724&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-4.1.0.tgz",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz",
"integrity": "sha1-l6/n1s3AvFkoWEt8jXsW6KmqXRk=",
"dev": true,
"requires": {
......@@ -9186,7 +9249,7 @@
"dependencies": {
"execa": {
"version": "3.4.0",
"resolved": "https://registry.npm.taobao.org/execa/download/execa-3.4.0.tgz?cache=0&sync_timestamp=1606972869049&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fexeca%2Fdownload%2Fexeca-3.4.0.tgz",
"resolved": "https://registry.npm.taobao.org/execa/download/execa-3.4.0.tgz",
"integrity": "sha1-wI7UVQ72XYWPrCaf/IVyRG8364k=",
"dev": true,
"requires": {
......@@ -10116,7 +10179,7 @@
},
"find-up": {
"version": "4.1.0",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz?cache=0&sync_timestamp=1599054261724&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-4.1.0.tgz",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz",
"integrity": "sha1-l6/n1s3AvFkoWEt8jXsW6KmqXRk=",
"dev": true,
"requires": {
......@@ -10582,7 +10645,7 @@
},
"jsbn": {
"version": "0.1.1",
"resolved": "https://registry.npm.taobao.org/jsbn/download/jsbn-0.1.1.tgz",
"resolved": "https://registry.npm.taobao.org/jsbn/download/jsbn-0.1.1.tgz?cache=0&sync_timestamp=1589682745609&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjsbn%2Fdownload%2Fjsbn-0.1.1.tgz",
"integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
},
"jsdom": {
......@@ -10672,7 +10735,7 @@
},
"json-stringify-safe": {
"version": "5.0.1",
"resolved": "https://registry.npm.taobao.org/json-stringify-safe/download/json-stringify-safe-5.0.1.tgz",
"resolved": "https://registry.npm.taobao.org/json-stringify-safe/download/json-stringify-safe-5.0.1.tgz?cache=0&sync_timestamp=1589682771374&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjson-stringify-safe%2Fdownload%2Fjson-stringify-safe-5.0.1.tgz",
"integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="
},
"json3": {
......@@ -11277,7 +11340,7 @@
"dependencies": {
"find-up": {
"version": "1.1.2",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-1.1.2.tgz?cache=0&sync_timestamp=1599054261724&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-1.1.2.tgz",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-1.1.2.tgz",
"integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=",
"dev": true,
"requires": {
......@@ -11296,7 +11359,7 @@
},
"path-type": {
"version": "1.1.0",
"resolved": "https://registry.npm.taobao.org/path-type/download/path-type-1.1.0.tgz?cache=0&sync_timestamp=1611752058913&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpath-type%2Fdownload%2Fpath-type-1.1.0.tgz",
"resolved": "https://registry.npm.taobao.org/path-type/download/path-type-1.1.0.tgz?cache=0&sync_timestamp=1611752107592&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpath-type%2Fdownload%2Fpath-type-1.1.0.tgz",
"integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=",
"dev": true,
"requires": {
......@@ -11356,7 +11419,7 @@
"dependencies": {
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM="
}
}
......@@ -11472,7 +11535,7 @@
},
"minimist": {
"version": "1.2.5",
"resolved": "https://registry.npm.taobao.org/minimist/download/minimist-1.2.5.tgz",
"resolved": "https://registry.npm.taobao.org/minimist/download/minimist-1.2.5.tgz?cache=0&sync_timestamp=1589682820731&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fminimist%2Fdownload%2Fminimist-1.2.5.tgz",
"integrity": "sha1-Z9ZgFLZqaoqqDAg8X9WN9OTpdgI="
},
"minipass": {
......@@ -11563,7 +11626,7 @@
},
"mkdirp": {
"version": "0.5.5",
"resolved": "https://registry.npm.taobao.org/mkdirp/download/mkdirp-0.5.5.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmkdirp%2Fdownload%2Fmkdirp-0.5.5.tgz",
"resolved": "https://registry.npm.taobao.org/mkdirp/download/mkdirp-0.5.5.tgz?cache=0&sync_timestamp=1589682820707&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmkdirp%2Fdownload%2Fmkdirp-0.5.5.tgz",
"integrity": "sha1-2Rzv1i0UNsoPQWIOJRKI1CAJne8=",
"requires": {
"minimist": "^1.2.5"
......@@ -11767,7 +11830,7 @@
"dependencies": {
"punycode": {
"version": "1.4.1",
"resolved": "https://registry.npm.taobao.org/punycode/download/punycode-1.4.1.tgz",
"resolved": "https://registry.npm.taobao.org/punycode/download/punycode-1.4.1.tgz?cache=0&sync_timestamp=1589682803838&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpunycode%2Fdownload%2Fpunycode-1.4.1.tgz",
"integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4="
}
}
......@@ -11996,7 +12059,7 @@
},
"oauth-sign": {
"version": "0.9.0",
"resolved": "https://registry.npm.taobao.org/oauth-sign/download/oauth-sign-0.9.0.tgz",
"resolved": "https://registry.npm.taobao.org/oauth-sign/download/oauth-sign-0.9.0.tgz?cache=0&sync_timestamp=1589682811909&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Foauth-sign%2Fdownload%2Foauth-sign-0.9.0.tgz",
"integrity": "sha1-R6ewFrqmi1+g7PPe4IqFxnmsZFU="
},
"object-assign": {
......@@ -12244,7 +12307,7 @@
},
"p-limit": {
"version": "2.3.0",
"resolved": "https://registry.npm.taobao.org/p-limit/download/p-limit-2.3.0.tgz?cache=0&sync_timestamp=1606290276843&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fp-limit%2Fdownload%2Fp-limit-2.3.0.tgz",
"resolved": "https://registry.npm.taobao.org/p-limit/download/p-limit-2.3.0.tgz",
"integrity": "sha1-PdM8ZHohT9//2DWTPrCG2g3CHbE=",
"requires": {
"p-try": "^2.0.0"
......@@ -12427,7 +12490,7 @@
},
"path-type": {
"version": "3.0.0",
"resolved": "https://registry.npm.taobao.org/path-type/download/path-type-3.0.0.tgz?cache=0&sync_timestamp=1611752058913&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpath-type%2Fdownload%2Fpath-type-3.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/path-type/download/path-type-3.0.0.tgz?cache=0&sync_timestamp=1611752107592&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpath-type%2Fdownload%2Fpath-type-3.0.0.tgz",
"integrity": "sha1-zvMdyOCho7sNEFwM2Xzzv0f0428=",
"requires": {
"pify": "^3.0.0"
......@@ -12550,7 +12613,7 @@
"dependencies": {
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM="
},
"supports-color": {
......@@ -12617,7 +12680,7 @@
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
"dev": true
}
......@@ -13202,7 +13265,7 @@
},
"punycode": {
"version": "2.1.1",
"resolved": "https://registry.npm.taobao.org/punycode/download/punycode-2.1.1.tgz",
"resolved": "https://registry.npm.taobao.org/punycode/download/punycode-2.1.1.tgz?cache=0&sync_timestamp=1589682803838&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpunycode%2Fdownload%2Fpunycode-2.1.1.tgz",
"integrity": "sha1-tYsBCsQMIsVldhbI0sLALHv0eew="
},
"q": {
......@@ -13355,7 +13418,7 @@
"dependencies": {
"find-up": {
"version": "4.1.0",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz?cache=0&sync_timestamp=1599054261724&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffind-up%2Fdownload%2Ffind-up-4.1.0.tgz",
"resolved": "https://registry.npm.taobao.org/find-up/download/find-up-4.1.0.tgz",
"integrity": "sha1-l6/n1s3AvFkoWEt8jXsW6KmqXRk=",
"dev": true,
"requires": {
......@@ -13438,7 +13501,7 @@
"dependencies": {
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
"dev": true
},
......@@ -13643,7 +13706,7 @@
},
"request": {
"version": "2.88.2",
"resolved": "https://registry.npm.taobao.org/request/download/request-2.88.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frequest%2Fdownload%2Frequest-2.88.2.tgz",
"resolved": "https://registry.npm.taobao.org/request/download/request-2.88.2.tgz?cache=0&sync_timestamp=1589682741998&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frequest%2Fdownload%2Frequest-2.88.2.tgz",
"integrity": "sha1-1zyRhzHLWofaBH4gcjQUb2ZNErM=",
"requires": {
"aws-sign2": "~0.7.0",
......@@ -13826,7 +13889,7 @@
},
"rimraf": {
"version": "2.7.1",
"resolved": "https://registry.npm.taobao.org/rimraf/download/rimraf-2.7.1.tgz?cache=0&sync_timestamp=1599054104695&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frimraf%2Fdownload%2Frimraf-2.7.1.tgz",
"resolved": "https://registry.npm.taobao.org/rimraf/download/rimraf-2.7.1.tgz?cache=0&sync_timestamp=1614946161596&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frimraf%2Fdownload%2Frimraf-2.7.1.tgz",
"integrity": "sha1-NXl/E6f9rcVmFCwp1PB8ytSD4+w=",
"requires": {
"glob": "^7.1.3"
......@@ -13862,7 +13925,7 @@
},
"safe-buffer": {
"version": "5.1.2",
"resolved": "https://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.1.2.tgz?cache=0&sync_timestamp=1599054209520&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsafe-buffer%2Fdownload%2Fsafe-buffer-5.1.2.tgz",
"resolved": "https://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.1.2.tgz?cache=0&sync_timestamp=1589682795646&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsafe-buffer%2Fdownload%2Fsafe-buffer-5.1.2.tgz",
"integrity": "sha1-mR7GnSluAxN0fVm9/St0XDX4go0="
},
"safe-regex": {
......@@ -13875,7 +13938,7 @@
},
"safer-buffer": {
"version": "2.1.2",
"resolved": "https://registry.npm.taobao.org/safer-buffer/download/safer-buffer-2.1.2.tgz",
"resolved": "https://registry.npm.taobao.org/safer-buffer/download/safer-buffer-2.1.2.tgz?cache=0&sync_timestamp=1589682784154&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsafer-buffer%2Fdownload%2Fsafer-buffer-2.1.2.tgz",
"integrity": "sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo="
},
"sane": {
......@@ -13920,7 +13983,7 @@
},
"execa": {
"version": "1.0.0",
"resolved": "https://registry.npm.taobao.org/execa/download/execa-1.0.0.tgz?cache=0&sync_timestamp=1606972869049&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fexeca%2Fdownload%2Fexeca-1.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/execa/download/execa-1.0.0.tgz",
"integrity": "sha1-xiNqW7TfbW8V6I5/AXeYIWdJ3dg=",
"dev": true,
"requires": {
......@@ -14148,7 +14211,7 @@
"dependencies": {
"source-map": {
"version": "0.4.4",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.4.4.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.4.4.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.4.4.tgz",
"integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=",
"dev": true,
"requires": {
......@@ -14418,7 +14481,7 @@
},
"signal-exit": {
"version": "3.0.3",
"resolved": "https://registry.npm.taobao.org/signal-exit/download/signal-exit-3.0.3.tgz",
"resolved": "https://registry.npm.taobao.org/signal-exit/download/signal-exit-3.0.3.tgz?cache=0&sync_timestamp=1614858571178&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsignal-exit%2Fdownload%2Fsignal-exit-3.0.3.tgz",
"integrity": "sha1-oUEMLt2PB3sItOJTyOrPyvBXRhw="
},
"simple-swizzle": {
......@@ -14495,7 +14558,7 @@
},
"source-map": {
"version": "0.5.7",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.5.7.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.5.7.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.5.7.tgz",
"integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w="
}
}
......@@ -14730,7 +14793,7 @@
},
"source-map": {
"version": "0.7.3",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.7.3.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.7.3.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.7.3.tgz",
"integrity": "sha1-UwL4FpAxc1ImVECS5kmB91F1A4M="
},
"source-map-resolve": {
......@@ -14756,7 +14819,7 @@
"dependencies": {
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM="
}
}
......@@ -14892,7 +14955,7 @@
"dependencies": {
"escape-string-regexp": {
"version": "2.0.0",
"resolved": "https://registry.npm.taobao.org/escape-string-regexp/download/escape-string-regexp-2.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fescape-string-regexp%2Fdownload%2Fescape-string-regexp-2.0.0.tgz",
"resolved": "https://registry.npm.taobao.org/escape-string-regexp/download/escape-string-regexp-2.0.0.tgz",
"integrity": "sha1-owME6Z2qMuI7L9IPUbq9B8/8o0Q=",
"dev": true
}
......@@ -15258,7 +15321,7 @@
"dependencies": {
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM="
}
}
......@@ -15281,7 +15344,7 @@
"dependencies": {
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM="
}
}
......@@ -15626,7 +15689,7 @@
},
"tweetnacl": {
"version": "0.14.5",
"resolved": "https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-0.14.5.tgz",
"resolved": "https://registry.npm.taobao.org/tweetnacl/download/tweetnacl-0.14.5.tgz?cache=0&sync_timestamp=1589682745749&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftweetnacl%2Fdownload%2Ftweetnacl-0.14.5.tgz",
"integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
},
"type-check": {
......@@ -15695,7 +15758,7 @@
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
"dev": true
}
......@@ -16188,7 +16251,7 @@
"dependencies": {
"punycode": {
"version": "1.3.2",
"resolved": "https://registry.npm.taobao.org/punycode/download/punycode-1.3.2.tgz",
"resolved": "https://registry.npm.taobao.org/punycode/download/punycode-1.3.2.tgz?cache=0&sync_timestamp=1589682803838&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpunycode%2Fdownload%2Fpunycode-1.3.2.tgz",
"integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0="
}
}
......@@ -16276,7 +16339,7 @@
},
"uuid": {
"version": "3.4.0",
"resolved": "https://registry.npm.taobao.org/uuid/download/uuid-3.4.0.tgz?cache=0&sync_timestamp=1607460081656&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fuuid%2Fdownload%2Fuuid-3.4.0.tgz",
"resolved": "https://registry.npm.taobao.org/uuid/download/uuid-3.4.0.tgz",
"integrity": "sha1-sj5DWK+oogL+ehAK8fX4g/AgB+4="
},
"v8-compile-cache": {
......@@ -17100,7 +17163,7 @@
"dependencies": {
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
"resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz?cache=0&sync_timestamp=1589682764497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.6.1.tgz",
"integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM="
}
}
......
......@@ -35,3 +35,31 @@ display:none;
width: 460rpx;
}
}
$w-main-color: #333333;
$w-type-primary: #2272FF;
$w-type-warning: #ff9900;
$w-type-success: #19be6b;
$w-type-error: #FA5A49 ;
$w-type-info: #999999;
$u-content-color: #333333;
.w-main-color {
color: $w-main-color;
}
.w-content-color {
color: $w-main-color;
}
.w-primary-color {
color: $w-type-primary;
}
.w-warning-color {
color: $w-type-warning;
}
.w-success-color {
color: $w-type-success;
}
.w-error-color {
color: $w-type-error;
}
<!-- ******************* 输入框 ******************* -->
<template>
<view>
<view class="list u-flex item-row-between">
<view class="item-title">
<image class="item-image" :src="mixingImage" v-if="item.required"></image>
<view class="u-m-r-20">{{item.fieldsTitle}}</view>
</view>
<view class="location-name" @click="toMaterialPage">
<text class="arrow-text">{{arrowText}}</text>
<u-icon name="arrow-right" color="#2979ff" size="30"></u-icon>
</view>
</view>
<!-- <view class="u-flex-1 location">{{valueTxt || '正在获取中...'}}</view> -->
</view>
<view>
<view class="list u-flex item-row-between">
<view class="item-title">
<image
class="item-image"
:src="mixingImage"
v-if="item.required"
></image>
<view class="u-m-r-20">{{ item.fieldsTitle }}</view>
<view class="u-m-r-20 w-error-color" v-show="item.subtitle">{{
item.subtitle
}}</view>
</view>
<view class="location-name" @click="toMaterialPage">
<text class="arrow-text">{{ arrowText }}</text>
<u-icon name="arrow-right" color="#2979ff" size="30"></u-icon>
</view>
</view>
<!-- <view class="u-flex-1 location">{{valueTxt || '正在获取中...'}}</view> -->
</view>
</template>
<script>
import arrMixin from './arrMixin'
export default {
name: 'XhInput', // 新建 input
components: {},
mixins: [arrMixin],
props: {
placeholder: {
type: String,
default: '请输入'
},
orderId: {
type: String,
default: '请输入'
},
},
data() {
return {
maxlength: 140,
}
},
computed: {
mixingImage() {
return process.uniEnv.qn_base_url + 'mixing.png'
},
arrowText() {
return this.dataValue && this.dataValue.length > 0 ? '已选择' : '请选择'
}
},
watch: {},
mounted() {},
methods: {
toMaterialPage(){
let self = this
uni.navigateTo({
url: 'pages/order/material?orderId='+this.orderId + '&fieldName='+ this.item.fieldsName,
// 接口调用成功的回调函数,即跳转到B页面 test.vue 后的回调函数
success: function(res) {
// 通过eventChannel向被打开页面传送数据
res.eventChannel.emit('showMaterialData', self.dataValue);
}
})
},
}
}
import arrMixin from "./arrMixin";
export default {
name: "XhInput", // 新建 input
components: {},
mixins: [arrMixin],
props: {
placeholder: {
type: String,
default: "请输入",
},
orderId: {
type: String,
default: "请输入",
},
},
data() {
return {
maxlength: 140,
};
},
computed: {
mixingImage() {
return process.uniEnv.qn_base_url + "mixing.png";
},
arrowText() {
return this.dataValue && this.dataValue.length > 0 ? "已选择" : "请选择";
},
},
watch: {},
mounted() {},
methods: {
toMaterialPage() {
let self = this;
uni.navigateTo({
url:
"pages/order/material?orderId=" +
this.orderId +
"&fieldName=" +
this.item.fieldsName,
// 接口调用成功的回调函数,即跳转到B页面 test.vue 后的回调函数
success: function (res) {
// 通过eventChannel向被打开页面传送数据
res.eventChannel.emit("showMaterialData", self.dataValue);
},
});
},
},
};
</script>
<style lang="scss" scoped>
.required {
padding-right: 10rpx;
font-size: 28rpx;
line-height: 40rpx;
color: #fa3534;
}
.item-image {
width: 24rpx;
height: 24rpx;
margin-right: 10rpx;
}
.item-row-between {
display: flex;
align-items: center;
justify-content: space-between;
.item-title {
display: flex;
font-size: 26rpx;
color: #333333;
align-items: center;
}
.location-name {
color: #2272FF;
text-align: right;
font-size: 26rpx;
display: flex;
align-items: center;
.arrow-text {
margin-right: 6rpx;
}
}
}
.required {
padding-right: 10rpx;
font-size: 28rpx;
line-height: 40rpx;
color: #fa3534;
}
.item-image {
width: 24rpx;
height: 24rpx;
margin-right: 10rpx;
}
.item-row-between {
display: flex;
align-items: center;
justify-content: space-between;
.item-title {
display: flex;
font-size: 26rpx;
color: #333333;
align-items: center;
}
.location-name {
color: #2272ff;
text-align: right;
font-size: 26rpx;
display: flex;
align-items: center;
.arrow-text {
margin-right: 6rpx;
}
}
}
.location {
background: #F4F5F7;
padding: 10rpx 20rpx;
border-radius: 12rpx;
}
.location {
background: #f4f5f7;
padding: 10rpx 20rpx;
border-radius: 12rpx;
}
</style>
<template>
<view class="pg-complete">
<complete-check :show="completeCheck.status" :list-data="completeCheck.result" :pass="pass" @close="closeCheckResult" @confirm="confirm" :confirm-button-text="completeCheck.confirmText" :cancel-button-text="completeCheck.cancelText"></complete-check>
<view class="com-content">
<u-navbar :background="{background: '#2272FF'}" back-icon-color="#fff" :title-size="32" title-color="#fff" :border-bottom="false" :title="list[tabIndex].panelName" title-bold :custom-back="backGo"></u-navbar>
<u-tabs class="order-tabs" ref="tabs" :current="current" name="panelName" :list="tabList" @change="swichMenu" bg-color="#2272FF" inactive-color="#a6c6ff" active-color="#fff" height="80" font-size="32"></u-tabs>
<view class="u-menu-wrap">
<scroll-view :scroll-top="scrollRightTop" style="height: 100%;" scroll-y scroll-with-animation class="right-box" @scroll="rightScroll" :scroll-into-view="itemId">
<u-form :model="form" ref="uForm">
<template v-for="(groupItem, groupIndex) in (list.length>0?list[tabIndex].items:[])">
<view class="class-item" :id="'item' + groupIndex" :key="groupIndex">
<view class="title">{{groupItem.name}}</view>
<view class="class-bd">
<u-form-item v-for="(item,itemIndex) in groupItem.items" :key="itemIndex" label-position="top"
:prop="item.fieldsName" :border-bottom="false" v-show="item.fieldsName != 'actualPaid' || show200" :id="`item${item.fieldsId}`">
<view class="label" v-if="item.formType!=='location'&&item.formType!=='form'&&item.formType!=='label'">
<image class="item-image" :src="mixingImage" v-if="item.required"></image>
{{item.fieldsTitle}}
</view>
<template v-if="item.fieldsType">
<xh-input v-if="item.formType==='input'" :groupIndex="groupIndex" :type="item.inputType"
:itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""' :disabled="item.disabled || false" :slotContent="item.fieldsInfo" @value-change="fieldValueChange">
</xh-input>
<xh-multi-input v-else-if="item.formType==='multiinput'"
:groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""'
@value-change="fieldValueChange">
</xh-multi-input>
<xh-radio v-else-if="item.formType==='radio'"
:groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""' :disabled="item.disabled || false" @value-change="fieldValueChange">
</xh-radio>
<xh-checkbox v-else-if="item.formType==='checkbox'"
:groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""'
@value-change="fieldValueChange">
</xh-checkbox>
<xh-select v-else-if="item.formType==='select'"
:groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""'
@value-change="fieldValueChange">
</xh-select>
<view v-else-if="item.formType==='file'">
<xh-files
:ref="`fileChild${groupIndex}${itemIndex}`"
:groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :partnerCompanyId="partnerCompanyId" :categoryId="categoryId" :value='form[item.fieldsName] || []'
@value-change="fieldValueChange">
<template v-slot>
<view class="img-list">
<u-image class="pic" width="160rpx" height="160rpx" :border-radius="10" @click="selectUpload(JSON.stringify(item), groupIndex, itemIndex)" :src="uploadImage"></u-image>
</view>
</template>
</xh-files>
</view>
<view class="pg-complete">
<complete-check
:show="completeCheck.status"
:list-data="completeCheck.result"
:pass="pass"
@close="closeCheckResult"
@confirm="confirm"
:confirm-button-text="completeCheck.confirmText"
:cancel-button-text="completeCheck.cancelText"
></complete-check>
<view class="com-content">
<u-navbar
:background="{ background: '#2272FF' }"
back-icon-color="#fff"
:title-size="32"
title-color="#fff"
:border-bottom="false"
:title="list[tabIndex].panelName"
title-bold
:custom-back="backGo"
></u-navbar>
<u-tabs
class="order-tabs"
ref="tabs"
:current="current"
name="panelName"
:list="tabList"
@change="swichMenu"
bg-color="#2272FF"
inactive-color="#a6c6ff"
active-color="#fff"
height="80"
font-size="32"
></u-tabs>
<view class="u-menu-wrap">
<scroll-view
:scroll-top="scrollRightTop"
style="height: 100%"
scroll-y
scroll-with-animation
class="right-box"
@scroll="rightScroll"
:scroll-into-view="itemId"
>
<u-form :model="form" ref="uForm">
<template
v-for="(groupItem, groupIndex) in list.length > 0
? list[tabIndex].items
: []"
>
<view
class="class-item"
:id="'item' + groupIndex"
:key="groupIndex"
>
<view class="title">{{ groupItem.name }}</view>
<view class="class-bd">
<u-form-item
v-for="(item, itemIndex) in groupItem.items"
:key="itemIndex"
label-position="top"
:prop="item.fieldsName"
:border-bottom="false"
v-show="item.fieldsName != 'actualPaid' || show200"
:id="`item${item.fieldsId}`"
>
<view
class="label"
v-if="
item.formType !== 'location' &&
item.formType !== 'form' &&
item.formType !== 'label'
"
>
<image
class="item-image"
:src="mixingImage"
v-if="item.required"
></image>
{{ item.fieldsTitle }}
</view>
<template v-if="item.fieldsType">
<xh-input
v-if="item.formType === 'input'"
:groupIndex="groupIndex"
:type="item.inputType"
:itemIndex="itemIndex"
:item="item"
:value="form[item.fieldsName] || ''"
:disabled="item.disabled || false"
:slotContent="item.fieldsInfo"
@value-change="fieldValueChange"
>
</xh-input>
<xh-multi-input
v-else-if="item.formType === 'multiinput'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
:value="form[item.fieldsName] || ''"
@value-change="fieldValueChange"
>
</xh-multi-input>
<xh-radio
v-else-if="item.formType === 'radio'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
:value="form[item.fieldsName] || ''"
:disabled="item.disabled || false"
@value-change="fieldValueChange"
>
</xh-radio>
<xh-checkbox
v-else-if="item.formType === 'checkbox'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
:value="form[item.fieldsName] || ''"
@value-change="fieldValueChange"
>
</xh-checkbox>
<xh-select
v-else-if="item.formType === 'select'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
:value="form[item.fieldsName] || ''"
@value-change="fieldValueChange"
>
</xh-select>
<view v-else-if="item.formType === 'file'">
<xh-files
:ref="`fileChild${groupIndex}${itemIndex}`"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
:partnerCompanyId="partnerCompanyId"
:categoryId="categoryId"
:value="form[item.fieldsName] || []"
@value-change="fieldValueChange"
>
<template v-slot>
<view class="img-list">
<u-image
class="pic"
width="160rpx"
height="160rpx"
:border-radius="10"
@click="
selectUpload(
JSON.stringify(item),
groupIndex,
itemIndex
)
"
:src="uploadImage"
></u-image>
</view>
</template>
</xh-files>
</view>
<xh-location v-else-if="item.formType==='location'"
:groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""'
@value-change="fieldValueChange">
</xh-location>
<xh-scan v-else-if="item.formType==='scan'"
:groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""'
@value-change="fieldValueChange">
</xh-scan>
<xh-service-measure v-else-if="item.formType==='servicemeasure'"
:groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :orderId="orderId" :categoryId="categoryId"
:orderServiceType="orderServiceType" :specificationId="form['specificationId'] || 0" :value="form[item.fieldsName]"
@value-change="fieldValueChange">
</xh-service-measure>
<xh-time v-else-if="item.formType==='time'"
:groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""'
@value-change="fieldValueChange">
</xh-time>
<xh-service-more v-else-if="item.formType==='form'"
:groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :order-id="orderId" :value='form[item.fieldsName] || ""'
@value-change="fieldValueChange">
</xh-service-more>
<xh-label v-else-if="item.formType==='label'"
:groupIndex="groupIndex" :itemIndex="itemIndex" :item="item" :value='form[item.fieldsName] || ""'>
</xh-label>
</template>
</u-form-item>
</view>
</view>
</template>
</u-form>
</scroll-view>
</view>
<view :class="['btn-wrap', 'flex-xc', {'btn-bottom': tabIndex > 0}]">
<u-button class="btn-submit" @click="saveComplete"
type="primary" shape="circle" :custom-style="customStyle" :hover-class="submitStatus ? '' : 'none'">
暂存
</u-button>
<u-button class="btn-submit" @click="nextStep" :custom-style="buttonStyle"
type="primary" shape="circle" :hover-class="submitStatus ? '' : 'none'">
{{ tabIndex === list.length - 1 ? '提交' : '下一步' }}
</u-button>
</view>
</view>
<u-toast ref="uToast" />
<take-photo v-if="takeStatus" @close="closeTake" :upload="false" :currentItem="currentItemDate"></take-photo>
<u-action-sheet :list="carmeraList" v-model="maskShow" :cancel-btn="true" @click="uploadSelect"></u-action-sheet>
<xh-location
v-else-if="item.formType === 'location'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
:value="form[item.fieldsName] || ''"
@value-change="fieldValueChange"
>
</xh-location>
<xh-scan
v-else-if="item.formType === 'scan'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
:value="form[item.fieldsName] || ''"
@value-change="fieldValueChange"
>
</xh-scan>
<xh-service-measure
v-else-if="item.formType === 'servicemeasure'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
:orderId="orderId"
:categoryId="categoryId"
:orderServiceType="orderServiceType"
:specificationId="form['specificationId'] || 0"
:value="form[item.fieldsName]"
@value-change="fieldValueChange"
>
</xh-service-measure>
<xh-time
v-else-if="item.formType === 'time'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
:value="form[item.fieldsName] || ''"
@value-change="fieldValueChange"
>
</xh-time>
<xh-service-more
v-else-if="item.formType === 'form'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
:order-id="orderId"
:value="form[item.fieldsName] || ''"
@value-change="fieldValueChange"
>
</xh-service-more>
<xh-label
v-else-if="item.formType === 'label'"
:groupIndex="groupIndex"
:itemIndex="itemIndex"
:item="item"
:value="form[item.fieldsName] || ''"
>
</xh-label>
</template>
</u-form-item>
</view>
</view>
</template>
</u-form>
</scroll-view>
</view>
<view :class="['btn-wrap', 'flex-xc', { 'btn-bottom': tabIndex > 0 }]">
<u-button
class="btn-submit"
@click="saveComplete"
type="primary"
shape="circle"
:custom-style="customStyle"
:hover-class="submitStatus ? '' : 'none'"
>
暂存
</u-button>
<u-button
class="btn-submit"
@click="nextStep"
:custom-style="buttonStyle"
type="primary"
shape="circle"
:hover-class="submitStatus ? '' : 'none'"
>
{{ tabIndex === list.length - 1 ? "提交" : "下一步" }}
</u-button>
</view>
</view>
<u-toast ref="uToast" />
<take-photo
v-if="takeStatus"
@close="closeTake"
:upload="false"
:currentItem="currentItemDate"
></take-photo>
<u-action-sheet
:list="carmeraList"
v-model="maskShow"
:cancel-btn="true"
@click="uploadSelect"
></u-action-sheet>
</view>
</template>
<script>
import XhInput from '@/components/createCom/XhInput.vue'
import XhMultiInput from '@/components/createCom/XhMultiInput.vue'
import XhRadio from '@/components/createCom/XhRadio.vue'
import XhCheckbox from '@/components/createCom/XhCheckbox.vue'
import XhSelect from '@/components/createCom/XhSelect.vue'
import XhFiles from '@/components/createCom/XhFiles.vue'
import XhLocation from '@/components/createCom/XhLocation.vue'
import XhScan from '@/components/createCom/XhScan.vue'
import XhTime from '@/components/createCom/XhTime.vue'
import XhServiceMeasure from '@/components/createCom/XhServiceMeasure.vue'
import XhServiceMore from "../../components/createCom/XhServiceMore"
import XhLabel from "../../components/createCom/XhLabel"
import takePhoto from '@/components/take/index.vue'
import baseFile from '@/components/upload/index'
import Detail from "@/components/order/detail.vue"
import XhInput from "@/components/createCom/XhInput.vue";
import XhMultiInput from "@/components/createCom/XhMultiInput.vue";
import XhRadio from "@/components/createCom/XhRadio.vue";
import XhCheckbox from "@/components/createCom/XhCheckbox.vue";
import XhSelect from "@/components/createCom/XhSelect.vue";
import XhFiles from "@/components/createCom/XhFiles.vue";
import XhLocation from "@/components/createCom/XhLocation.vue";
import XhScan from "@/components/createCom/XhScan.vue";
import XhTime from "@/components/createCom/XhTime.vue";
import XhServiceMeasure from "@/components/createCom/XhServiceMeasure.vue";
import XhServiceMore from "../../components/createCom/XhServiceMore";
import XhLabel from "../../components/createCom/XhLabel";
import takePhoto from "@/components/take/index.vue";
import baseFile from "@/components/upload/index";
import Detail from "@/components/order/detail.vue";
// 表单类型map
const formType = new Map([
['text', ['input','textarea']],
['password', ['password','input']],
['textarea', ['input','digit']],
['number', ['input','digit']],
['decimal', ['input','digit']],
['double', ['input','digit']],
['integer', ['input','digit']],
['string', ['input','text']],
['jscode', ['input','text']],
['multiinput', ['multiinput','text']],
['select', ['select','text']],
['specifications', ['select','text']],
['radio', ['radio','text']],
['checkbox', ['checkbox','text']],
['file', ['file','text']],
['photos', ['file','text']],
['location', ['location','text']],
['scan', ['scan','text']],
['machine_code', ['scan','text']],
['service_measures', ['servicemeasure','text']],
['time', ['time','text']],
['date', ['time','text']],
['form', ['form','text']],
['label', ['label','text']],
])
// 表单类型map
const formType = new Map([
["text", ["input", "textarea"]],
["password", ["password", "input"]],
["textarea", ["input", "digit"]],
["number", ["input", "digit"]],
["decimal", ["input", "digit"]],
["double", ["input", "digit"]],
["integer", ["input", "digit"]],
["string", ["input", "text"]],
["jscode", ["input", "text"]],
["multiinput", ["multiinput", "text"]],
["select", ["select", "text"]],
["specifications", ["select", "text"]],
["radio", ["radio", "text"]],
["checkbox", ["checkbox", "text"]],
["file", ["file", "text"]],
["photos", ["file", "text"]],
["location", ["location", "text"]],
["scan", ["scan", "text"]],
["machine_code", ["scan", "text"]],
["service_measures", ["servicemeasure", "text"]],
["time", ["time", "text"]],
["date", ["time", "text"]],
["form", ["form", "text"]],
["label", ["label", "text"]],
]);
/**
* modal 弹窗校验
* @description 用于校验下一步的动作
* @property {String} name 当前的订单阶段
* @property {Boolean} pass 是否通过校验
* @property {String}} type 是否有二次勘测或二次安装
* @property {submit} submit 提交或下一步
*/
const actions = (name, pass, type, submit) => {
const handerProgrom = {
perfect: {
confirmText: '去完善',
action: 'handerProgrom'
},
appointment: {
confirmText: '好的,再次预约',
action: 'appointment'
},
next: {
confirmText: '下一步',
action: 'nextAction'
},
noPerfectSubmit: {
confirmText: '去完善',
action: 'handerProgrom',
cancelText: '部分提交',
cancelAction: 'appointment'
},
submit: {
confirmText: '提交',
action: 'orderFinish',
},
confirm: {
confirmText: '确定',
action: 'nextAction',
cancelText: '取消',
cancelAction: 'closeCheckResult'
}
}
if (name === 'partnerInspectItem') { // 勘察
if (!pass) return handerProgrom.perfect
return type ? (type === '01' ? handerProgrom.next : handerProgrom.appointment) : handerProgrom.perfect
} else if (name === 'partnerInstallItem') { // 安装
let hander = ''
switch (type){
case '01': // 安装完成
hander = !pass ? handerProgrom.perfect : handerProgrom.next
break;
case '02': // 二次安装
hander = !pass ? handerProgrom.noPerfectSubmit : handerProgrom.appointment
break;
case '03': //不安装
hander = handerProgrom.confirm
break;
default:
hander = handerProgrom.perfect
break;
}
return hander
} else { // 基础信息
if (!pass) return handerProgrom.perfect
return submit ? handerProgrom.submit : handerProgrom.next
}
/**
* modal 弹窗校验
* @description 用于校验下一步的动作
* @property {String} name 当前的订单阶段
* @property {Boolean} pass 是否通过校验
* @property {String}} type 是否有二次勘测或二次安装
* @property {submit} submit 提交或下一步
*/
const actions = (name, pass, type, submit) => {
const handerProgrom = {
perfect: {
confirmText: "去完善",
action: "handerProgrom",
},
appointment: {
confirmText: "好的,再次预约",
action: "appointment",
},
next: {
confirmText: "下一步",
action: "nextAction",
},
noPerfectSubmit: {
confirmText: "去完善",
action: "handerProgrom",
cancelText: "部分提交",
cancelAction: "appointment",
},
submit: {
confirmText: "提交",
action: "orderFinish",
},
confirm: {
confirmText: "确定",
action: "nextAction",
cancelText: "取消",
cancelAction: "closeCheckResult",
},
};
if (name === "partnerInspectItem") {
// 勘察
if (!pass) return handerProgrom.perfect;
return type
? type === "01"
? handerProgrom.next
: handerProgrom.appointment
: handerProgrom.perfect;
} else if (name === "partnerInstallItem") {
// 安装
let hander = "";
switch (type) {
case "01": // 安装完成
hander = !pass ? handerProgrom.perfect : handerProgrom.next;
break;
case "02": // 二次安装
hander = !pass
? handerProgrom.noPerfectSubmit
: handerProgrom.appointment;
break;
case "03": //不安装
hander = handerProgrom.confirm;
break;
default:
hander = handerProgrom.perfect;
break;
}
return hander;
} else {
// 基础信息
if (!pass) return handerProgrom.perfect;
return submit ? handerProgrom.submit : handerProgrom.next;
}
};
export default {
data() {
return {
orderId:0,
categoryId:0,
orderServiceType:'',
inGuaranteePeriod:'',
partnerCompanyId:'',
auditResultsId: '',
list: [],
tabIndex: 0,
scrollTop: 0, //tab标题的滚动条位置
oldScrollTop: 0,
current: 0, // 预设当前项的值
menuHeight: 0, // 左边菜单的高度
menuItemHeight: 0, // 左边菜单item的高度
itemId: '', // 栏目右边scroll-view用于滚动的id
oldItemId: '',
menuItemPos: [],
arr: [],
scrollRightTop: 0, // 右边栏目scroll-view的滚动条高度
timer: null, // 定时器
form: { // 一维表单
},
submitBtnStatus: false,
completeCheck: {
status: false,
resulut: [],
confirmText: '去完善',
cancelText: '',
action: '',
cancelAction: ''
},
waitHandlerPanelIndex: 0,
waitHandlerGroupIndex: 0,
waitHandlerEleIndex: 0,
pass: false,
// 上传组件相关
carmeraList: [
{
text: '相册'
},
{
text: '拍照'
}
],
maskShow: false,
takeStatus: false,
currentItemDate:{},
photoItem: {},
maintainStep: 'partnerInspectItem',
// showTab: true,
}
export default {
data() {
return {
orderId: 0,
categoryId: 0,
orderServiceType: "",
inGuaranteePeriod: "",
partnerCompanyId: "",
auditResultsId: "",
list: [],
tabIndex: 0,
scrollTop: 0, //tab标题的滚动条位置
oldScrollTop: 0,
current: 0, // 预设当前项的值
menuHeight: 0, // 左边菜单的高度
menuItemHeight: 0, // 左边菜单item的高度
itemId: "", // 栏目右边scroll-view用于滚动的id
oldItemId: "",
menuItemPos: [],
arr: [],
scrollRightTop: 0, // 右边栏目scroll-view的滚动条高度
timer: null, // 定时器
form: {
// 一维表单
},
submitBtnStatus: false,
completeCheck: {
status: false,
resulut: [],
confirmText: "去完善",
cancelText: "",
action: "",
cancelAction: "",
},
waitHandlerPanelIndex: 0,
waitHandlerGroupIndex: 0,
waitHandlerEleIndex: 0,
pass: false,
// 上传组件相关
carmeraList: [
{
text: "相册",
},
components: {
XhInput,
XhMultiInput,
XhRadio,
XhCheckbox,
XhSelect,
XhFiles,
XhLocation,
XhScan,
XhTime,
XhServiceMeasure,
XhServiceMore,
XhLabel,
Detail,
'take-photo': takePhoto
{
text: "拍照",
},
mixins: [baseFile],
created() {
// console.log(allComponents,'allComponents')
},
onLoad(option) {
getApp().trackPage('订单完工信息页')
if (option) {
this.maintainStep = option.maintainStep
this.orderId = option.orderId
this.categoryId = option.categoryId
this.orderServiceType = decodeURIComponent(option.orderServiceType)
this.inGuaranteePeriod = option.inGuaranteePeriod
this.partnerCompanyId = option.partnerCompanyId
this.auditResultsId = option.auditResultsId
// this.showTab =item.partnerCompanyName == '挚达充电桩'
} else {
this.orderId = 11880091
this.categoryId = 1100000214
this.orderServiceType = '安装'
this.inGuaranteePeriod = 'Y'
],
maskShow: false,
takeStatus: false,
currentItemDate: {},
photoItem: {},
maintainStep: "partnerInspectItem",
// showTab: true,
};
},
components: {
XhInput,
XhMultiInput,
XhRadio,
XhCheckbox,
XhSelect,
XhFiles,
XhLocation,
XhScan,
XhTime,
XhServiceMeasure,
XhServiceMore,
XhLabel,
Detail,
"take-photo": takePhoto,
},
mixins: [baseFile],
created() {
// console.log(allComponents,'allComponents')
},
onLoad(option) {
getApp().trackPage("订单完工信息页");
if (option) {
this.maintainStep = option.maintainStep;
this.orderId = option.orderId;
this.categoryId = option.categoryId;
this.orderServiceType = decodeURIComponent(option.orderServiceType);
this.inGuaranteePeriod = option.inGuaranteePeriod;
this.partnerCompanyId = option.partnerCompanyId;
this.auditResultsId = option.auditResultsId;
// this.showTab =item.partnerCompanyName == '挚达充电桩'
} else {
this.orderId = 11880091;
this.categoryId = 1100000214;
this.orderServiceType = "安装";
this.inGuaranteePeriod = "Y";
}
this.getCompleteData();
},
updated() {
//console.log(this.form.name, 'form.name')
},
computed: {
tabList() {
// 没有数据的时候tab要有占位数据,不然有页面有晃动
return this.list.length > 0
? this.list[this.tabIndex].items
: [{ name: "" }];
},
mixingImage() {
return process.uniEnv.qn_base_url + "mixing.png";
},
uploadImage() {
return process.uniEnv.qn_base_url + "upload-file.png";
},
buttonStyle() {
return {
color: "#FFFFFF",
"background-color": "#2272FF;",
width: "300rpx",
height: "104rpx",
"font-size": "32rpx",
"font-weight": "bold",
"margin-left": "50rpx",
};
},
customStyle() {
return {
"background-color": "#D1D4D4",
width: "300rpx",
height: "104rpx",
"background-color": "transparent",
border: "1px solid #2272FF",
color: "#2272FF",
"font-weight": "bold",
"font-size": "32rpx",
};
},
show200() {
return (
this.form.paymentMethodsType && this.form.paymentMethodsType != "03"
);
},
},
methods: {
getCompleteData() {
//获取工单配置的完工项目
uni.showLoading({
title: "加载中",
});
if (this.orderId) {
this.$u.api.getCompleteConfigAndData(this.orderId).then((res) => {
if (res.code == 200) {
this.initData(res);
} else {
this.$refs.uToast.show({
title: res.message || res.data,
type: "error",
});
}
});
}
},
initData(res) {
this.form = res.data.value || {};
const list = res.data.config.sort((a, b) => a.order - b.order);
list.forEach((item, index) => {
if (this.maintainStep === item.panelFieldsName) this.tabIndex = index;
item.items.forEach((v) => {
v.items.forEach((d) => {
const type = d.fieldsType.toLocaleLowerCase();
const formMap = formType.get(type) || formType.get("text");
d.formType = formMap[0];
d.inputType = formMap[1];
if (d.fieldsName === "actualPaid" && res.data.value) {
d.required = res.data.value["paymentMethodsType"]
? res.data.value["paymentMethodsType"] != "03"
: false;
}
if (d.fieldsName === "pipe" || d.fieldsName === "pipeUseLength") {
// 申请费用计算
this.calcMoney();
}
this.getCompleteData()
},
updated() {
//console.log(this.form.name, 'form.name')
},
computed: {
tabList() { // 没有数据的时候tab要有占位数据,不然有页面有晃动
return this.list.length > 0 ? this.list[this.tabIndex].items : [{name:''}]
},
mixingImage() {
return process.uniEnv.qn_base_url + 'mixing.png'
},
uploadImage() {
return process.uniEnv.qn_base_url + 'upload-file.png'
},
buttonStyle() {
return {
'color': '#FFFFFF',
'background-color': '#2272FF;',
'width': '300rpx',
'height': '104rpx',
'font-size': '32rpx',
'font-weight': 'bold',
'margin-left': '50rpx'
}
},
customStyle() {
return {
'background-color': '#D1D4D4',
'width': '300rpx',
'height': '104rpx',
'background-color': 'transparent',
'border': '1px solid #2272FF',
'color': '#2272FF',
'font-weight': 'bold',
'font-size': '32rpx',
}
},
show200() {
return this.form.paymentMethodsType && this.form.paymentMethodsType != '03'
}
},
methods: {
getCompleteData() {//获取工单配置的完工项目
uni.showLoading({
title: '加载中'
})
if(this.orderId){
this.$u.api.getCompleteConfigAndData(this.orderId).then((res) => {
if (res.code == 200) {
this.initData(res)
} else {
this.$refs.uToast.show({
title: res.message || res.data,
type: 'error',
})
}
});
}
},
initData(res) {
this.form = res.data.value || {}
const list = res.data.config.sort((a, b) => a.order - b.order)
list.forEach((item, index) => {
if (this.maintainStep === item.panelFieldsName) this.tabIndex = index
item.items.forEach(v => {
v.items.forEach(d => {
const type = d.fieldsType.toLocaleLowerCase()
const formMap = formType.get(type) || formType.get('text')
d.formType = formMap[0]
d.inputType = formMap[1]
if (d.fieldsName === 'actualPaid' && res.data.value) {
d.required = res.data.value['paymentMethodsType'] ? res.data.value['paymentMethodsType'] != '03' : false
}
if (d.fieldsName === 'pipe' || d.fieldsName === 'pipeUseLength') { // 申请费用计算
this.calcMoney()
}
})
})
})
if (d.fieldsName === "materialList") {
d.subtitle = "(必填项)";
}
if (d.fieldsName === "craftList") {
d.subtitle = "(若有增项,则为必填项)";
}
});
});
});
this.list = list
// this.showTab = this.list.length > 1
// 异常单处理
if (this.auditResultsId) this.checkCompleteError()
uni.hideLoading()
},
checkCompleteError() { // 异常单定位错误项
let self = this
self.list.forEach((panel, panelIndex)=>{
panel.items.forEach((group, groupIndex) =>{
group.items.forEach((ele, eleIndex)=>{
if (ele.fieldsName === self.auditResultsId) {
self.waitHandlerPanelIndex = panelIndex
self.waitHandlerGroupIndex = groupIndex
self.waitHandlerEleIndex = eleIndex
self.oldItemId = `item${ele.fieldsId}`
}
})
})
})
this.locationCompleteItem(self.waitHandlerPanelIndex, self.waitHandlerGroupIndex, self.waitHandlerEleIndex)
},
this.list = list;
// this.showTab = this.list.length > 1
// 异常单处理
if (this.auditResultsId) this.checkCompleteError();
uni.hideLoading();
},
checkCompleteError() {
// 异常单定位错误项
let self = this;
self.list.forEach((panel, panelIndex) => {
panel.items.forEach((group, groupIndex) => {
group.items.forEach((ele, eleIndex) => {
if (ele.fieldsName === self.auditResultsId) {
self.waitHandlerPanelIndex = panelIndex;
self.waitHandlerGroupIndex = groupIndex;
self.waitHandlerEleIndex = eleIndex;
self.oldItemId = `item${ele.fieldsId}`;
}
});
});
});
this.locationCompleteItem(
self.waitHandlerPanelIndex,
self.waitHandlerGroupIndex,
self.waitHandlerEleIndex
);
},
handleSaveData(){
let param = {}
this.list.forEach((panel)=>{
param[panel.panelFieldsName] = []
panel.items.forEach((group) =>{
group.items.forEach((ele)=>{
if(this.form[ele.fieldsName]){
param[panel.panelFieldsName].push({
"fieldsName": ele.fieldsName,
"fieldsType": ele.fieldsType,
"fieldsValue": this.form[ele.fieldsName],
"required": ele.required,
})
}
})
})
})
return param
},
saveComplete(){// 保存完工信息
let self = this
let param = self.handleSaveData()
self.$u.api.saveCompleteData(param,self.orderId).then((res)=>{
if (res.code == 200) {
this.$refs.uToast.show({
title: '保存成功',
type: 'success',
})
} else {
this.$refs.uToast.show({
title: res.message || res.data,
type: 'error',
})
}
})
},
checkCompleteItem(){
let checkResult = []
let pass = true
let first = true
const lists = this.tabList
lists.forEach((group, groupIndex) =>{
const checkRequired = group.items.some(v => v.required)
if (checkRequired) {
let panelResult = {label: group.name, submitted: 0, required: 0, pass: true}
group.items.forEach((ele, eleIndex)=>{
if(ele.required){
panelResult.required++
let value = this.form[ele.fieldsName]
if(value&&!Array.isArray(value)){
panelResult.submitted++
}else if(value&&Array.isArray(value)&&value.length > 0){
panelResult.submitted++
}else if(first){// 记录第一个 为空 并且需要必填的项 用于定位
first = false
this.waitHandlerPanelIndex = this.tabIndex
this.waitHandlerGroupIndex = groupIndex
this.waitHandlerEleIndex = eleIndex
this.oldItemId = `item${ele.fieldsId}`
}
}
})
panelResult.pass = panelResult.required <= panelResult.submitted
pass = pass&&panelResult.pass
checkResult.push(panelResult)
}
})
console.log(checkResult)
this.completeCheck.result = checkResult
return pass
},
// 检查结果窗口取消回调
closeCheckResult(){
this.completeCheck.status = false
this[this.completeCheck.cancelAction]()
},
// 检查结果窗口 确认回调
confirm(){
this.completeCheck.status = false
this[this.completeCheck.action]()
},
// 去完善
handerProgrom(){
this.locationCompleteItem(this.waitHandlerPanelIndex,this.waitHandlerGroupIndex,this.waitHandlerEleIndex)
},
// 去预约
async appointment() {
const save = await this.nextStepSaveData()
if (save) {
uni.reLaunch({
url: '/pages/index/order?type=0'
})
}
},
// 下一步动作
async nextAction() {
const save = await this.nextStepSaveData()
if (this.tabIndex < this.list.length - 1 && save) {
this.tabIndex++
this.arr = []
this.scrollRightTop = 0
this.current = 0
//this.itemId = ''
//const itemId = this.list[this.tabIndex].items[0].items[0].fieldsId
//this.oldItemId = `item${itemId}`
this.$nextTick(async () => {
await this.swichMenu(0)
})
}
},
// 下一步弹窗处理
nextStep() {
this.pass = this.checkCompleteItem()
handleSaveData() {
let param = {};
this.list.forEach((panel) => {
param[panel.panelFieldsName] = [];
panel.items.forEach((group) => {
group.items.forEach((ele) => {
if (this.form[ele.fieldsName]) {
param[panel.panelFieldsName].push({
fieldsName: ele.fieldsName,
fieldsType: ele.fieldsType,
fieldsValue: this.form[ele.fieldsName],
required: ele.required,
});
}
});
});
});
return param;
},
saveComplete() {
// 保存完工信息
let self = this;
let param = self.handleSaveData();
self.$u.api.saveCompleteData(param, self.orderId).then((res) => {
if (res.code == 200) {
this.$refs.uToast.show({
title: "保存成功",
type: "success",
});
} else {
this.$refs.uToast.show({
title: res.message || res.data,
type: "error",
});
}
});
},
checkCompleteItem() {
let checkResult = [];
let pass = true;
let first = true;
const lists = this.tabList;
lists.forEach((group, groupIndex) => {
const checkRequired = group.items.some((v) => v.required);
if (checkRequired) {
let panelResult = {
label: group.name,
submitted: 0,
required: 0,
pass: true,
};
group.items.forEach((ele, eleIndex) => {
if (ele.required) {
panelResult.required++;
let value = this.form[ele.fieldsName];
if (value && !Array.isArray(value)) {
panelResult.submitted++;
} else if (value && Array.isArray(value) && value.length > 0) {
if(ele.fieldsName === 'materialList') {
let materRow = value.find((val)=>{
return val.useLength > 0
})
if(!this.$u.test.isEmpty(materRow)) {
panelResult.submitted++;
}
} else {
panelResult.submitted++;
}
} else if (first) {
// 记录第一个 为空 并且需要必填的项 用于定位
first = false;
this.waitHandlerPanelIndex = this.tabIndex;
this.waitHandlerGroupIndex = groupIndex;
this.waitHandlerEleIndex = eleIndex;
this.oldItemId = `item${ele.fieldsId}`;
}
}
});
panelResult.pass = panelResult.required <= panelResult.submitted;
pass = pass && panelResult.pass;
checkResult.push(panelResult);
}
});
const name = this.list[this.tabIndex].panelFieldsName
const type = name === 'partnerInspectItem' ? this.form.inspectConclusionType : this.form.constructionConclusionType
const submit = this.tabIndex === this.list.length - 1
const result = actions(name, this.pass, type, submit)
console.log(checkResult);
this.completeCheck.result = checkResult;
return pass;
},
// 检查结果窗口取消回调
closeCheckResult() {
this.completeCheck.status = false;
this[this.completeCheck.cancelAction]();
},
// 检查结果窗口 确认回调
confirm() {
this.completeCheck.status = false;
this[this.completeCheck.action]();
},
// 去完善
handerProgrom() {
this.locationCompleteItem(
this.waitHandlerPanelIndex,
this.waitHandlerGroupIndex,
this.waitHandlerEleIndex
);
},
// 去预约
async appointment() {
const save = await this.nextStepSaveData();
if (save) {
uni.reLaunch({
url: "/pages/index/order?type=0",
});
}
},
// 下一步动作
async nextAction() {
const save = await this.nextStepSaveData();
if (this.tabIndex < this.list.length - 1 && save) {
this.tabIndex++;
this.arr = [];
this.scrollRightTop = 0;
this.current = 0;
//this.itemId = ''
//const itemId = this.list[this.tabIndex].items[0].items[0].fieldsId
//this.oldItemId = `item${itemId}`
this.$nextTick(async () => {
await this.swichMenu(0);
});
}
},
// 下一步弹窗处理
nextStep() {
this.pass = this.checkCompleteItem();
this.completeCheck.status = true
this.completeCheck.confirmText = result.confirmText
this.completeCheck.action = result.action
this.completeCheck.cancelText = result.cancelText || ''
this.completeCheck.cancelAction = result.cancelAction || ''
},
// 下一步数据保存
nextStepSaveData() {
const params = {
maintainFields: this.handleSaveData(),
currentStep: this.list[this.tabIndex].panelFieldsName,
nextStep: this.list[this.tabIndex + 1].panelFieldsName,
}
uni.showLoading({
title: '加载中'
})
return this.$u.api.completeNextStep(params, this.orderId).then((res)=>{
uni.hideLoading()
if (res.code == 200) {
return Promise.resolve(true)
} else {
this.$refs.uToast.show({
title: res.message || res.data,
type: 'error',
})
return Promise.resolve(false)
}
})
},
locationCompleteItem(panelIndex,groupIndex,eleIndex){ // 页面定位到某一项
this.tabIndex = panelIndex
this.current = groupIndex;
this.itemId = ''
this.$nextTick(function() {
if (this.oldItemId)this.itemId = this.oldItemId
})
},
// 提交订单
orderFinish(){
const param = this.handleSaveData()
// 完工事件埋点
getApp().track('order_finish', {id: this.vuex_user.id, mobile: this.vuex_user.mobile, orderId: Number(this.orderId)})
this.$u.api.saveCompleteData(param,this.orderId).then((res)=>{
if (res.code == 200) {//完工项信息保存成功再次完工工单
if(this.inGuaranteePeriod === 'Y'){
this.$u.api.inOrderFinish(this.orderId).then((res)=>{
if (res.code == 200) {
this.$refs.uToast.show({
title: '提交成功',
type: 'success',
callback: () => {
uni.reLaunch({
url: '/pages/index/order?type=3'
})
}
})
} else {
this.$refs.uToast.show({
title: res.data,
type: 'error',
})
}
})
}else{
this.$u.api.outOrderFinish({customerPayType:'CASH'}, this.orderId).then((res)=>{
if (res.code == 200) {
this.$refs.uToast.show({
title: '提交成功',
type: 'success',
callback: () => {
uni.reLaunch({
url: '/pages/index/order?type=3'
})
}
})
} else {
this.$refs.uToast.show({
title: res.data,
type: 'error',
})
}
})
}
} else {
this.$refs.uToast.show({
title: res.data,
type: 'error',
})
}
})
},
calMaterialCraftListAmount(arr){
let amount = 0
if(arr){
arr.forEach(item =>{
if (Number(item.useLength) && Number(item.freeLength) && Number(item.unitAmt)) {
amount += Math.max(Number(item.useLength) - Number(item.freeLength), 0) * Number(item.unitAmt)
}
if(Number(item.extraAmt)){
amount += Number(item.extraAmt)
}
})
}
return amount
},
const name = this.list[this.tabIndex].panelFieldsName;
const type =
name === "partnerInspectItem"
? this.form.inspectConclusionType
: this.form.constructionConclusionType;
const submit = this.tabIndex === this.list.length - 1;
const result = actions(name, this.pass, type, submit);
setData(data){// 通过页面设置数据
Object.keys(data).forEach(key => {
this.$set(this.form,key,data[key])
})
// 更新预计超出金额
let amount = this.calMaterialCraftListAmount(this.form.materialList)
amount += this.calMaterialCraftListAmount(this.form.craftList)
this.$set(this.form,'overAmount',amount)
},
// 字段的值更新
fieldValueChange(data) {
const groupItem = this.list[this.tabIndex].items[data.groupIndex]
let innerItem
if (groupItem.items) {
innerItem = groupItem.items[data.itemIndex]
this.completeCheck.status = true;
this.completeCheck.confirmText = result.confirmText;
this.completeCheck.action = result.action;
this.completeCheck.cancelText = result.cancelText || "";
this.completeCheck.cancelAction = result.cancelAction || "";
},
// 下一步数据保存
nextStepSaveData() {
const params = {
maintainFields: this.handleSaveData(),
currentStep: this.list[this.tabIndex].panelFieldsName,
nextStep: this.list[this.tabIndex + 1].panelFieldsName,
};
uni.showLoading({
title: "加载中",
});
return this.$u.api.completeNextStep(params, this.orderId).then((res) => {
uni.hideLoading();
if (res.code == 200) {
return Promise.resolve(true);
} else {
this.$refs.uToast.show({
title: res.message || res.data,
type: "error",
});
return Promise.resolve(false);
}
});
},
locationCompleteItem(panelIndex, groupIndex, eleIndex) {
// 页面定位到某一项
this.tabIndex = panelIndex;
this.current = groupIndex;
this.itemId = "";
this.$nextTick(function () {
if (this.oldItemId) this.itemId = this.oldItemId;
});
},
// 提交订单
orderFinish() {
const param = this.handleSaveData();
// 完工事件埋点
getApp().track("order_finish", {
id: this.vuex_user.id,
mobile: this.vuex_user.mobile,
orderId: Number(this.orderId),
});
this.$u.api.saveCompleteData(param, this.orderId).then((res) => {
if (res.code == 200) {
//完工项信息保存成功再次完工工单
if (this.inGuaranteePeriod === "Y") {
this.$u.api.inOrderFinish(this.orderId).then((res) => {
if (res.code == 200) {
this.$refs.uToast.show({
title: "提交成功",
type: "success",
callback: () => {
uni.reLaunch({
url: "/pages/index/order?type=3",
});
},
});
} else {
this.$refs.uToast.show({
title: res.data,
type: "error",
});
}
});
} else {
this.$u.api
.outOrderFinish({ customerPayType: "CASH" }, this.orderId)
.then((res) => {
if (res.code == 200) {
this.$refs.uToast.show({
title: "提交成功",
type: "success",
callback: () => {
uni.reLaunch({
url: "/pages/index/order?type=3",
});
},
});
} else {
this.$refs.uToast.show({
title: res.data,
type: "error",
});
}
});
}
} else {
this.$refs.uToast.show({
title: res.data,
type: "error",
});
}
});
},
calMaterialCraftListAmount(arr) {
let amount = 0;
if (arr) {
arr.forEach((item) => {
if (
Number(item.useLength) &&
Number(item.freeLength) &&
Number(item.unitAmt)
) {
amount +=
Math.max(Number(item.useLength) - Number(item.freeLength), 0) *
Number(item.unitAmt);
}
if (Number(item.extraAmt)) {
amount += Number(item.extraAmt);
}
});
}
return amount;
},
if(innerItem.fieldsType === 'multiInput'){
// 多个输入框的值触发
let key = Object.keys(data.value)[0]
this.form[key] = data.value[key]
}else{
this.$set(this.form,innerItem.fieldsName,data.value)
}
setData(data) {
// 通过页面设置数据
Object.keys(data).forEach((key) => {
this.$set(this.form, key, data[key]);
});
// 更新预计超出金额
let amount = this.calMaterialCraftListAmount(this.form.materialList);
amount += this.calMaterialCraftListAmount(this.form.craftList);
this.$set(this.form, "overAmount", amount);
},
// 字段的值更新
fieldValueChange(data) {
const groupItem = this.list[this.tabIndex].items[data.groupIndex];
let innerItem;
if (groupItem.items) {
innerItem = groupItem.items[data.itemIndex];
}
if (innerItem.fieldsName === 'paymentMethodsType') { // 选不需要收款的时候,收款金额修改为非必选
const row = groupItem.items.find(v => v.fieldsName === 'actualPaid')
row.required = data.value != '03'
}
if (innerItem.fieldsType === "multiInput") {
// 多个输入框的值触发
let key = Object.keys(data.value)[0];
this.form[key] = data.value[key];
} else {
this.$set(this.form, innerItem.fieldsName, data.value);
}
if (innerItem.fieldsName === 'pipe' || innerItem.fieldsName === 'pipeUseLength') { // 申请费用计算
this.calcMoney()
}
if (innerItem.fieldsName === "paymentMethodsType") {
// 选不需要收款的时候,收款金额修改为非必选
const row = groupItem.items.find((v) => v.fieldsName === "actualPaid");
row.required = data.value != "03";
}
},
// 申请费用计算
calcMoney() {
const price = parseInt(this.form.pipe) || 0
const pipeUseLength = parseFloat(this.form.pipeUseLength) || 0
if (price && pipeUseLength) {
const money = (price * pipeUseLength).toFixed(2)
this.$set(this.form, 'pipeAmount', money)
} else {
this.$set(this.form, 'pipeAmount', 0)
}
},
// ------------------------- 以下方法为上传组件相关 -------------------------
// 弹出上传选项
selectUpload(item, groupIndex, itemIndex){
const imgList = this.$refs[`fileChild${groupIndex}${itemIndex}`][0].imgList
if (imgList.length === 10) {
return this.$refs.uToast.show({
title: '图片已超出最大数量',
type: 'error',
})
}
this.photoItem = {
...JSON.parse(item),
groupIndex,
itemIndex,
}
// 弹窗展示
this.maskShow = true
},
// 区分上传动作
uploadSelect(index) {
if (index === 0) {
this.uploadFile('photo')
} else {
this.uploadFile()
}
},
// 拍照回调
async closeTake(val) {
if(val && val.length > 0){
const files = val.map(v => v.path)
const value = await this.saveToTask(files)
this.$refs[`fileChild${this.photoItem.groupIndex}${this.photoItem.itemIndex}`][0].setTmpValue(value)
}
this.takeStatus = false
},
// 上传图片
async uploadFile(type){
const self = this
if(type&&type==='photo'){
// 直接打开相册
let options = {
sourceType:['album'],//['album', 'camera']
count: 3,
sizeType: ['compressed']
}
const value = await this.chooseImg(options)
self.$refs[`fileChild${self.photoItem.groupIndex}${self.photoItem.itemIndex}`][0].setTmpValue(value)
return
}
// 使用拍照工具拍摄
this.photograph()
this.getWatermark()
},
// 获取拍照规范
photograph(){
let self = this
let param = {
"partnerCompanyId":this.partnerCompanyId || '',
"categoryId":this.categoryId,
"brandId":this.brandId || '',
"fieldName":this.photoItem.fieldsName}
this.$u.api.orderStandardItem(param).then((res)=>{
if (res.code == 200 && res.data.length>0) {
self.currentItemDate = res.data[0]
}else{
console.log("获取完工项的拍照标准异常",res.data.message)
}
self.takeStatus = true
})
},
// 获取水印
getWatermark(){
if(getApp().globalData.photo.waterSetting){
return
}
var data={partnerCompanyId:this.partnerCompanyId || ''}
this.$u.api.getWatermark(data).then((res) => {
if (res.code == 200) {
getApp().globalData.photo.waterSetting = res.data
} else {
console.log("获取水印备注异常",res.data.message)
}
});
},
// ------------------------- 以上方法为上传组件相关 -------------------------
if (
innerItem.fieldsName === "pipe" ||
innerItem.fieldsName === "pipeUseLength"
) {
// 申请费用计算
this.calcMoney();
}
},
// 申请费用计算
calcMoney() {
const price = parseInt(this.form.pipe) || 0;
const pipeUseLength = parseFloat(this.form.pipeUseLength) || 0;
if (price && pipeUseLength) {
const money = (price * pipeUseLength).toFixed(2);
this.$set(this.form, "pipeAmount", money);
} else {
this.$set(this.form, "pipeAmount", 0);
}
},
// ------------------------- 以下方法为上传组件相关 -------------------------
// 弹出上传选项
selectUpload(item, groupIndex, itemIndex) {
const imgList =
this.$refs[`fileChild${groupIndex}${itemIndex}`][0].imgList;
if (imgList.length === 10) {
return this.$refs.uToast.show({
title: "图片已超出最大数量",
type: "error",
});
}
this.photoItem = {
...JSON.parse(item),
groupIndex,
itemIndex,
};
// 弹窗展示
this.maskShow = true;
},
// 区分上传动作
uploadSelect(index) {
if (index === 0) {
this.uploadFile("photo");
} else {
this.uploadFile();
}
},
// 拍照回调
async closeTake(val) {
if (val && val.length > 0) {
const files = val.map((v) => v.path);
const value = await this.saveToTask(files);
this.$refs[
`fileChild${this.photoItem.groupIndex}${this.photoItem.itemIndex}`
][0].setTmpValue(value);
}
this.takeStatus = false;
},
// 上传图片
async uploadFile(type) {
const self = this;
if (type && type === "photo") {
// 直接打开相册
let options = {
sourceType: ["album"], //['album', 'camera']
count: 3,
sizeType: ["compressed"],
};
const value = await this.chooseImg(options);
self.$refs[
`fileChild${self.photoItem.groupIndex}${self.photoItem.itemIndex}`
][0].setTmpValue(value);
return;
}
// 使用拍照工具拍摄
this.photograph();
this.getWatermark();
},
// 获取拍照规范
photograph() {
let self = this;
let param = {
partnerCompanyId: this.partnerCompanyId || "",
categoryId: this.categoryId,
brandId: this.brandId || "",
fieldName: this.photoItem.fieldsName,
};
this.$u.api.orderStandardItem(param).then((res) => {
if (res.code == 200 && res.data.length > 0) {
self.currentItemDate = res.data[0];
} else {
console.log("获取完工项的拍照标准异常", res.data.message);
}
self.takeStatus = true;
});
},
// 获取水印
getWatermark() {
if (getApp().globalData.photo.waterSetting) {
return;
}
var data = { partnerCompanyId: this.partnerCompanyId || "" };
this.$u.api.getWatermark(data).then((res) => {
if (res.code == 200) {
getApp().globalData.photo.waterSetting = res.data;
} else {
console.log("获取水印备注异常", res.data.message);
}
});
},
// ------------------------- 以上方法为上传组件相关 -------------------------
// ------------------------- 以下方法为展示滚动切换 -------------------------
// 点击左边的栏目切换
async swichMenu(index) {
if (this.arr.length == 0) {
await this.getMenuItemTop();
}
// if (index == this.current) return;
this.scrollRightTop = this.oldScrollTop;
this.$nextTick(function() {
setTimeout(() => {
// 没有指定滚动到某一小项,就滚动到大的项
this.scrollRightTop = this.arr[index]
this.current = index
}, 100)
})
},
// 获取右边菜单每个item到顶部的距离
getMenuItemTop() {
new Promise(resolve => {
let selectorQuery = uni.createSelectorQuery();
selectorQuery.selectAll('.class-item').boundingClientRect((rects) => {
// 如果节点尚未生成,rects值为[](因为用selectAll,所以返回的是数组),循环调用执行
if (!rects.length) {
setTimeout(() => {
this.getMenuItemTop();
}, 10);
return;
}
rects.forEach((rect) => {
// 这里减去rects[0].top,是因为第一项顶部可能不是贴到导航栏(比如有个搜索框的情况)
this.arr.push(rect.top - rects[0].top);
resolve();
})
}).exec()
})
},
// 右边菜单滚动
async rightScroll(e) {
this.oldScrollTop = e.detail.scrollTop;
if (this.arr.length == 0) {
await this.getMenuItemTop();
}
if (this.timer) return;
this.timer = setTimeout(() => { // 节流
this.timer = null;
// scrollHeight为右边菜单垂直中点位置
let scrollHeight = e.detail.scrollTop
for (let i = 0; i < this.arr.length; i++) {
let height1 = this.arr[i];
let height2 = this.arr[i + 1];
// 如果不存在height2,意味着数据循环已经到了最后一个,设置左边菜单为最后一项即可
if (!height2 || scrollHeight >= height1 && scrollHeight < height2) {
this.current = i
return;
}
}
}, 10)
},
handleTouchstart() { // 防止输入光标滚动出现错乱
uni.hideKeyboard()
},
// 返回上一页更新订单状态
backGo() {
const pages = getCurrentPages()
const beforePage = pages[pages.length - 2]
if (beforePage.$vm.loadOrderDetail) beforePage.$vm.loadOrderDetail()
uni.navigateBack()
// ------------------------- 以下方法为展示滚动切换 -------------------------
// 点击左边的栏目切换
async swichMenu(index) {
if (this.arr.length == 0) {
await this.getMenuItemTop();
}
// if (index == this.current) return;
this.scrollRightTop = this.oldScrollTop;
this.$nextTick(function () {
setTimeout(() => {
// 没有指定滚动到某一小项,就滚动到大的项
this.scrollRightTop = this.arr[index];
this.current = index;
}, 100);
});
},
// 获取右边菜单每个item到顶部的距离
getMenuItemTop() {
new Promise((resolve) => {
let selectorQuery = uni.createSelectorQuery();
selectorQuery
.selectAll(".class-item")
.boundingClientRect((rects) => {
// 如果节点尚未生成,rects值为[](因为用selectAll,所以返回的是数组),循环调用执行
if (!rects.length) {
setTimeout(() => {
this.getMenuItemTop();
}, 10);
return;
}
}
}
rects.forEach((rect) => {
// 这里减去rects[0].top,是因为第一项顶部可能不是贴到导航栏(比如有个搜索框的情况)
this.arr.push(rect.top - rects[0].top);
resolve();
});
})
.exec();
});
},
// 右边菜单滚动
async rightScroll(e) {
this.oldScrollTop = e.detail.scrollTop;
if (this.arr.length == 0) {
await this.getMenuItemTop();
}
if (this.timer) return;
this.timer = setTimeout(() => {
// 节流
this.timer = null;
// scrollHeight为右边菜单垂直中点位置
let scrollHeight = e.detail.scrollTop;
for (let i = 0; i < this.arr.length; i++) {
let height1 = this.arr[i];
let height2 = this.arr[i + 1];
// 如果不存在height2,意味着数据循环已经到了最后一个,设置左边菜单为最后一项即可
if (!height2 || (scrollHeight >= height1 && scrollHeight < height2)) {
this.current = i;
return;
}
}
}, 10);
},
handleTouchstart() {
// 防止输入光标滚动出现错乱
uni.hideKeyboard();
},
// 返回上一页更新订单状态
backGo() {
const pages = getCurrentPages();
const beforePage = pages[pages.length - 2];
if (beforePage.$vm.loadOrderDetail) beforePage.$vm.loadOrderDetail();
uni.navigateBack();
},
},
};
</script>
<style lang="scss" scoped>
// ---------------------------- 表单样式begin ----------------------------
/deep/ .u-form-item {
.u-form-item__message {
padding-left: 0 !important;
}
// ---------------------------- 表单样式begin ----------------------------
/deep/ .u-form-item {
.u-form-item__message {
padding-left: 0 !important;
}
.u-form-item--left__content--required {
vertical-align: top;
}
}
.u-form-item--left__content--required {
vertical-align: top;
}
}
.class-item {
background-color: #fff;
padding: 28rpx;
border-radius: 8rpx;
.title {
font-weight: bold;
font-size: 32rpx;
line-height: 32rpx;
color: #333;
}
.label {
color: #333;
font-size: 28rpx;
line-height: 40rpx;
padding-bottom: 20rpx;
}
.label-bold {
font-size: 32rpx;
font-weight: bold;
}
.required {
padding-right: 10rpx;
font-size: 28rpx;
line-height: 40rpx;
color: #fa3534;
}
.class-item {
background-color: #fff;
padding: 28rpx;
border-radius: 8rpx;
.title {
font-weight: bold;
font-size: 32rpx;
line-height: 32rpx;
color: #333;
}
.label {
color: #333;
font-size: 28rpx;
line-height: 40rpx;
padding-bottom: 20rpx;
}
.label-bold {
font-size: 32rpx;
font-weight: bold;
}
.required {
padding-right: 10rpx;
font-size: 28rpx;
line-height: 40rpx;
color: #fa3534;
}
.item-image {
width: 24rpx;
height: 24rpx;
margin-right: 10rpx;
}
}
.item-image {
width: 24rpx;
height: 24rpx;
margin-right: 10rpx;
}
}
// ---------------------------- 表单样式end ----------------------------
// ---------------------------- 表单样式end ----------------------------
.com-content {
height: calc(100vh);
/* #ifdef H5 */
height: calc(100vh - var(--window-top));
/* #endif */
display: flex;
flex-direction: column;
background-color: #ffffff;
background-image: linear-gradient(to top, #2272ff 0%, #2272ff 100%);
background-size: 750rpx 600rpx;
background-repeat: no-repeat;
}
.com-content{
height: calc(100vh);
/* #ifdef H5 */
height: calc(100vh - var(--window-top));
/* #endif */
display: flex;
flex-direction: column;
background-color: #FFFFFF;
background-image: linear-gradient(to top, #2272ff 0%, #2272ff 100%);
background-size: 750rpx 600rpx;
background-repeat: no-repeat;
}
.u-search-box {
padding: 18rpx 30rpx;
}
.u-search-box {
padding: 18rpx 30rpx;
}
.order-tabs {
margin-top: 20rpx;
margin-bottom: 32rpx;
}
.order-tabs {
margin-top: 20rpx;
margin-bottom: 32rpx;
}
.u-menu-wrap {
// flex: 1;
height: 100%;
overflow: auto;
// overflow: hidden;
border-radius: 12rpx 12rpx 0 0;
}
.u-menu-wrap {
// flex: 1;
height: 100%;
overflow: auto;
// overflow: hidden;
border-radius: 12rpx 12rpx 0 0;
}
.detail-view {
border-radius: 12rpx;
margin: 30rpx;
}
.detail-view {
border-radius: 12rpx;
margin: 30rpx;
}
.u-search-inner {
background-color: rgb(234, 234, 234);
border-radius: 100rpx;
display: flex;
align-items: center;
padding: 10rpx 16rpx;
}
.u-search-inner {
background-color: rgb(234, 234, 234);
border-radius: 100rpx;
display: flex;
align-items: center;
padding: 10rpx 16rpx;
}
.u-search-text {
font-size: 26rpx;
color: $u-tips-color;
margin-left: 10rpx;
}
.u-search-text {
font-size: 26rpx;
color: $u-tips-color;
margin-left: 10rpx;
}
.u-tab-view {
width: 200rpx;
height: 100%;
border: 4rpx solid #F4F5F7;
overflow: auto;
}
.u-tab-view {
width: 200rpx;
height: 100%;
border: 4rpx solid #f4f5f7;
overflow: auto;
}
.u-tab-item {
height: 110rpx;
background: #fff;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
font-size: 26rpx;
color: #333333;
font-weight: 400;
line-height: 1;
}
.u-tab-item {
height: 110rpx;
background: #fff;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
font-size: 26rpx;
color: #333333;
font-weight: 400;
line-height: 1;
}
.u-tab-item-active {
position: relative;
color: #2272FF;
background: #fff;
}
.u-tab-item-active {
position: relative;
color: #2272ff;
background: #fff;
}
// .u-tab-item-active::before {
// content: "";
// position: absolute;
// border-left: 4px solid $u-type-primary;
// height: 32rpx;
// left: 0;
// top: 39rpx;
// }
// .u-tab-item-active::before {
// content: "";
// position: absolute;
// border-left: 4px solid $u-type-primary;
// height: 32rpx;
// left: 0;
// top: 39rpx;
// }
.u-tab-view {
height: 100%;
}
.u-tab-view {
height: 100%;
}
.right-box, .right-boxs {
// background-color: rgb(250, 250, 250);
background-color: #FFFFFF;
overflow: auto;
width: 100%;
}
.right-box,
.right-boxs {
// background-color: rgb(250, 250, 250);
background-color: #ffffff;
overflow: auto;
width: 100%;
}
.page-view {
padding: 16rpx;
}
.page-view {
padding: 16rpx;
}
.class-item:last-child {
max-height: 100vh;
}
.class-item:last-child {
max-height: 100vh;
}
.item-title {
font-size: 26rpx;
color: $u-main-color;
font-weight: bold;
}
.item-title {
font-size: 26rpx;
color: $u-main-color;
font-weight: bold;
}
.item-menu-name {
font-weight: normal;
font-size: 24rpx;
color: $u-main-color;
}
.item-menu-name {
font-weight: normal;
font-size: 24rpx;
color: $u-main-color;
}
.item-container {
display: flex;
flex-wrap: wrap;
}
.item-container {
display: flex;
flex-wrap: wrap;
}
.thumb-box {
width: 33.333333%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin-top: 20rpx;
}
.thumb-box {
width: 33.333333%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin-top: 20rpx;
}
.item-menu-image {
width: 120rpx;
height: 120rpx;
}
.item-menu-image {
width: 120rpx;
height: 120rpx;
}
/*提交按钮*/
.btn-bottom {
border: 2rpx solid #F4F5F7;
}
/*提交按钮*/
.btn-bottom {
border: 2rpx solid #f4f5f7;
}
.btn-wrap {
width: 100%;
padding: 20rpx 0 44rpx 0;
display: flex;
justify-content: center;
align-items: center;
}
.btn-wrap {
width: 100%;
padding: 20rpx 0 44rpx 0;
display: flex;
justify-content: center;
align-items: center;
}
.btn-save {
color: #FFFFFF;
background-color: #2272FF;
font-size: 32rpx;
font-weight: bold;
}
.img-list {
position: relative;
margin: 8rpx;
width: 160rpx;
height: 160rpx;
.btn-save {
color: #ffffff;
background-color: #2272ff;
font-size: 32rpx;
font-weight: bold;
}
.img-list {
position: relative;
margin: 8rpx;
width: 160rpx;
height: 160rpx;
.pic{
// margin-right: 15rpx;
// margin-bottom: 15rpx;
&:nth-child(3n){
margin-right: 0;
}
}
.pic {
// margin-right: 15rpx;
// margin-bottom: 15rpx;
&:nth-child(3n) {
margin-right: 0;
}
}
}
</style>
<template>
<view class="mtr-content">
<view class="content-view">
<!-- 材料列表 -->
<view class="mtr-tab">
<u-table align="center" border-color="#FFFFFF" color="#333333" font-size="rpx" :th-style="thStyle"
padding="0">
<u-tr class="u-tr">
<u-th class="u-th content-tab-th" v-for="(value, key) in titles" :key="key" width="auto">
<view class="tab-th-txt" v-if="key == 'useLength'">
<u-parse :html="value" :tag-style="style"></u-parse>
</view>
<text v-else :class="['tab-th-txt', {'left': key == firstKey}]">{{value}}</text>
</u-th>
</u-tr>
<view class="line-view"></view>
<u-tr class="u-tr" v-for="(item, index) in list" :key="index">
<u-td class="u-td" v-for="(value, key) in titles" :key="key">
<view v-if="key == 'useLength'" class="uselen-input">
<u-input @blur="handleBlur(item)" :border="true" border-color="#2979FF"
@focus="handleFocus(item)" type="digit" placeholder="请输入"
v-model="item[key]" placeholder-style="color: #999999;font-size:26rpx"
input-align="center" :clearable="false" :verify-number="true">
<u-icon name="edit"></u-icon></u-input>
</view>
<text v-else :class="['tab-th-txt', {'left': key == firstKey}]">{{item[key]}}</text>
</u-td>
</u-tr>
</u-table>
</view>
<!-- 其他 -->
<view class="mtr-other">
<view class="line-view"></view>
<view class="u-flex u-row-between other-space">
<view class="other-label">其他</view>
<view class="list">
<view v-for="(item, index) in other" :key="index"
class="u-flex u-row-between">
<u-input v-model="item.otherExplain" :border="true"
class="u-m-r-15" :clearable="false" placeholder="请输入内容"
:border-color="index === 0 ? '#2979FF' : '#FF930D'"/>
<u-input v-model="item.extraAmt" type="number" :border="true"
class="u-m-l-15" :clearable="false" placeholder="请输入金额"
:border-color="index === 0 ? '#2979FF' : '#FF930D'"/>
<image v-if="index === 0" class="image-view"
:src="addImage" @click="handleAdd"/>
<image v-else class="image-view"
:src="subtractImage" @click="handleSubtract(index)"/>
</view>
</view>
</view>
<view class="other-space u-p-t-20">
<text>超出金额</text>
<text>{{money}}元</text>
</view>
</view>
</view>
<!-- 底部确定按钮 -->
<view class="bottom-view">
<u-button class="sure-button" type="primary" shape="circle" @click="handleSure" :custom-style="buttonStyle">
确定
</u-button>
</view>
<u-toast ref="uToast" />
</view>
<view class="mtr-content">
<view class="content-view">
<!-- 材料列表 -->
<view class="mtr-tab">
<u-table
align="center"
border-color="#FFFFFF"
color="#333333"
font-size="rpx"
:th-style="thStyle"
padding="0"
>
<u-tr class="u-tr">
<u-th
class="u-th content-tab-th"
v-for="(value, key) in titles"
:key="key"
width="auto"
>
<text :class="['tab-th-txt', { left: key == firstKey }]">{{
value
}}</text>
</u-th>
</u-tr>
<view class="line-view"></view>
<u-tr class="u-tr" v-for="(item, index) in list" :key="index">
<u-td class="u-td" v-for="(value, key) in titles" :key="key">
<view v-if="key == 'useLength'" class="uselen-input">
<u-input
@blur="handleBlur(item)"
:border="true"
border-color="#2979FF"
@focus="handleFocus(item)"
type="digit"
placeholder="请输入"
v-model="item[key]"
placeholder-style="color: #999999;font-size:26rpx"
input-align="center"
:clearable="false"
:verify-number="true"
>
<u-icon name="edit"></u-icon
></u-input>
</view>
<text v-else :class="['tab-th-txt', { left: key == firstKey }]">{{
item[key]
}}</text>
</u-td>
</u-tr>
</u-table>
</view>
<!-- 其他 -->
<view class="mtr-other">
<view class="line-view"></view>
<view class="u-flex u-row-between other-space">
<view class="other-label">其他</view>
<view class="list">
<view
v-for="(item, index) in other"
:key="index"
class="u-flex u-row-between"
>
<u-input
v-model="item.otherExplain"
:border="true"
class="u-m-r-15"
:clearable="false"
placeholder="请输入内容"
:border-color="index === 0 ? '#2979FF' : '#FF930D'"
/>
<u-input
v-model="item.extraAmt"
type="number"
:border="true"
class="u-m-l-15"
:clearable="false"
placeholder="请输入金额"
:border-color="index === 0 ? '#2979FF' : '#FF930D'"
/>
<image
v-if="index === 0"
class="image-view"
:src="addImage"
@click="handleAdd"
/>
<image
v-else
class="image-view"
:src="subtractImage"
@click="handleSubtract(index)"
/>
</view>
</view>
</view>
<view class="other-space u-p-t-20">
<text>超出金额</text>
<text>{{ money }}元</text>
</view>
</view>
</view>
<!-- 底部确定按钮 -->
<view class="bottom-view">
<u-button
class="sure-button"
type="primary"
shape="circle"
@click="handleSure"
:custom-style="buttonStyle"
>
确定
</u-button>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script>
export default {
data() {
return {
orderId:'',
fieldName:'materialList',
list: [], // 材料列表
other: [], // 其他列表
style: {
// 字符串的形式
p: 'color: red;font-size: 24rpx'
}
};
},
computed: {
buttonStyle() {
return {
width: "600rpx",
height: "104rpx",
"font-size": "32rpx",
"font-weight": "bold",
};
},
titles() {
return {
matName: this.isMaterial ? '材料名称' : '工艺名称',
matUnit: '单位',
freeLength: '免费量',
unitAmt: '单价/元',
useLength: '用量<p>(请输入实际用量)</p>'
}
},
thStyle() {
return {
'font-weight': 'bold'
}
},
firstKey() {
return Object.keys(this.titles)[0]
},
subtractImage() {
return process.uniEnv.qn_base_url + 'qxiao.png'
},
addImage() {
return process.uniEnv.qn_base_url + 'tianjia.png'
},
money() { // 总额
var amount = 0
for (var item of this.list) {
if (Number(item.useLength) && Number(item.freeLength) && Number(item.unitAmt)) {
amount += Math.max(Number(item.useLength) - Number(item.freeLength), 0) * Number(item.unitAmt)
}
}
for (var item of this.other) {
if (item.extraAmt && Number(item.extraAmt)) {
amount += Number(item.extraAmt)
}
}
return amount
},
isMaterial(){
return this.fieldName === 'materialList'
},
isCraft(){
return this.fieldName === 'craftList'
},
priceType(){
return this.isMaterial?"01":"02"
},
},
onLoad(option) {
getApp().trackPage('订单材料列表页')
this.orderId = option.orderId
this.fieldName = option.fieldName
const eventChannel = this.getOpenerEventChannel();
let self = this
eventChannel.on('showMaterialData', function(data) {
if(!data || data.length === 0){
self.getMaterialData()
}else{
self.formatServiceMoreList(data)
}
});
this.list = [
{matType: "02", priceType: "01", matName: '开孔厚40cm以上,直径11cm以下',
matUnit: "个", freeLength: 0, unitAmt: 0, useLength: 0},
{matType: "02", priceType: "01", matName: '验收完成后移动安装地点',
matUnit: "次", freeLength: 0, unitAmt: 0, useLength: 0},
{matType: "02", priceType: "01", matName: '北京地区报装',
matUnit: "次", freeLength: 0, unitAmt: 0, useLength: 0},
{matType: "02", priceType: "01", matName: '墙面开墙及恢复',
matUnit: "米", freeLength: 0, unitAmt: 0, useLength: 0},
{matType: "02", priceType: "01", matName: '安装位置单次往返经销商距离',
matUnit: "千米", freeLength: 0, unitAmt: 0, useLength: 0},
{matType: "02", priceType: "01", matName: '开孔厚40cm以上,直径11cm以下',
matUnit: "个", freeLength: 0, unitAmt: 0, useLength: 0},
{matType: "02", priceType: "01", matName: '桥架50mm*50mm',
matUnit: "米", freeLength: 0, unitAmt: 0, useLength: 0},
{matType: "02", priceType: "01", matName: '铺装庭院开挖(复合材料)',
matUnit: "米", freeLength: 0, unitAmt: 220, useLength: 0},
]
},
created() {
},
mounted() {
},
methods: {
getMaterialData(){
let self = this
self.$u.api.getOrderMaterial(self.orderId).then((res) => {
if (res.code !== 200) {
console.log(res.data.message)
return
}
self.formatServiceMoreList(res.data)
})
},
formatServiceMoreList(materialCraftsData){
let self = this
materialCraftsData.map(item => {
if (item.priceType === self.priceType) {
item.matType === '04' ? self.other.push(item) : self.list.push(item)
}
})
},
handleBlur(item) { // 失去焦点如果没输入用原先的值
if(this.$u.test.isEmpty(item.useLength)
|| !this.$u.test.number(item.useLength)) {
item.useLength = 0
}
},
handleFocus(item) { // 点击清空
if(this.$u.test.isEmpty(item.useLength)) {
item.useLength = null
}
},
/* 其他添加新的 */
handleAdd() {
this.other.push({
//orderNo:this.formInfo.orderNo,
isDel:'N',
isWebAdd:true,
matName:'其他',
extraAmt:null,
priceType:this.priceType,
matType:'04',
otherExplain:''
})
},
/* 其他删除某个 */
handleSubtract(index) {
this.other.splice(index, 1)
},
validateForm() {
if(this.isMaterial) {
let row = this.list.find((item, index) => {
return item.useLength != 0;
})
if(!this.$u.test.isEmpty(this.list) && this.$u.test.isEmpty(row)) {
this.$refs.uToast.show({
title: '请填写电缆、漏保、空开等用量',
type: 'error',
icon: false,
position: 'bottom'
})
return false
}
}
return true
},
handleSure() {
if(!this.validateForm()) {
return false
}
for (let item of this.other){
if(!item.otherExplain){
this.$refs.uToast.show({
title: '请输入其他项说明',
type: 'warning'
})
return
}
}
let pages = getCurrentPages();
let prevPage = pages[pages.length - 2]; //上一个页面
let data = {}
data[this.fieldName] = this.list.concat(this.other) // 将list合并给上以页面
prevPage.$vm.setData(data)//直接调用上一个页面的setData()方法,把数据存到上一个页面中去
uni.navigateBack();
}
}
}
export default {
data() {
return {
orderId: "",
fieldName: "materialList",
list: [], // 材料列表
other: [], // 其他列表
};
},
computed: {
buttonStyle() {
return {
width: "600rpx",
height: "104rpx",
"font-size": "32rpx",
"font-weight": "bold",
};
},
titles() {
return {
matName: this.isMaterial ? "材料名称" : "工艺名称",
matUnit: "单位",
freeLength: "免费量",
unitAmt: "单价/元",
useLength: "用量",
};
},
thStyle() {
return {
"font-weight": "bold",
};
},
firstKey() {
return Object.keys(this.titles)[0];
},
subtractImage() {
return process.uniEnv.qn_base_url + "qxiao.png";
},
addImage() {
return process.uniEnv.qn_base_url + "tianjia.png";
},
money() {
// 总额
var amount = 0;
for (var item of this.list) {
if (
Number(item.useLength) &&
Number(item.freeLength) &&
Number(item.unitAmt)
) {
amount +=
Math.max(Number(item.useLength) - Number(item.freeLength), 0) *
Number(item.unitAmt);
}
}
for (var item of this.other) {
if (item.extraAmt && Number(item.extraAmt)) {
amount += Number(item.extraAmt);
}
}
return amount;
},
isMaterial() {
return this.fieldName === "materialList";
},
isCraft() {
return this.fieldName === "craftList";
},
priceType() {
return this.isMaterial ? "01" : "02";
},
},
onLoad(option) {
getApp().trackPage("订单材料列表页");
this.orderId = option.orderId;
this.fieldName = option.fieldName;
const eventChannel = this.getOpenerEventChannel();
let self = this;
eventChannel.on("showMaterialData", function (data) {
if (!data || data.length === 0) {
self.getMaterialData();
} else {
self.formatServiceMoreList(data);
}
});
this.list = [
{
matType: "02",
priceType: "01",
matName: "开孔厚40cm以上,直径11cm以下",
matUnit: "个",
freeLength: 0,
unitAmt: 0,
useLength: 0,
},
{
matType: "02",
priceType: "01",
matName: "验收完成后移动安装地点",
matUnit: "次",
freeLength: 0,
unitAmt: 0,
useLength: 0,
},
{
matType: "02",
priceType: "01",
matName: "北京地区报装",
matUnit: "次",
freeLength: 0,
unitAmt: 0,
useLength: 0,
},
{
matType: "02",
priceType: "01",
matName: "墙面开墙及恢复",
matUnit: "米",
freeLength: 0,
unitAmt: 0,
useLength: 0,
},
{
matType: "02",
priceType: "01",
matName: "安装位置单次往返经销商距离",
matUnit: "千米",
freeLength: 0,
unitAmt: 0,
useLength: 0,
},
{
matType: "02",
priceType: "01",
matName: "开孔厚40cm以上,直径11cm以下",
matUnit: "个",
freeLength: 0,
unitAmt: 0,
useLength: 0,
},
{
matType: "02",
priceType: "01",
matName: "桥架50mm*50mm",
matUnit: "米",
freeLength: 0,
unitAmt: 0,
useLength: 0,
},
{
matType: "02",
priceType: "01",
matName: "铺装庭院开挖(复合材料)",
matUnit: "米",
freeLength: 0,
unitAmt: 220,
useLength: 0,
},
];
},
created() {},
mounted() {},
methods: {
getMaterialData() {
let self = this;
self.$u.api.getOrderMaterial(self.orderId).then((res) => {
if (res.code !== 200) {
console.log(res.data.message);
return;
}
self.formatServiceMoreList(res.data);
});
},
formatServiceMoreList(materialCraftsData) {
let self = this;
materialCraftsData.map((item) => {
if (item.priceType === self.priceType) {
item.matType === "04" ? self.other.push(item) : self.list.push(item);
}
});
},
handleBlur(item) {
// 失去焦点如果没输入用原先的值
if (
this.$u.test.isEmpty(item.useLength) ||
!this.$u.test.number(item.useLength)
) {
item.useLength = 0;
}
},
handleFocus(item) {
// 点击清空
if (this.$u.test.isEmpty(item.useLength)) {
item.useLength = null;
}
},
/* 其他添加新的 */
handleAdd() {
this.other.push({
//orderNo:this.formInfo.orderNo,
isDel: "N",
isWebAdd: true,
matName: "其他",
extraAmt: null,
priceType: this.priceType,
matType: "04",
otherExplain: "",
});
},
/* 其他删除某个 */
handleSubtract(index) {
this.other.splice(index, 1);
},
validateForm() {
if (this.isMaterial) {
let row = this.list.find((item, index) => {
return item.useLength != 0;
});
if (!this.$u.test.isEmpty(this.list) && this.$u.test.isEmpty(row)) {
this.$refs.uToast.show({
title: "请填写电缆、漏保、空开等用量",
type: "error",
icon: false,
position: "bottom",
});
return false;
}
}
return true;
},
handleSure() {
if (!this.validateForm()) {
return false;
}
for (let item of this.other) {
if (!item.otherExplain) {
this.$refs.uToast.show({
title: "请输入其他项说明",
type: "warning",
});
return;
}
}
let pages = getCurrentPages();
let prevPage = pages[pages.length - 2]; //上一个页面
let data = {};
data[this.fieldName] = this.list.concat(this.other); // 将list合并给上以页面
prevPage.$vm.setData(data); //直接调用上一个页面的setData()方法,把数据存到上一个页面中去
uni.navigateBack();
},
},
};
</script>
<style lang="scss" scoped>
.mtr-content {
display: flex;
flex-direction: column;
background-color: #F4F5F7;
height: 100vh;
.mtr-content {
display: flex;
flex-direction: column;
background-color: #f4f5f7;
height: 100vh;
.content-view {
padding: 30rpx 30rpx 60rpx 30rpx;
margin: 20rpx 30rpx;
border-radius: 12rpx;
background-color: #FFFFFF;
height: 100%;
overflow: auto;
.content-view {
padding: 30rpx 30rpx 60rpx 30rpx;
margin: 20rpx 30rpx;
border-radius: 12rpx;
background-color: #ffffff;
height: 100%;
overflow: auto;
.line-view {
background-color: #F4F5F7;
height: 2rpx;
margin: 20rpx 0;
}
.line-view {
background-color: #f4f5f7;
height: 2rpx;
margin: 20rpx 0;
}
.mtr-tab {
.tab-th-txt {
background-color: #FFFFFF;
padding: 10rpx 0;
line-break: anywhere;
.mtr-tab {
.tab-th-txt {
background-color: #ffffff;
padding: 10rpx 0;
line-break: anywhere;
&.left {
text-align: left;
}
}
}
&.left {
text-align: left;
}
}
}
.mtr-other {
.other-space {
display: flex;
justify-content: space-between;
align-items: center;
}
.mtr-other {
.other-space {
display: flex;
justify-content: space-between;
align-items: center;
}
.other-content {
margin-bottom: 30rpx;
}
.other-content {
margin-bottom: 30rpx;
}
.input-view {
padding: 10rpx 30rpx;
width: 100%;
border-radius: 12rpx;
border: 1px #f4f5f7 solid;
margin-bottom: 30rpx;
.input-view {
padding: 10rpx 30rpx;
width: 100%;
border-radius: 12rpx;
border: 1px #F4F5F7 solid;
margin-bottom: 30rpx;
.input-title {
width: 80rpx;
flex-shrink: 0;
color: #333333;
font-size: 26rpx;
}
.input-title {
width: 80rpx;
flex-shrink: 0;
color: #333333;
font-size: 26rpx;
}
.input-content {
width: 100%;
}
}
.input-content {
width: 100%;
}
}
.image-view {
width: 52rpx;
height: 52rpx;
flex-shrink: 0;
margin: 30rpx 0 30rpx 30rpx;
}
}
}
.image-view {
width: 52rpx;
height: 52rpx;
flex-shrink: 0;
margin: 30rpx 0 30rpx 30rpx;
}
}
}
.bottom-view {
margin-bottom: 44rpx;
margin-top: 10rpx;
height: 104rpx;
}
}
.other-label {
width: 150rpx;
align-self: flex-start;
line-height: 80rpx;
}
.bottom-view {
margin-bottom: 44rpx;
margin-top: 10rpx;
height: 104rpx;
}
}
.other-label {
width: 150rpx;
align-self: flex-start;
line-height: 80rpx;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment