From 6ad6a0ae56de6c5f36798c0487017356895c7c98 Mon Sep 17 00:00:00 2001 From: lilu Date: Thu, 19 Jan 2023 15:48:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E4=BB=BB=E5=8A=A1=20-=20?= =?UTF-8?q?=E8=AE=A2=E8=88=B1=E8=AF=A6=E6=83=85lara=E7=99=BB=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 2 +- src/api/modular/main/TaskmanageList.js | 17 +- src/components/message/index.js | 34 + src/router/generator-routers.js | 26 +- .../detail/modules/basicInfo.vue | 2 +- src/views/main/BookingLedger/list/index.vue | 2 +- .../main/BookingLedgerNew/detail/index.vue | 2 +- .../detail/modules/basicInfo.vue | 2 +- .../detail/modules/goodsTable.vue | 2 +- .../main/BookingLedgerNew/list/index.vue | 2 +- src/views/main/Customer/addForm.vue | 2 +- .../main/Taskmanage/TaskLaraRecord/index.vue | 27 + .../main/Taskmanage/TaskLaraRegist/index.vue | 104 + .../TaskmanageDetail/goodsTable.vue | 1151 +++++++++ .../Taskmanage/TaskmanageDetail/index.vue | 2139 ++++++++++++++--- .../main/Taskmanage/TaskmanageList/index.vue | 113 +- .../TaskmanageList/modules/addFrom.vue | 219 -- .../TaskmanageList/modules/initData.js | 2 +- 18 files changed, 3219 insertions(+), 629 deletions(-) create mode 100644 src/components/message/index.js create mode 100644 src/views/main/Taskmanage/TaskLaraRecord/index.vue create mode 100644 src/views/main/Taskmanage/TaskLaraRegist/index.vue create mode 100644 src/views/main/Taskmanage/TaskmanageDetail/goodsTable.vue delete mode 100644 src/views/main/Taskmanage/TaskmanageList/modules/addFrom.vue diff --git a/public/index.html b/public/index.html index f3a404f..c9cb869 100644 --- a/public/index.html +++ b/public/index.html @@ -95,7 +95,7 @@ <% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %> <% } %> - + diff --git a/src/api/modular/main/TaskmanageList.js b/src/api/modular/main/TaskmanageList.js index c72fbc5..3e520d7 100644 --- a/src/api/modular/main/TaskmanageList.js +++ b/src/api/modular/main/TaskmanageList.js @@ -128,7 +128,7 @@ export function DownloadAttach (parameter) { return axios({ url: '/TaskManage/DownloadAttach', method: 'post', - data: parameter + data: parameter }) } @@ -144,12 +144,23 @@ export function GetBookingOrderInfo (parameter) { } /** - * lara 记录 + * lara 记录 -- 有问题 */ export function LaraPaperRegistPost (parameter) { return axios({ url: '/TaskManage/LaraPaperRegistPost', method: 'post', - data: parameter + data: parameter + }) +} + +/** + * 发送SI + */ +export function SendShippingOrder (parameter) { + return axios({ + url: '/TaskManage/SendShippingOrder', + method: 'get', + params: parameter }) } diff --git a/src/components/message/index.js b/src/components/message/index.js new file mode 100644 index 0000000..969870a --- /dev/null +++ b/src/components/message/index.js @@ -0,0 +1,34 @@ +// 封装到一个js文件里面,避免使用时代码累赘 +import { message } from 'ant-design-vue'; +/* + h: 是content自带的参数,表示createElement + content:文本内容 +*/ +const createElementVNode = (h, content) => { + // 定义文本内容及样式(这里的样式延用的官方的) + const innerText = h('span', { style: { color: '#4a5970', fontSize: '14px' } }, content); + // 自定义关闭图标 + const innerIcon = h('a-icon', { + style: { marginLeft: '10px', color: '#ccc', cursor: 'pointer' }, + attrs: { type: 'close' }, + on: { click: () => message.destroy() }, + }); + // 合到一个 VNode 节点中 + const container = h('span', {}, [innerText, innerIcon]); + // 最终返回 + return container; +}; +// 由于 message 有多种状态,这里需要额外处理 +const dtMessage = {}; +// 给 dtMessage 循环赋值不同类型的 message函数 +['error', 'success', 'info', 'warning', 'warn'].forEach((type) => { + dtMessage[type] = (content, duration, onClose) => { + // 处理 message[type](config) 参数为对象类型 + if (typeof content === 'object') { + return message[type]({ ...content, content: h => createElementVNode(h, content?.content) }); + } + return message[type](h => createElementVNode(h, content), duration, onClose); + }; +}); + +export default dtMessage; diff --git a/src/router/generator-routers.js b/src/router/generator-routers.js index bb85583..4cf3bfd 100644 --- a/src/router/generator-routers.js +++ b/src/router/generator-routers.js @@ -29,7 +29,9 @@ const constantRouterComponents = { BookingDetailNew: () => import('@/views/main/BookingLedgerNew/detail'), CustomerInformationManagementAdd: () => import('@/views/main/Customer/addForm'), CustomerInformationManagementEdit: () => import('@/views/main/Customer/editForm'), - TaskmanageDetail: () => import('@/views/main/Taskmanage/TaskmanageDetail') + TaskmanageDetail: () => import('@/views/main/Taskmanage/TaskmanageDetail'), + TaskLaraRecord: () => import('@/views/main/Taskmanage/TaskLaraRecord'), + TaskLaraRegist: () => import('@/views/main/Taskmanage/TaskLaraRegist') } // 前端未找到页面路由(固定不用改)、原来为 /404 @@ -153,6 +155,28 @@ const userAccount = [ show: false }, component: 'TaskmanageDetail' + }, + { + name: 'TaskLaraRecord', + path: '/commontaskmanage/TaskLaraRecord', + pid: 0, + id: 183184, + meta: { + title: 'LARA 提单纸登记记录', + show: false + }, + component: 'TaskLaraRecord' + }, + { + name: 'TaskLaraRegist', + path: '/commontaskmanage/TaskLaraRegist', + pid: 0, + id: 183185, + meta: { + title: 'LARA提单纸登记', + show: false + }, + component: 'TaskLaraRegist' } ] diff --git a/src/views/main/BookingLedger/detail/modules/basicInfo.vue b/src/views/main/BookingLedger/detail/modules/basicInfo.vue index 6827d4d..cc607d5 100644 --- a/src/views/main/BookingLedger/detail/modules/basicInfo.vue +++ b/src/views/main/BookingLedger/detail/modules/basicInfo.vue @@ -1478,7 +1478,7 @@ export default { } - - + \ No newline at end of file diff --git a/src/views/main/Taskmanage/TaskLaraRegist/index.vue b/src/views/main/Taskmanage/TaskLaraRegist/index.vue new file mode 100644 index 0000000..1c568c7 --- /dev/null +++ b/src/views/main/Taskmanage/TaskLaraRegist/index.vue @@ -0,0 +1,104 @@ + + + diff --git a/src/views/main/Taskmanage/TaskmanageDetail/goodsTable.vue b/src/views/main/Taskmanage/TaskmanageDetail/goodsTable.vue new file mode 100644 index 0000000..9b7e15c --- /dev/null +++ b/src/views/main/Taskmanage/TaskmanageDetail/goodsTable.vue @@ -0,0 +1,1151 @@ + + + diff --git a/src/views/main/Taskmanage/TaskmanageDetail/index.vue b/src/views/main/Taskmanage/TaskmanageDetail/index.vue index d2305db..36c75c7 100644 --- a/src/views/main/Taskmanage/TaskmanageDetail/index.vue +++ b/src/views/main/Taskmanage/TaskmanageDetail/index.vue @@ -1,340 +1,1142 @@ diff --git a/src/views/main/Taskmanage/TaskmanageList/index.vue b/src/views/main/Taskmanage/TaskmanageList/index.vue index de78061..cb2aa72 100644 --- a/src/views/main/Taskmanage/TaskmanageList/index.vue +++ b/src/views/main/Taskmanage/TaskmanageList/index.vue @@ -248,7 +248,7 @@ > 正本下载 - LARA登记 - - --> + @@ -355,6 +375,7 @@ - diff --git a/src/views/main/Taskmanage/TaskmanageList/modules/initData.js b/src/views/main/Taskmanage/TaskmanageList/modules/initData.js index cb20c56..b5c6280 100644 --- a/src/views/main/Taskmanage/TaskmanageList/modules/initData.js +++ b/src/views/main/Taskmanage/TaskmanageList/modules/initData.js @@ -10,6 +10,6 @@ export default { { field: 'mBlNo', width: 200, title: '提单号', showHeaderOverflow: true, sortable: true }, { field: 'etd', width: 180, title: '开船日期', showHeaderOverflow: true, sortable: true }, { field: 'complateDealName', width: 150, title: '完成方式', showHeaderOverflow: true, sortable: true }, - { field: 'operate', title: '操作', width: 150, noDraggable: true, slots: { default: 'operate' }, fixed: 'right', resizable: false } + { field: 'operate', title: '操作', width: 120, noDraggable: true, slots: { default: 'operate' }, fixed: 'right', resizable: false } ] }