Commit 4bffb941 by 前端

Merge branch 'SAAS+V4.56.0-0908' into 'master'

上线合并

See merge request !19
2 parents 23472bd4 90b3e101
......@@ -1895,51 +1895,6 @@
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
"dev": true
},
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"ssri": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
......@@ -1948,28 +1903,6 @@
"requires": {
"minipass": "^3.1.1"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
}
}
},
......@@ -2268,12 +2201,6 @@
"integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==",
"dev": true
},
"abbrev": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
"dev": true
},
"accepts": {
"version": "1.3.8",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
......@@ -2338,12 +2265,6 @@
"integrity": "sha512-0FcBfdcmaumGPQ0qPn7Q5qTgz/ooXgIyp1rf8ik5bGX8mpE2YHjC0P/eyQvxu1GURYQgq9ozf2mteQ5ZD9YiyQ==",
"dev": true
},
"amdefine": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
"integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==",
"dev": true
},
"ansi-colors": {
"version": "3.2.4",
"resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.4.tgz",
......@@ -2416,16 +2337,6 @@
"integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==",
"dev": true
},
"are-we-there-yet": {
"version": "1.1.7",
"resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz",
"integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==",
"dev": true,
"requires": {
"delegates": "^1.0.0",
"readable-stream": "^2.0.6"
}
},
"argparse": {
"version": "1.0.10",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
......@@ -2463,12 +2374,6 @@
"is-array-buffer": "^3.0.1"
}
},
"array-find-index": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz",
"integrity": "sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw==",
"dev": true
},
"array-flatten": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
......@@ -2598,12 +2503,6 @@
"integrity": "sha512-c646jH1avxr+aVpndVMeAfYw7wAa6idufrlN3LPA4PmKS0QEGp6PIC9nwz0WQkkvBGAMEki3pFdtxaF39J9vvg==",
"dev": true
},
"async-foreach": {
"version": "0.1.3",
"resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz",
"integrity": "sha512-VUeSMD8nEGBWaZK4lizI1sf3yEC7pnAQ/mrI7pC2fBz2s/tq5jWWEngTwaf0Gruu/OoXRGLGg1XFqpYBiGTYJA==",
"dev": true
},
"async-limiter": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz",
......@@ -2915,17 +2814,7 @@
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
"integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
"dev": true,
"optional": true
},
"block-stream": {
"version": "0.0.9",
"resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz",
"integrity": "sha512-OorbnJVPII4DuUKbjARAe8u8EfqOmkEEaSFIyoQ7OjTHn6kafxWl0wLgoZ2rXaYd7MyLcDaU4TmhfxtwgcccMQ==",
"dev": true,
"requires": {
"inherits": "~2.0.0"
}
"dev": true
},
"bluebird": {
"version": "3.7.2",
......@@ -3334,24 +3223,6 @@
"resolved": "https://registry.npmmirror.com/camelcase/-/camelcase-1.2.1.tgz",
"integrity": "sha512-wzLkDa4K/mzI1OSITC+DUyjgIl/ETNHE9QvYgy6J6Jvqyyz4C0Xfd+lQhb19sX2jMpZV4IssUn0VDVmglV+s4g=="
},
"camelcase-keys": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz",
"integrity": "sha512-bA/Z/DERHKqoEOrp+qeGKw1QlvEQkGZSc0XaY6VnTxZr+Kv1G5zFwttpjv8qxZ/sBPT4nthwZaAcsAZTJlSKXQ==",
"dev": true,
"requires": {
"camelcase": "^2.0.0",
"map-obj": "^1.0.0"
},
"dependencies": {
"camelcase": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz",
"integrity": "sha512-DLIsRzJVBQu72meAKPkWQOLcujdXT32hwdfnkI1frSiSRMK1MofjKHf+MEx0SB6fjEFXL8fBDv1dKymBlOp4Qw==",
"dev": true
}
}
},
"caniuse-api": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-3.0.0.tgz",
......@@ -3415,7 +3286,6 @@
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
"integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
"dev": true,
"optional": true,
"requires": {
"anymatch": "~3.1.2",
"braces": "~3.0.2",
......@@ -3432,7 +3302,6 @@
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"dev": true,
"optional": true,
"requires": {
"fill-range": "^7.0.1"
}
......@@ -3442,7 +3311,6 @@
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
"dev": true,
"optional": true,
"requires": {
"to-regex-range": "^5.0.1"
}
......@@ -3451,15 +3319,13 @@
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
"dev": true,
"optional": true
"dev": true
},
"to-regex-range": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
"dev": true,
"optional": true,
"requires": {
"is-number": "^7.0.0"
}
......@@ -3710,12 +3576,6 @@
"q": "^1.1.2"
}
},
"code-point-at": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
"integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==",
"dev": true
},
"collection-visit": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz",
......@@ -3871,12 +3731,6 @@
"integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==",
"dev": true
},
"console-control-strings": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
"integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==",
"dev": true
},
"consolidate": {
"version": "0.15.1",
"resolved": "https://registry.npmjs.org/consolidate/-/consolidate-0.15.1.tgz",
......@@ -4559,15 +4413,6 @@
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.1.tgz",
"integrity": "sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw=="
},
"currently-unhandled": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz",
"integrity": "sha512-/fITjgjGU50vjQ4FH6eUoYu+iUoUKIXws2hL15JJpIR+BbTxaXQsMuuyjtNh2WqsSBS5nsaZHFsFecyw5CCAng==",
"dev": true,
"requires": {
"array-find-index": "^1.0.1"
}
},
"cyclist": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz",
......@@ -4869,12 +4714,6 @@
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
"dev": true
},
"delegates": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
"integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==",
"dev": true
},
"depd": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
......@@ -6295,18 +6134,6 @@
"dev": true,
"optional": true
},
"fstream": {
"version": "1.0.12",
"resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz",
"integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==",
"dev": true,
"requires": {
"graceful-fs": "^4.1.2",
"inherits": "~2.0.0",
"mkdirp": ">=0.5 0",
"rimraf": "2"
}
},
"function-bind": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
......@@ -6336,68 +6163,6 @@
"integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==",
"dev": true
},
"gauge": {
"version": "2.7.4",
"resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
"integrity": "sha512-14x4kjc6lkD3ltw589k0NrPD6cCNTD6CWoVUNpB85+DrtONoZn+Rug6xZU5RvSC4+TZPxA5AnBibQYAvZn41Hg==",
"dev": true,
"requires": {
"aproba": "^1.0.3",
"console-control-strings": "^1.0.0",
"has-unicode": "^2.0.0",
"object-assign": "^4.1.0",
"signal-exit": "^3.0.0",
"string-width": "^1.0.1",
"strip-ansi": "^3.0.1",
"wide-align": "^1.1.0"
},
"dependencies": {
"ansi-regex": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
"integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",
"dev": true
},
"is-fullwidth-code-point": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
"integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==",
"dev": true,
"requires": {
"number-is-nan": "^1.0.0"
}
},
"string-width": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
"integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==",
"dev": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
"strip-ansi": "^3.0.0"
}
},
"strip-ansi": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
"integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==",
"dev": true,
"requires": {
"ansi-regex": "^2.0.0"
}
}
}
},
"gaze": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz",
"integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==",
"dev": true,
"requires": {
"globule": "^1.0.0"
}
},
"gensync": {
"version": "1.0.0-beta.2",
"resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
......@@ -6479,7 +6244,6 @@
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"dev": true,
"optional": true,
"requires": {
"is-glob": "^4.0.1"
}
......@@ -6521,42 +6285,6 @@
"slash": "^2.0.0"
}
},
"globule": {
"version": "1.3.4",
"resolved": "https://registry.npmjs.org/globule/-/globule-1.3.4.tgz",
"integrity": "sha512-OPTIfhMBh7JbBYDpa5b+Q5ptmMWKwcNcFSR/0c6t8V4f3ZAVBEsKNY37QdVqmLRYSMhOUGYrY0QhSoEpzGr/Eg==",
"dev": true,
"requires": {
"glob": "~7.1.1",
"lodash": "^4.17.21",
"minimatch": "~3.0.2"
},
"dependencies": {
"glob": {
"version": "7.1.7",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz",
"integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==",
"dev": true,
"requires": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
"inherits": "2",
"minimatch": "^3.0.4",
"once": "^1.3.0",
"path-is-absolute": "^1.0.0"
}
},
"minimatch": {
"version": "3.0.8",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.8.tgz",
"integrity": "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==",
"dev": true,
"requires": {
"brace-expansion": "^1.1.7"
}
}
}
},
"glsx-common": {
"version": "2.10.1",
"resolved": "https://registry.npmmirror.com/glsx-common/-/glsx-common-2.10.1.tgz",
......@@ -6649,23 +6377,6 @@
"function-bind": "^1.1.1"
}
},
"has-ansi": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
"integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==",
"dev": true,
"requires": {
"ansi-regex": "^2.0.0"
},
"dependencies": {
"ansi-regex": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
"integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",
"dev": true
}
}
},
"has-bigints": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz",
......@@ -6706,12 +6417,6 @@
"has-symbols": "^1.0.2"
}
},
"has-unicode": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
"integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==",
"dev": true
},
"has-value": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz",
......@@ -7258,21 +6963,6 @@
"integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
"dev": true
},
"in-publish": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.1.tgz",
"integrity": "sha512-oDM0kUSNFC31ShNxHKUyfZKy8ZeXZBWMjMdZHKLOk13uvT27VTL/QzRGfRUcevJhpkZAvlhPYuXkF7eNWrtyxQ==",
"dev": true
},
"indent-string": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz",
"integrity": "sha512-aqwDFWSgSgfRaEwao5lg5KEcVd/2a+D1rvoG7NdilmYz0NwRk6StWpWdz/Hpk34MKPpx7s8XxUqimfcQK6gGlg==",
"dev": true,
"requires": {
"repeating": "^2.0.0"
}
},
"indexes-of": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz",
......@@ -7525,7 +7215,6 @@
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
"dev": true,
"optional": true,
"requires": {
"binary-extensions": "^2.0.0"
}
......@@ -7655,12 +7344,6 @@
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
"dev": true
},
"is-finite": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.1.0.tgz",
"integrity": "sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w==",
"dev": true
},
"is-fullwidth-code-point": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
......@@ -7824,12 +7507,6 @@
"integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==",
"dev": true
},
"is-utf8": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz",
"integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==",
"dev": true
},
"is-weakref": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz",
......@@ -7881,12 +7558,6 @@
"integrity": "sha512-JVAfqNPTvNq3sB/VHQJAFxN/sPgKnsKrCwyRt15zwNCdrMMJDdcEOdubuy+DuJYYdm0ox1J4uzEuYKkN+9yhVg==",
"dev": true
},
"js-base64": {
"version": "2.6.4",
"resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz",
"integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==",
"dev": true
},
"js-message": {
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/js-message/-/js-message-1.0.7.tgz",
......@@ -8031,36 +7702,6 @@
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
"dev": true
},
"load-json-file": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
"integrity": "sha512-cy7ZdNRXdablkXYNI049pthVeXFurRyb9+hA/dZzerZ0pGTx42z+y+ssxBaVV2l70t1muq5IdKhn4UtcoGUY9A==",
"dev": true,
"requires": {
"graceful-fs": "^4.1.2",
"parse-json": "^2.2.0",
"pify": "^2.0.0",
"pinkie-promise": "^2.0.0",
"strip-bom": "^2.0.0"
},
"dependencies": {
"parse-json": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz",
"integrity": "sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==",
"dev": true,
"requires": {
"error-ex": "^1.2.0"
}
},
"pify": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
"integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
"dev": true
}
}
},
"loader-fs-cache": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/loader-fs-cache/-/loader-fs-cache-1.0.3.tgz",
......@@ -8200,16 +7841,6 @@
"integrity": "sha512-tCRIJM51SHjAayKwC+QAg8hT8vg6z7GSgLJKGvzuPb1Wc+hLzqtuVLxp6/HzSPOozuK+8ErAhy7U/sVzw8Dgfg==",
"dev": true
},
"loud-rejection": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz",
"integrity": "sha512-RPNliZOFkqFumDhvYqOaNY4Uz9oJM2K9tC6JWsJJsNdhuONW4LQHRBpb0qf4pJApVffI5N39SwzWZJuEhfd7eQ==",
"dev": true,
"requires": {
"currently-unhandled": "^0.4.1",
"signal-exit": "^3.0.0"
}
},
"lower-case": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/lower-case/-/lower-case-1.1.4.tgz",
......@@ -8240,12 +7871,6 @@
"integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==",
"dev": true
},
"map-obj": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz",
"integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==",
"dev": true
},
"map-visit": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz",
......@@ -8298,24 +7923,6 @@
"readable-stream": "^2.0.1"
}
},
"meow": {
"version": "3.7.0",
"resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz",
"integrity": "sha512-TNdwZs0skRlpPpCUK25StC4VH+tP5GgeY1HQOOGP+lQ2xtdkN2VtT/5tiX9k3IWpkBPV9b3LsAWXn4GGi/PrSA==",
"dev": true,
"requires": {
"camelcase-keys": "^2.0.0",
"decamelize": "^1.1.2",
"loud-rejection": "^1.0.0",
"map-obj": "^1.0.1",
"minimist": "^1.1.3",
"normalize-package-data": "^2.3.4",
"object-assign": "^4.0.1",
"read-pkg-up": "^1.0.1",
"redent": "^1.0.0",
"trim-newlines": "^1.0.0"
}
},
"merge-descriptors": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
......@@ -8621,7 +8228,8 @@
"version": "2.17.0",
"resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz",
"integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==",
"dev": true
"dev": true,
"optional": true
},
"nanoid": {
"version": "3.3.6",
......@@ -8686,38 +8294,10 @@
"integrity": "sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==",
"dev": true
},
"node-gyp": {
"version": "3.8.0",
"resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.8.0.tgz",
"integrity": "sha512-3g8lYefrRRzvGeSowdJKAKyks8oUpLEd/DyPV4eMhVlhJ0aNaZqIrNUIPuEWWTAoPqyFkfGrM67MC69baqn6vA==",
"dev": true,
"requires": {
"fstream": "^1.0.0",
"glob": "^7.0.3",
"graceful-fs": "^4.1.2",
"mkdirp": "^0.5.0",
"nopt": "2 || 3",
"npmlog": "0 || 1 || 2 || 3 || 4",
"osenv": "0",
"request": "^2.87.0",
"rimraf": "2",
"semver": "~5.3.0",
"tar": "^2.0.0",
"which": "1"
},
"dependencies": {
"semver": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz",
"integrity": "sha512-mfmm3/H9+67MCVix1h+IXTpDwL6710LyHuk7+cWC9T1mE0qz4iHhh6r4hU2wrIT9iTsAAC2XQRvfblL028cpLw==",
"dev": true
}
}
},
"node-libs-browser": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz",
"integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==",
"node-libs-browser": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz",
"integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==",
"dev": true,
"requires": {
"assert": "^1.1.1",
......@@ -8760,111 +8340,12 @@
"dev": true
},
"node-sass": {
"version": "4.14.1",
"resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.14.1.tgz",
"integrity": "sha512-sjCuOlvGyCJS40R8BscF5vhVlQjNN069NtQ1gSxyK1u9iqvn6tf7O1R4GNowVZfiZUCRt5MmMs1xd+4V/7Yr0g==",
"dev": true,
"requires": {
"async-foreach": "^0.1.3",
"chalk": "^1.1.1",
"cross-spawn": "^3.0.0",
"gaze": "^1.0.0",
"get-stdin": "^4.0.1",
"glob": "^7.0.3",
"in-publish": "^2.0.0",
"lodash": "^4.17.15",
"meow": "^3.7.0",
"mkdirp": "^0.5.1",
"nan": "^2.13.2",
"node-gyp": "^3.8.0",
"npmlog": "^4.0.0",
"request": "^2.88.0",
"sass-graph": "2.2.5",
"stdout-stream": "^1.4.0",
"true-case-path": "^1.0.2"
},
"dependencies": {
"ansi-regex": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
"integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",
"dev": true
},
"ansi-styles": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
"integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==",
"dev": true
},
"chalk": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
"integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==",
"dev": true,
"requires": {
"ansi-styles": "^2.2.1",
"escape-string-regexp": "^1.0.2",
"has-ansi": "^2.0.0",
"strip-ansi": "^3.0.0",
"supports-color": "^2.0.0"
}
},
"cross-spawn": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz",
"integrity": "sha512-eZ+m1WNhSZutOa/uRblAc9Ut5MQfukFrFMtPSm3bZCA888NmMd5AWXWdgRZ80zd+pTk1P2JrGjg9pUPTvl2PWQ==",
"dev": true,
"requires": {
"lru-cache": "^4.0.1",
"which": "^1.2.9"
}
},
"get-stdin": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz",
"integrity": "sha512-F5aQMywwJ2n85s4hJPTT9RPxGmubonuB10MNYo17/xph174n2MIR33HRguhzVag10O/npM7SPk73LMZNP+FaWw==",
"dev": true
},
"lru-cache": {
"version": "4.1.5",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
"integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
"dev": true,
"requires": {
"pseudomap": "^1.0.2",
"yallist": "^2.1.2"
}
},
"strip-ansi": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
"integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==",
"dev": true,
"requires": {
"ansi-regex": "^2.0.0"
}
},
"supports-color": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
"integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==",
"dev": true
},
"yallist": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
"integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==",
"dev": true
}
}
},
"nopt": {
"version": "3.0.6",
"resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
"integrity": "sha512-4GUt3kSEYmk4ITxzB/b9vaIDfUVWN/Ml1Fwl11IlnIG2iaJ9O6WXZ9SrYM9NLI8OCBieN2Y8SWC2oJV0RQ7qYg==",
"version": "npm:dart-sass@1.25.0",
"resolved": "https://registry.npmjs.org/dart-sass/-/dart-sass-1.25.0.tgz",
"integrity": "sha512-syNOAstJXAmvD3RifcDk3fiPMyYE2fY8so6w9gf2/wNlKpG0zyH+oiXubEYVOy1WAWkzOc72pbAxwx+3OU4JJA==",
"dev": true,
"requires": {
"abbrev": "1"
"chokidar": ">=2.0.0 <4.0.0"
}
},
"normalize-package-data": {
......@@ -8919,18 +8400,6 @@
"path-key": "^2.0.0"
}
},
"npmlog": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz",
"integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",
"dev": true,
"requires": {
"are-we-there-yet": "~1.1.2",
"console-control-strings": "~1.1.0",
"gauge": "~2.7.3",
"set-blocking": "~2.0.0"
}
},
"nth-check": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz",
......@@ -8946,12 +8415,6 @@
"integrity": "sha512-Y1wZESM7VUThYY+4W+X4ySH2maqcA+p7UR+w8VWNWVAd6lwuXXWz/w/Cz43J/dI2I+PS6wD5N+bJUF+gjWvIqg==",
"dev": true
},
"number-is-nan": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
"integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==",
"dev": true
},
"oauth-sign": {
"version": "0.9.0",
"resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
......@@ -9184,28 +8647,12 @@
"integrity": "sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A==",
"dev": true
},
"os-homedir": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
"integrity": "sha512-B5JU3cabzk8c67mRRd3ECmROafjYMXbuzlwtqdM8IbS8ktlTix8aFGb2bAGKrSRIlnfKwovGUUr72JUPyOb6kQ==",
"dev": true
},
"os-tmpdir": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
"integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==",
"dev": true
},
"osenv": {
"version": "0.1.5",
"resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz",
"integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==",
"dev": true,
"requires": {
"os-homedir": "^1.0.0",
"os-tmpdir": "^1.0.0"
}
},
"p-finally": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
......@@ -10924,65 +10371,6 @@
"type-fest": "^0.6.0"
}
},
"read-pkg-up": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
"integrity": "sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A==",
"dev": true,
"requires": {
"find-up": "^1.0.0",
"read-pkg": "^1.0.0"
},
"dependencies": {
"find-up": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz",
"integrity": "sha512-jvElSjyuo4EMQGoTwo1uJU5pQMwTW5lS1x05zzfJuTIyLR3zwO27LYrxNg+dlvKpGOuGy/MzBdXh80g0ve5+HA==",
"dev": true,
"requires": {
"path-exists": "^2.0.0",
"pinkie-promise": "^2.0.0"
}
},
"path-exists": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz",
"integrity": "sha512-yTltuKuhtNeFJKa1PiRzfLAU5182q1y4Eb4XCJ3PBqyzEDkAZRzBrKKBct682ls9reBVHf9udYLN5Nd+K1B9BQ==",
"dev": true,
"requires": {
"pinkie-promise": "^2.0.0"
}
},
"path-type": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz",
"integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==",
"dev": true,
"requires": {
"graceful-fs": "^4.1.2",
"pify": "^2.0.0",
"pinkie-promise": "^2.0.0"
}
},
"pify": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
"integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
"dev": true
},
"read-pkg": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz",
"integrity": "sha512-7BGwRHqt4s/uVbuyoeejRn4YmFnYZiFl4AuaeXHlgZf3sONF0SOGlxs2Pw8g6hCKupo08RafIO5YXFNOKTfwsQ==",
"dev": true,
"requires": {
"load-json-file": "^1.0.0",
"normalize-package-data": "^2.3.2",
"path-type": "^1.0.0"
}
}
}
},
"readable-stream": {
"version": "2.3.8",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",
......@@ -11011,38 +10399,10 @@
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
"integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
"dev": true,
"optional": true,
"requires": {
"picomatch": "^2.2.1"
}
},
"redent": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz",
"integrity": "sha512-qtW5hKzGQZqKoh6JNSD+4lfitfPKGz42e6QwiRmPM5mmKtR0N41AbJRYu0xJi7nhOJ4WDgRkKvAk6tw4WIwR4g==",
"dev": true,
"requires": {
"indent-string": "^2.1.0",
"strip-indent": "^1.0.1"
},
"dependencies": {
"get-stdin": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz",
"integrity": "sha512-F5aQMywwJ2n85s4hJPTT9RPxGmubonuB10MNYo17/xph174n2MIR33HRguhzVag10O/npM7SPk73LMZNP+FaWw==",
"dev": true
},
"strip-indent": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz",
"integrity": "sha512-I5iQq6aFMM62fBEAIB/hXzwJD6EEZ0xEGCX2t7oXqaKPIRgt4WruAQ285BISgdkP+HLGWyeGmNJcpIwFeRYRUA==",
"dev": true,
"requires": {
"get-stdin": "^4.0.1"
}
}
}
},
"regenerate": {
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz",
......@@ -11240,15 +10600,6 @@
"integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==",
"dev": true
},
"repeating": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz",
"integrity": "sha512-ZqtSMuVybkISo2OWvqvm7iHSWngvdaW3IpsT9/uP8v4gMi591LY6h35wdOfvQdWCKFWZWm2Y1Opp4kV7vQKT6A==",
"dev": true,
"requires": {
"is-finite": "^1.0.0"
}
},
"request": {
"version": "2.88.2",
"resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz",
......@@ -11449,142 +10800,6 @@
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
"dev": true
},
"sass-graph": {
"version": "2.2.5",
"resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.5.tgz",
"integrity": "sha512-VFWDAHOe6mRuT4mZRd4eKE+d8Uedrk6Xnh7Sh9b4NGufQLQjOrvf/MQoOdx+0s92L89FeyUUNfU597j/3uNpag==",
"dev": true,
"requires": {
"glob": "^7.0.0",
"lodash": "^4.0.0",
"scss-tokenizer": "^0.2.3",
"yargs": "^13.3.2"
},
"dependencies": {
"camelcase": {
"version": "5.3.1",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
"integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
"dev": true
},
"cliui": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz",
"integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==",
"dev": true,
"requires": {
"string-width": "^3.1.0",
"strip-ansi": "^5.2.0",
"wrap-ansi": "^5.1.0"
}
},
"emoji-regex": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
"integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==",
"dev": true
},
"find-up": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
"integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
"dev": true,
"requires": {
"locate-path": "^3.0.0"
}
},
"is-fullwidth-code-point": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
"integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==",
"dev": true
},
"locate-path": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
"integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
"dev": true,
"requires": {
"p-locate": "^3.0.0",
"path-exists": "^3.0.0"
}
},
"p-locate": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
"integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
"dev": true,
"requires": {
"p-limit": "^2.0.0"
}
},
"path-exists": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
"integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==",
"dev": true
},
"string-width": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz",
"integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==",
"dev": true,
"requires": {
"emoji-regex": "^7.0.1",
"is-fullwidth-code-point": "^2.0.0",
"strip-ansi": "^5.1.0"
}
},
"strip-ansi": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
"integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
"dev": true,
"requires": {
"ansi-regex": "^4.1.0"
}
},
"wrap-ansi": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz",
"integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==",
"dev": true,
"requires": {
"ansi-styles": "^3.2.0",
"string-width": "^3.0.0",
"strip-ansi": "^5.0.0"
}
},
"yargs": {
"version": "13.3.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz",
"integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==",
"dev": true,
"requires": {
"cliui": "^5.0.0",
"find-up": "^3.0.0",
"get-caller-file": "^2.0.1",
"require-directory": "^2.1.1",
"require-main-filename": "^2.0.0",
"set-blocking": "^2.0.0",
"string-width": "^3.0.0",
"which-module": "^2.0.0",
"y18n": "^4.0.0",
"yargs-parser": "^13.1.2"
}
},
"yargs-parser": {
"version": "13.1.2",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz",
"integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==",
"dev": true,
"requires": {
"camelcase": "^5.0.0",
"decamelize": "^1.2.0"
}
}
}
},
"sass-loader": {
"version": "8.0.2",
"resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-8.0.2.tgz",
......@@ -11637,27 +10852,6 @@
"ajv-keywords": "^3.5.2"
}
},
"scss-tokenizer": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz",
"integrity": "sha512-dYE8LhncfBUar6POCxMTm0Ln+erjeczqEvCJib5/7XNkdw1FkUGgwMPY360FY0FgPWQxHWCx29Jl3oejyGLM9Q==",
"dev": true,
"requires": {
"js-base64": "^2.1.8",
"source-map": "^0.4.2"
},
"dependencies": {
"source-map": {
"version": "0.4.4",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz",
"integrity": "sha512-Y8nIfcb1s/7DcobUz1yOO1GSp7gyL+D9zLHDehT7iRESqGSxjJ448Sg7rvfgsRJCnKLdSl11uGf0s9X80cH0/A==",
"dev": true,
"requires": {
"amdefine": ">=0.0.4"
}
}
}
},
"select-hose": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz",
......@@ -12399,15 +11593,6 @@
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
"dev": true
},
"stdout-stream": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.1.tgz",
"integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==",
"dev": true,
"requires": {
"readable-stream": "^2.0.1"
}
},
"stream-browserify": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz",
......@@ -12531,15 +11716,6 @@
}
}
},
"strip-bom": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz",
"integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==",
"dev": true,
"requires": {
"is-utf8": "^0.2.0"
}
},
"strip-eof": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
......@@ -12698,17 +11874,6 @@
"integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==",
"dev": true
},
"tar": {
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/tar/-/tar-2.2.2.tgz",
"integrity": "sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA==",
"dev": true,
"requires": {
"block-stream": "*",
"fstream": "^1.0.12",
"inherits": "2"
}
},
"terser": {
"version": "4.8.1",
"resolved": "https://registry.npmjs.org/terser/-/terser-4.8.1.tgz",
......@@ -13004,21 +12169,6 @@
"punycode": "^2.1.1"
}
},
"trim-newlines": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz",
"integrity": "sha512-Nm4cF79FhSTzrLKGDMi3I4utBtFv8qKy4sq1enftf2gMdpqI8oVQTAfySkTz5r49giVzDj88SVZXP4CeYQwjaw==",
"dev": true
},
"true-case-path": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.3.tgz",
"integrity": "sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew==",
"dev": true,
"requires": {
"glob": "^7.1.2"
}
},
"tryer": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/tryer/-/tryer-1.0.1.tgz",
......@@ -13559,6 +12709,75 @@
}
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": {
"version": "3.6.5",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz",
......@@ -14341,15 +13560,6 @@
"is-typed-array": "^1.1.10"
}
},
"wide-align": {
"version": "1.1.5",
"resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
"integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
"dev": true,
"requires": {
"string-width": "^1.0.2 || 2 || 3 || 4"
}
},
"wl-core": {
"version": "1.1.9",
"resolved": "https://registry.npmjs.org/wl-core/-/wl-core-1.1.9.tgz",
......
......@@ -32,7 +32,7 @@
"eslint": "^5.16.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-vue": "^5.0.0",
"node-sass": "^4.14.1",
"node-sass": "npm:dart-sass@^1.25.0",
"prettier": "^1.19.1",
"sass-loader": "^8.0.0",
"vue-cli-plugin-element": "^1.0.1",
......
......@@ -246,5 +246,54 @@ export function getByIdWithSpecification(params) {
returnAll: true
})
}
// 采购退货
export function purchaseOrderGoodsRefund(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smarcarlife.purchaseOrder.goodsRefund`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 获取车型
export function getCarBrandList(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.car.getCarBrandList`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 获取车型
export function carTypePage(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smartcarlife.common.car.type.page`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 获取sku可选车品牌列表
export function getCanSelectCarBrandList(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smartcarlife.upgradeGoods.getCanSelectCarBrandList`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { checkShipper, get4SRefByYqShopList, selectByOrderCode, purchaseOrderDelete, getManageMode, getMerchantList, purchaseOrderPutIn, exportExcel, shoppingCarUpdateNumber, purchaseOrderAdd, shoppingCarAdd, shoppingCarRemove, updateSelectedFlag, listGroupByGoodsType, getPurchaseOrderList, purchaseOrderCancelOrCheck, purchaseOrderDetail, listWithPagePurchaseInfo, addressGet, addressSave, getByIdWithSpecification }
export default { getCanSelectCarBrandList, carTypePage, getCarBrandList, purchaseOrderGoodsRefund, checkShipper, get4SRefByYqShopList, selectByOrderCode, purchaseOrderDelete, getManageMode, getMerchantList, purchaseOrderPutIn, exportExcel, shoppingCarUpdateNumber, purchaseOrderAdd, shoppingCarAdd, shoppingCarRemove, updateSelectedFlag, listGroupByGoodsType, getPurchaseOrderList, purchaseOrderCancelOrCheck, purchaseOrderDetail, listWithPagePurchaseInfo, addressGet, addressSave, getByIdWithSpecification }
......@@ -24,25 +24,33 @@
</div>
<div>
发货数量:
<span>{{ membraneTypeList.includes(item.goodsType) ? `${item.purchaseNumber}卷` : `${item.purchaseNumber}件` }}</span>
<span class="lookNumber" @click="lookNumber(item.deliveryCardList)" v-if="item.deliveryCardList && item.deliveryCardList.length > 0">查看卡号</span>
<span>{{ membraneTypeList.includes(item.goodsType) ? `${item.purchaseNumber}卷` : `${item.purchaseNumber}件`
}}</span>
<span class="lookNumber" @click="lookNumber(item.deliveryCardList)"
v-if="item.deliveryCardList && item.deliveryCardList.length > 0">查看卡号</span>
</div>
<div>
可用库存数量:
<span>{{ item.stockNum }}{{ membraneTypeList.includes(item.goodsType) ? `米` : `件` }}</span>
</div>
<div class="add-btn" @click="addLineTable(index)" v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0">添加入库记录</div>
<div class="add-btn" @click="addLineTable(index)"
v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0">添加入库记录</div>
</div>
<el-form ref="addForm" :model="item" size="small" :rules="rules" v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0">
<GLTable :tableData="item.goodsWarehousingList" :noDataImg="url" :tableParams="tableParams" :hasPage="false">
<el-form ref="addForm" :model="item" size="small" :rules="rules"
v-if="item.deliveryCardList === null || item.deliveryCardList.length == 0">
<GLTable :tableData="item.goodsWarehousingList" :noDataImg="url" :tableParams="tableParams"
:hasPage="false">
<template slot="increaseStockNum" slot-scope="scope">
<el-form-item style="margin-bottom: 0px" :prop="'goodsWarehousingList.' + scope.index + '.increaseStockNum'" :rules="rules.increaseStockNum">
<el-input v-model="scope.scope.increaseStockNum" placeholder="请输入" @blur="handleCalculate(scope.scope, 'increaseStockNum', index)"></el-input>
<el-form-item style="margin-bottom: 0px"
:prop="'goodsWarehousingList.' + scope.index + '.increaseStockNum'" :rules="rules.increaseStockNum">
<el-input v-model="scope.scope.increaseStockNum" placeholder="请输入"
@blur="handleCalculate(scope.scope, 'increaseStockNum', index)"></el-input>
</el-form-item>
</template>
<template slot="film" slot-scope="scope">
<div v-if="manageMode && filmTypeList.includes(detailInfo.goodsType)">
<el-button v-if="!scope.scope.filmRollList" type="text" @click="handleSelectFilm(scope.scope, index, scope.index)">请选择</el-button>
<el-button v-if="!scope.scope.filmRollList" type="text"
@click="handleSelectFilm(scope.scope, index, scope.index)">请选择</el-button>
<div v-else>
<span class="film-txt">...({{ scope.scope.filmRollList.length }})</span>
<el-button type="text" @click="handleSelectFilm(scope.scope, index, scope.index)">重新选择</el-button>
......@@ -52,17 +60,23 @@
</template>
<!-- 入库仓库 -->
<template slot="yqMerchantId" slot-scope="scope">
<el-form-item style="margin-bottom: 0px" :prop="'goodsWarehousingList.' + scope.index + '.yqMerchantId'" :rules="rules.shopMerchantName">
<el-select style="width: 100%" v-model="scope.scope.yqMerchantId" placeholder="请选择" @change="handleSelect(scope.scope, scope.scope.yqMerchantId)">
<el-option v-for="item in storeUsageList" :key="item.merchantNo" :label="item.merchantName" :value="item.merchantNo"></el-option>
<el-form-item style="margin-bottom: 0px" :prop="'goodsWarehousingList.' + scope.index + '.yqMerchantId'"
:rules="rules.shopMerchantName">
<el-select style="width: 100%" v-model="scope.scope.yqMerchantId" placeholder="请选择"
@change="handleSelect(scope.scope, scope.scope.yqMerchantId)">
<el-option v-for="item in storeUsageList" :key="item.merchantNo" :label="item.merchantName"
:value="item.merchantNo"></el-option>
</el-select>
</el-form-item>
</template>
<!-- 入库门店 -->
<template slot="merchantId" slot-scope="scope">
<el-form-item style="margin-bottom: 0px" :prop="'goodsWarehousingList.' + scope.index + '.merchantId'" :rules="rules.merchantId">
<el-select style="width: 100%" v-model="scope.scope.merchantId" placeholder="请选择" @change="handleStoreSelect(scope.scope, scope.scope.merchantId)">
<el-option v-for="item in refByYqShopList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId"></el-option>
<el-form-item style="margin-bottom: 0px" :prop="'goodsWarehousingList.' + scope.index + '.merchantId'"
:rules="rules.merchantId">
<el-select style="width: 100%" v-model="scope.scope.merchantId" placeholder="请选择"
@change="handleStoreSelect(scope.scope, scope.scope.merchantId)">
<el-option v-for="item in refByYqShopList" :key="item.merchantId" :label="item.merchantName"
:value="item.merchantId"></el-option>
</el-select>
</el-form-item>
</template>
......@@ -75,14 +89,17 @@
</div>
</template>
<el-dialog width="750px" title="查看发货卡号" :visible.sync="innerVisible" append-to-body>
<GLTable class="look-card-wrap" :tableData="tableData" :noDataImg="url" :tableParams="innerParams" :hasPage="false"></GLTable>
<GLTable class="look-card-wrap" :tableData="tableData" :noDataImg="url" :tableParams="innerParams"
:hasPage="false">
</GLTable>
</el-dialog>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogShow = false">关闭</el-button>
<el-button type="primary" size="small" @click="handleSave" :loading="loading">保存入库</el-button>
</span>
</GLDialog>
<filmDialog :visible.sync="filmVisible" :info="info" maxAddNumAttr="stockAddNum" @handleConfirm="handleFilmConfirm"></filmDialog>
<filmDialog :visible.sync="filmVisible" :info="info" maxAddNumAttr="stockAddNum" @handleConfirm="handleFilmConfirm">
</filmDialog>
</div>
</template>
<script>
......@@ -422,44 +439,53 @@ export default {
color: #666666ff;
font-size: 14px;
margin-bottom: 16px;
span {
color: #333333ff;
}
.add-btn {
font-size: 14px;
color: #5850ff;
cursor: pointer;
}
}
.table-wrap {
border: 1px solid #e5e5e5;
padding: 16px;
box-sizing: border-box;
margin-top: 16px;
/deep/ .el-form-item__error {
::v-deep .el-form-item__error {
padding-top: 2px;
z-index: 9999999;
position: static;
}
/deep/ td.el-table__cell {
::v-deep td.el-table__cell {
height: 64px;
}
}
.lookNumber {
font-size: 14px;
color: #5850ff !important;
cursor: pointer;
margin-left: 8px;
}
.look-card-wrap {
/deep/.el-table th.el-table__cell > .cell {
::v-deep.el-table th.el-table__cell>.cell {
padding: 0 16px;
text-align: center;
}
/deep/.el-table__body td.el-table__cell {
::v-deep.el-table__body td.el-table__cell {
text-align: center;
}
}
.film-txt {
box-sizing: border-box;
height: 32px;
......
......@@ -20,7 +20,7 @@
<div class="detail-info">
<div>
商品名称:
<span>{{ detailInfo.upgradeGoodsName }}&nbsp;&nbsp; {{detailInfo.specificationData}}</span>
<span>{{ detailInfo.upgradeGoodsName }}&nbsp;&nbsp; {{ detailInfo.specificationData }}</span>
</div>
<div>
发货数量:
......@@ -53,7 +53,8 @@
</div>
<!-- </template> -->
<el-dialog width="750px" title="查看发货卡号" :visible.sync="innerVisible" append-to-body>
<GLTable class="look-card-wrap" :tableData="tableData" :noDataImg="url" :tableParams="innerParams" :hasPage="false">
<GLTable class="look-card-wrap" :tableData="tableData" :noDataImg="url" :tableParams="innerParams"
:hasPage="false">
</GLTable>
</el-dialog>
</GLDialog>
......@@ -182,7 +183,7 @@ export default {
box-sizing: border-box;
margin-top: 16px;
/deep/ .el-form-item__error {
::v-deep .el-form-item__error {
padding-top: 2px;
z-index: 9999999;
position: static;
......@@ -201,12 +202,13 @@ export default {
overflow-y: scroll;
overflow-x: hidden;
/deep/.el-table th.el-table__cell>.cell {
::v-deep.el-table th.el-table__cell>.cell {
padding: 0 16px;
text-align: center;
}
/deep/.el-table__body td.el-table__cell {
::v-deep.el-table__body td.el-table__cell {
text-align: center;
}
}</style>
}
</style>
......@@ -2,7 +2,8 @@
<template>
<div class="purchase">
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="showFormData"
@handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<h2>发货单列表</h2>
<div>
......@@ -11,13 +12,26 @@
</div>
<!-- 表格区域 开始 -->
<GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm"
:tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<template slot="putStatus" slot-scope="scope">
<div>
<span :class="[scope.scope.putStatus == 1 ? 'ashSpot' : scope.scope.putStatus == 2 ? 'greenSpot' : 'yellowSpot']"></span>
<span
:class="[scope.scope.putStatus == 1 ? 'ashSpot' : scope.scope.putStatus == 2 ? 'greenSpot' : 'yellowSpot']"></span>
<span>{{ scope.scope.putStatus | puStatus }}</span>
</div>
</template>
<template slot="carName" slot-scope="scope">
<!-- <div>{{ JSON.stringify(scope.scope.suitCarTypeList) }}</div> -->
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length" placement="top">
<div slot="content">
<div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">{{ item.carTypeName }}</div>
</div>
<div>{{ scope.scope.suitCarTypeList | formatCar }}</div>
</el-tooltip>
<div v-else>--</div>
</template>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
</div>
......@@ -42,6 +56,15 @@ export default {
DeliverAdd,
DeliverDetail
},
filters: {
formatCar(list) {
console.log(list, 'list')
let str = list.map(item => {
return item.carTypeName
}).join(',')
return str.length > 15 ? str.substring(0, 15) + '...' : str
}
},
data() {
return {
size: 'small',
......@@ -180,10 +203,15 @@ export default {
prop: 'type'
},
{
label: '规格',
prop: 'specificationData',
width: 100
},
label: '规格',
prop: 'specificationData',
width: 100
},
{
label: '适用车型',
addHtml: 'carName',
width: 200,
},
{
label: '系列',
prop: 'goodsName'
......@@ -237,7 +265,11 @@ export default {
label: '所属商户',
prop: 'merchantName'
},
{
label: '备注',
prop: 'remark',
width: 150
},
{
label: '状态',
prop: 'putStatus',
......@@ -385,6 +417,7 @@ export default {
<style scoped lang="scss">
@import '@/assets/css/mixin.scss';
.purchase {
.table-header {
display: flex;
......@@ -392,33 +425,40 @@ export default {
justify-content: space-between;
margin-bottom: 10px;
margin-top: 20px;
h2 {
font-weight: 600;
font-size: 16px;
color: #333;
}
.glbtn {
left: 46px;
position: absolute;
}
.btn {
right: 47px;
position: absolute;
}
}
.greenSpot {
@include dot;
background: $color-green;
}
.yellowSpot {
@include dot;
background: $color-yellow;
}
.ashSpot {
@include dot;
background: $color-gray;
}
.table-btns /deep/.el-button--text {
.table-btns ::v-deep.el-button--text {
min-width: 0 !important;
padding: 0;
}
......
......@@ -2,7 +2,8 @@
<template>
<div class="purchase">
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="showFormData"
@handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<h2>采购审核列表</h2>
<div>
......@@ -11,10 +12,12 @@
</div>
<!-- 表格区域 开始 -->
<GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm"
:tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<template slot="status" slot-scope="scope">
<div>
<span :class="Spot[scope.scope.status-1]"></span>
<span :class="Spot[scope.scope.status - 1]"></span>
<span>{{ scope.scope.status | purchaseCheckStatus }}</span>
</div>
</template>
......@@ -25,7 +28,9 @@
<!-- 表格区域 end -->
</div>
<filmDialog :visible.sync="filmVisible" :info="info" @handleConfirm="handleFilmConfirm"></filmDialog>
<rejectDialog v-if="rejectDialogVisible" :visible.sync="rejectDialogVisible" @handleRejectConfirm="handleRejectConfirm"></rejectDialog>
<rejectDialog v-if="rejectDialogVisible" :visible.sync="rejectDialogVisible"
@handleRejectConfirm="handleRejectConfirm">
</rejectDialog>
</div>
</template>
......@@ -463,6 +468,7 @@ export default {
<style scoped lang="scss">
@import '@/assets/css/mixin.scss';
.purchase {
.table-header {
display: flex;
......@@ -470,37 +476,45 @@ export default {
justify-content: space-between;
margin-bottom: 10px;
margin-top: 20px;
h2 {
font-weight: 600;
font-size: 16px;
color: #333;
}
.glbtn {
left: 46px;
position: absolute;
}
.btn {
right: 47px;
position: absolute;
}
}
.greenSpot {
@include dot;
background: $color-green;
}
.yellowSpot {
@include dot;
background: $color-yellow;
}
.ashSpot {
@include dot;
background: $color-gray;
}
.redSpot {
@include dot;
background: $color-red;
}
.table-btns /deep/.el-button--text {
.table-btns ::v-deep.el-button--text {
min-width: 0 !important;
padding: 0;
}
......
<!-- 驳回弹窗 -->
<template>
<GLDialog title="驳回" :visible.sync="dialogVisible" class="rejectDialog" :destroy-on-close="true" :close-on-click-modal="false" :before-close="handleClose" @onOk="handleConfirm" @onCancel="handleClose">
<GLDialog title="驳回" :visible.sync="dialogVisible" class="rejectDialog" :destroy-on-close="true"
:close-on-click-modal="false" :before-close="handleClose" @onOk="handleConfirm" @onCancel="handleClose">
<el-form ref="rejectForm" class="rejectForm" :model="dataForm" :rules="formRules" label-width="154px" size="small">
<el-form-item label="驳回原因:" prop="reason">
<el-input v-model.trim="dataForm.reason" placeholder="请输入驳回原因" maxlength="20" class="form-node"></el-input>
......@@ -21,7 +22,7 @@ export default {
},
recordInfo: {
type: Object,
default: () => {}
default: () => { }
}
},
data() {
......@@ -67,12 +68,12 @@ export default {
}
</script>
<style scoped lang="scss">
.rejectDialog{
.form-node{
.rejectDialog {
.form-node {
width: 432px;
}
/deep/.el-dialog__body{
::v-deep.el-dialog__body {
display: flex;
align-items: center;
}
......
......@@ -3,24 +3,15 @@
<div class="edit-purchase-grounding purchase-grounding edit-box">
<div class="container edit-container">
<p class="edit-title">基础信息</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" :pageThat="this" :labelWidth="defaultLabelWidth" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" :pageThat="this"
:labelWidth="defaultLabelWidth" :isBlock="true" :formRef="editChildRef" :formObj="editForm"
:formData="editFormData" :formRules="editRule">
<div slot="selectGoods">
<el-select
v-model="editForm.upgradeGoodsId"
placeholder="请选择上架商品"
@change="handleGoodsChange"
style="width: 432px"
@focus="handleGoodsFocus"
remote
reserve-keyword
@visible-change="visibleChange"
:remote-method="remoteMethod"
v-el-select-loadmore="interestsLoadmore"
filterable>
<el-option v-for="subItem in goodsList"
:key="subItem.id"
:label="subItem.upgradeGoodsName"
:value="subItem.id">
<el-select v-model="editForm.upgradeGoodsId" placeholder="请选择上架商品" @change="handleGoodsChange"
style="width: 432px" @focus="handleGoodsFocus" remote reserve-keyword @visible-change="visibleChange"
:remote-method="remoteMethod" v-el-select-loadmore="interestsLoadmore" filterable>
<el-option v-for="subItem in goodsList" :key="subItem.id" :label="subItem.upgradeGoodsName"
:value="subItem.id">
</el-option>
</el-select>
</div>
......@@ -28,7 +19,8 @@
<div class="goodsInfo-box">
<div class="item" v-for="(subItem, subIndex) in copyGoodsDetailForm" :key="subIndex">
<div v-if="subItem.addHtml" class="item_box">
<div class="label">{{ (membraneTypeList.includes(selectedGoodsInfo['goodsType']) ? subItem.label + `(元)/卷` : (subItem.label + '(元)/件')) }}:</div>
<div class="label">{{ (membraneTypeList.includes(selectedGoodsInfo['goodsType']) ? subItem.label +
`(元)/卷` : (subItem.label + '(元)/件')) }}:</div>
<div class="value">{{ priceFilter(selectedGoodsInfo[subItem.value]) }}</div>
</div>
<div v-else class="item_box">
......@@ -42,7 +34,9 @@
</div>
<div class="container edit-container">
<p class="edit-title">上架门店</p>
<glsx-combi-form class="edit-form-container" ref="editFormMerchantRef" :isEdit="isEdit" :labelWidth="defaultLabelWidth" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="merchantEditFormData" :formRules="editRule">
<glsx-combi-form class="edit-form-container" ref="editFormMerchantRef" :isEdit="isEdit"
:labelWidth="defaultLabelWidth" :isBlock="true" :formRef="editChildRef" :formObj="editForm"
:formData="merchantEditFormData" :formRules="editRule">
<div slot="merchantTable" :style="{ width: `calc(100% - ${defaultLabelWidth} )` }">
<div class="table-title">
上架门店列表
......@@ -59,15 +53,19 @@
<GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button>
<!-- 新增/草稿显示 -->
<el-button v-if="editType == 'add' || editForm.status == 0" type="primary" @click="handleConfirm(true)" plain size="medium" :loading="loading">草稿</el-button>
<el-button v-if="editType == 'add' || editForm.status == 0" type="primary" @click="handleConfirm(true)" plain
size="medium" :loading="loading">草稿</el-button>
<el-button type="primary" @click="handleConfirm(false)" size="medium" :loading="loading">保存上架</el-button>
</GLFooter>
<!-- 门店弹窗 -->
<relate-store-dialog v-if="relateStoreVisible" ref="relateStore" :relateStoreVisible="relateStoreVisible" :storeApi="storeApi" :storeSearchForm="storeSearchForm" :storeSelected="selectedList" @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose">
<relate-store-dialog v-if="relateStoreVisible" ref="relateStore" :relateStoreVisible="relateStoreVisible"
:storeApi="storeApi" :storeSearchForm="storeSearchForm" :storeSelected="selectedList"
@handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose">
<el-row slot>
<el-form :model="storeSearchForm" ref="relate" :inline="true" label-width="90px">
<el-form-item label="客户名称:" prop="merchantName">
<el-input :size="size" v-model.trim="storeSearchForm.merchantName" placeholder="请输入客户名称" clearable></el-input>
<el-input :size="size" v-model.trim="storeSearchForm.merchantName" placeholder="请输入客户名称"
clearable></el-input>
</el-form-item>
<el-form-item label="商户号:" prop="merchantName">
<el-input :size="size" v-model.trim="storeSearchForm.merchantId" placeholder="请输入商户号" clearable></el-input>
......@@ -258,7 +256,7 @@ export default {
directives: {
'el-select-loadmore': {
bind (el, binding) {
bind(el, binding) {
const SELECTWRAP_DOM = el.querySelector(
'.el-select-dropdown .el-select-dropdown__wrap'
)
......@@ -281,7 +279,7 @@ export default {
methods: {
keyDown() {
document.onkeydown = function() {
document.onkeydown = function () {
var evt = window.event || arguments[0]
if (evt && evt.keyCode == 13) {
if (typeof evt.cancelBubble != 'undefined') evt.cancelBubble = true
......@@ -294,9 +292,9 @@ export default {
setUnit() {
let index = this.editFormData.findIndex(val => val.name == 'shopPurchasePrice')
if (this.membraneTypeList.includes(this.selectedGoodsInfo?.goodsType)) { // 所选商品是膜类 门店采购价单位修改
if(index > -1) this.editFormData[index].label = '门店采购价(元)/卷'
if (index > -1) this.editFormData[index].label = '门店采购价(元)/卷'
} else {
if(index > -1) this.editFormData[index].label = '门店采购价(元)/件'
if (index > -1) this.editFormData[index].label = '门店采购价(元)/件'
}
},
// 获取上架数据
......@@ -318,7 +316,7 @@ export default {
}
},
handleGoodsFocus() {
if ((this.editForm?.goodsSource ?? '') === '')return this.$message.error('请选择商品来源')
if ((this.editForm?.goodsSource ?? '') === '') return this.$message.error('请选择商品来源')
if (!this.goodsList?.length && this.requestFlag) return this.$message.error('暂无商品')
},
// 获取更多上架商品
......@@ -494,7 +492,7 @@ export default {
.then(() => {
this.cancelJump()
})
.catch(() => {})
.catch(() => { })
} else {
this.cancelJump()
}
......@@ -503,10 +501,11 @@ export default {
}
</script>
<style scoped lang="scss">
.purchase-grounding{
.container{
.purchase-grounding {
.container {
padding: 0 0 20px;
background: #fff;
.edit-title {
font-size: 16px;
font-weight: 600;
......@@ -516,18 +515,22 @@ export default {
margin: 0 0;
padding: 0 0 0 20px;
}
.goodsInfo-box{
.goodsInfo-box {
margin: 0 70px 0 154px;
background: #F9F9F9;
display: flex;
flex-wrap: wrap;
padding: 15px 0;
.item{
.item {
flex: 0 0 33%;
.item_box{
.item_box {
display: flex;
align-items: start;
.label{
.label {
flex-shrink: 0;
color: #666666;
width: 150px;
......@@ -537,11 +540,14 @@ export default {
}
}
}
.edit-container{
.edit-container {
margin-bottom: 16px;
}
.edit-form-container {
margin:20px 20px 0 0;
margin: 20px 20px 0 0;
.table-title {
display: flex;
justify-content: space-between;
......@@ -549,10 +555,12 @@ export default {
}
}
}
.purchase-grounding.edit-purchase-grounding .select-merchant {
/* width: calc(98% - 140px); */
width: 98%;
}
.merchant-table {
margin: 0 20px;
}
......
......@@ -3,13 +3,16 @@
<div class="purchase-grounding-detail purchase-grounding edit-box">
<div class="container edit-container">
<p class="edit-title">基础信息</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" :pageThat="this" :labelWidth="defaultLabelWidth" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" :pageThat="this"
:labelWidth="defaultLabelWidth" :isBlock="true" :formRef="editChildRef" :formObj="editForm"
:formData="editFormData" :formRules="editRule">
<div slot="sourceStrSpan">{{ editForm['goodsSourceStr'] }}</div>
<div slot="groundingGoodsInfo">
<div class="goodsInfo-box">
<div class="item" v-for="(subItem, subIndex) in goodsDetailForm" :key="subIndex">
<div v-if="subItem.addHtml" class="item_box">
<div class="label">{{ (membraneTypeList.includes(editForm.groundingGoodsInfo['goodsType']) ? subItem.label + `(元)/卷` : (subItem.label + '(元)/件')) }}:</div>
<div class="label">{{ (membraneTypeList.includes(editForm.groundingGoodsInfo['goodsType']) ?
subItem.label + `(元)/卷` : (subItem.label + '(元)/件')) }}:</div>
<div class="value">{{ priceFilter(editForm.groundingGoodsInfo[subItem.value]) }}</div>
</div>
<div v-else class="item_box">
......@@ -24,12 +27,15 @@
</div>
<div class="container edit-container">
<p class="edit-title">上架门店</p>
<glsx-combi-form class="edit-form-container" ref="editFormMerchantRef" :isEdit="isEdit" :labelWidth="defaultLabelWidth" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="merchantEditFormData" :formRules="editRule">
<glsx-combi-form class="edit-form-container" ref="editFormMerchantRef" :isEdit="isEdit"
:labelWidth="defaultLabelWidth" :isBlock="true" :formRef="editChildRef" :formObj="editForm"
:formData="merchantEditFormData" :formRules="editRule">
<div slot="merchantTable" :style="{ width: `calc(100% - ${defaultLabelWidth} )` }">
<div class="table-title">
上架门店列表
</div>
<GLTable ref="warehousListRef" :hasPage="false" :tableParams="tableParams" :tableData="editForm.merchantList"></GLTable>
<GLTable ref="warehousListRef" :hasPage="false" :tableParams="tableParams" :tableData="editForm.merchantList">
</GLTable>
</div>
</glsx-combi-form>
</div>
......@@ -131,7 +137,7 @@ export default {
methods: {
keyDown() {
document.onkeydown = function() {
document.onkeydown = function () {
var evt = window.event || arguments[0]
if (evt && evt.keyCode == 13) {
if (typeof evt.cancelBubble != 'undefined') evt.cancelBubble = true
......@@ -154,7 +160,7 @@ export default {
res.goodsSourceStr = !((res.goodsSource ?? '') === '') ? goodsSourceOptions[res.goodsSource - 0]?.label : '-'
let index = this.editFormData.findIndex(val => val.name == 'shopPurchasePrice')
if (this.membraneTypeList?.includes(res?.goodsInfo?.goodsType)) { // 膜类商品 单位是卷
if(index > -1) this.editFormData[index].label = '门店采购价(元)/卷'
if (index > -1) this.editFormData[index].label = '门店采购价(元)/卷'
}
if (res?.goodsSource == 1) { // 自营
let index = this.goodsDetailForm.findIndex(val => val.value == 'purchasePrice')
......@@ -178,10 +184,11 @@ export default {
}
</script>
<style scoped lang="scss">
.purchase-grounding{
.container{
.purchase-grounding {
.container {
padding: 0 0 20px;
background: #fff;
.edit-title {
font-size: 16px;
font-weight: 600;
......@@ -191,17 +198,21 @@ export default {
margin: 0 0;
padding: 0 0 0 20px;
}
.goodsInfo-box{
.goodsInfo-box {
background: #F9F9F9;
display: flex;
flex-wrap: wrap;
padding: 15px 0;
.item{
.item {
flex: 0 0 33%;
.item_box{
.item_box {
display: flex;
align-items: start;
.label{
.label {
flex-shrink: 0;
color: #666666;
width: 150px;
......@@ -211,32 +222,39 @@ export default {
}
}
}
.edit-container{
.edit-container {
margin-bottom: 16px;
}
.edit-form-container {
margin:20px 20px 0 0;
margin: 20px 20px 0 0;
.table-title {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
}
.m-r-20 {
/deep/.glsx-combi-form-block{
::v-deep.glsx-combi-form-block {
color: #666666;
&:nth-child(1){
.el-form-item__content{
&:nth-child(1) {
.el-form-item__content {
width: calc(100% - 154px);
}
}
}
}
}
.purchase-grounding.purchase-grounding-detail .select-merchant {
/* width: calc(98% - 140px); */
width: 98%;
}
.merchant-table {
margin: 0 20px;
}
......
......@@ -2,7 +2,8 @@
<template>
<div class="purchase">
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="showFormData"
@handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<h2>采购上架列表</h2>
<div>
......@@ -12,15 +13,18 @@
</div>
<!-- 表格区域 开始 -->
<GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm"
:tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<div slot="merchantName" slot-scope="scope">
<el-tooltip v-if="scope.scope.merchantList && scope.scope.merchantList.length > 0" placement="top" effect="light">
<el-tooltip v-if="scope.scope.merchantList && scope.scope.merchantList.length > 0" placement="top"
effect="light">
<div slot="content">
<div class="text-3 font-12 weight-6" style="line-height:24px">上架门店</div>
<div class="merchant-wrap">
<div class="text-6 font-12" style="line-height:24px" v-for="item in scope.scope.merchantList" :key="item">{{ item.merchantName }}</div>
<div class="text-6 font-12" style="line-height:24px" v-for="item in scope.scope.merchantList"
:key="item">{{ item.merchantName }}</div>
</div>
</div>
<div class="use-store">
<img src="@/assets/store.png" />
......@@ -32,7 +36,7 @@
<template slot="status" slot-scope="scope">
<div>
<span :class="Spot[scope.scope.status]"></span>
<span >{{ scope.scope.status | groundingStatus }}</span>
<span>{{ scope.scope.status | groundingStatus }}</span>
</div>
</template>
<div class="table-btns" slot="auth-button" slot-scope="scope">
......@@ -54,7 +58,7 @@ export default {
return {
size: 'small',
url: url,
Spot:['yellowSpot','ashSpot','greenSpot'],
Spot: ['yellowSpot', 'ashSpot', 'greenSpot'],
searchForm: {
upgradeGoodsName: '',
type: '',
......@@ -96,7 +100,7 @@ export default {
optionList: [],
optionId: 'goodsType',
optionLabel: 'goodsTypeName',
optionsName: 'classificationOptions'
optionsName: 'classificationOptions'
},
{
label: '商品来源',
......@@ -307,7 +311,7 @@ export default {
},
// 上架门店
getMerchantList() {
this.$apis.grounding.getSimpleMerchantList({scene: 1, merchantId: this.$globalState?.session?.merchantId}).then(res => {
this.$apis.grounding.getSimpleMerchantList({ scene: 1, merchantId: this.$globalState?.session?.merchantId }).then(res => {
this.baseData.merchantList = res || []
this.getOptionsList('showFormData')
})
......@@ -397,7 +401,7 @@ export default {
},
// 创建采购上架
handleCreatePurchase() {
this.$router.push('/purchaseGrounding/add')
this.$router.push('/purchaseGrounding/add')
},
exportExcel() {
var params = this.getParams()
......@@ -428,6 +432,7 @@ export default {
<style scoped lang="scss">
@import '@/assets/css/mixin.scss';
.purchase {
.table-header {
display: flex;
......@@ -435,45 +440,55 @@ export default {
justify-content: space-between;
margin-bottom: 10px;
margin-top: 20px;
h2 {
font-weight: 600;
font-size: 16px;
color: #333;
}
.glbtn {
left: 46px;
position: absolute;
}
.btn {
right: 47px;
position: absolute;
}
}
.greenSpot {
@include dot;
background: $color-green;
}
.yellowSpot {
@include dot;
background: $color-yellow;
}
.ashSpot {
@include dot;
background: $color-gray;
}
.redSpot {
@include dot;
background: $color-red;
}
.table-btns /deep/.el-button--text {
.table-btns ::v-deep.el-button--text {
min-width: 0 !important;
padding: 0;
}
.use-store{
.use-store {
display: flex;
font-size: 14px;
color: #5850ff;
align-items: center;
img {
width: 14px;
height: 12.98px;
......@@ -481,8 +496,9 @@ export default {
}
}
}
.merchant-wrap{
max-height:200px;
.merchant-wrap {
max-height: 200px;
overflow: scroll;
}
</style>
......@@ -494,6 +510,7 @@ export default {
width: 177px;
box-sizing: border-box;
}
.el-tooltip__popper[x-placement^='top'] .popper__arrow {
border-color: #e4e7ed !important;
}
......
......@@ -22,7 +22,8 @@
</span>
<span class="address">
收货地址:
<span class="label">{{ $$(addressInfo, 'provinceName') }}{{ $$(addressInfo, 'cityName') }}{{ $$(addressInfo, 'areaName') }}{{ $$(addressInfo, 'contactAddress') }}</span>
<span class="label">{{ $$(addressInfo, 'provinceName') }}{{ $$(addressInfo, 'cityName') }}{{ $$(addressInfo,
'areaName') }}{{ $$(addressInfo, 'contactAddress') }}</span>
</span>
</div>
</div>
......@@ -30,14 +31,17 @@
<!-- :stretch="false" -->
<div class="classifyContainer">
<el-tabs v-model="searchForm.goodsType" @tab-click="handleSearch" type="card">
<el-tab-pane v-for="(item, i) in navList" :key="i" class="tabItem" :label="item.goodsTypeName" :name="item.goodsType"></el-tab-pane>
<el-tab-pane v-for="(item, i) in navList" :key="i" class="tabItem" :label="item.goodsTypeName"
:name="item.goodsType"></el-tab-pane>
</el-tabs>
</div>
<div class="searchCon">
<GLCombiForm ref="showSearch" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleRest"></GLCombiForm>
<GLCombiForm ref="showSearch" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch"
@handleRest="handleRest"></GLCombiForm>
</div>
<div class="goodsCon">
<div class="goodsItemCon" v-for="(item, index) in purchaseList" :class="[{ active: item.active }, { last: index === purchaseList.length - 1 }]" :key="index" >
<div class="goodsItemCon" v-for="(item, index) in purchaseList"
:class="[{ active: item.active }, { last: index === purchaseList.length - 1 }]" :key="index">
<!-- 图片{{ item.thumbUrl }} -->
<img :src="item.thumbUrl" class="img" alt="" />
<span class="goodsName one-line-ellipsis">{{ item.goodsName }}</span>
......@@ -52,7 +56,9 @@
</div>
</div>
<div class="pageCon">
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page.pageNum" :page-sizes="[10, 20, 30, 40]" :page-size="page.pageSize" :total="total" layout="->,prev,pager,next" />
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange"
:current-page="page.pageNum" :page-sizes="[10, 20, 30, 40]" :page-size="page.pageSize" :total="total"
layout="->,prev,pager,next" />
</div>
</div>
<!-- 购物车组件 -->
......@@ -116,7 +122,7 @@ export default {
this.listWithPagePurchaseInfo()
this.addressGet()
},
mounted() {},
mounted() { },
methods: {
orderFrom() {
this.addressComVisible = true
......@@ -160,7 +166,7 @@ export default {
},
// 获取类目列表
getGoodsCategoryConfiguration() {
this.$apis.sysBase.getGoodsCategoryConfiguration({shoppingMallFlag: true }).then(result => {
this.$apis.sysBase.getGoodsCategoryConfiguration({ shoppingMallFlag: true }).then(result => {
const { list } = result
if (list.length) {
const navList = list.map(({ categoryType, categoryName }) => {
......@@ -179,7 +185,7 @@ export default {
.then(result => {
if (result) {
this.addressInfo = result
console.log( this.addressInfo)
console.log(this.addressInfo)
}
if (this.showOrderCom) {
......@@ -213,16 +219,20 @@ export default {
max-width: 1350px;
margin: 0 auto;
overflow: scroll;
.bg {
background: #fff;
}
.d2-header-switch {
display: none;
}
.d2-container-content {
margin: 20px auto;
background: #fff;
}
.shopMallCon {
padding: 0 0 20px !important;
}
......@@ -246,9 +256,11 @@ export default {
margin: 0 16px 16px;
overflow: hidden;
padding: 8px 8px 16px;
&:hover{
border: 1px solid #5850ff;
&:hover {
border: 1px solid #5850ff;
}
&.active {
border: 1px solid #5850ff;
}
......@@ -349,7 +361,7 @@ export default {
font-size: 14px;
color: #666666;
> span {
>span {
margin-right: 25px;
margin-bottom: 15px;
}
......@@ -372,7 +384,8 @@ export default {
width: 670px !important;
min-width: 670px;
}
/deep/ .name {
::v-deep .name {
width: 20px !important;
}
}
......
......@@ -17,7 +17,8 @@
<template slot="filmNum" slot-scope="scope">
<el-form :ref="'addForm' + scope.index" :model="scope.scope" size="small" :rules="rules">
<el-form-item style="margin-bottom: 0px" prop="filmNum">
<el-input v-model="scope.scope.filmNum" placeholder="请输入" maxlength="50" @input="e => handleInputFilmNum(e, scope.index)"></el-input>
<el-input v-model="scope.scope.filmNum" placeholder="请输入" maxlength="50"
@input="e => handleInputFilmNum(e, scope.index)"></el-input>
</el-form-item>
</el-form>
</template>
......@@ -155,9 +156,11 @@ export default {
color: #666666ff;
font-size: 14px;
margin-bottom: 16px;
span {
color: #333333ff;
}
.add-btn {
font-size: 14px;
color: #5850ff;
......@@ -167,18 +170,22 @@ export default {
padding: 6px 16px;
}
}
.table-wrap {
box-sizing: border-box;
margin-top: 16px;
/deep/ .el-form-item__error {
::v-deep .el-form-item__error {
padding-top: 2px;
z-index: 9999999;
position: static;
}
/deep/ td.el-table__cell {
::v-deep td.el-table__cell {
height: 64px;
}
}
// .lookNumber {
// font-size: 14px;
// color: #5850ff !important;
......@@ -186,11 +193,12 @@ export default {
// margin-left: 8px;
// }
.look-card-wrap {
/deep/.el-table th.el-table__cell > .cell {
::v-deep.el-table th.el-table__cell>.cell {
padding: 0 16px;
text-align: center;
}
/deep/.el-table__body td.el-table__cell {
::v-deep.el-table__body td.el-table__cell {
text-align: center;
}
}
......
<template>
<el-drawer class="shoppingCartDrawerCon" title="收货地址管理" size="500px" :visible.sync="dialogShow" :direction="direction">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="100px" default-width="350px" :form-ref="editChildRef" :form-obj="editForm" :form-data="editFormData" :form-rules="editRule">
<el-drawer class="shoppingCartDrawerCon" title="收货地址管理" size="500px" :visible.sync="dialogShow"
:direction="direction">
<glsx-combi-form class="edit-form-container" ref="editFormRef" label-width="100px" default-width="350px"
:form-ref="editChildRef" :form-obj="editForm" :form-data="editFormData" :form-rules="editRule">
<span slot="provincesAndCities">
<!-- slot-scope="scope" -->
<el-cascader v-model="editForm.provincesAndCities" size="mini" ref="cascader" placeholder="请选择 省/市/区" style="width:350px" :options="provincesAndCities_options" :props="{ label: 'name', value: 'code', children: 'childrenList' }" />
<el-cascader v-model="editForm.provincesAndCities" size="mini" ref="cascader" placeholder="请选择 省/市/区"
style="width:350px" :options="provincesAndCities_options"
:props="{ label: 'name', value: 'code', children: 'childrenList' }" />
</span>
</glsx-combi-form>
<div class="footer-btn">
......@@ -109,20 +113,20 @@ export default {
this.getAreaInfo()
if (this.addressInfo) {
this.editForm = this.$common.utils.deepClone(this.addressInfo)
this.editForm.provincesAndCities = [String(this.editForm.provinceId), String(this.editForm.cityId), String(this.editForm.areaId)]
this.editForm.provincesAndCities = [String(this.editForm.provinceId), String(this.editForm.cityId), String(this.editForm.areaId)]
} else {
this.editForm = {}
}
}
}
},
created() {},
created() { },
methods: {
// 获取省市区信息
getAreaInfo() {
this.$apis.sysBase.getAreaInfoApi({ areaType: '2' }).then(res => {
this.provincesAndCities_options = res.areaList
})
},
getProvincesAndCities() {
......@@ -155,30 +159,33 @@ export default {
this.dialogShow = false
this.$emit('handleConfirmAddress')
})
.catch(err => {})
.catch(err => { })
}
})
},
navBack() {}
navBack() { }
}
}
</script>
<style lang="scss" scoped>
.shoppingCartDrawerCon {
// position: relative;
/deep/ .el-drawer__header {
::v-deep .el-drawer__header {
border-bottom: 1px solid #e7eaec;
margin-bottom: 20px;
padding-bottom: 10px;
font-weight: 600;
font-size: 20px;
}
/deep/ .el-textarea {
::v-deep .el-textarea {
.el-textarea__inner {
height: auto !important;
}
}
.footer-btn {
text-align: center;
}
......
<!-- 车型选择 -->
<template>
<GLDialog bigTitle="选择适用车型" mode="big" :visible.sync="visible" okText="确定" :before-close="handleRelateStoreClose"
@onOk="handleRelateStoreConfirm" @onCancel="handleRelateStoreClose" class="relateStore">
<div v-loading="carLoading">
<el-form :model="storeSearchForm" ref="relate" :inline="true" label-width="90px">
<el-form-item label="车型名称:" prop="carTypeName">
<el-input :size="size" v-model.trim="storeSearchForm.carTypeName" placeholder="请输入车型名称" clearable></el-input>
</el-form-item>
<el-form-item label="车系:" prop="merchantName">
<el-cascader :size="size" :props="props" v-model="storeSearchForm.seriesId" :options="options"
@change="handleChangeCar" filterable placeholder="搜索/请先选择车系"></el-cascader>
<div class="carTips" v-if="!storeSearchForm.seriesId.length">请先选择车系</div>
</el-form-item>
<el-form-item>
<el-button :size="size" type="primary" @click="handleSearchStore">搜索</el-button>
<!-- <el-button :size="size" @click="handleSearchReset">重置</el-button> -->
</el-form-item>
</el-form>
<el-row>
<el-col :span="16">
<div class="title">车型列表</div>
<el-table ref="seletingTable" class="table hightline" :data="selectingData" height="460px"
@select="handleChange" @select-all="handleAll">
<el-table-column fixed="left" width="5">
<template slot-scope="scope">
<span :scope="scope"></span>
</template>
</el-table-column>
<el-table-column type="selection" width="55" align="center" :selectable="selectable"></el-table-column>
<el-table-column prop="name" label="车型" align="center"></el-table-column>
<el-table-column prop="seriesName" label="所属车系" align="center"></el-table-column>
<el-table-column prop="mainBrandName" label="所属子品牌" align="center"></el-table-column>
<el-table-column prop="brandName" label="所属品牌" align="center"></el-table-column>
</el-table>
<el-pagination v-if="hasPage" small background @current-change="handleCurrentChange"
:current-page.sync="pageNum" :page-size="pageSize" layout="total, prev, pager, next"
:total="total"></el-pagination>
</el-col>
<el-col :span="8">
<div class="title mar_l10">已选车型</div>
<div class="selected_box">
<div class="box_top">
<span>已选</span>
<el-button type="text" @click="handelClearStore">清空</el-button>
</div>
<div class="box_content">
<div class="select_item" v-for="(subItem, subIndex) in selectedData" :key="subIndex">
<div class="text_value">{{ subItem.carTypeName }}</div>
<div class="select_clear" @click="handleDelete(subItem)"><i class="el-icon-error"></i></div>
</div>
</div>
</div>
</el-col>
</el-row>
</div>
</GLDialog>
</template>
<script>
export default {
name: 'carBandDialog',
data() {
return {
props: {
children: 'childs',
label: 'name',
value: 'id',
expandTrigger: 'hover'
},
storeSearchForm: {
carTypeName: '',
seriesId: ''
},
selectedData: [],
selectingData: [],
// 分页
total: 0,
pageNum: 1,
pageSize: 20,
size: 'small',
carLoading: false,
options: []
}
},
props: {
relateStoreVisible: {
type: Boolean,
default: false
},
hasPage: {
type: Boolean,
default: true
},
// 页面来源
// sourcePage: {
// type: String,
// default: ''
// },
storeApi: {
type: Function,
default: () => { }
},
storeSelected: {
type: Array,
default: () => []
},
upgradeGoodsInfo: {
type: Object,
default: () => { }
},
// 去掉表格中某些字段
// noTableField: {
// type: Array,
// default: () => []
// }
},
computed: {
visible: {
get() {
return this.relateStoreVisible
},
set(val) {
this.$emit('update:relateStoreVisible', val)
}
}
},
mounted() {
console.log('this.storeSelected', this.upgradeGoodsInfo)
this.selectedData = this.$common.utils.deepClone(this.upgradeGoodsInfo.suitCarTypeList || [])
this.selectedData.forEach(item => {
item.carTypeId = item.carTypeId ? item.carTypeId + '' : item.carTypeId
})
// 获取车型
this.getSelectingList()
},
methods: {
handleSearchStore() {
let [id, id2, id3] = this.storeSearchForm.seriesId
if (id3) {
this.handleChangeCar(this.storeSearchForm.seriesId)
} else {
return this.$message.error('请选择车系');
}
},
handleSearchReset() {
this.storeSearchForm = {
carTypeName: '',
seriesId: ''
}
// this.$nextTick(() => {
// this.handleChangeCar()
// })
},
selectable(row, index) {
var isSelect = row.hasOwnProperty('beServed') ? !row.beServed : true
return isSelect
},
recoverySelection() {
var exitIds = this.selectedData.map(item => item.carTypeId + '')
this.selectingData.forEach(item => {
if (exitIds.includes(item.carTypeId + '')) {
this.$refs.seletingTable.toggleRowSelection(item, true)
} else {
this.$refs.seletingTable.toggleRowSelection(item, false)
}
})
},
getSelectingList() {
console.log(this.upgradeGoodsInfo, 'this.upgradeGoodsInfo')
this.carLoading = true
this.$apis.purchaseShopping.getCanSelectCarBrandList({ upgradeGoodsId: this.upgradeGoodsInfo.upgradeGoodsId || this.upgradeGoodsInfo.upgradeGoodsList[0].id }).then(res => {
console.log(res, 'getSelectingList')
this.carLoading = false
this.options = res.data
})
},
// 获取列表
handleChangeCar() {
console.log(this.storeSearchForm.seriesId, 'storeSearchForm.brandId')
let [id, id2, seriesId] = this.storeSearchForm.seriesId
let params = {
seriesId,
carTypeName: this.storeSearchForm.carTypeName
}
this.$apis.purchaseShopping.carTypePage({
// ...this.storeSearchForm,
...params,
currentPage: this.pageNum,
pageSize: this.hasPage ? this.pageSize : 99999,
}).then(res => {
console.log(res, 'carTypePage')
if (res.code == 0) {
res.data.list.map(item => {
item.carTypeId = item.id
item.carTypeName = item.name
item.childName = item.mainBrandName
item.childId = item.mainBrandId
})
this.selectingData = res.data.list || []
this.total = res.data.total
this.$nextTick(() => {
this.recoverySelection()
})
}
})
},
handleChange(selection, row) {
var addOrDelete = !!selection.find(item => +item.carTypeId === +row.carTypeId)
addOrDelete ? this.selectedData.push(row) : (this.selectedData = this.selectedData.filter(item => item.carTypeId !== row.carTypeId))
},
handleAll(selection) {
this.selectingData?.forEach(item => {
let isExit = this.selectedData.findIndex(subItem => +subItem.carTypeId === +item.carTypeId)
var isServed = item.hasOwnProperty('beServed') ? item.beServed : false
if (selection.length && isExit === -1 && !isServed) {
this.selectedData.push(item)
} else if (!selection.length && isExit !== -1) {
this.selectedData.splice(isExit, 1)
}
})
},
handleDelete(row) {
this.selectedData = this.selectedData.filter(item => +item.carTypeId !== +row.carTypeId)
this.recoverySelection()
},
handelClearStore() {
this.selectedData = []
this.recoverySelection()
},
handleCurrentChange(val) {
this.pageNum = val
this.handleChangeCar()
},
handleRelateStoreConfirm() {
if (!this.selectedData.length) {
this.$message({
message: '请选择关联车型',
type: 'warning',
showClose: true,
customClass: 'message-Z-zinde'
})
return true
}
console.log(this.selectedData, ' this.selectedData')
this.$emit('handleRelateStoreConfirm', this.selectedData)
this.visible = false
},
handleRelateStoreClose() {
// this.$emit('handleRelateStoreClose')
this.visible = false
}
}
}
</script>
<style lang="scss" scoped>
.carTips {
// margin-left: 20px;
height: 12px;
margin: 0;
color: #EB4E4E;
font-size: 12px;
}
.relateStore {
.title {
font-size: 16px;
margin-bottom: 10px;
}
.mar_l10 {
margin-left: 10px;
}
.selected_box {
margin-left: 10px;
border: 1px solid #E5E5E5;
height: 460px;
.box_top {
font-size: 16px;
padding: 11px 26px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #E5E5E5;
}
.box_content {
padding: 12px 8px;
overflow-y: scroll;
min-height: calc(100% - 40px);
max-height: calc(100% - 40px);
box-sizing: border-box;
.select_item {
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
min-height: 32px;
padding: 0 8px;
cursor: pointer;
.text_value {
width: calc(100% - 50px);
// overflow: hidden;
// text-overflow: ellipsis;
// white-space: nowrap;
}
.select_clear {
width: 12px;
height: 12px;
i {
color: #A6A6A6;
}
}
}
.select_item:hover {
background: #F2F1FF;
}
}
}
}
</style>
<template>
<!-- <div>商品详情</div> -->
<GLDialog destroy-on-close="true" :visible.sync="dialogShow" :hasFooter="false" mode="big" bigTitle="产品详情" :close-on-click-modal="false" @onOk="handleSubmit" @onCancel="handleDetailClose">
<div class="detail-content">
<!-- 商品详情 -->
<div class="goodsInfoCom">
<div class="goodsInfoCom__left">
<img :src="goodsInfo.thumbUrl" alt="" />
</div>
<div class="goodsInfoCom__right">
<p class="title two-line-ellipsis">{{ goodsInfo.goodsName }}</p>
<div class="priceCon">
<span class="price">
价格:
<span class="priceNum">¥{{ handleItemInfo.purchasePrice }}</span>
</span>
<span class="turnover">
成交量:
<span class="num">{{ goodsInfo.purchaseOrderCount || 0 }}笔</span>
</span>
<div>
<GLDialog destroy-on-close="true" :visible.sync="dialogShow" :hasFooter="false" mode="big" bigTitle="产品详情"
:close-on-click-modal="false" @onOk="handleSubmit" @onCancel="handleDetailClose">
<div class="detail-content">
<!-- 商品详情 -->
<div class="goodsInfoCom">
<div class="goodsInfoCom__left">
<img v-if="goodsInfo" :src="goodsInfo.thumbUrl" alt="" />
</div>
<div class="productCode" v-if="goodsInfo.upgradeGoodsList && goodsInfo.upgradeGoodsList.length > 0">商品编码:{{ goodsInfo.upgradeGoodsList[selectIndex].type }}</div>
<div class="goodsInfoCom__right">
<p class="title two-line-ellipsis">{{ goodsInfo.goodsName }}</p>
<div class="priceCon">
<span class="price">
价格:
<span class="priceNum">¥{{ handleItemInfo.purchasePrice }}</span>
</span>
<span class="turnover">
成交量:
<span class="num">{{ goodsInfo.purchaseOrderCount || 0 }}笔</span>
</span>
</div>
<div class="productCode" v-if="goodsInfo.upgradeGoodsList && goodsInfo.upgradeGoodsList.length > 0">商品编码:{{
goodsInfo.upgradeGoodsList[selectIndex].type }}</div>
<!--选择商品规格 v-if="!isSkuArguments"-->
<div class="content fix-header fix-bottom" v-if="goodsInfo.specificationType == 2">
<div class="mask">
<div class="mask-content">
<div class="spec-items">
<div class="spec-menu-item js-spec-menu skuCon" v-for="(item, index) in goodsTypeList" :key="item.id">
<div class="spec-note label">{{ item.name }}:</div>
<div class="spec-choices">
<span v-for="(el, i) in item.propertyList" :key="el.id" class="spec-nor skuItem one-line-ellipsis pointer" :class="{ active: el.selected, disabled: el.disabled }" @click="handleClickSpecs1(item.id, el.id, el, index, i)">{{ el.name }}</span>
<!--选择商品规格 v-if="!isSkuArguments"-->
<div class="content fix-header fix-bottom" v-if="goodsInfo.specificationType == 2">
<div class="mask">
<div class="mask-content">
<div class="spec-items">
<div class="spec-menu-item js-spec-menu skuCon" v-for="(item, index) in goodsTypeList"
:key="item.id">
<div class="spec-note label">{{ item.name }}:</div>
<div class="spec-choices">
<span v-for="(el, i) in item.propertyList" :key="el.id"
class="spec-nor skuItem one-line-ellipsis pointer"
:class="{ active: el.selected, disabled: el.disabled }"
@click="handleClickSpecs1(item.id, el.id, el, index, i)">{{ el.name }}</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="skuCon" v-if="goodsInfo.specificationType == 1">
<div class="label">规格:</div>
<div class="itemCon">
<div
class="skuItem one-line-ellipsis pointer"
:class="{ active: index === selectIndex }"
v-for="(item, index) in goodsInfo.upgradeGoodsList"
:key="index"
@click="
selectIndex = index
setHandleItemInfo(item)
"
>
{{ item.upgradeGoodsName }}
<div class="skuCon" v-if="goodsInfo.specificationType == 1">
<div class="label">规格:</div>
<div class="itemCon">
<div class="skuItem one-line-ellipsis pointer" :class="{ active: index === selectIndex }"
v-for="(item, index) in goodsInfo.upgradeGoodsList" :key="index" @click="singleClick(item, index)">
{{ item.upgradeGoodsName }}
</div>
</div>
</div>
</div>
<div class="munCom">
<div class="label">数量:</div>
<div class="munItem">
<el-input-number v-model="handleItemInfo.goodsNumber" :min="1" :max="9999"></el-input-number>
<div class="munCom">
<div class="label">数量:</div>
<div class="munItem">
<el-input-number v-model="handleItemInfo.goodsNumber" :min="1" :max="9999"></el-input-number>
</div>
<div class="tips">
<!-- goodsItem.goodsType == 1 -->
{{ membraneTypeList.includes(goodsInfo.goodsType) ? `卷(1卷=${goodsInfo.convertedValue || 30}米)` : '件' }}
</div>
</div>
<div class="tips">
<!-- goodsItem.goodsType == 1 -->
{{ membraneTypeList.includes(goodsInfo.goodsType) ? `卷(1卷=${goodsInfo.convertedValue || 30}米)` : '件' }}
<div class="munCom" v-if="upgradeGoodsInfo.suitCarType == 2">
<div class="label">适用车型:</div>
<div class="munItem car-select">
<el-select ref="choose" :clearable="false" width='300' collapse-tags multiple @focus="handleCarDialog"
value-key="carTypeId" v-model="goodsInfo.suitCarTypeList" style="margin-left: 20px;width: 300px;"
placeholder="请选择">
<el-option v-for="(children) in goodsInfo.suitCarTypeList" :key="children.carTypeId"
:label="children.carTypeName" :value="children">
</el-option>
</el-select>
</div>
</div>
<el-button class="carBtn" icon="carIcon" type="primary" @click="updateCarShopping">加入购物车</el-button>
</div>
<el-button class="carBtn" icon="carIcon" type="primary" @click="updateCarShopping">加入购物车</el-button>
<!-- <i class="carIcon"></i> -->
</div>
<!-- <i class="carIcon"></i> -->
</div>
<div class="table-wrap" v-if="tableInfo && tableInfo.length">
<h3>适用门店</h3>
<GLTable :hasNum="false" :hasPage="false" :tableParams="tableParams" :table-data="tableInfo"></GLTable>
</div>
<div class="table-wrap">
<h3>产品详情</h3>
<div class="goodsDescList">
<div class="goodsDescItem" v-for="(item, index) in goodsInfo.goodsDescList" :key="index">
<img :src="item.content" v-if="item.resType == 1" class="productDetailsImg" alt="" />
<!-- <div class="goodsDescItem__title">{{ item.title }}</div> -->
<div v-if="item.resType == 2" class="goodsDescItem__content" v-html="item.content"></div>
<div class="table-wrap" v-if="tableInfo && tableInfo.length">
<h3>适用门店</h3>
<GLTable :hasNum="false" :hasPage="false" :tableParams="tableParams" :table-data="tableInfo"></GLTable>
</div>
<div class="table-wrap">
<h3>产品详情</h3>
<div class="goodsDescList">
<div class="goodsDescItem" v-for="(item, index) in goodsInfo.goodsDescList" :key="index">
<img :src="item.content" v-if="item.resType == 1" class="productDetailsImg" alt="" />
<!-- <div class="goodsDescItem__title">{{ item.title }}</div> -->
<div v-if="item.resType == 2" class="goodsDescItem__content" v-html="item.content"></div>
</div>
</div>
</div>
</div>
</div>
</GLDialog>
</GLDialog>
<carBandDialog v-if="relateStoreVisible" :upgradeGoodsInfo="goodsInfo" @handleRelateStoreConfirm="handleConfirm"
:relateStoreVisible.sync="relateStoreVisible" :goodsInfo="goodsInfo">
</carBandDialog>
</div>
</template>
<script>
......@@ -522,9 +537,13 @@ let goodType = [
]
}
]
import carBandDialog from './carBandDialog';
import { membraneTypeList } from '@/utils/constants.js'
export default {
name: 'GoodsDetailCom',
components: {
carBandDialog,
},
props: {
visible: {
type: Boolean,
......@@ -532,7 +551,7 @@ export default {
},
selectItemInfo: {
type: Object,
default: () => {}
default: () => { }
},
goodsId: {
type: [String, Number]
......@@ -543,6 +562,23 @@ export default {
data() {
return {
options: [{
value: '选项1',
label: '黄金糕'
}, {
value: '选项2',
label: '双皮奶'
}, {
value: '选项3',
label: '蚵仔煎'
}, {
value: '选项4',
label: '龙须面'
}, {
value: '选项5',
label: '北京烤鸭'
}],
relateStoreVisible: false,
// maskVisible: true,
isSkuArguments: true,
skuList: [],
......@@ -554,7 +590,9 @@ export default {
goodsTypeList: [],
selectItemList: [],
membraneTypeList,
goodsInfo: {},
goodsInfo: {
suitCarTypeList: [],
},
selectIndex: 0,
handleItemInfo: {
goodsNumber: 1,
......@@ -580,7 +618,11 @@ export default {
}
]
},
tableInfo: []
tableInfo: [],
upgradeGoodsInfo: {
suitCarType: 1
},
orgData: {}
}
},
computed: {
......@@ -606,6 +648,20 @@ export default {
this.getGoodsDetail()
},
methods: {
singleClick(item, index) {
this.setHandleItemInfo(item)
this.selectIndex = index
this.upgradeGoodsInfo = item
},
handleConfirm(list) {
console.log()
this.goodsInfo.suitCarTypeList = list
},
handleCarDialog() {
console.log('handleCarDialog')
this.$refs.choose.blur()
this.relateStoreVisible = true
},
init() {
let valueIdSortAndIndex = []
let currentSkuList = orgdata.skus.map((item, index) => {
......@@ -704,8 +760,17 @@ export default {
console.log(item)
return item.skuId == selectId
})
// specificationData
console.log(skusItem, 'skusItem')
console.log(this.goodsInfo, 'this.goodsInfo')
if (this.orgData) {
const spcName = skusItem.skusTypes.map(item => item.propertyName).join(';~;')
this.upgradeGoodsInfo = this.orgData.upgradeGoodsList.find(item => item.specificationData == spcName)
console.log(this.upgradeGoodsInfo, ' this.upgradeGoodsInfo')
}
// this.upgradeGoodsInfo = selectSpc.suitCarType
this.handleItemInfo.purchasePrice = skusItem.purchasePrice
//goodsInfo upgradeGoodsList suitCarType
} else {
this.handleItemInfo.purchasePrice = ''
}
......@@ -759,13 +824,15 @@ export default {
})
},
getGoodsDetail() {
// suitCarType = res.suitCarType == 1 ? '通用' : '专用'
// this.$apis.purchaseShopping.getByIdWithSpecification({ id: this.goodsId || 677 }).then(res => {
this.$apis.purchaseShopping.getByIdWithSpecification({ id: this.goodsId }).then(res => {
// goodsSpecificationNameList 商品
res = res.data
this.orgData = this.$common.utils.deepClone(res)
console.log(res, 'res')
if (res.specificationType == 2) {
if (res?.specificationType == 2) {
this.handleItemInfo.purchasePrice = res.upgradeGoodsSpecificationValueDTOS[0].purchasePrice
// console.log(this.handleItemInfo)
// console.log(res, 'res')
......@@ -811,30 +878,33 @@ export default {
this.initGoodType()
// 默认选中 第一个选项
// console.log(orgdata.skus[0], this.goodsTypeList)
// console.log(orgdata.skus[0], this.goodsTypeList, '2222')
let norSelectSkus = orgdata.skus[0]
this.goodsTypeList.forEach((item, index) => {
let sku = norSelectSkus.skusTypes[index]
this.handleClickSpecs1(item.id, sku.propertyId, sku, index, sku.index)
})
this.goodsInfo = res
this.tableInfo = res?.upgradeGoodsList[0]?.merchantGoodsInfo
} else {
this.goodsInfo = res
// 默认选中第一个
let item = this.goodsInfo.upgradeGoodsList[0]
this.setHandleItemInfo(item)
}
this.tableInfo = res?.upgradeGoodsList?.merchantGoodsInfoList
console.log(res?.upgradeGoodsList, 'res?.upgradeGoodsList')
this.upgradeGoodsInfo = res?.upgradeGoodsList[0]
})
},
setHandleItemInfo(item = {}) {
console.log(item, 'item')
const { id, purchasePrice } = item
this.handleItemInfo = Object.assign(this.handleItemInfo, {
upgradeGoodsId: id,
purchasePrice
})
this.tableInfo = item.merchantGoodsInfo && item.merchantGoodsInfo.filter(item => item.goodsAlias)
console.log(this.tableInfo)
},
handleDetailClose() {
this.dialogShow = false
......@@ -864,7 +934,8 @@ export default {
// this.handleItemInfo.upgradeGoodsId = item.id
params = {
goodsNumber: this.handleItemInfo.goodsNumber,
upgradeGoodsId: item.upgradeGoodsId
upgradeGoodsId: item.upgradeGoodsId,
suitCarTypeList: this.goodsInfo.suitCarTypeList,
}
}
})
......@@ -874,14 +945,18 @@ export default {
} else {
params = {
goodsNumber: this.handleItemInfo.goodsNumber,
upgradeGoodsId: this.handleItemInfo.upgradeGoodsId
upgradeGoodsId: this.handleItemInfo.upgradeGoodsId,
suitCarTypeList: this.goodsInfo.suitCarTypeList,
}
if (!params.upgradeGoodsId) {
this.$message.error('商品不存在')
return
}
}
// 如果是专用商品 但没有选适配车型
if (this.upgradeGoodsInfo.suitCarType == 2 && !this.goodsInfo.suitCarTypeList?.length) {
return this.$message.error('请完善商品适用车型')
}
// 判断是否有值
params.upgradeGoodsId &&
this.$apis.purchaseShopping.shoppingCarAdd(params).then(res => {
......@@ -890,14 +965,18 @@ export default {
this.$EventBus.$emit('updateCarShopping')
this.dialogShow = false
})
// this.$message.success('加入购物车成功')
// this.$EventBus.$emit('updateCarShopping')
}
}
}
</script>
<style lang="scss" scoped>
.car-select {
::v-deep .el-select__tags-text {
max-width: 170px;
}
}
.goodsInfoCom {
display: flex;
......@@ -964,10 +1043,12 @@ export default {
flex-wrap: wrap;
justify-content: space-between;
}
.spec-choices {
display: flex;
flex-wrap: wrap;
}
.skuItem {
display: inline-block;
box-sizing: border-box;
......@@ -985,12 +1066,14 @@ export default {
&.active {
border: 1px solid #5850ff;
}
&.disabled {
border: 1px solid #e5e5e5;
border-radius: 2px;
// background-color: #3d3d3d;
color: #c6c6c6;
}
// .active {
// padding: 2px 4px;
// border: 1px solid #5850ff;
......@@ -998,6 +1081,7 @@ export default {
// background-color: #fff;
// }
}
.spec-nor {
min-width: auto;
margin-right: 15px;
......@@ -1014,6 +1098,7 @@ export default {
line-height: 36px;
color: #666666;
}
.spec-note {
// width: 120px;
}
......@@ -1056,6 +1141,7 @@ export default {
margin-bottom: 16px;
}
}
.productCode {
font-weight: 400;
font-size: 14px;
......@@ -1063,10 +1149,12 @@ export default {
margin-bottom: 16px;
padding-left: 18px;
}
.spec-menu-item {
display: flex;
// height: 50px;
}
.spec-nor {
// padding: 2px 4px;
// margin-left: 10px;
......
<template>
<GLDialog v-if="dialogShow" bigTitle="详细信息" mode="big" :visible.sync="dialogShow" :close-on-click-modal="false" @onOk="dialogShow = false" @onCancel="dialogShow = false" :hasFooter="false">
<GLDialog v-if="dialogShow" bigTitle="详细信息" mode="big" :visible.sync="dialogShow" :close-on-click-modal="false"
@onOk="dialogShow = false" @onCancel="dialogShow = false" :hasFooter="false">
<div class="detail-content" v-if="dialogShow">
<div class="addressTitle">
<img src="@/images/addressIcon.webp" alt="" class="icon" />
......@@ -16,7 +17,8 @@
</span>
<span class="address">
收货地址:
<span class="label">{{ detailInfo.provinceName }}{{ detailInfo.cityName }}{{ detailInfo.areaName }}{{ detailInfo.contactAddress }}</span>
<span class="label">{{ detailInfo.provinceName }}{{ detailInfo.cityName }}{{ detailInfo.areaName }}{{
detailInfo.contactAddress }}</span>
</span>
<span class="address" v-if="detailInfo.purchaseOrderRemark">
备注:
......@@ -28,16 +30,33 @@
</span>
</div>
<div class="table-class">
<GLTable ref="purchaseOrderDetailTable" :tableParams="tableParams" @refreshTable="refreshTable" :tableData="detailInfo.tableData" :pageConf="pageConf" :tableTotal="detailInfo.tableTotal">
<GLTable ref="purchaseOrderDetailTable" :tableParams="tableParams" @refreshTable="refreshTable"
:tableData="detailInfo.tableData" :pageConf="pageConf" :tableTotal="detailInfo.tableTotal">
<template slot="film" slot-scope="scope">
<el-tooltip v-if="scope.scope.filmRollList && scope.scope.filmRollList.length > 1" placement="top" effect="light">
<el-tooltip v-if="scope.scope.filmRollList && scope.scope.filmRollList.length > 1" placement="top">
<div class="film-txt">(...{{ scope.scope.filmRollList.length }})</div>
<div slot="content">
<div class="tool-title">膜卷号</div>
<div v-for="(item, index) in scope.scope.filmRollList" :key="index">{{ item }}</div>
</div>
</el-tooltip>
<div v-else-if="scope.scope.filmRollList && scope.scope.filmRollList.length == 1">{{ scope.scope.filmRollList[0] }}</div>
<div v-else-if="scope.scope.filmRollList && scope.scope.filmRollList.length == 1">{{
scope.scope.filmRollList[0] }}</div>
<div v-else>--</div>
</template>
<template slot="upgradeGoodsName" slot-scope="scope">
<div>
<img v-if="scope.scope.refundStatus == 'Y'" class="return" src="@/assets/retrun.png" alt="">
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
<template slot="carName" slot-scope="scope">
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length" placement="top">
<div slot="content" class="car-type-list">
<div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">{{ item.carTypeName }}</div>
</div>
<div>{{ scope.scope.suitCarTypeList | formatCar }}</div>
</el-tooltip>
<div v-else>--</div>
</template>
</GLTable>
......@@ -60,6 +79,15 @@ export default {
default: () => { }
}
},
filters: {
formatCar(list) {
console.log(list, 'list')
let str = list.map(item => {
return item.carTypeName
}).join(',')
return str.length > 15 ? str.substring(0, 15) + '...' : str
}
},
computed: {
dialogShow: {
get() {
......@@ -72,6 +100,7 @@ export default {
this.$emit('update:visible', val)
}
}
},
data() {
return {
......@@ -83,6 +112,7 @@ export default {
{
label: '商品名称',
prop: 'upgradeGoodsName',
addHtml: 'upgradeGoodsName',
width: 120,
line: 1
},
......@@ -97,9 +127,15 @@ export default {
width: 100
},
{
label: '适用车型',
prop: 'carName',
addHtml: 'carName',
width: 200,
},
{
label: '系列',
prop: 'goodsName',
width: 100,
width: 150,
line: 1
},
{
......@@ -146,6 +182,11 @@ export default {
return '¥' + cellValue.goodsTotalPrice
},
width: 120
},
{
label: '备注',
prop: 'remark',
width: 150
}
]
},
......@@ -154,6 +195,14 @@ export default {
},
created() {
this.dynamicParams()
console.log(this.paramsObj, 'paramsObj')
// 不是商城采购过滤掉车型和备注
if (this.paramsObj.purchaseType != 1) {
this.tableParams.tableColumns = this.tableParams.tableColumns.filter(item => {
return item.prop !== 'carName' && item.prop !== 'remark'
})
// console.log(this.tableParams.tableColumns, ' this.tableParams.tableColumns ')
}
},
methods: {
dynamicParams() {
......@@ -215,6 +264,16 @@ export default {
</script>
<style lang="scss" scoped>
.car-type-list {
max-height: 300px;
overflow-y: scroll;
}
.return {
width: 15px;
height: 14px;
}
.addressTitle {
display: flex;
align-items: center;
......@@ -246,7 +305,7 @@ export default {
font-size: 14px;
color: #666666;
> span {
>span {
margin-right: 20px;
margin-bottom: 10px;
}
......@@ -259,11 +318,13 @@ export default {
min-width: 500px;
}
}
.film-txt {
font-size: 14px;
color: #5850ff;
cursor: pointer;
}
.tool-title {
font-weight: 500 !important;
font-size: 12px;
......@@ -282,6 +343,7 @@ export default {
color: #666666;
line-height: 18px;
}
.el-tooltip__popper[x-placement^='top'] .popper__arrow {
border-color: #e4e7ed !important;
}
......
<template>
<GLDialog v-if="dialogShow" bigTitle="退货" mode="big" :visible.sync="dialogShow" :close-on-click-modal="false"
@onOk="handleConfirm" @onCancel="dialogShow = false" :hasFooter="true">
<div class="detail-content" v-if="dialogShow">
<div class="addressTitle">
<img src="@/images/addressIcon.webp" alt="" class="icon" />
<span class="title">{{ paramsObj.merchantName }}</span>
</div>
<div class="address-info" v-if="paramsObj.purchaseType == 1">
<span class="name">
收货人:
<span class="label">{{ detailInfo.contactName }}</span>
</span>
<span class="phone">
电话:
<span class="label">{{ detailInfo.contactPhone }}</span>
</span>
<span class="address">
收货地址:
<span class="label">{{ detailInfo.provinceName }}{{ detailInfo.cityName }}{{ detailInfo.areaName }}{{
detailInfo.contactAddress }}</span>
</span>
<span class="address" v-if="detailInfo.purchaseOrderRemark">
备注:
<span class="label">{{ detailInfo.purchaseOrderRemark }}</span>
</span>
<span class="address" v-if="detailInfo.rejectCause">
驳回原因:
<span class="label">{{ detailInfo.rejectCause }}</span>
</span>
</div>
<div class="table-class">
<!-- :pageConf="pageConf" -->
<GLTable ref="purchaseOrderDetailTable" :tableParams="tableParams" @refreshTable="refreshTable"
:tableData="detailInfo.tableData" :tableTotal="detailInfo.tableTotal">
<template slot="film" slot-scope="scope">
<el-tooltip v-if="scope.scope.filmRollList && scope.scope.filmRollList.length > 1" placement="top"
effect="light">
<div class="film-txt">(...{{ scope.scope.filmRollList.length }})</div>
<div slot="content">
<div class="tool-title">膜卷号</div>
<div v-for="(item, index) in scope.scope.filmRollList" :key="index">{{ item }}</div>
</div>
</el-tooltip>
<div v-else-if="scope.scope.filmRollList && scope.scope.filmRollList.length == 1">{{
scope.scope.filmRollList[0] }}</div>
<div v-else>--</div>
</template>
<template slot="upgradeGoodsName" slot-scope="scope">
<div>
<img v-if="scope.scope.refundStatus == 'Y'" class="return" src="@/assets/retrun.png" alt="">
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
</GLTable>
<div class="tips">说明:支持对未发货商品进行退货处理,进行退货后,对应商品不再继续进行发货,不影响其他商品正常发货。</div>
</div>
</div>
</GLDialog>
</template>
<script>
import { membraneTypeList, goodsTypeList } from '@/utils/constants.js'
// import { purchaseOrderGoodsRefund } from '@/api/modules/purchaseOrder.js'
export default {
name: 'OrderDetailDialog',
props: {
visible: {
type: Boolean,
default: false
},
paramsObj: {
type: Object,
default: () => { }
}
},
computed: {
dialogShow: {
get() {
if (this.visible) {
this.getDetail({ currentPage: 1, pageSize: 20 })
}
return this.visible
},
set(val) {
this.$emit('update:visible', val)
}
}
},
data() {
return {
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
// 行数据的key
mutiSelectUniqueKey: 'id',
// 多选ref的名称
mutiSelectName: 'list',
tableColumns: [
{
label: '商品名称',
prop: 'upgradeGoodsName',
addHtml: 'upgradeGoodsName',
width: 120,
line: 1
},
{
label: '商品编码',
prop: 'type',
width: 100
},
{
label: '规格',
prop: 'specificationData',
width: 100
},
{
label: '系列',
prop: 'goodsName',
width: 100,
line: 1
},
{
label: '所属分类',
prop: 'goodsTypeName',
width: 150
},
{
label: '采购数量',
prop: 'goodsNumber',
formatter: cellValue => {
// 商品来源 1-商城采购 2-自采入库
let list = this.paramsObj.purchaseType == 1 ? membraneTypeList : goodsTypeList
let attr = this.paramsObj.purchaseType == 1 ? 'goodsType' : 'goodsTypeName'
let condition = list.includes(cellValue[attr]) ? `${cellValue.goodsNumber}卷` : `${cellValue.goodsNumber}件`
return condition
},
width: 100
},
{
label: '膜卷号',
prop: 'filmRollList',
addHtml: 'film',
width: 100
},
{
label: '库存总量',
prop: 'goodsTypeName',
formatter: cellValue => {
// 商品来源 1-商城采购 2-自采入库
let list = this.paramsObj.purchaseType == 1 ? membraneTypeList : goodsTypeList
let attr = this.paramsObj.purchaseType == 1 ? 'goodsType' : 'goodsTypeName'
let unit = list.includes(cellValue[attr]) ? '米' : '件'
// let condition = list.includes(cellValue[attr]) ? `${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件`
let condition = (cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : cellValue.goodsNumber) + unit
return condition
},
width: 100
},
{
label: '采购总价/元',
prop: 'goodsTotalPrice',
formatter: cellValue => {
return '¥' + cellValue.goodsTotalPrice
},
width: 120
}
]
},
detailInfo: {}
}
},
created() {
this.dynamicParams()
},
methods: {
handleConfirm() {
let selectedData = this.$refs.purchaseOrderDetailTable.mutiSelectArr[this.tableParams.mutiSelectName] || []
// selectedData = selectedData.filter(item => item.refundStatus == 'N')
if (selectedData.some(item => item.refundStatus == 'Y')) {
return this.$message.error('商品已退货,请确认后重新操作');
}
if (!selectedData.length) {
return this.$message.error('请勾选需退货的商品');
}
let params = {
orderCode: this.paramsObj.orderCode,
purchaseOrderGoodsIdList: selectedData.map(item => item.id)
}
console.log(selectedData, 'selectedData')
this.$apis.purchaseShopping.purchaseOrderGoodsRefund(params).then(res => {
console.log(res)
if (res.code == 0) {
this.$message.success('操作成功')
this.dialogShow = false
this.$emit('handleConfirm')
} else {
this.$message.error(res.message)
}
}).catch((err) => {
console.log(err)
})
// this.dialogShow = false
},
dynamicParams() {
// if (this.paramsObj.purchaseType == 1) {
let idx = this.tableParams.tableColumns.findIndex(item => item.label == '膜卷号')
this.tableParams.tableColumns.splice(idx, 1)
this.tableParams.tableColumns.push(
{
label: '已发货数量',
prop: 'purchaseNumber',
width: 110,
line: 1,
formatter: cellValue => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.purchaseNumber}卷` : `${cellValue.purchaseNumber}件`
}
},
// {
// label: '已入库数量',
// prop: 'inputNumber',
// width: 110,
// line: 1,
// formatter: cellValue => {
// return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.inputNumber}米` : `${cellValue.inputNumber}件`
// }
// }
)
// } else {
// this.tableParams.tableColumns.push(
// {
// label: '入库仓库',
// prop: 'putYqMerchantName',
// width: 100,
// line: 1
// },
// {
// label: '入库门店',
// prop: 'putMerchantName',
// width: 100,
// line: 1
// }
// )
// }
},
handleDetailClose() {
this.dialogShow = false
},
refreshTable(pageObj) {
this.getDetail(pageObj)
},
getDetail(pageObj) {
this.$apis.purchaseShopping.purchaseOrderDetail({ orderCode: this.paramsObj.orderCode, pageSize: pageObj.pageSize, currentPage: pageObj.currentPage }).then(res => {
this.detailInfo = res
this.detailInfo.tableData = res.pagination.list
this.detailInfo.tableTotal = res.pagination.total
})
}
}
}
</script>
<style lang="scss" scoped>
.return {
width: 15px;
height: 14px;
}
.tips {
margin-top: 10px;
color: #999999;
}
.addressTitle {
display: flex;
align-items: center;
.title {
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: 16px;
color: #333333;
}
.icon {
width: 28px;
height: 28px;
margin-right: 8px;
}
}
.address-info {
display: flex;
box-sizing: border-box;
align-items: center;
// justify-content: space-between;
flex-wrap: wrap;
width: 100%;
// height: 36px;
padding: 0 20px;
margin-top: 10px;
font-size: 14px;
color: #666666;
>span {
margin-right: 20px;
margin-bottom: 10px;
}
.label {
color: #333333;
}
.address {
min-width: 500px;
}
}
.film-txt {
font-size: 14px;
color: #5850ff;
cursor: pointer;
}
.tool-title {
font-weight: 500 !important;
font-size: 12px;
color: #3a3a3a;
margin-bottom: 4px;
}
</style>
<style>
.el-tooltip__popper.is-light {
background: #ffffff;
border: 1px solid #e5e5e5 !important;
box-shadow: 0 8px 20px 0 #00000033;
width: 177px;
box-sizing: border-box;
font-size: 12px;
color: #666666;
line-height: 18px;
}
.el-tooltip__popper[x-placement^='top'] .popper__arrow {
border-color: #e4e7ed !important;
}
.el-tooltip__popper[x-placement^='top'] .popper__arrow:after {
border-bottom-color: #e4e7ed !important;
}
</style>
......@@ -7,7 +7,8 @@
<el-drawer class="shoppingCartDrawerCon" title="购物车" :visible.sync="drawer" size="500px" :direction="direction">
<div class="headerCon" v-if="goodsList.length">
<div class="left">
<el-checkbox :indeterminate="isIndeterminate" @change="handleAllCheckChange(isAllCheck)" v-model="isAllCheck">全选</el-checkbox>
<el-checkbox :indeterminate="isIndeterminate" @change="handleAllCheckChange(isAllCheck)"
v-model="isAllCheck">全选</el-checkbox>
<!-- <input type="checkbox"
class="pointer"
/>全选 -->
......@@ -23,14 +24,17 @@
</div>
<div class="goodsTypeCon" v-for="(item, index) in goodsList" :key="index">
<div class="itemHeader">
<el-checkbox :indeterminate="item.isIndeterminate" class="checkoutBox pointer" @change="handleGoodsTypeCheckChange(item.goodsTypeCheckout, item)" v-model="item.goodsTypeCheckout">{{ item.goodsTypeName }}</el-checkbox>
<el-checkbox :indeterminate="item.isIndeterminate" class="checkoutBox pointer"
@change="handleGoodsTypeCheckChange(item.goodsTypeCheckout, item)" v-model="item.goodsTypeCheckout">{{
item.goodsTypeName }}</el-checkbox>
<!-- <input type="checkbox"
class="checkoutBox pointer"
@change="handleGoodsTypeCheckChange(item.goodsTypeCheckout, item)"
v-model="item.goodsTypeCheckout" /> -->
</div>
<div class="shopgGoodsCon" v-for="(goodsItem, goodsIndex) in item.upgradeGoodsList" :key="goodsIndex">
<el-checkbox class="pointer typeCheckoutBox" @change="handleGoodsCheckChange(goodsItem.selectedFlag, goodsItem)" v-model="goodsItem.selectedFlag" />
<el-checkbox class="pointer typeCheckoutBox"
@change="handleGoodsCheckChange(goodsItem.selectedFlag, goodsItem)" v-model="goodsItem.selectedFlag" />
<!-- <input type="checkbox"
class="pointer typeCheckoutBox"
@change="handleGoodsCheckChange(goodsItem.selectedFlag,goodsItem)"
......@@ -43,13 +47,27 @@
<div class="name one-line-ellipsis">{{ goodsItem.upgradeGoodsName }}</div>
<div class="price">
<!-- v-if="goodsItem.specificationType == 2" .replace(';~;', '/')-->
<span class="label" v-if="goodsItem.specificationType == 2">{{ goodsItem.formatSpecificationData }}</span>
<span class="label" v-if="goodsItem.specificationType == 2">{{ goodsItem.formatSpecificationData
}}</span>
¥{{ goodsItem.purchasePrice }}
</div>
<div class="num">
<el-input-number v-model="goodsItem.goodsNumber" @change="handleGoodsNumChange($event, goodsItem.upgradeGoodsId)" :min="1" class="numInput" size="mini" :max="9999"></el-input-number>
<el-input-number v-model="goodsItem.goodsNumber"
@change="handleGoodsNumChange($event, goodsItem.id, goodsItem.upgradeGoodsId, goodsItem.suitCarTypeList || [])"
:min="1" class="numInput" size="mini" :max="9999"></el-input-number>
{{ membraneTypeList.includes(goodsItem.goodsType) ? `卷(1卷=${goodsItem.convertedValue || 30}米)` : '件' }}
</div>
<div class="munCom" v-if="goodsItem.suitCarTypeList && goodsItem.suitCarTypeList.length">
<div class="munItem">
<el-select @remove-tag="handleTagDelete(goodsItem)" :ref="'choose' + goodsItem.id" collapse-tags
name="munComInput" size="mini" multiple @focus="handleCarDialog(goodsItem)" value-key="carTypeId"
v-model="goodsItem.suitCarTypeList" style="margin-top: 10px;width: 240px;" placeholder="请选择">
<el-option v-for="(children) in goodsItem.suitCarTypeList" :key="children.carTypeId"
:label="children.carTypeName" :value="children">
</el-option>
</el-select>
</div>
</div>
<i class="el-icon-delete deleteIcon pointer" @click="handleDelete(goodsItem.id)"></i>
</div>
</div>
......@@ -62,16 +80,35 @@
<el-button class="submitBtn" @click="validateGoodsNumber" type="primary">结算</el-button>
</div>
</el-drawer>
<GLDialog class="addressDialog" mode="big" bigTitle="结算确认" okText="确定结算" :visible.sync="dialogShow" :close-on-click-modal="false" @onOk="handleSubmit" @onCancel="dialogShow = false">
<h4 class="title">
<img src="@/images/confirm.png" alt="" class="confirm" />
确认要结算订单吗?
</h4>
<div class="info">
<GLDialog class="addressDialog" mode="big" bigTitle="结算确认" okText="确认结算" cancelText="取消结算"
:visible.sync="dialogShow" :close-on-click-modal="false" @onOk="handleSubmit" @onCancel="dialogShow = false">
<div class="addressTitle">
<img src="@/images/addressIcon.webp" alt="" class="icon" />
<span class="title">{{ addressInfo.yqMerchantName }}</span>
<el-button type="text" @click="editAddress" class="editIconBtn">
<img src="@/images/edit.png" alt="" class="editIcon" />
修改
</el-button>
</div>
<div class="address-info">
<span class="name">
收货人:
<span class="label">{{ addressInfo.contactName }}</span>
</span>
<span class="phone">
电话:
<span class="label">{{ addressInfo.contactPhone }}</span>
</span>
<span class="address">
收货地址:
<span class="label">{{ addressInfo.contactAddress }}</span>
</span>
</div>
<!-- <div class="info">
<p class="tips">
<span>请核对收货仓信息</span>
<el-button type="text" @click="editAddress">
<!-- <img src="@/images/edit.png" alt="" /> -->
<img src="@/images/edit.png" alt="" class="editIcon" />
修改
</el-button>
......@@ -79,39 +116,160 @@
<ul class="orderInfoCom">
<li class="item" v-for="(item, index) in addressInfoList" :key="index">
<span class="label">{{ item.label }}</span>
<span class="conten" v-if="item.name == 'contactAddress'">{{ $$(addressInfo, 'provinceName') }}{{ $$(addressInfo, 'cityName') }}{{ $$(addressInfo, 'areaName') }}{{ $$(addressInfo, 'contactAddress') }}</span>
<span class="conten" v-if="item.name == 'contactAddress'">{{ $$(addressInfo, 'provinceName') }}{{
$$(addressInfo, 'cityName') }}{{ $$(addressInfo, 'areaName') }}{{ $$(addressInfo, 'contactAddress')
}}</span>
<span class="conten" v-else>{{ $$(addressInfo, [item.name]) }}</span>
</li>
</ul>
</div> -->
<div class="tableTips">采购明细</div>
<div class="table-class">
<GLTable ref="purchaseOrderDetailTable" :tableParams="tableParams" @refreshTable="refreshTable"
:tableData="selectList" :hasPage="false">
<template slot="upgradeGoodsName" slot-scope="scope">
<div>
<!-- <img v-if="scope.scope.refundStatus == 'Y'" class="retrun" src="@/assets/retrun.png" alt=""> -->
<span>{{ scope.scope.upgradeGoodsName }}</span>
</div>
</template>
<template slot="film" slot-scope="scope">
<el-tooltip v-if="scope.scope.suitCarTypeList && scope.scope.suitCarTypeList.length" placement="top">
<div slot="content" class="car-type-list">
<div v-for="(item, index) in scope.scope.suitCarTypeList" :key="index">{{ item.carTypeName }}</div>
</div>
<div>{{ scope.scope.suitCarTypeList | formatCar }}</div>
</el-tooltip>
<div v-else>--</div>
</template>
<template slot="remark" slot-scope="scope">
<!-- <div>{{ JSON.stringify(scope.scope.remark) }}</div> -->
<el-input v-model="scope.scope.remark" placeholder="请输入" maxlength="50"></el-input>
</template>
</GLTable>
</div>
<div class="info">
<p class="tips">
<!-- <div class="info"> -->
<!-- <p class="tips">
<span>订单备注</span>
</p>
<div class="item-remark orderInfoCom">
<div class="label">备注:</div>
<div class="item-content">
<el-input show-word-limit type="textarea" maxlength="200" :rows="3" placeholder="备注说明" v-model="remarks"></el-input>
</div>
</p> -->
<div class="item-remark orderInfoCom">
<div class="label">备注:</div>
<div class="item-content">
<el-input show-word-limit type="textarea" maxlength="200" :rows="3" placeholder="备注说明"
v-model="remarks"></el-input>
</div>
</div>
<!-- </div> -->
</GLDialog>
<carBandDialog v-if="relateStoreVisible" @handleRelateStoreConfirm="handleConfirm"
:relateStoreVisible.sync="relateStoreVisible" :upgradeGoodsInfo="goodsInfo">
</carBandDialog>
</div>
</template>
<script>
import carBandDialog from './carBandDialog';
import { limitPrice } from '@/common/format'
import { membraneTypeList } from '@/utils/constants.js'
export default {
name: 'ShoppingCartCom',
components: {
carBandDialog,
},
props: {
addressInfo: {
type: Object,
default: () => {}
default: () => { }
}
},
filters: {
formatCar(list) {
console.log(list, 'list')
let str = list.map(item => {
return item.carTypeName
}).join(',')
return str.length > 15 ? str.substring(0, 15) + '...' : str
}
},
data() {
return {
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'list',
tableColumns: [
{
label: '商品名称',
prop: 'upgradeGoodsName',
addHtml: 'upgradeGoodsName',
width: 150,
line: 1
},
{
label: '商品编码',
prop: 'type',
width: 100
},
{
label: '规格',
prop: 'formatSpecificationData',
// width: 100
},
{
label: '适用车型',
addHtml: 'film',
width: 200
},
{
label: '系列',
prop: 'goodsName',
width: 150,
line: 1
},
// {
// label: '系列',
// prop: 'goodsName',
// width: 100,
// line: 1
// },
{
label: '所属分类',
prop: 'goodsTypeName',
width: 90
},
{
label: '采购数量',
prop: 'goodsNumber',
width: 90
},
{
label: '库存总量',
prop: 'goodsTypeName',
formatter: cellValue => {
let unit = cellValue.goodsInfo.goodsType == 1 ? '米' : '件'
// let condition = list.includes(cellValue[attr]) ? `${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件`
let condition = (cellValue.goodsInfo.convertedValue ? cellValue.goodsNumber * cellValue.goodsInfo.convertedValue : cellValue.goodsNumber) + unit
return condition
},
width: 100
},
{
label: '采购总价/元',
prop: 'goodsTotalPrice',
formatter: cellValue => {
return '¥' + (cellValue.goodsNumber * cellValue.purchaseGoodsInfo.purchasePrice)
},
width: 120
},
{
label: '备注',
addHtml: 'remark',
width: 120
// width:
},
]
},
goodsInfo: {},
relateStoreVisible: false,
remarks: '',
// addressInfo: {},
throttleSubmit: false,
......@@ -151,13 +309,19 @@ export default {
}
},
computed: {
goodsSelectStatus() {
return this.goodsList.reduce((list, item) => {
item.upgradeGoodsList.forEach(goodsItem => {
console.log(item, goodsItem, 'gods')
list.push({
...item,
...goodsItem,
id: goodsItem.id,
upgradeGoodsId: goodsItem.upgradeGoodsId,
selectedFlag: goodsItem.selectedFlag ? 'Y' : 'N',
goodsName: goodsItem.goodsInfo.goodsName,
type: goodsItem.upgradeGoods.type,
goodsNumber: goodsItem.goodsNumber
})
})
......@@ -177,6 +341,33 @@ export default {
})
},
methods: {
handleTagDelete(item) {
console.log(item)
// let {} =item
this.goodsInfo = item
this.handleConfirm(item.suitCarTypeList)
},
handleConfirm(list) {
console.log(list, 'list')
// this.goodsInfo.suitCarTypeList = list
this.$apis.purchaseShopping
.shoppingCarUpdateNumber({ upgradeGoodsId: this.goodsInfo.upgradeGoodsId, id: this.goodsInfo.id, suitCarTypeList: list, goodsNumber: this.goodsInfo.goodsNumber })
.then(result => {
this.getGoodsList()
})
.catch(err => {
console.log(err)
})
},
handleCarDialog(item, index) {
this.goodsInfo = item
console.log(item, 'item')
console.log('handleCarDialog')
let refName = `choose${item.id}`
console.log(refName, this.$refs[refName][0])
this.$refs[refName][0].blur()
this.relateStoreVisible = true
},
editAddress() {
this.dialogShow = false
this.$emit('editAddress')
......@@ -191,8 +382,13 @@ export default {
const selectList = this.goodsSelectStatus.reduce((list, item) => {
if (item.selectedFlag === 'Y') {
list.push({
upgradeGoodsId: item.upgradeGoodsId,
goodsNumber: item.goodsNumber
// upgradeGoodsId: item.upgradeGoodsId,
...item,
id: item.id,
type: item.upgradeGoods.type,
goodsNumber: item.goodsNumber,
remark: ''
})
}
return list
......@@ -200,7 +396,9 @@ export default {
if (!selectList.length) {
return this.$message.warning('请选择商品')
} else {
this.selectList = selectList
console.log(selectList, ' selectList')
this.selectList = this.$common.utils.deepClone(selectList)
console.log(this.selectList, ' this.selectList')
this.remarks = ''
this.dialogShow = true
this.throttleSubmit = false
......@@ -222,6 +420,8 @@ export default {
shoppingCarList: this.selectList,
remark: this.remarks
}
// console.log(params)
// return;
if (provinceName === null) {
this.dialogShow = false
this.drawer = false
......@@ -284,6 +484,9 @@ export default {
this.goodsList = result.map(item => {
const upgradeGoodsList = item.list.reduce((total, cur, index) => {
total.push({
upgradeGoods: cur.upgradeGoods,
goodsInfo: cur.goodsInfo,
purchaseGoodsInfo: cur.purchaseGoodsInfo,
upgradeGoodsName: cur.upgradeGoods.upgradeGoodsName,
specificationType: cur.upgradeGoods.specificationType,
formatSpecificationData: cur.upgradeGoods.formatSpecificationData ? cur.upgradeGoods.formatSpecificationData.replaceAll(';~;', '/') : '',
......@@ -293,8 +496,9 @@ export default {
goodsType: cur.goodsInfo.goodsType,
convertedValue: cur.goodsInfo.convertedValue,
thumbUrl: cur.goodsInfo.thumbUrl,
purchasePrice: cur.upgradeGoods.purchasePrice,
id: cur.id
purchasePrice: cur.purchaseGoodsInfo.purchasePrice,
id: cur.id,
suitCarTypeList: cur.suitCarTypeList || []
})
return total
}, [])
......@@ -351,11 +555,11 @@ export default {
this.isAllCheck = checkoutFlag
this.totalPrice = totalPrice
},
handleGoodsNumChange(goodsNumber, upgradeGoodsId) {
handleGoodsNumChange(goodsNumber, id, upgradeGoodsId, suitCarTypeList) {
goodsNumber = parseInt(goodsNumber)
goodsNumber = limitPrice(goodsNumber, 1, 6, 2)
this.$apis.purchaseShopping
.shoppingCarUpdateNumber({ upgradeGoodsId, goodsNumber })
.shoppingCarUpdateNumber({ id, upgradeGoodsId, goodsNumber, suitCarTypeList })
.then(result => {
this.getGoodsList()
})
......@@ -368,6 +572,11 @@ export default {
</script>
<style lang="scss" scoped>
.car-type-list {
max-height: 300px;
overflow-y: scroll;
}
ul,
li {
padding: 0;
......@@ -375,6 +584,14 @@ li {
list-style: none;
}
::v-deep .el-tag--mini {
max-width: 140px;
}
::v-deep .el-select .el-icon-close {
display: none;
}
.shoppingCartDrawerCon {
// box-sizing: border-box;
// margin-top: 20vh;
......@@ -456,6 +673,7 @@ li {
writing-mode: vertical-rl;
cursor: pointer;
}
&::after {
// content: "123";
content: attr(data-attr);
......@@ -539,20 +757,24 @@ li {
.itemInfo {
display: flex;
flex: 1;
width: 501px;
height: 104px;
width: 601px;
// height: 104px;
height: 100%;
margin-left: 5px;
background: #ffffff;
border-radius: 2px;
.imgCon {
width: 104px;
height: 104px;
max-width: 104px;
// height: 100%;
flex: 1;
overflow: hidden;
border-radius: 2px;
img {
width: 100%;
max-width: 104px;
// max-height: 132px;
// width: 100%;
height: 100%;
object-fit: cover;
}
......@@ -564,6 +786,7 @@ li {
display: flex;
flex-direction: column;
padding: 8px 17px 11px;
flex: 1;
.name {
font-weight: 600;
......@@ -598,7 +821,7 @@ li {
.deleteIcon {
position: absolute;
right: -20px;
right: 0px;
top: 50%;
transform: translateX(-50%);
}
......@@ -606,10 +829,17 @@ li {
}
}
.tableTips {
margin-top: 20px;
margin-bottom: 10px;
color: #333333;
font-size: 16px;
}
.addressDialog {
.title {
text-align: center;
margin: 20px 0 40px 0;
// margin: 20px 0 40px 0;
font-weight: 600;
font-size: 18px;
color: #333333;
......@@ -632,42 +862,48 @@ li {
font-size: 14px;
padding: 0px 20px;
color: #333333;
span {
margin-bottom: 20px;
}
.editIcon {
width: 16px;
height: 16px;
vertical-align: -3px;
}
}
.info {
// padding: 15px 20px;
// padding: ;
box-shadow: 0px 0px 5px 0px rgba(136, 152, 157, 0.3);
&.info {
margin-top: 15px;
}
}
.orderInfoCom {
padding: 15px 20px;
// line-height: 63px;
}
.item {
margin-bottom: 15px;
}
.label {
display: inline-block;
width: 100px;
// width: 100px;
text-align: right;
margin-right: 10px;
}
.item-remark {
display: flex;
align-items: center;
.item-content {
width: 500px;
}
::v-deep .el-input__count {
right: -50px;
bottom: 5px;
......@@ -676,4 +912,60 @@ li {
}
}
}
.editIconBtn {
margin-left: auto;
}
.editIcon {
width: 16px;
height: 16px;
vertical-align: -3px;
}
.addressTitle {
display: flex;
align-items: center;
.title {
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: 16px;
color: #333333;
}
.icon {
width: 28px;
height: 28px;
margin-right: 8px;
}
}
.address-info {
display: flex;
box-sizing: border-box;
align-items: center;
// justify-content: space-between;
flex-wrap: wrap;
width: 100%;
// height: 36px;
padding: 0 20px;
margin-top: 10px;
font-size: 14px;
color: #666666;
>span {
margin-right: 20px;
margin-bottom: 10px;
}
.label {
color: #333333;
}
.address {
min-width: 500px;
}
}
</style>
......@@ -2,77 +2,50 @@
<template>
<div class="purchase">
<div class="container">
<GLCombiForm ref="showSearch"
:rowNumber="2"
:formObj="searchForm"
:formData="showFormData"
@handleOk="handleSearch"
@handleRest="handleReset"></GLCombiForm>
<GLCombiForm ref="showSearch" :rowNumber="2" :formObj="searchForm" :formData="showFormData"
@handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<h2>采购订单列表</h2>
<div>
<GLButton type="primary"
size="small"
@click="handleCreatePurchase"
fn="创建采购">商城采购</GLButton>
<GLButton type="primary"
plain
size="small"
@click="handlePutStprage"
fn="自采入库">自采入库</GLButton>
<el-button size="small"
@click="exportExcel">导出</el-button>
<GLButton type="primary" size="small" @click="handleCreatePurchase" fn="创建采购">商城采购</GLButton>
<GLButton type="primary" plain size="small" @click="handlePutStprage" fn="自采入库">自采入库</GLButton>
<el-button size="small" @click="exportExcel">导出</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<GLTable ref="orderRef"
:getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<template slot="deliveryStatus"
slot-scope="scope">
<GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm"
:tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun">
<template slot="deliveryStatus" slot-scope="scope">
<div>
<span v-if="scope.scope.deliveryStatus"
:class="deliveryStatusOpt[scope.scope.deliveryStatus]"></span>
<span v-if="scope.scope.deliveryStatus" :class="deliveryStatusOpt[scope.scope.deliveryStatus]"></span>
<span>{{ scope.scope.deliveryStatus | deliveryStatus }}</span>
</div>
</template>
<template slot="putStatus"
slot-scope="scope">
<template slot="putStatus" slot-scope="scope">
<div>
<span v-if="scope.scope.putStatus"
:class="[scope.scope.putStatus == 1 ? 'ashSpot' : scope.scope.putStatus == 2 ? 'greenSpot' : 'yellowSpot']"></span>
:class="[scope.scope.putStatus == 1 ? 'ashSpot' : scope.scope.putStatus == 2 ? 'greenSpot' : 'yellowSpot']"></span>
<span>{{ scope.scope.putStatus | putOrderStatus }}</span>
</div>
</template>
<template slot="status"
slot-scope="scope">
<template slot="status" slot-scope="scope">
<div>
<span v-if="scope.scope.status"
:class="Spot[scope.scope.status-1]"></span>
<span
v-if="scope.scope.status==4||scope.scope.status==6||scope.scope.status==7">已驳回</span>
<span v-if="scope.scope.status" :class="Spot[scope.scope.status - 1]"></span>
<span v-if="scope.scope.status == 4 || scope.scope.status == 6 || scope.scope.status == 7">已驳回</span>
<span v-else>{{ scope.scope.status | orderStatus }}</span>
</div>
</template>
<div class="table-btns"
slot="auth-button"
slot-scope="scope">
<GLTableButton :buttonList="tableButtonList"
:buttonItem="scope.scope"
:buttonNum="3"></GLTableButton>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="2"></GLTableButton>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
<orderDeatilDialog :visible.sync="detailVisible"
v-if="detailVisible"
:paramsObj="paramsObj"></orderDeatilDialog>
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :paramsObj="paramsObj"></orderDeatilDialog>
<orderReturnDialog :visible.sync="detailReturnVisible" v-if="detailReturnVisible" :paramsObj="paramsObj"
@handleConfirm="handleDetailReturnConfirm"></orderReturnDialog>
</div>
</template>
......@@ -80,11 +53,13 @@
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import orderDeatilDialog from './components/orderDetailDialog'
import orderReturnDialog from './components/orderReturnDialog'
import { defaultStatusOptions, defaultDeliveryStatusOptions, putStatusOptions, purchaseTypeList } from '@/utils/constants.js'
export default {
name: 'PurchaseOrder',
components: {
orderDeatilDialog
orderDeatilDialog,
orderReturnDialog
},
data() {
return {
......@@ -108,6 +83,7 @@ export default {
paramsObj: {},
// 查看门店
detailVisible: false,
detailReturnVisible: false,
showFormData: [
{
label: '订单编号',
......@@ -227,11 +203,26 @@ export default {
type: 'text'
},
condition: row => {
return (row.purchaseType == 1 && row.deliveryStatus == 2) || (row.purchaseType == 1 && row.deliveryStatus == 3)||(row.purchaseType == 1 && row.deliveryStatus == 4)
return (row.purchaseType == 1 && row.deliveryStatus == 2) || (row.purchaseType == 1 && row.deliveryStatus == 3) || (row.purchaseType == 1 && row.deliveryStatus == 4)
},
listeners: {
click: this.handleDispatch
}
},
{
type: 'el-button',
name: '退货',
attrs: {
type: 'text'
},
condition: row => {
// 全部发货不能退货 只有部分发货能显示退货按钮
// return [1, 2, 5].includes(row.status) && row.purchaseType == 1 && row.deliveryStatus == 3
return [1, 2, 5].includes(row.status) && row.purchaseType == 1 && row.deliveryStatus != 2
},
listeners: {
click: this.handleReturnedProducts
}
}
],
// 表格
......@@ -353,6 +344,9 @@ export default {
},
methods: {
handleDetailReturnConfirm() {
this.$refs.orderRef.refreshTable()
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.placeOrderTimeStr.length) {
......@@ -436,6 +430,15 @@ export default {
}
this.detailVisible = true
},
// 查看详情
handleReturnedProducts(row) {
this.paramsObj = {
orderCode: row.orderCode,
merchantName: row.merchantName,
purchaseType: row.purchaseType
}
this.detailReturnVisible = true
},
//自采入库-编辑
handleEdit(row) {
this.$router.push({
......@@ -542,6 +545,7 @@ export default {
<style scoped lang="scss">
@import '@/assets/css/mixin.scss';
.purchase {
.table-header {
display: flex;
......@@ -549,39 +553,48 @@ export default {
justify-content: space-between;
margin-bottom: 10px;
margin-top: 20px;
h2 {
font-weight: 600;
font-size: 16px;
color: #333;
}
.glbtn {
left: 46px;
position: absolute;
}
.btn {
right: 47px;
position: absolute;
}
}
.greenSpot {
@include dot;
background: $color-green;
}
.yellowSpot {
@include dot;
background: $color-yellow;
}
.ashSpot {
@include dot;
background: $color-gray;
}
.redSpot {
@include dot;
background: $color-red;
}
.table-btns /deep/.el-button--text {
.table-btns ::v-deep.el-button--text {
min-width: 0 !important;
padding: 0;
width: 200px;
}
}
</style>
......@@ -6,22 +6,29 @@
<el-button type="primary" size="small" @click="addLine">添加一行</el-button>
</div>
<el-form ref="addForm" :model="formdata" size="small" :rules="rules">
<GLTable ref="orderRef" :tableData="formdata.tableData" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :hasPage="false">
<GLTable ref="orderRef" :tableData="formdata.tableData" :noDataImg="url" :searchForm="tableSearchForm"
:tableParams="tableParams" :hasPage="false">
<template slot="upgradeGoodsId" slot-scope="scope">
<el-form-item style="margin-bottom: 0px" :prop="'tableData.' + scope.index + '.upgradeGoodsId'" :rules="rules.upgradeGoodsId">
<el-select style="width: 100%" v-model="scope.scope.upgradeGoodsId" placeholder="请选择" @change="getGoodsName(scope.scope, scope.scope.upgradeGoodsId)">
<el-option v-for="item in goodsList" :key="item.upgradeGoodsId" :label="item.goodsName" :value="item.upgradeGoodsId"></el-option>
<el-form-item style="margin-bottom: 0px" :prop="'tableData.' + scope.index + '.upgradeGoodsId'"
:rules="rules.upgradeGoodsId">
<el-select style="width: 100%" v-model="scope.scope.upgradeGoodsId" placeholder="请选择"
@change="getGoodsName(scope.scope, scope.scope.upgradeGoodsId)">
<el-option v-for="item in goodsList" :key="item.upgradeGoodsId" :label="item.goodsName"
:value="item.upgradeGoodsId"></el-option>
</el-select>
</el-form-item>
</template>
<template slot="goodsNumber" slot-scope="scope">
<el-form-item style="margin-bottom: 0px" :prop="'tableData.' + scope.index + '.goodsNumber'" :rules="rules.goodsNumber">
<el-input v-model="scope.scope.goodsNumber" placeholder="请输入" @blur="handleCalculate(scope.scope, 'goodsNumber')"></el-input>
<el-form-item style="margin-bottom: 0px" :prop="'tableData.' + scope.index + '.goodsNumber'"
:rules="rules.goodsNumber">
<el-input v-model="scope.scope.goodsNumber" placeholder="请输入"
@blur="handleCalculate(scope.scope, 'goodsNumber')"></el-input>
</el-form-item>
</template>
<template slot="film" slot-scope="scope">
<div v-if="manageMode && goodsTypeList.includes(scope.scope.goodsTypeName)">
<el-button v-if="!scope.scope.filmRollList" type="text" @click="handleSelectFilm(scope.scope, scope.index)">请选择</el-button>
<el-button v-if="!scope.scope.filmRollList" type="text"
@click="handleSelectFilm(scope.scope, scope.index)">请选择</el-button>
<div v-else>
<span class="film-txt">...({{ scope.scope.filmRollList.length }})</span>
<el-button type="text" @click="handleSelectFilm(scope.scope, scope.index)">重新选择</el-button>
......@@ -30,28 +37,38 @@
<div v-else>--</div>
</template>
<template slot="upgradePurchasePrice" slot-scope="scope">
<el-form-item style="margin-bottom: 0px" :prop="'tableData.' + scope.index + '.upgradePurchasePrice'" :rules="rules.upgradePurchasePrice">
<el-input v-model="scope.scope.upgradePurchasePrice" placeholder="请输入" @blur="handleCalculate(scope.scope, 'upgradePurchasePrice')"></el-input>
<el-form-item style="margin-bottom: 0px" :prop="'tableData.' + scope.index + '.upgradePurchasePrice'"
:rules="rules.upgradePurchasePrice">
<el-input v-model="scope.scope.upgradePurchasePrice" placeholder="请输入"
@blur="handleCalculate(scope.scope, 'upgradePurchasePrice')"></el-input>
</el-form-item>
</template>
<template slot="goodsTotalPrice" slot-scope="scope">
<el-form-item style="margin-bottom: 0px" :prop="'tableData.' + scope.index + '.goodsTotalPrice'" :rules="rules.goodsTotalPrice">
<el-input v-model="scope.scope.goodsTotalPrice" placeholder="请输入" @blur="handleCalculate(scope.scope, 'goodsTotalPrice')"></el-input>
<el-form-item style="margin-bottom: 0px" :prop="'tableData.' + scope.index + '.goodsTotalPrice'"
:rules="rules.goodsTotalPrice">
<el-input v-model="scope.scope.goodsTotalPrice" placeholder="请输入"
@blur="handleCalculate(scope.scope, 'goodsTotalPrice')"></el-input>
</el-form-item>
</template>
<!-- 入库仓库 -->
<template slot="putYqMerchantId" slot-scope="scope">
<el-form-item style="margin-bottom: 0px" :prop="'tableData.' + scope.index + '.putYqMerchantId'" :rules="rules.putYqMerchantId">
<el-select style="width: 100%" v-model="scope.scope.putYqMerchantId" placeholder="请选择" @change="handleSelect(scope.scope, scope.scope.putYqMerchantId)">
<el-option v-for="item in storeUsageList" :key="item.merchantNo" :label="item.merchantName" :value="item.merchantNo"></el-option>
<el-form-item style="margin-bottom: 0px" :prop="'tableData.' + scope.index + '.putYqMerchantId'"
:rules="rules.putYqMerchantId">
<el-select style="width: 100%" v-model="scope.scope.putYqMerchantId" placeholder="请选择"
@change="handleSelect(scope.scope, scope.scope.putYqMerchantId)">
<el-option v-for="item in storeUsageList" :key="item.merchantNo" :label="item.merchantName"
:value="item.merchantNo"></el-option>
</el-select>
</el-form-item>
</template>
<!-- 入库门店 -->
<template slot="putMerchantId" slot-scope="scope">
<el-form-item style="margin-bottom: 0px" :prop="'tableData.' + scope.index + '.putMerchantId'" :rules="rules.putMerchantId">
<el-select style="width: 100%" v-model="scope.scope.putMerchantId" placeholder="请选择" @change="handleStoreSelect(scope.scope, scope.scope.putMerchantId)">
<el-option v-for="item in scope.scope.refByYqShopList" :key="item.merchantId" :label="item.merchantName" :value="item.merchantId"></el-option>
<el-form-item style="margin-bottom: 0px" :prop="'tableData.' + scope.index + '.putMerchantId'"
:rules="rules.putMerchantId">
<el-select style="width: 100%" v-model="scope.scope.putMerchantId" placeholder="请选择"
@change="handleStoreSelect(scope.scope, scope.scope.putMerchantId)">
<el-option v-for="item in scope.scope.refByYqShopList" :key="item.merchantId" :label="item.merchantName"
:value="item.merchantId"></el-option>
</el-select>
</el-form-item>
</template>
......@@ -405,26 +422,31 @@ export default {
.container {
background: #fff;
padding: 20px;
.table-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 15px;
}
.title {
font-weight: 600;
font-size: 16px;
color: #333333;
margin-bottom: 15px;
}
/deep/ .el-form-item__error {
::v-deep .el-form-item__error {
padding-top: 2px;
z-index: 9999999;
position: static;
}
/deep/ td.el-table__cell {
::v-deep td.el-table__cell {
height: 64px;
}
.film-txt {
box-sizing: border-box;
height: 32px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!