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 @@ + + + + + + + {{ item[valueKey] }}- + {{ item[labelKey] }} + {{ item[sortKey] }} + {{ item[codeKey] }} + + + + + + + + + \ 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 @@ + + + + + + + + + + + + + {{getOptionLabel(item)}} + + + + + + + + + + + + + + + + + \ 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 @@ - + 货物名称 @@ -231,7 +231,7 @@ + label-width="80px" > @@ -280,11 +280,17 @@ import { ckbillDetailApi as getCkbillInfo, putBill } from '@/api/ckbill'; import { ckbillcargoDeleteApi as delCkcargo, recallPutBill } from '@/api/ckbillcargo'; // import { listVessel } from "@/api/jxc/vessel"; import FileUpload from "@/components/FileUploadVO"; +import MyFormItemInput from "@/components/MyFormItemInput"; +import rq from "@/components/Rq"; +import BillNumberInput from "@/components/BillNumberInput"; export default { name: 'BillEdit', components: { FileUpload, + MyFormItemInput, + rq, + BillNumberInput, }, props: { diff --git a/admin/src/views/ck/ckwarehouse/index.vue b/admin/src/views/ck/ckwarehouse/index.vue index 595fe8e..f221b35 100644 --- a/admin/src/views/ck/ckwarehouse/index.vue +++ b/admin/src/views/ck/ckwarehouse/index.vue @@ -1,5 +1,5 @@ - + @@ -7,7 +7,7 @@ - + 单据列表