diff --git a/src/main.js b/src/main.js index f9625454..e3e39afe 100644 --- a/src/main.js +++ b/src/main.js @@ -12,7 +12,7 @@ import Avue from '@smallwei/avue'; import '@smallwei/avue/lib/index.css'; import crudCommon from '@/mixins/crud.js'; import globalc from '@/api/basicdata/globalc.js' -import { getScreen } from './utils/util'; +import { getScreen,getHtmls } from './utils/util'; import functions from './utils/functions' import './permission'; import error from './error'; @@ -55,6 +55,7 @@ app.provide('functions',functions) app.config.globalProperties.$globalc = globalc; app.config.globalProperties.website = website; app.config.globalProperties.getScreen = getScreen; +app.config.globalProperties.getHtmls = getHtmls; app.use(error); app.use(i18n); diff --git a/src/option/distribution/distrilbutionBillLading.js b/src/option/distribution/distrilbutionBillLading.js index bfec2bc6..90ade6f7 100644 --- a/src/option/distribution/distrilbutionBillLading.js +++ b/src/option/distribution/distrilbutionBillLading.js @@ -123,7 +123,6 @@ export default { label: "总件数", prop: "quantity", }, - // { // label: "已提件数", // prop: "pickUpTime", @@ -1015,4 +1014,221 @@ export default { search: true, }, ], + columnOrder: [ + { + prop: 'serviceNumber', + label: '服务号', + width: '150', + head: false, + }, + { + prop: 'waybillNumber ', + label: '运单号', + width: '150', + head: false, + }, + { + prop: 'orderCode', + label: '订单自编号', + width: '150', + + }, + { + prop: 'mallName', + label: '商场名称', + + width: '180', + + }, + { + prop: 'descriptionGoods', + label: '货物名称', + + width: '180', + + }, + { + prop: 'warehouse', + label: '所在仓库', + + width: '180', + + }, + { + prop: 'warehouseEntryTime', + label: '入库时间', + + width: '180', + + }, + { + prop: 'warehouseEntryTimeEnd', + label: '最新入库时间', + + width: '180', + + }, + { + prop: 'storeTime', + label: '在库时间', + + width: '180', + + }, + { + prop: 'totalNumber', + label: '订单总件数', + + width: '150', + + }, + { + prop: 'consigneeUnit', + label: '收货单位', + + width: '150', + + }, { + prop: 'consigneePerson', + label: '收货人', + width: '150', + + }, { + prop: 'handQuantity', + label: '在库件数', + width: '150', + + }, { + prop: 'availableQuantity', + label: '可用数量', + width: '150', + }, + { + prop: 'notReceived', + label: '未入库数量', + + width: '150', + }, { + prop: 'sortingQuantity', + label: '分拣数量', + width: '150', + }, { + prop: 'deliveryQuantity', + label: '配送数量', + + width: '150', + }, { + prop: 'transferQuantity', + label: '中转数量', + + width: '150', + + }, { + prop: 'signinQuantity', + label: '签收数量', + + width: '150', + + },{ + prop: 'groundingStatusName', + label: '上架状态', + + width: '150', + + },{ + prop: 'allocation', + label: '货区-货位-货架', + + width: '150', + + },{ + prop: 'resource', + label: '订单来源', + + width: '150', + + }, + { + prop: 'trays', + label: '所在托盘', + + width: '150', + + }, + { + prop: 'freezeStatusName', + label: '冻结状态', + + width: '150', + }, + { + prop: 'orderStatusName', + label: '订单状态', + + width: '150', + + }, + { + prop: 'reservationStatusName', + label: '预约状态', + + width: '150', + + }, + { + prop: 'stockupStatusName', + label: '备货状态', + + width: '150', + + }, + { + prop: 'completeSetName', + label: '是否齐套', + + width: '150', + + }, + { + prop: 'notification', + label: '通知状态', + width: '150', + }, + { + prop: 'customerName', + label: '顾客名字', + + width: '150', + + }, + { + prop: 'customerTelephone', + label: '顾客电话', + + width: '150', + + }, + { + prop: 'customerAddress', + label: '顾客地址', + + width: '150', + + }, + { + prop: 'fee', + label: '增值服务', + + width: '150', + + }, { + prop: 'createUserName', + label: '创建人', + width: '150', + }, { + prop: 'createTime', + label: '创建时间', + width: '150', + }, + ], } diff --git a/src/utils/util.js b/src/utils/util.js index 0cdfc477..3964fa8c 100644 --- a/src/utils/util.js +++ b/src/utils/util.js @@ -277,13 +277,13 @@ export const openWindow = (url, title, w, h) => { const width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth - ? document.documentElement.clientWidth - : screen.width; + ? document.documentElement.clientWidth + : screen.width; const height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight - ? document.documentElement.clientHeight - : screen.height; + ? document.documentElement.clientHeight + : screen.height; const left = width / 2 - w / 2 + dualScreenLeft; const top = height / 2 - h / 2 + dualScreenTop; @@ -291,13 +291,13 @@ export const openWindow = (url, title, w, h) => { url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=' + - w + - ', height=' + - h + - ', top=' + - top + - ', left=' + - left + w + + ', height=' + + h + + ', top=' + + top + + ', left=' + + left ); // Puts focus on the newWindow @@ -314,6 +314,18 @@ export const getScreen = isCollapse => { } }; +export const getHtmls = (arrs, htmldemo) => { + let html = '' + arrs.map(item => { + let strhtml = JSON.parse(JSON.stringify(htmldemo)); + for (let key in item) { + let str = '${' + key + '}'; + strhtml = strhtml.replace(str, item[key]); + } + html += strhtml; + }); + return html +} /** * 获取顶部地址栏地址 */ diff --git a/src/utils/watermark.js b/src/utils/watermark.js index e6c0a824..3a6701ea 100644 --- a/src/utils/watermark.js +++ b/src/utils/watermark.js @@ -11,8 +11,8 @@ let setWatermark = (str) => { } let can = document.createElement('canvas') - can.width = 600 - can.height = 600 + can.width = 700 + can.height = 650 let cans = can.getContext('2d') cans.rotate(-15 * Math.PI / 150) @@ -25,8 +25,8 @@ let setWatermark = (str) => { let div = document.createElement('div') div.id = id div.style.pointerEvents = 'none' - div.style.top = '10px' - div.style.left = '10px' + div.style.top = '50px' + div.style.left = '60px' div.style.position = 'fixed' div.style.zIndex = '1000000' div.style.width = document.documentElement.clientWidth + 'px' diff --git a/src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue b/src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue index dc0c5edb..5b997bb0 100644 --- a/src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue +++ b/src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue @@ -1774,20 +1774,6 @@ export default { const data = res.data.data; console.log(">>>>>>>",data.records); this.page.total = data.total; - // data.records.some(i =>{ - // if(i.notification == '1'){ - // i.notification = '未通知' - // }else{ - // i.notification = '已通知' - // } - // if(i.state == '1'){ - // i.stateName = '待预约' - // }else if(i.state == '2'){ - // i.stateName = '已预约' - // }else if(i.state == '7'){ - // i.stateName = '已完成' - // } - // }); this.data = data.records; this.data = this.data.map(i => { const notificationMap = { @@ -1795,31 +1781,10 @@ export default { '2': "未通知", default: "无" }; - // const stateMap = { - // '1': "待预约", - // '2': "已预约", - // '7': " 已完成", - // default: "无" - // }; - // const freezeStatusMap = { - // 0: "未冻结", - // 1: "已冻结", - // default: "无" - // }; const nuMap = { '-1': "0" }; - // const groundingStatusMap = { - // 0: "未上架", - // 1: "部分上架", - // 2: "已上架", - // 3: "已下架", - // default: "无" - // }; - // i.stateName = stateMap[i.state] || stateMap.default; i.notification = notificationMap[i.notification] || notificationMap.default; - // i.freezeStatusName = freezeStatusMap[i.freezeStatus] || freezeStatusMap.default; - // i.groundingStatusName = groundingStatusMap[i.groundingStatus] || groundingStatusMap.default; i.handQuantity = nuMap[i.handQuantity] || i.handQuantity; i.sortingQuantity = nuMap[i.sortingQuantity] || i.sortingQuantity; i.deliveryQuantity = nuMap[i.deliveryQuantity] || i.deliveryQuantity; diff --git a/src/views/distribution/inventory/distributionStockArticleDetails.vue b/src/views/distribution/inventory/distributionStockArticleDetails.vue index 99f3169e..0dd02bc1 100644 --- a/src/views/distribution/inventory/distributionStockArticleDetails.vue +++ b/src/views/distribution/inventory/distributionStockArticleDetails.vue @@ -3,95 +3,117 @@