From 04c4bc981933b72a12e732f74b845a228e8b8045 Mon Sep 17 00:00:00 2001 From: wx-jincw Date: Tue, 24 Feb 2026 21:54:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=A5=E5=BA=93=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/package.json | 6 +- admin/src/components/BMSelect/index.vue | 457 ++++++++++++++++++ .../src/components/BillNumberInput/index.vue | 70 +++ .../src/components/MyFormItemInput/index.vue | 231 +++++++++ admin/src/components/Rq/index.vue | 16 + admin/src/components/SearchBlock/index.vue | 3 +- admin/src/main.js | 4 +- admin/src/utils/index.js | 14 + .../ckwarehouse/components/BillEdit/index.vue | 10 +- admin/src/views/ck/ckwarehouse/index.vue | 4 +- 10 files changed, 805 insertions(+), 10 deletions(-) create mode 100644 admin/src/components/BMSelect/index.vue create mode 100644 admin/src/components/BillNumberInput/index.vue create mode 100644 admin/src/components/MyFormItemInput/index.vue create mode 100644 admin/src/components/Rq/index.vue diff --git a/admin/package.json b/admin/package.json index c0a51fa..08e826f 100644 --- a/admin/package.json +++ b/admin/package.json @@ -47,7 +47,7 @@ "core-js": "^2.6.11", "crypto-js": "^4.1.1", "echarts": "4.2.1", - "element-ui": "2.13.0", + "element-ui": "^2.15.14", "file-saver": "2.0.1", "fuse.js": "3.4.4", "highlight.js": "10.5.0", @@ -60,6 +60,7 @@ "nprogress": "0.2.0", "path-to-regexp": "2.4.0", "qrcodejs2": "^0.0.2", + "quill": "1.3.7", "sass": "1.26.2", "sass-loader": "^7.2.0", "screenfull": "4.2.0", @@ -75,8 +76,7 @@ "vuex": "3.1.0", "wechat-jssdk": "^5.0.4", "xlsx": "0.14.1", - "xml-js": "1.6.11", - "quill": "1.3.7" + "xml-js": "1.6.11" }, "devDependencies": { "@babel/core": "7.0.0", diff --git a/admin/src/components/BMSelect/index.vue b/admin/src/components/BMSelect/index.vue new file mode 100644 index 0000000..64f9a12 --- /dev/null +++ b/admin/src/components/BMSelect/index.vue @@ -0,0 +1,457 @@ + + + + + \ No newline at end of file diff --git a/admin/src/components/BillNumberInput/index.vue b/admin/src/components/BillNumberInput/index.vue new file mode 100644 index 0000000..60e93e2 --- /dev/null +++ b/admin/src/components/BillNumberInput/index.vue @@ -0,0 +1,70 @@ + + + + + \ No newline at end of file diff --git a/admin/src/components/MyFormItemInput/index.vue b/admin/src/components/MyFormItemInput/index.vue new file mode 100644 index 0000000..38fe8b9 --- /dev/null +++ b/admin/src/components/MyFormItemInput/index.vue @@ -0,0 +1,231 @@ + + + + + \ No newline at end of file diff --git a/admin/src/components/Rq/index.vue b/admin/src/components/Rq/index.vue new file mode 100644 index 0000000..4bad071 --- /dev/null +++ b/admin/src/components/Rq/index.vue @@ -0,0 +1,16 @@ + + + + + \ No newline at end of file diff --git a/admin/src/components/SearchBlock/index.vue b/admin/src/components/SearchBlock/index.vue index 6d2ffc4..6e82ea7 100644 --- a/admin/src/components/SearchBlock/index.vue +++ b/admin/src/components/SearchBlock/index.vue @@ -316,4 +316,5 @@ export default { this.moreCheck.visible = false; } } -}; \ No newline at end of file +}; + \ No newline at end of file diff --git a/admin/src/main.js b/admin/src/main.js index 55de971..c2a75a1 100644 --- a/admin/src/main.js +++ b/admin/src/main.js @@ -55,7 +55,7 @@ import './icons' // icon import './permission' // permission control import './utils/error-log' // error integralLog import * as filters from './filters' // global filters -import { parseQuery } from "@/utils"; +import { parseQuery, sortBy } from "@/utils"; import * as Auth from '@/libs/wechat'; import * as constants from '@/utils/constants.js' import * as selfUtil from '@/utils/ZBKJIutil.js'; @@ -117,7 +117,7 @@ Vue.prototype.handleTree = handleTree Vue.prototype.parseTime = parseTime Vue.prototype.resetForm = resetForm Vue.prototype.addDateRange = addDateRange - +Vue.prototype.$sortBy = sortBy let cookieName = "VCONSOLE"; let query = parseQuery(); let urlSpread = query["spread"]; diff --git a/admin/src/utils/index.js b/admin/src/utils/index.js index 4266d1c..e6d7aa2 100644 --- a/admin/src/utils/index.js +++ b/admin/src/utils/index.js @@ -532,3 +532,17 @@ export function datePickerOpts() { }] } } + +/** + * 获取排序字段 + * @param col + * @param sortBy + */ +export function sortBy(col, sortBy) { + sortBy.sortOrder = col.order === 'ascending' ? 'asc' : 'desc' + sortBy.sortField = col.prop; + if (col.order == null) { + sortBy.sortOrder = null; + sortBy.sortField = null; + } +} \ No newline at end of file diff --git a/admin/src/views/ck/ckwarehouse/components/BillEdit/index.vue b/admin/src/views/ck/ckwarehouse/components/BillEdit/index.vue index 5f85085..e95bb55 100644 --- a/admin/src/views/ck/ckwarehouse/components/BillEdit/index.vue +++ b/admin/src/views/ck/ckwarehouse/components/BillEdit/index.vue @@ -8,7 +8,7 @@