接口, 出库,任务下发
This commit is contained in:
1 parent
f5423e78fe
commit
5c13b2a85c
38 files changed
+22919
-115
No files matched your search
@@ -0,0 +1,339 @@
|
||||
@media print {
|
||||
body {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
@page {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.hiprint-printPaper * {
|
||||
box-sizing: border-box;
|
||||
-moz-box-sizing: border-box; /* Firefox */
|
||||
-webkit-box-sizing: border-box; /* Safari */
|
||||
}
|
||||
|
||||
.hiprint-printPaper *:focus {
|
||||
outline: -webkit-focus-ring-color auto 0px;
|
||||
}
|
||||
|
||||
.hiprint-printPaper {
|
||||
position: relative;
|
||||
padding: 0 0 0 0;
|
||||
page-break-after: always;
|
||||
-webkit-user-select: none; /* Chrome/Safari/Opera */
|
||||
-moz-user-select: none; /* Firefox */
|
||||
user-select: none;
|
||||
overflow-x: hidden;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.hiprint-printPaper .hiprint-printPaper-content {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* 火狐浏览器打印 第一页过后 重叠问题 */
|
||||
@-moz-document url-prefix() {
|
||||
.hiprint-printPaper .hiprint-printPaper-content {
|
||||
position: relative;
|
||||
margin-top: 20px;
|
||||
top: -20px
|
||||
}
|
||||
}
|
||||
|
||||
.hiprint-printPaper.design {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
|
||||
.hiprint-printTemplate .hiprint-printPanel {
|
||||
page-break-after: always;
|
||||
}
|
||||
|
||||
.hiprint-printPaper, hiprint-printPanel {
|
||||
box-sizing: border-box;
|
||||
border: 0px;
|
||||
}
|
||||
|
||||
.hiprint-printPanel .hiprint-printPaper:last-child {
|
||||
page-break-after: avoid;
|
||||
}
|
||||
|
||||
.hiprint-printTemplate .hiprint-printPanel:last-child {
|
||||
page-break-after: avoid;
|
||||
}
|
||||
|
||||
.hiprint-printPaper .hideheaderLinetarget {
|
||||
border-top: 0px dashed rgb(201, 190, 190) !important;
|
||||
}
|
||||
|
||||
.hiprint-printPaper .hidefooterLinetarget {
|
||||
border-top: 0px dashed rgb(201, 190, 190) !important;
|
||||
}
|
||||
|
||||
.hiprint-printPaper.design {
|
||||
border: 1px dashed rgba(170, 170, 170, 0.7);
|
||||
}
|
||||
|
||||
.design .hiprint-printElement-table-content, .design .hiprint-printElement-longText-content {
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.design .resize-panel {
|
||||
box-sizing: border-box;
|
||||
border: 1px dotted;
|
||||
}
|
||||
|
||||
.hiprint-printElement-text {
|
||||
background-color: transparent;
|
||||
background-repeat: repeat;
|
||||
padding: 0 0 0 0;
|
||||
border: 0.75pt none rgb(0, 0, 0);
|
||||
direction: ltr;
|
||||
font-family: 'SimSun';
|
||||
font-size: 9pt;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
padding-bottom: 0pt;
|
||||
padding-left: 0pt;
|
||||
padding-right: 0pt;
|
||||
padding-top: 0pt;
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
line-height: 9.75pt;
|
||||
box-sizing: border-box;
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.design .hiprint-printElement-text-content {
|
||||
border: 1px dashed rgb(206, 188, 188);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.hiprint-printElement-longText {
|
||||
background-color: transparent;
|
||||
background-repeat: repeat;
|
||||
border: 0.75pt none rgb(0, 0, 0);
|
||||
direction: ltr;
|
||||
font-family: 'SimSun';
|
||||
font-size: 9pt;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
padding-bottom: 0pt;
|
||||
padding-left: 0pt;
|
||||
padding-right: 0pt;
|
||||
padding-top: 0pt;
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
line-height: 9.75pt;
|
||||
box-sizing: border-box;
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
/*white-space: pre-wrap*/
|
||||
}
|
||||
|
||||
|
||||
.hiprint-printElement-table {
|
||||
background-color: transparent;
|
||||
background-repeat: repeat;
|
||||
color: rgb(0, 0, 0);
|
||||
border-color: rgb(0, 0, 0);
|
||||
border-style: none;
|
||||
direction: ltr;
|
||||
font-family: 'SimSun';
|
||||
font-size: 9pt;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
padding-bottom: 0pt;
|
||||
padding-left: 0pt;
|
||||
padding-right: 0pt;
|
||||
padding-top: 0pt;
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
padding: 0 0 0 0;
|
||||
box-sizing: border-box;
|
||||
line-height: 9.75pt;
|
||||
}
|
||||
|
||||
.hiprint-printElement-table thead {
|
||||
background: #e8e8e8;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.hiprint-printElement-tableTarget, .hiprint-printElement-tableTarget tr, .hiprint-printElement-tableTarget td {
|
||||
border-color: rgb(0, 0, 0);
|
||||
/*border-style: none;*/
|
||||
/*border: 1px solid rgb(0, 0, 0);*/
|
||||
font-weight: normal;
|
||||
direction: ltr;
|
||||
padding-bottom: 0pt;
|
||||
padding-left: 4pt;
|
||||
padding-right: 4pt;
|
||||
padding-top: 0pt;
|
||||
text-decoration: none;
|
||||
vertical-align: middle;
|
||||
box-sizing: border-box;
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
/*line-height: 9.75pt;
|
||||
font-size: 9pt;*/
|
||||
}
|
||||
|
||||
.hiprint-printElement-tableTarget-border-all {
|
||||
border: 1px solid;
|
||||
}
|
||||
.hiprint-printElement-tableTarget-border-none {
|
||||
border: 0px solid;
|
||||
}
|
||||
.hiprint-printElement-tableTarget-border-lr {
|
||||
border-left: 1px solid;
|
||||
border-right: 1px solid;
|
||||
}
|
||||
.hiprint-printElement-tableTarget-border-left {
|
||||
border-left: 1px solid;
|
||||
}
|
||||
.hiprint-printElement-tableTarget-border-right {
|
||||
border-right: 1px solid;
|
||||
}
|
||||
.hiprint-printElement-tableTarget-border-tb {
|
||||
border-top: 1px solid;
|
||||
border-bottom: 1px solid;
|
||||
}
|
||||
.hiprint-printElement-tableTarget-border-top {
|
||||
border-top: 1px solid;
|
||||
}
|
||||
.hiprint-printElement-tableTarget-border-bottom {
|
||||
border-bottom: 1px solid;
|
||||
}
|
||||
|
||||
.hiprint-printElement-tableTarget-border-td-none td {
|
||||
border: 0px solid;
|
||||
}
|
||||
.hiprint-printElement-tableTarget-border-td-all td:not(:last-child) {
|
||||
border-right: 1px solid;
|
||||
}
|
||||
|
||||
/*.hiprint-printElement-tableTarget tr,*/
|
||||
.hiprint-printElement-tableTarget td {
|
||||
height: 18pt;
|
||||
}
|
||||
|
||||
.hiprint-printPaper .hiprint-paperNumber {
|
||||
font-size: 9pt;
|
||||
}
|
||||
|
||||
.design .hiprint-printElement-table-handle {
|
||||
position: absolute;
|
||||
height: 21pt;
|
||||
width: 21pt;
|
||||
background: red;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.hiprint-printPaper .hiprint-paperNumber-disabled {
|
||||
float: right !important;
|
||||
right: 0 !important;
|
||||
color: gainsboro !important;
|
||||
}
|
||||
|
||||
.hiprint-printElement-vline, .hiprint-printElement-hline {
|
||||
border: 0px none rgb(0, 0, 0);
|
||||
|
||||
}
|
||||
|
||||
.hiprint-printElement-vline {
|
||||
border-left: 0.75pt solid #000;
|
||||
border-right: 0px none rgb(0, 0, 0) !important;
|
||||
border-bottom: 0px none rgb(0, 0, 0) !important;
|
||||
border-top: 0px none rgb(0, 0, 0) !important;
|
||||
}
|
||||
|
||||
.hiprint-printElement-hline {
|
||||
border-top: 0.75pt solid #000;
|
||||
border-right: 0px none rgb(0, 0, 0) !important;
|
||||
border-bottom: 0px none rgb(0, 0, 0) !important;
|
||||
border-left: 0px none rgb(0, 0, 0) !important;
|
||||
}
|
||||
|
||||
.hiprint-printElement-oval, .hiprint-printElement-rect {
|
||||
border: 0.75pt solid #000;
|
||||
}
|
||||
|
||||
.hiprint-text-content-middle {
|
||||
}
|
||||
|
||||
.hiprint-text-content-middle > div {
|
||||
display: grid;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.hiprint-text-content-bottom {
|
||||
}
|
||||
|
||||
.hiprint-text-content-bottom > div {
|
||||
display: grid;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.hiprint-text-content-wrap {
|
||||
}
|
||||
|
||||
.hiprint-text-content-wrap .hiprint-text-content-wrap-nowrap {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.hiprint-text-content-wrap .hiprint-text-content-wrap-clip {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: clip;
|
||||
}
|
||||
|
||||
.hiprint-text-content-wrap .hiprint-text-content-wrap-ellipsis {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
/*hi-grid-row */
|
||||
.hi-grid-row {
|
||||
position: relative;
|
||||
height: auto;
|
||||
margin-right: 0;
|
||||
margin-left: 0;
|
||||
zoom: 1;
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.hi-grid-row::after, .hi-grid-row::before {
|
||||
display: table;
|
||||
content: '';
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.hi-grid-col {
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
float: left;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.table-grid-row {
|
||||
margin-left: -0pt;
|
||||
margin-right: -0pt;
|
||||
}
|
||||
|
||||
.tableGridColumnsGutterRow {
|
||||
padding-left: 0pt;
|
||||
padding-right: 0pt;
|
||||
}
|
||||
|
||||
.hiprint-gridColumnsFooter {
|
||||
text-align: left;
|
||||
clear: both;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jquery"),require("jsbarcode"),require("socket.io-client"),require("jspdf"),require("html2canvas"),require("canvg")):"function"==typeof define&&define.amd?define("vue-plugin-hiprint",["jquery","jsbarcode","socket.io-client","jspdf","html2canvas","canvg"],e):"object"==typeof exports?exports["vue-plugin-hiprint"]=e(require("jquery"),require("jsbarcode"),require("socket.io-client"),require("jspdf"),require("html2canvas"),require("canvg")):t["vue-plugin-hiprint"]=e(t.jQuery,t.JsBarcode,t.io,t.jspdf,t.html2canvas,t.canvg)}(window,function(__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__7__,__WEBPACK_EXTERNAL_MODULE__10__,__WEBPACK_EXTERNAL_MODULE__11__,__WEBPACK_EXTERNAL_MODULE__12__){return function(i){var n={};function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}return o.m=i,o.c=n,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/dist/",o(o.s=14)}([function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__0__},function(module,__webpack_exports__,__webpack_require__){"use strict";!function(jQuery){__webpack_require__.d(__webpack_exports__,"b",function(){return hiprint}),__webpack_require__.d(__webpack_exports__,"a",function(){return defaultElementTypeProvider});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__),_claviska_jquery_minicolors_jquery_minicolors_min__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(15),_claviska_jquery_minicolors_jquery_minicolors_min__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_claviska_jquery_minicolors_jquery_minicolors_min__WEBPACK_IMPORTED_MODULE_1__),jsbarcode__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4),jsbarcode__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(jsbarcode__WEBPACK_IMPORTED_MODULE_2__),_plugins_qrcode_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(16),_plugins_qrcode_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_plugins_qrcode_js__WEBPACK_IMPORTED_MODULE_3__),_plugins_watermark_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3),socket_io_client__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7),socket_io_client__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(socket_io_client__WEBPACK_IMPORTED_MODULE_5__),_css_image_l_img_svg__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8),_css_image_l_img_svg__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_css_image_l_img_svg__WEBPACK_IMPORTED_MODULE_6__),_css_image_v_img_svg__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9),_css_image_v_img_svg__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_css_image_v_img_svg__WEBPACK_IMPORTED_MODULE_7__),jspdf__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),jspdf__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(jspdf__WEBPACK_IMPORTED_MODULE_8__),html2canvas__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(11),html2canvas__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(html2canvas__WEBPACK_IMPORTED_MODULE_9__),nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(2),nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(nzh_dist_nzh_min_js__WEBPACK_IMPORTED_MODULE_10__),canvg__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(12),canvg__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(canvg__WEBPACK_IMPORTED_MODULE_11__),_etypes_default_etyps_provider__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(13);function _instanceof(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}window.$=window.jQuery=jquery__WEBPACK_IMPORTED_MODULE_0___default.a,window.autoConnect=!0,window.io=socket_io_client__WEBPACK_IMPORTED_MODULE_5__.io;var hiprint=function(i){var n={};function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t]Line truncated
|
||||
<option value='${t.v}'>${t.t}</option>`}),this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('<div class="hiprint-option-item hiprint-option-item-row">\n<div class="hiprint-option-item-label">\n转大小写\n</div>\n<div class="hiprint-option-item-field">\n<select class="auto-submit"></select>\n</div>\n</div>'),this.target.find(".auto-submit").append(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e)),this.target},pi.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return t.toString()},pi.prototype.setValue=function(t){this.target.find("select").val(t)},pi.prototype.destroy=function(){this.target.remove()},pi),ce=(si.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()('<div class="hiprint-option-item"><div class="hiprint-option-item-label">底部聚合类型</div><div class="hiprint-option-item-field"><select class="auto-submit"><option value="">不聚合</option><option value="count">计数</option><option value="sum">合计</option><option value="avg">平均值</option><option value="min">最小值</option><option value="max">最大值</option><option value="text">仅文本</option></select></div></div>'),this.target},si.prototype.getValue=function(){return this.target.find("select").val()},si.prototype.setValue=function(t){this.target.find("select").val(t)},si.prototype.destroy=function(){this.target.remove()},si),ue=(li.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(' <div class="hiprint-option-item hiprint-option-item-row">\n <div class="hiprint-option-item-label">\n 顶部偏移\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" placeholder="偏移量pt" class="auto-submit">\n </div>\n </div>'),this.target},li.prototype.getValue=function(){var t=this.target.find("input").val();if(t)return parseFloat(t.toString())},li.prototype.setValue=function(t){this.target.find("input").val(t)},li.prototype.destroy=function(){this.target.remove()},li),de=(ai.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 一行多组\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="2" >一行二列</option>\n <option value="3" >一行三列</option>\n <option value="4" >一行四列</option>\n </select>\n </div>\n </div>'),this.target},ai.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},ai.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('<option value="'+t+'" >'+t+"</option>"),this.target.find("select").val(t)},ai.prototype.destroy=function(){this.target.remove()},ai),ge=(n.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 一行多组间隔\n </div>\n <div class="hiprint-option-item-field">\n <select class="auto-submit">\n <option value="" >默认</option>\n <option value="1.5" >1.5pt</option>\n <option value="2.25" >2.25pt</option>\n <option value="3" >3pt</option>\n <option value="3.75" >3.75pt</option>\n <option value="4.5" >4.5pt</option>\n <option value="5.25" >5.25pt</option>\n <option value="6" >6pt</option>\n <option value="6.75" >6.75pt</option>\n <option value="7.25" >7.25pt</option>\n <option value="8.5" >8.5pt</option>\n <option value="9" >9pt</option>\n </select>\n </div>\n </div>'),this.target},n.prototype.getValue=function(){var t=this.target.find("select").val();if(t)return parseFloat(t.toString())},n.prototype.css=function(t,e){if(t&&t.length){if(e)return t.find(".table-grid-row").css("margin-left","-"+e+"pt").css("margin-right","-"+e+"pt"),t.find(".tableGridColumnsGutterRow").css("padding-left",e+"pt").css("padding-right",e+"pt"),null;t.find(".table-grid-row").map(function(t,e){e.style.marginLeft="",e.style.marginRight=""}),t.find(".tableGridColumnsGutterRow").map(function(t,e){e.style.paddingLeft="",e.style.paddingRight=""})}return null},n.prototype.setValue=function(t){t&&!this.target.find('option[value="'+t+'"]').length&&this.target.find("select").prepend('<option value="'+t+'" >'+t+"</option>"),this.target.find("select").val(t)},n.prototype.destroy=function(){this.target.remove()},n),he=(ri.prototype.createTarget=function(){return this.target=jquery__WEBPACK_IMPORTED_MODULE_0___default()(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 表格头显示\n </div>\n <div class="hipriLine truncated
|
||||
//# sourceMappingURL=vue-plugin-hiprint.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"vue-plugin-hiprint.js","sources":["webpack://vue-plugin-hiprint/vue-plugin-hiprint.js"],"mappings":"AAAA;AAmvIA","sourceRoot":""}
|
||||
Reference in new issue
Block a user