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

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

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