ol-base-components 3.4.6 → 3.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +12 -9
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
var _a, _b;
|
|
1
2
|
import Sortable from "sortablejs";
|
|
2
|
-
import
|
|
3
|
+
import * as HiPrint from "vue-plugin-hiprint";
|
|
3
4
|
import SwaggerClient from "swagger-client";
|
|
4
5
|
const nodata = "data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMtaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMxQzQ5OUFEMERGODExRTdBMjA1RTJCN0N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fvyafLa0vl3smlZ6uvp1i4cfXYepb/ADH6n/DGrkdGRSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVPqazgh6lIPAjHA++Bo63yz8vatpt1+269dhOeoVrkE+WRw+iXamR05FICAgUbVz1oelTnh8YxgcYRbW5dclSp8jCpQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQMOiupVhkHmIGYCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgf/9k=";
|
|
5
6
|
var render$c = function() {
|
|
@@ -463,7 +464,7 @@ const __vue2_script$a = {
|
|
|
463
464
|
},
|
|
464
465
|
methods: {
|
|
465
466
|
async getPrintTemplateList() {
|
|
466
|
-
var
|
|
467
|
+
var _a2;
|
|
467
468
|
const handleMenu = (arr, _this) => {
|
|
468
469
|
for (const item of arr) {
|
|
469
470
|
if (item.path === _this.$route.path) {
|
|
@@ -493,7 +494,7 @@ const __vue2_script$a = {
|
|
|
493
494
|
MaxResultCount: 1e3
|
|
494
495
|
}
|
|
495
496
|
});
|
|
496
|
-
if (Array.isArray((
|
|
497
|
+
if (Array.isArray((_a2 = res.result) == null ? void 0 : _a2.items) && res.result.items.length > 0) {
|
|
497
498
|
this.templateList = res.result.items;
|
|
498
499
|
} else {
|
|
499
500
|
this.templateList = [{ id: 1, templeteName: "暂无数据", disabled: true }];
|
|
@@ -6073,7 +6074,7 @@ const __vue2_script$2 = {
|
|
|
6073
6074
|
this.loadTemplates(data2.id);
|
|
6074
6075
|
},
|
|
6075
6076
|
async loadTemplates(menuId) {
|
|
6076
|
-
var
|
|
6077
|
+
var _a2;
|
|
6077
6078
|
try {
|
|
6078
6079
|
const res = await this.get({
|
|
6079
6080
|
url: "/api/app/print-templete/page-list",
|
|
@@ -6085,7 +6086,7 @@ const __vue2_script$2 = {
|
|
|
6085
6086
|
});
|
|
6086
6087
|
if (res.code !== 200)
|
|
6087
6088
|
return;
|
|
6088
|
-
this.templateList = ((
|
|
6089
|
+
this.templateList = ((_a2 = res.result) == null ? void 0 : _a2.items) || [];
|
|
6089
6090
|
} catch (error) {
|
|
6090
6091
|
console.error("加载模板列表失败:", error);
|
|
6091
6092
|
}
|
|
@@ -6210,11 +6211,12 @@ const OlPrintModel = /* @__PURE__ */ function() {
|
|
|
6210
6211
|
OlPrintModel.install = function(Vue) {
|
|
6211
6212
|
Vue.component("ol-print-model", OlPrintModel);
|
|
6212
6213
|
};
|
|
6214
|
+
const hiprint$1 = HiPrint.hiprint || ((_a = HiPrint.default) == null ? void 0 : _a.hiprint) || HiPrint.default;
|
|
6213
6215
|
const provider1 = function() {
|
|
6214
6216
|
const addElementTypes = (context) => {
|
|
6215
6217
|
context.removePrintElementTypes("providerModule1");
|
|
6216
6218
|
context.addPrintElementTypes("providerModule1", [
|
|
6217
|
-
new hiprint.PrintElementTypeGroup("常规", [
|
|
6219
|
+
new hiprint$1.PrintElementTypeGroup("常规", [
|
|
6218
6220
|
{
|
|
6219
6221
|
tid: "providerModule2.customText",
|
|
6220
6222
|
title: "文本",
|
|
@@ -6332,7 +6334,7 @@ const provider1 = function() {
|
|
|
6332
6334
|
type: "image"
|
|
6333
6335
|
}
|
|
6334
6336
|
]),
|
|
6335
|
-
new hiprint.PrintElementTypeGroup("定制", [
|
|
6337
|
+
new hiprint$1.PrintElementTypeGroup("定制", [
|
|
6336
6338
|
{
|
|
6337
6339
|
tid: "providerModule1.khname",
|
|
6338
6340
|
title: "客户名称",
|
|
@@ -6394,7 +6396,7 @@ const provider1 = function() {
|
|
|
6394
6396
|
}
|
|
6395
6397
|
}
|
|
6396
6398
|
]),
|
|
6397
|
-
new hiprint.PrintElementTypeGroup("辅助", [
|
|
6399
|
+
new hiprint$1.PrintElementTypeGroup("辅助", [
|
|
6398
6400
|
{
|
|
6399
6401
|
tid: "providerModule2.hline",
|
|
6400
6402
|
title: "横线",
|
|
@@ -6714,6 +6716,7 @@ const index_vue_vue_type_style_index_1_lang = "";
|
|
|
6714
6716
|
const index_vue_vue_type_style_index_2_scoped_true_lang = "";
|
|
6715
6717
|
const index_vue_vue_type_style_index_3_scoped_true_lang = "";
|
|
6716
6718
|
const index_vue_vue_type_style_index_4_scoped_true_lang = "";
|
|
6719
|
+
const hiprint = HiPrint.hiprint || ((_b = HiPrint.default) == null ? void 0 : _b.hiprint) || HiPrint.default;
|
|
6717
6720
|
const __vue2_script = {
|
|
6718
6721
|
name: "print",
|
|
6719
6722
|
components: {
|
|
@@ -6847,7 +6850,7 @@ var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
|
6847
6850
|
staticRenderFns,
|
|
6848
6851
|
false,
|
|
6849
6852
|
__vue2_injectStyles,
|
|
6850
|
-
"
|
|
6853
|
+
"7a502882",
|
|
6851
6854
|
null,
|
|
6852
6855
|
null
|
|
6853
6856
|
);
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("sortablejs"),require("vue-plugin-hiprint"),require("swagger-client")):"function"==typeof define&&define.amd?define(["exports","sortablejs","vue-plugin-hiprint","swagger-client"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["ol-base-components"]={},e.Sortable,e.vuePluginHiprint,e.SwaggerClient)}(this,function(e,t,r,a){"use strict";var l=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"Print_box",staticStyle:{width:"100%"}},[r("div",{staticClass:"Print_hader",staticStyle:{"text-align":"center","font-size":"25px","font-weight":"500","margin-bottom":"15px"}},[e._v(" "+e._s(e.printListObj.title)+" ")]),r("div",{staticClass:"Print_body"},[r("div",{staticClass:"Print_body_table",staticStyle:{"margin-bottom":"15px"}},[r("table",{staticStyle:{width:"100%","border-collapse":"collapse",border:"1px black solid","box-sizing":"border-box"}},[r("thead",{staticStyle:{display:"table-header-group"}},[r("tr",e._l(e.printListObj.tableHeader,function(t,a){return r("th",{key:a,style:{border:"1px solid black",padding:"7px",fontSize:"12px",width:t.width,minWidth:t.width,maxWidth:t.width,wordBreak:"break-all",wordWrap:"break-word"},attrs:{colspan:t.colspan}},[e._v(" "+e._s(t.label)+" ")])}),0)]),r("tbody",e._l(e.printListObj.tableData,function(t,a){return r("tr",{key:a},e._l(e.printListObj.tableHeader,function(a,l){return r("div",{key:l},[2==t.hot?r("td",{style:{border:"1px solid black",padding:"7px",fontSize:"12px",width:a.width,wordBreak:"break-all",wordWrap:"break-word",background:"#ccc !important"}},[r("span",[e._v(e._s(t[a.prop])+" ")])]):r("td",{style:{border:"1px solid black",padding:"7px",fontSize:"12px",width:a.width,fontWeight:a.weight,wordBreak:"break-all",wordWrap:"break-word"}},[r("span",[e._v(e._s(t[a.prop])+" ")])])])}),0)}),0)])])]),r("div",{staticClass:"Print_footer"}),r("div",{staticStyle:{"page-break-after":"always"}})])},i=[];function n(e,t,r,a,l,i,n,o){var s,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),a&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),n?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),l&&l.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(n)},c._ssrRegister=s):l&&(s=o?function(){l.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:l),s)if(c.functional){c._injectStyles=s;var p=c.render;c.render=function(e,t){return s.call(t),p(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,s):[s]}return{exports:e,options:c}}const o={};var s=n({props:{printListObj:Object},data:()=>({tableHeader:[{label:"Item No",prop:"itemNo"},{label:"STO",prop:"sto"},{label:"Country of Origin",prop:"countryofOrigin"},{label:"Material",prop:"material"},{label:"Deliervy Qty",prop:"deliervyQty"},{label:"Label Req.",prop:"labenReq"},{label:"Batch",prop:"batch"},{label:"Bill of Land",prop:"billofLand"}],tableData:[{countryofOrigin:"22",createDate:"2020-08-03T15:10:16",deliervyQty:33,invoice:"22",itemNo:"1",labenReq:"22",material:"22",sto:"sto",actualQty:0,batch:"batch",billofLand:"billofLand"},{actualQty:0,batch:"444",billofLand:"555",countryofOrigin:"66666",createDate:"2020-08-03T15:10:16",deliervyQty:33,invoice:"6677",itemNo:"1",labenReq:"666666",material:"6666666",sto:"88888888888"}]}),watch:{printListObj:{handler(){},deep:!0}}},l,i,!1,c,"1c21c016",null,null);function c(e){for(let t in o)this[t]=o[t]}const p=function(){return s.exports}();var u=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.shouldShow?r("el-table-column",e._b({key:`${e.column.prop}-${e.column.show}`,attrs:{label:e.column.label,prop:e.column.prop,"min-width":e.column.minWidth||"150px","show-overflow-tooltip":e.column.overHidden||!0,type:e.column.type||"normal"},scopedSlots:e._u([{key:"header",fn:function(){return[e.column.prop?r("el-tooltip",{attrs:{content:`${e.column.label} ${e.column.prop}`,placement:"top"}},[r("span",[e._v(e._s(e.column.label))])]):r("span",[e._v(e._s(e.column.label))])]},proxy:!0},e._l(e.$scopedSlots,function(t,r){return{key:r,fn:function(t){return[e._t(r,null,null,t)]}}}),e.column.children?null:{key:"default",fn:function(t){return[e.column.render?r("render-dom",{attrs:{render:function(){return e.column.render(t.row)}}}):e.column.renderSlot?e._t(e.column.prop,null,{row:t.row}):r("span",[e._v(e._s(t.row[e.column.prop]))])]}}],null,!0)},"el-table-column",Object.assign({align:"center",width:e.column.width,fixed:e.column.fixed||!1,sortable:e.column.sortable||!1},e.column.attrs),!1),[e.column.children&&e.column.children.length?e._l(e.column.children,function(t,a){return r("TableColumn",{key:a,attrs:{column:t},scopedSlots:e._u([e._l(e.$scopedSlots,function(t,r){return{key:r,fn:function(t){return[e._t(r,null,null,t)]}}})],null,!0)})}):e._e()],2):e._e()},d=[];const h={};var m=n({name:"TableColumn",components:{renderDom:{functional:!0,props:{render:Function},render:(e,t)=>e("div",[t.props.render()])},TableColumn:null},props:{column:{type:Object,required:!0}},data:()=>({}),computed:{shouldShow(){return!this.column.hasOwnProperty("show")||this.column.show}}},u,d,!1,f,null,null,null);function f(e){for(let t in h)this[t]=h[t]}const g=function(){return m.exports}();var b=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[r("img",{staticStyle:{width:"14px",height:"14px",cursor:"pointer"},attrs:{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNzc1NzgzOTUxNTIzIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjQ5MzMiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTk0Ny4yNTcyNzEgMTAyNEg3Ni43NDI3MjlBMzUuNzk0MTgzIDM1Ljc5NDE4MyAwIDAgMSA0MC45NDg1NDYgOTg4LjIwNTgxN1YzNS43OTQxODNBMzUuNzk0MTgzIDM1Ljc5NDE4MyAwIDAgMSA3Ni43NDI3MjkgMGg4NzAuNTE0NTQyYTM1Ljc5NDE4MyAzNS43OTQxODMgMCAwIDEgMzUuNzk0MTgzIDM1Ljc5NDE4M3Y5NTIuNDExNjM0YTM1Ljc5NDE4MyAzNS43OTQxODMgMCAwIDEtMzUuNzk0MTgzI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0NTQ1NCIgcC1pZD0iNDkzNSI+PC9wYXRoPjwvc3ZnPg==",alt:"print"}}),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.templateList,function(t,a){return r("el-dropdown-item",{key:a,attrs:{command:t.id,disabled:t.disabled}},[e._v(" "+e._s(t.templeteName||"-")+" ")])}),1)],1)},y=[];const v={};var A=n({name:"dropdown-print",props:{menuId:{type:String,default:""},printData:{type:[Object,Array],default:()=>{}},onPrintData:{type:Function,default:null},multipleSelection:{type:Array,default:()=>[]}},data:()=>({templateList:[{id:1,templeteName:"暂无数据",disabled:!0}]}),created(){this.getPrintTemplateList()},methods:{async getPrintTemplateList(){var e;const t=(e,r)=>{for(const a of e){if(a.path===r.$route.path)return a;if(a.child&&a.child.length>0&&1!==a.type){const e=t(a.child,r);if(e)return e}}return null};let r=JSON.parse(localStorage.getItem("wms")),a=null;r&&(a=r.SET_MENUS);const l=a;this.currentPageItem=t(l,this);const i=this.menuId||this.currentPageItem&&this.currentPageItem.id;try{const t=await this.get({url:"/api/app/print-templete/page-list",data:{MenuId:i,page:1,MaxResultCount:1e3}});Array.isArray(null==(e=t.result)?void 0:e.items)&&t.result.items.length>0?this.templateList=t.result.items:this.templateList=[{id:1,templeteName:"暂无数据",disabled:!0}]}catch(n){console.error("加载模板列表失败:",n)}},handleCommand(e){if(!Array.isArray(this.templateList))return;const t=this.templateList.find(t=>t.id===e);if(!t)return this.$message.error("未找到打印模板");const r={printData:this.printData||{},defaultTemplate:t.templeteJson?JSON.parse(t.templeteJson):{}};if(this.onPrintData){let e=!1;const a=t=>{e=!0,t?(r.printData=t,this.$hiprint.print(r)):this.$message.error("打印数据不能为空")};this.onPrintData(t,a),e||(t.sourceUrl?this.printByApi(r,t):(r.printData=this.printData||{},this.$hiprint.print(r)))}else t.sourceUrl?this.printByApi(r,t):this.printDefault(r)},printByApi(e,t){e.printData=this.getPrintDataByApi(t);if(!(e.printData&&(Array.isArray(e.printData)&&e.printData.length>0||"object"==typeof e.printData&&Object.keys(e.printData).length>0)))return this.$message.error("打印数据不能为空");this.$hiprint.print(e)},printDefault(e){e.printData=this.printData||{},this.$hiprint.print(e)},async getPrintDataByApi(e){try{let t=[];this.multipleSelection&&this.multipleSelection.length>0&&(t=this.multipleSelection.reduce((e,t)=>(e.push(t.id),e),[]));const r=await this.get({url:`${e.sourceUrl}`,data:{ids:t}});return 200!==r.code?{}:Array.isArray(r.result)&&r.result.length>0?r.result:{}}catch(t){console.error(`获取打印数据失败: ${e.sourceUrl}`,t)}}}},b,y,!1,S,"2de53864",null,null);function S(e){for(let t in v)this[t]=v[t]}const w=function(){return A.exports}();var C=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"table_list_fix"},[e._t("content_context"),e.btnlist.length||e.tableData.options.headTool||e.tableData.options.refreshBtn||e.tableData.options.downloadBtn?[e.showBtnBox?r("div",{staticClass:"btnbox"},[r("div",e._l(e.btnlist,function(t,a){return r("el-button",{key:a,attrs:{size:"small",type:t.types?t.types:"primary"},on:{click:t.method}},[t.icon?r("i",{class:t.icon}):e._e(),e._v(" "+e._s(t.title)+" ")])}),1),r("div",{staticClass:"toolbox"},[e._t("toolbox-before",null,{tableData:e.tableData,multipleSelection:e.multipleSelection,paginations:e.paginations,loading:e.tableData.loading}),e.tableData.options.headTool?r("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click"}},[r("div",{staticClass:"avatar-wrapper"},[r("div",{staticClass:"layui-table-tool-self"},[r("i",{staticClass:"el-icon-s-operation"})])]),r("el-dropdown-menu",{staticStyle:{padding:"5px"},attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-checkbox-group",{model:{value:e.checkedTableColumns,callback:function(t){e.checkedTableColumns=t},expression:"checkedTableColumns"}},e._l(e.checkedTableList,function(t){return r("el-checkbox",{key:t.prop,staticClass:"checkbox",attrs:{label:t.prop}},[e._v(e._s(t.label)+" ")])}),1)],1)],1):e._e(),e.tableData.options.refreshBtn?r("div",{staticClass:"avatar-container right-menu-item hover-effect el-dropdown",on:{click:e.refreshTable}},[e._m(0)]):e._e(),e.tableData.options.downloadBtn?r("div",{staticClass:"avatar-container right-menu-item hover-effect el-dropdown",on:{click:e.printTable}},[e._m(1)]):e._e(),e.isSmartPrintBtn?r("div",{staticClass:"avatar-container right-menu-item hover-effect el-dropdown"},[r("div",{staticClass:"avatar-wrapper"},[r("div",{staticClass:"layui-table-tool-self"},[r("print-template-selector",e._b({attrs:{menuId:e.menuId,printData:e.tableData.printData,multipleSelection:e.multipleSelection}},"print-template-selector",e.$attrs,!1))],1)])]):e._e(),e._t("toolbox-after",null,{tableData:e.tableData,multipleSelection:e.multipleSelection,paginations:e.paginations,loading:e.tableData.loading})],2)]):e._e()]:e._e(),r("div",{key:e.tableData.columns.length,staticClass:"tablebox"},[r("el-table",e._g(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.tableData.loading,expression:"tableData.loading"}],ref:e.tableRef,staticStyle:{width:"100%"},attrs:{border:"",data:e.tableData.rows,height:"100%","default-sort":e.tableData.sort},on:{"selection-change":e.SelectionChange,select:e.select,"select-all":e.selectAll,"row-click":e.rowClick}},"el-table",e.tableData.options,!1),e.tableEvents),[e.tableData.options&&e.tableData.options.selection?r("el-table-column",{attrs:{width:"60",align:"center",type:"selection",label:""}}):e._e(),e.tableData.options&&e.tableData.options.index?r("el-table-column",{attrs:{width:"60",align:"center",type:"index",index:e.computeTableIndex,label:"序号"}}):e._e(),e._l(this.tableData.columns,function(t,a){return[r("TableColumn",{key:`${t.prop||t.label}-${t.show}-${a}`,attrs:{column:t,id:`${t.prop}-${t.show}-${a}`},scopedSlots:e._u([e._l(e.$scopedSlots,function(t,r){return{key:r,fn:function(t){return[e._t(r,null,null,t)]}}})],null,!0)})]}),e.tableData.operates&&e.tableData.operates.length>0?r("el-table-column",e._b({attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"operate-group"},[e._l(e.tableData.operates,function(a,l){return[!a.isShow||a.isShow&&a.isShow(t.row,t.$index)?r("span",{key:l},[r("el-button",{style:a.style||"",attrs:{size:a.size||"small",type:a.type||"text",icon:a.icon,plain:a.plain,disabled:a.disabled&&a.disabled(t.row,t.$index)},on:{click:function(e){return e.stopPropagation(),a.method(t.row,t.$index)}}},[e._v(e._s(a.label)+e._s(e.tableData.operates.length>=2?" ":""))])],1):e._e()]})],2)]}}],null,!1,878221902)},"el-table-column",e.tableData.operatesAttrs,!1),[e._v("· ")]):e._e(),r("div",{staticClass:"empty",attrs:{slot:"empty"},slot:"empty"},[0==e.tableData.rows.length?r("img",{attrs:{src:e.nodata}}):e._e()])],2)],1),r("div",{staticClass:"pagebox"},[r("el-row",[r("el-col",{attrs:{span:24}},[e.paginations.pagetionShow&&e.paginations.total>0?r("el-pagination",{attrs:{"current-page":e.paginations.page,"page-sizes":e.paginations.page_sizes||e.pageSizes,"page-size":e.paginations.limit,layout:"total, sizes, prev, pager, next, jumper,slot",total:e.paginations.total},on:{"update:currentPage":function(t){return e.$set(e.paginations,"page",t)},"update:current-page":function(t){return e.$set(e.paginations,"page",t)},"size-change":e.handleSizeChange,"current-change":e.handleindexChange}},[e.paginations.refresh?r("div",{key:1,staticClass:"avatar-container right-menu-item hover-effect el-dropdown",staticStyle:{"margin-left":"10px"},on:{click:e.refreshTableBTN}},[r("div",{staticClass:"avatar-wrapper"},[r("div",{staticClass:"layui-table-tool-self"},[r("i",{staticClass:"el-icon-refresh"})])])]):e._e()]):e._e()],1)],1)],1),r("printTemplate",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"printTemplate",attrs:{"print-list-obj":e.printListObj}})],2)},D=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"avatar-wrapper"},[t("div",{staticClass:"layui-table-tool-self"},[t("i",{staticClass:"el-icon-refresh"})])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"avatar-wrapper"},[t("div",{staticClass:"layui-table-tool-self"},[t("i",{staticClass:"el-icon-printer"})])])}];const x={name:"table",components:{printTemplate:p,TableColumn:g,PrintTemplateSelector:w,renderDom:{functional:!0,props:{render:Function},render:(e,t)=>e("div",[t.props.render()])}},model:{prop:"multipleSelection",event:"SelectionChange"},props:{menuId:{type:String,default:""},url:{type:String,default:""},printListObj:{type:Object,default:()=>({title:"",tableHeader:"",tableData:""})},btnlist:Array,outTable:{type:Object,default:()=>({tableProp:{}})},tableData:{type:Object,default:()=>({loading:!1,options:{selection:null,index:null,headTool:!0,refreshBtn:!0,downloadBtn:!0},rows:[],columns:[],operates:[],operatesAttrs:{},printData:{}})},tableDataShow:{type:Boolean,default:!0},pageSizes:{type:Array,default:()=>[20,30,40,60,100,200]},paginations:{type:Object,default:()=>({page:1,total:0,limit:30,pagetionShow:!0})},emptyImg:{type:Boolean,default:!1},tableEvents:Object,showBtnBox:{type:Boolean,default:!0},onSwagger:{type:Function,default:null},onMerged:{type:Function,default:null},method:{type:String}},data(){return{nodata:"data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMtaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4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1tjQrsyyfA/4DA4Xcexlrl2VZ9XdrGK92nHVj81s/C6/otLKliFPf79MirvdYpXkvcagTrt+vzNJ/W+H2ys+Ds27p0J3W+7YqqpPcLiLHdVUjpTkScS0jYHzHpW8NGrY7g3nrVMyfzW6K/3pMNTB+aNn+q1NfQQ/lbNhus/l1YX+8jheUx8u7d3+P7rsWg86tfp1a/3M2fvyafLa0vl3smlZ6uvp1i4cfXYepb/ADH6n/DGrkdGRSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVPqazgh6lIPAjHA++Bo63yz8vatpt1+269dhOeoVrkE+WRw+iXamR05FICAgUbVz1oelTnh8YxgcYRbW5dclSp8jCpQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQMOiupVhkHmIGYCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgf/9k=",tableRef:this.tableData.tableRef||"tableRef",toggleRowFlage:this.tableData.toggleRowFlage||!1,pagetionShow:this.paginations.pagetionShow||!0,twinPage:1,columnsWatcher:null,key:0}},computed:{bindTableColumns(){return this.tableData.columns.filter(e=>!Object.keys(e).includes("show")||e.show)},checkedTableList:{get(){return this.getAllColumnsWithProp(this.tableData.columns)}},checkedTableColumns:{get(){return this.getAllLabelsWithProp()},set(e){this.setColumnsShow(e),this.$nextTick(()=>{this.$refs.tableRef.doLayout()})}},finalMethod(){return this.method||this.$olBaseConfig&&this.$olBaseConfig.method||"get"},isSmartPrintBtn(){return Object.keys(this.tableData.options).includes("smartPrintBtn")?!!this.tableData.options.smartPrintBtn:this.$olBaseConfig&&this.$olBaseConfig.smartPrintBtn||!1}},created(){this.url&&this.init()},beforeDestroy(){this.stopColumnsWatching()},methods:{init(){mn().then(async e=>{let t=e.paths[this.url][this.finalMethod].responses[200].content["application/json"].schema.properties.items.items.properties;if("function"==typeof this.onSwagger)try{const e=await this.onSwagger({columns:t});e&&(t=e)}catch(l){}const r=e=>{e.forEach(e=>{if(e.children&&e.children.length)r(e.children);else if(e.prop&&t[e.prop]){const r=t[e.prop];this.$set(e,"label",r.description),Object.keys(e).includes("show")||this.$set(e,"show",!0)}})};r(this.tableData.columns),Object.keys(t).forEach(e=>{const r=t[e];if(r.description){const t={prop:e,label:r.description,show:!0,sortable:!1,attrs:{}};r.enum&&Array.isArray(r.enum)&&(t.prop=`${e}Desc`,t.label=r.description.replace(/(枚举|枚举值)/g,"")),"boolean"===r.type&&(t.prop=`${e}Text`),this.findColumnByProp(this.tableData.columns,t.prop)||this.tableData.columns.push(t)}}),this.sortColumns(this.tableData.columns);const a=e=>{e.forEach(e=>{e.hasOwnProperty("show")||this.$set(e,"show",!0),e.children&&e.children.length?a(e.children):e.hasOwnProperty("show")||this.$set(e,"show",!0)})};if(a(this.tableData.columns),console.log("[36m[4mol插件-表格",this.tableData.columns),"function"==typeof this.onMerged)try{const e=await this.onMerged({columns:this.tableData.columns});Array.isArray(e)&&(this.tableData.columns=e)}catch(i){}this.startColumnsWatching()}).catch(e=>{console.error("获取 Swagger 数据失败:",e)})},sortColumns(e){let t=0;e.forEach(r=>{if(!r.beforeProp){r.sort=t,t++;const a=e.find(e=>e.beforeProp==r.prop);a&&(a.sort=t,t++)}}),e.sort((e,t)=>e.sort-t.sort)},findColumnByProp(e,t){for(const r of e)if(r.children&&r.children.length){const e=this.findColumnByProp(r.children,t);if(e)return e}else if(r.prop===t)return r;return null},radioChange(){this.$emit("radioChange",this.twinPage)},refreshTable(){const e=this.$router.history.current;this.$store.dispatch("tagsView/delCachedView",e).then(()=>{const{fullPath:t}=e;this.$nextTick(()=>{this.$router.replace({path:"/redirect"+t})})}),this.$emit("refreshTable")},printTable(){console.log("printTable"),this.tableData.rows.length<=0||(this.printListObj.title=this.$router.history.current.name,this.printListObj.tableHeader=this.tableData.columns,this.printListObj.tableData=this.tableData.rows,console.log(this.printListObj),setTimeout(()=>{$(".printTemplate").show(),$(".printTemplate").jqprint(),$(".printTemplate").hide()},50),this.$emit("printTable"))},selectAll(e){this.$emit("selectAll",e)},select(e,t){this.$emit("selectTab",e,t)},refreshTableBTN(){this.$emit("refreshTableBTN")},rowClick(e,t){"操作"!==t.label&&(this.$emit("rowClick",e),this.tableData.columns.every(e=>"是否只出样件"!==e.label)&&this.$refs.tableRef.toggleRowSelection(e))},computeTableIndex(e){return(this.paginations.page-1)*this.paginations.limit+e+1},SelectionChange(e){this.multipleSelection=e,this.$emit("SelectionChange",e)},handleSizeChange(e){this.paginations.limit=e,this.$emit("handleSizeChange",e)},handleindexChange(e){this.paginations.page=e,this.$emit("handleindexChange",e)},getCheckboxList(){return this.tableData.column},setCheckboxList(e){},getAllColumnsWithProp(e){const t=[],r=new Map,a=e=>{e.forEach(e=>{e.children&&e.children.length?a(e.children):e.prop&&(r.has(e.prop)||(r.set(e.prop,e),t.push(e)))})};return a(e),t},getAllLabelsWithProp(){const e=[],t=r=>{r.forEach(r=>{r.children&&r.children.length?t(r.children):r.prop&&r.show&&!e.includes(r.prop)&&r.show&&e.push(r.prop)})};return t(this.tableData.columns),e},setColumnsShow(e){const t=r=>{r.forEach(r=>{r.children&&r.children.length?t(r.children):r.prop&&(e.includes(r.prop)?this.$set(r,"show",!0):this.$set(r,"show",!1))})};t(this.tableData.columns)},startColumnsWatching(){this.stopColumnsWatching(),this.columnsWatcher=this.$watch("tableData.columns",()=>this.key+=1,{deep:!0,immediate:!1})},stopColumnsWatching(){this.columnsWatcher&&(this.columnsWatcher(),this.columnsWatcher=null)}}},k={};var T=n(x,C,D,!1,O,"5e84c9a6",null,null);function O(e){for(let t in k)this[t]=k[t]}const I=function(){return T.exports}();I.install=function(e){e.component("ol-table",I)},w.install=function(e){e.component("ol-dropdown-print",w)};const E=e=>{const t=localStorage.getItem("wms");if(!t)return[];const r=e[0].toLowerCase()+e.slice(1);return JSON.parse(t).SET_enumsSelect[r].enums||[]};var M=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ol-number-range",class:{"is-disabled":e.disabled}},[r("el-input",{ref:"startInput",staticClass:"range-input start-input",attrs:{type:"number",placeholder:e.startPlaceholder,min:e.min,max:e.max,disabled:e.disabled},on:{blur:e.handleStartBlur,input:e.handleStartInput},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleStartBlur.apply(null,arguments)}},model:{value:e.startValue,callback:function(t){e.startValue=t},expression:"startValue"}}),r("span",{staticClass:"range-separator"},[e._v("-")]),r("el-input",{ref:"endInput",staticClass:"range-input end-input",attrs:{type:"number",placeholder:e.endPlaceholder,min:e.min,max:e.max,disabled:e.disabled},on:{blur:e.handleEndBlur,input:e.handleEndInput},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEndBlur.apply(null,arguments)}},model:{value:e.endValue,callback:function(t){e.endValue=t},expression:"endValue"}}),e.clearable&&!e.disabled&&(e.startValue||e.endValue)?r("i",{staticClass:"el-icon-circle-close clear-icon",on:{click:e.handleClear}}):e._e()],1)},B=[];const P={name:"number-range",props:{value:{type:Array,default:()=>[null,null]},min:{type:Number,default:0},max:{type:Number,default:999999},startPlaceholder:{type:String,default:"起始值"},endPlaceholder:{type:String,default:"终止值"},clearable:{type:Boolean,default:!0},autoFillDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},precision:{type:Number,default:0,validator:e=>void 0===e||Number.isInteger(e)&&e>=0}},data:()=>({startValue:null,endValue:null}),watch:{value:{handler(e){Array.isArray(e)&&2===e.length?(this.startValue=null!==e[0]&&void 0!==e[0]?this.formatPrecision(Number(e[0])):null,this.endValue=null!==e[1]&&void 0!==e[1]?this.formatPrecision(Number(e[1])):null):(this.startValue=null,this.endValue=null)},immediate:!0,deep:!0}},methods:{formatPrecision(e){return void 0!==this.precision&&null!==this.precision?Number(Number(e).toFixed(this.precision)):e},handleStartInput(e){if(!this.disabled){if(""===e||null==e)this.startValue=null;else{let t=Number(e);t<this.min?t=this.min:t>this.max&&(t=this.max),this.startValue=this.formatPrecision(t)}this.emitValue()}},handleEndInput(e){if(!this.disabled){if(""===e||null==e)this.endValue=null;else{let t=Number(e);t<this.min?t=this.min:t>this.max&&(t=this.max),this.endValue=this.formatPrecision(t)}this.emitValue()}},handleStartBlur(){this.disabled||(this.autoFillDefault&&null!==this.startValue&&null===this.endValue&&(this.endValue=this.formatPrecision(this.max)),null!==this.startValue&&(this.startValue=this.formatPrecision(this.startValue)),this.validateRange(),this.emitValue())},handleEndBlur(){this.disabled||(this.autoFillDefault&&null!==this.endValue&&null===this.startValue&&(this.startValue=this.formatPrecision(this.min)),null!==this.endValue&&(this.endValue=this.formatPrecision(this.endValue)),this.validateRange(),this.emitValue())},validateRange(){if(null!==this.startValue&&null!==this.endValue&&this.startValue>this.endValue){const e=this.startValue;this.startValue=this.formatPrecision(this.endValue),this.endValue=this.formatPrecision(e)}},handleClear(){this.disabled||(this.startValue=null,this.endValue=null,this.emitValue())},emitValue(){const e=[this.startValue,this.endValue];this.$emit("input",e),this.$emit("change",e)}}},j={};var N=n(P,M,B,!1,_,"653fc76e",null,null);function _(e){for(let t in j)this[t]=j[t]}const z=function(){return N.exports}();z.install=function(e){e.component("ol-number-range ",z)};var V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Q=function(e){return e&&e.Math===Math&&e},L=Q("object"==typeof globalThis&&globalThis)||Q("object"==typeof window&&window)||Q("object"==typeof self&&self)||Q("object"==typeof V&&V)||Q("object"==typeof V&&V)||function(){return this}()||Function("return this")(),F={},H=function(e){try{return!!e()}catch(t){return!0}},R=!H(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),W=!H(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),U=W,q=Function.prototype.call,Y=U?q.bind(q):function(){return q.apply(q,arguments)},G={},Z={}.propertyIsEnumerable,J=Object.getOwnPropertyDescriptor,X=J&&!Z.call({1:2},1);G.f=X?function(e){var t=J(this,e);return!!t&&t.enumerable}:Z;var K,ee,te=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},re=W,ae=Function.prototype,le=ae.call,ie=re&&ae.bind.bind(le,le),ne=re?ie:function(e){return function(){return le.apply(e,arguments)}},oe=ne,se=oe({}.toString),ce=oe("".slice),pe=H,ue=function(e){return ce(se(e),8,-1)},de=Object,he=ne("".split),me=pe(function(){return!de("z").propertyIsEnumerable(0)})?function(e){return"String"===ue(e)?he(e,""):de(e)}:de,fe=function(e){return null==e},ge=fe,be=TypeError,ye=function(e){if(ge(e))throw new be("Can't call method on "+e);return e},ve=me,Ae=ye,Se=function(e){return ve(Ae(e))},we="object"==typeof document&&document.all,Ce=void 0===we&&void 0!==we?function(e){return"function"==typeof e||e===we}:function(e){return"function"==typeof e},De=Ce,xe=function(e){return"object"==typeof e?null!==e:De(e)},ke=L,Te=Ce,Oe=function(e,t){return arguments.length<2?(r=ke[e],Te(r)?r:void 0):ke[e]&&ke[e][t];var r},Ie=ne({}.isPrototypeOf),Ee=L.navigator,Me=Ee&&Ee.userAgent,Be=L,Pe=Me?String(Me):"",je=Be.process,Ne=Be.Deno,_e=je&&je.versions||Ne&&Ne.version,ze=_e&&_e.v8;ze&&(ee=(K=ze.split("."))[0]>0&&K[0]<4?1:+(K[0]+K[1])),!ee&&Pe&&(!(K=Pe.match(/Edge\/(\d+)/))||K[1]>=74)&&(K=Pe.match(/Chrome\/(\d+)/))&&(ee=+K[1]);var Ve=ee,Qe=H,Le=L.String,$e=!!Object.getOwnPropertySymbols&&!Qe(function(){var e=Symbol("symbol detection");return!Le(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ve&&Ve<41}),Fe=$e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,He=Oe,Re=Ce,We=Ie,Ue=Object,qe=Fe?function(e){return"symbol"==typeof e}:function(e){var t=He("Symbol");return Re(t)&&We(t.prototype,Ue(e))},Ye=String,Ge=Ce,Ze=function(e){try{return Ye(e)}catch(t){return"Object"}},Je=TypeError,Xe=function(e){if(Ge(e))return e;throw new Je(Ze(e)+" is not a function")},Ke=fe,et=Y,tt=Ce,rt=xe,at=TypeError,lt={exports:{}},it=L,nt=Object.defineProperty,ot=function(e,t){try{nt(it,e,{value:t,configurable:!0,writable:!0})}catch(r){it[e]=t}return t},st=L,ct=ot,pt="__core-js_shared__",ut=lt.exports=st[pt]||ct(pt,{});(ut.versions||(ut.versions=[])).push({version:"3.49.0",mode:"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"});var dt=lt.exports,ht=dt,mt=function(e,t){return ht[e]||(ht[e]=t||{})},ft=ye,gt=Object,bt=function(e){return gt(ft(e))},yt=ne({}.hasOwnProperty),vt=Object.hasOwn||function(e,t){return yt(bt(e),t)},At=ne,St=0,wt=Math.random(),Ct=At(1.1.toString),Dt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ct(++St+wt,36)},xt=mt,kt=vt,Tt=Dt,Ot=$e,It=Fe,Et=L.Symbol,Mt=xt("wks"),Bt=It?Et.for||Et:Et&&Et.withoutSetter||Tt,Pt=function(e){return kt(Mt,e)||(Mt[e]=Ot&&kt(Et,e)?Et[e]:Bt("Symbol."+e)),Mt[e]},jt=Y,Nt=xe,_t=qe,zt=function(e,t){var r=e[t];return Ke(r)?void 0:Xe(r)},Vt=function(e,t){var r,a;if("string"===t&&tt(r=e.toString)&&!rt(a=et(r,e)))return a;if(tt(r=e.valueOf)&&!rt(a=et(r,e)))return a;if("string"!==t&&tt(r=e.toString)&&!rt(a=et(r,e)))return a;throw new at("Can't convert object to primitive value")},Qt=TypeError,Lt=Pt("toPrimitive"),$t=function(e,t){if(!Nt(e)||_t(e))return e;var r,a=zt(e,Lt);if(a){if(void 0===t&&(t="default"),r=jt(a,e,t),!Nt(r)||_t(r))return r;throw new Qt("Can't convert object to primitive value")}return void 0===t&&(t="number"),Vt(e,t)},Ft=qe,Ht=function(e){var t=$t(e,"string");return Ft(t)?t:t+""},Rt=xe,Wt=L.document,Ut=Rt(Wt)&&Rt(Wt.createElement),qt=function(e){return Ut?Wt.createElement(e):{}},Yt=qt,Gt=!R&&!H(function(){return 7!==Object.defineProperty(Yt("div"),"a",{get:function(){return 7}}).a}),Zt=R,Jt=Y,Xt=G,Kt=te,er=Se,tr=Ht,rr=vt,ar=Gt,lr=Object.getOwnPropertyDescriptor;F.f=Zt?lr:function(e,t){if(e=er(e),t=tr(t),ar)try{return lr(e,t)}catch(r){}if(rr(e,t))return Kt(!Jt(Xt.f,e,t),e[t])};var ir={},nr=R&&H(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),or=xe,sr=String,cr=TypeError,pr=function(e){if(or(e))return e;throw new cr(sr(e)+" is not an object")},ur=R,dr=Gt,hr=nr,mr=pr,fr=Ht,gr=TypeError,br=Object.defineProperty,yr=Object.getOwnPropertyDescriptor,vr="enumerable",Ar="configurable",Sr="writable";ir.f=ur?hr?function(e,t,r){if(mr(e),t=fr(t),mr(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Sr in r&&!r[Sr]){var a=yr(e,t);a&&a[Sr]&&(e[t]=r.value,r={configurable:Ar in r?r[Ar]:a[Ar],enumerable:vr in r?r[vr]:a[vr],writable:!1})}return br(e,t,r)}:br:function(e,t,r){if(mr(e),t=fr(t),mr(r),dr)try{return br(e,t,r)}catch(a){}if("get"in r||"set"in r)throw new gr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var wr=ir,Cr=te,Dr=R?function(e,t,r){return wr.f(e,t,Cr(1,r))}:function(e,t,r){return e[t]=r,e},xr={exports:{}},kr=R,Tr=vt,Or=Function.prototype,Ir=kr&&Object.getOwnPropertyDescriptor,Er=Tr(Or,"name"),Mr={EXISTS:Er,PROPER:Er&&"something"===function(){}.name,CONFIGURABLE:Er&&(!kr||kr&&Ir(Or,"name").configurable)},Br=Ce,Pr=dt,jr=ne(Function.toString);Br(Pr.inspectSource)||(Pr.inspectSource=function(e){return jr(e)});var Nr,_r,zr,Vr=Pr.inspectSource,Qr=Ce,Lr=L.WeakMap,$r=Qr(Lr)&&/native code/.test(String(Lr)),Fr=Dt,Hr=mt("keys"),Rr=function(e){return Hr[e]||(Hr[e]=Fr(e))},Wr={},Ur=$r,qr=L,Yr=xe,Gr=Dr,Zr=vt,Jr=dt,Xr=Rr,Kr=Wr,ea="Object already initialized",ta=qr.TypeError,ra=qr.WeakMap;if(Ur||Jr.state){var aa=Jr.state||(Jr.state=new ra);aa.get=aa.get,aa.has=aa.has,aa.set=aa.set,Nr=function(e,t){if(aa.has(e))throw new ta(ea);return t.facade=e,aa.set(e,t),t},_r=function(e){return aa.get(e)||{}},zr=function(e){return aa.has(e)}}else{var la=Xr("state");Kr[la]=!0,Nr=function(e,t){if(Zr(e,la))throw new ta(ea);return t.facade=e,Gr(e,la,t),t},_r=function(e){return Zr(e,la)?e[la]:{}},zr=function(e){return Zr(e,la)}}var ia={set:Nr,get:_r,has:zr,enforce:function(e){return zr(e)?_r(e):Nr(e,{})},getterFor:function(e){return function(t){var r;if(!Yr(t)||(r=_r(t)).type!==e)throw new ta("Incompatible receiver, "+e+" required");return r}}},na=ne,oa=H,sa=Ce,ca=vt,pa=R,ua=Mr.CONFIGURABLE,da=Vr,ha=ia.enforce,ma=ia.get,fa=String,ga=Object.defineProperty,ba=na("".slice),ya=na("".replace),va=na([].join),Aa=pa&&!oa(function(){return 8!==ga(function(){},"length",{value:8}).length}),Sa=String(String).split("String"),wa=xr.exports=function(e,t,r){"Symbol("===ba(fa(t),0,7)&&(t="["+ya(fa(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!ca(e,"name")||ua&&e.name!==t)&&(pa?ga(e,"name",{value:t,configurable:!0}):e.name=t),Aa&&r&&ca(r,"arity")&&e.length!==r.arity&&ga(e,"length",{value:r.arity});try{r&&ca(r,"constructor")&&r.constructor?pa&&ga(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(l){}var a=ha(e);return ca(a,"source")||(a.source=va(Sa,"string"==typeof t?t:"")),e};Function.prototype.toString=wa(function(){return sa(this)&&ma(this).source||da(this)},"toString");var Ca=xr.exports,Da=Ce,xa=ir,ka=Ca,Ta=ot,Oa={},Ia=Math.ceil,Ea=Math.floor,Ma=Math.trunc||function(e){var t=+e;return(t>0?Ea:Ia)(t)},Ba=function(e){var t=+e;return t!=t||0===t?0:Ma(t)},Pa=Ba,ja=Math.max,Na=Math.min,_a=Ba,za=Math.min,Va=function(e){var t=_a(e);return t>0?za(t,9007199254740991):0},Qa=Se,La=function(e,t){var r=Pa(e);return r<0?ja(r+t,0):Na(r,t)},$a=function(e){return Va(e.length)},Fa=function(e){return function(t,r,a){var l=Qa(t),i=$a(l);if(0===i)return!e&&-1;var n,o=La(a,i);if(e&&r!=r){for(;i>o;)if((n=l[o++])!=n)return!0}else for(;i>o;o++)if((e||o in l)&&l[o]===r)return e||o||0;return!e&&-1}},Ha={includes:Fa(!0),indexOf:Fa(!1)},Ra=vt,Wa=Se,Ua=Ha.indexOf,qa=Wr,Ya=ne([].push),Ga=function(e,t){var r,a=Wa(e),l=0,i=[];for(r in a)!Ra(qa,r)&&Ra(a,r)&&Ya(i,r);for(;t.length>l;)Ra(a,r=t[l++])&&(~Ua(i,r)||Ya(i,r));return i},Za=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ja=Ga,Xa=Za.concat("length","prototype");Oa.f=Object.getOwnPropertyNames||function(e){return Ja(e,Xa)};var Ka={};Ka.f=Object.getOwnPropertySymbols;var el=Oe,tl=Oa,rl=Ka,al=pr,ll=ne([].concat),il=el("Reflect","ownKeys")||function(e){var t=tl.f(al(e)),r=rl.f;return r?ll(t,r(e)):t},nl=vt,ol=il,sl=F,cl=ir,pl=H,ul=Ce,dl=/#|\.prototype\./,hl=function(e,t){var r=fl[ml(e)];return r===bl||r!==gl&&(ul(t)?pl(t):!!t)},ml=hl.normalize=function(e){return String(e).replace(dl,".").toLowerCase()},fl=hl.data={},gl=hl.NATIVE="N",bl=hl.POLYFILL="P",yl=hl,vl=L,Al=F.f,Sl=Dr,wl=function(e,t,r,a){a||(a={});var l=a.enumerable,i=void 0!==a.name?a.name:t;if(Da(r)&&ka(r,i,a),a.global)l?e[t]=r:Ta(t,r);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(n){}l?e[t]=r:xa.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e},Cl=ot,Dl=function(e,t,r){for(var a=ol(t),l=cl.f,i=sl.f,n=0;n<a.length;n++){var o=a[n];nl(e,o)||r&&nl(r,o)||l(e,o,i(t,o))}},xl=yl,kl={},Tl=Ga,Ol=Za,Il=Object.keys||function(e){return Tl(e,Ol)},El=R,Ml=nr,Bl=ir,Pl=pr,jl=Se,Nl=Il;kl.f=El&&!Ml?Object.defineProperties:function(e,t){Pl(e);for(var r,a=jl(t),l=Nl(t),i=l.length,n=0;i>n;)Bl.f(e,r=l[n++],a[r]);return e};var _l,zl=Oe("document","documentElement"),Vl=pr,Ql=kl,Ll=Za,$l=Wr,Fl=zl,Hl=qt,Rl="prototype",Wl="script",Ul=Rr("IE_PROTO"),ql=function(){},Yl=function(e){return"<"+Wl+">"+e+"</"+Wl+">"},Gl=function(e){e.write(Yl("")),e.close();var t=e.parentWindow.Object;return e=null,t},Zl=function(){try{_l=new ActiveXObject("htmlfile")}catch(l){}var e,t,r;Zl="undefined"!=typeof document?document.domain&&_l?Gl(_l):(t=Hl("iframe"),r="java"+Wl+":",t.style.display="none",Fl.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Yl("document.F=Object")),e.close(),e.F):Gl(_l);for(var a=Ll.length;a--;)delete Zl[Rl][Ll[a]];return Zl()};$l[Ul]=!0;var Jl=Pt,Xl=Object.create||function(e,t){var r;return null!==e?(ql[Rl]=Vl(e),r=new ql,ql[Rl]=null,r[Ul]=e):r=Zl(),void 0===t?r:Ql.f(r,t)},Kl=ir.f,ei=Jl("unscopables"),ti=Array.prototype;void 0===ti[ei]&&Kl(ti,ei,{configurable:!0,value:Xl(null)});var ri=function(e,t){var r,a,l,i,n,o=e.target,s=e.global,c=e.stat;if(r=s?vl:c?vl[o]||Cl(o,{}):vl[o]&&vl[o].prototype)for(a in t){if(i=t[a],l=e.dontCallGetSet?(n=Al(r,a))&&n.value:r[a],!xl(s?a:o+(c?".":"#")+a,e.forced)&&void 0!==l){if(typeof i==typeof l)continue;Dl(i,l)}(e.sham||l&&l.sham)&&Sl(i,"sham",!0),wl(r,a,i,e)}},ai=Ha.includes,li=H,ii=function(e){ti[ei][e]=!0},ni=li(function(){return!Array(1).includes()}),oi=li(function(){return[,1].includes(void 0,1)});ri({target:"Array",proto:!0,forced:ni||oi},{includes:function(e){return ai(this,e,arguments.length>1?arguments[1]:void 0)}}),ii("includes");var si=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:"搜索条件配置",visible:e.dialogVisible,width:"60%","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t},close:e.handleClose}},[r("div",{staticClass:"search-config-container"},[r("div",{staticClass:"config-header"},[e.customs&&e.customs.length>0?r("el-button",{attrs:{type:"success",size:"small"},on:{click:function(t){e.customsDialogVisible=!0}}},[r("i",{staticClass:"el-icon-plus"}),e._v(" 从预设添加 ")]):e._e()],1),r("el-table",{ref:"configTable",staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.configList,border:"",stripe:"","row-class-name":e.tableRowClassName,"row-key":"value","tree-props":{children:""}}},[e.dragable?r("el-table-column",{attrs:{label:"排序",width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("i",{staticClass:"el-icon-rank sort-handle",staticStyle:{cursor:"move","font-size":"18px"}})]}}],null,!1,3289925553)}):e._e(),r("el-table-column",{attrs:{label:"字段名称",prop:"label",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-input",{attrs:{size:"small",placeholder:"请输入字段名称",disabled:""},model:{value:t.row.label,callback:function(r){e.$set(t.row,"label",r)},expression:"scope.row.label"}})]}}])}),r("el-table-column",{attrs:{label:"字段值",prop:"value",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-input",{attrs:{size:"small",placeholder:"请输入字段值",disabled:""},model:{value:t.row.value,callback:function(r){e.$set(t.row,"value",r)},expression:"scope.row.value"}})]}}])}),r("el-table-column",{attrs:{label:"输入类型",prop:"inputType",width:"130",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-select",{attrs:{size:"small",placeholder:"请选择类型",disabled:["number","picker"].includes(t.row.inputType)},on:{change:function(r){return e.handleTypeChange(t.row)}},model:{value:t.row.inputType,callback:function(r){e.$set(t.row,"inputType",r)},expression:"scope.row.inputType"}},[r("el-option",{attrs:{label:"文本输入",value:"text"}}),r("el-option",{attrs:{label:"数字输入",value:"number",disabled:""}}),r("el-option",{attrs:{label:"下拉选择",value:"select"}}),r("el-option",{attrs:{label:"日期选择",value:"picker",disabled:""}})],1)]}}])}),r("el-table-column",{attrs:{label:"日期类型",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["picker"===t.row.inputType?r("el-select",{attrs:{size:"small",placeholder:"请选择日期类型"},on:{change:function(r){return e.handleDateTypeChange(t.row)}},model:{value:t.row.dateType,callback:function(r){e.$set(t.row,"dateType",r)},expression:"scope.row.dateType"}},[r("el-option",{attrs:{label:"日期",value:"date"}}),r("el-option",{attrs:{label:"日期时间",value:"datetime"}}),r("el-option",{attrs:{label:"日期范围",value:"daterange"}}),r("el-option",{attrs:{label:"日期时间范围",value:"datetimerange"}}),r("el-option",{attrs:{label:"月份",value:"month"}}),r("el-option",{attrs:{label:"月份范围",value:"monthrange"}}),r("el-option",{attrs:{label:"年份",value:"year"}})],1):r("div",{staticClass:"gray-text"},[e._v("-")])]}}])}),r("el-table-column",{attrs:{label:"比较方式",width:"130",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-select",{attrs:{size:"small",placeholder:"请选择比较方式"},model:{value:t.row.compare,callback:function(r){e.$set(t.row,"compare",r)},expression:"scope.row.compare"}},[r("el-option",{attrs:{label:"范围",value:"range"}}),r("el-option",{attrs:{label:"包含于",value:"in"}}),r("el-option",{attrs:{label:"不包含于",value:"not in"}}),r("el-option",{attrs:{label:"等于",value:"eq"}}),r("el-option",{attrs:{label:"不等于",value:"ne"}}),r("el-option",{attrs:{label:"大于",value:"gt"}}),r("el-option",{attrs:{label:"大于等于",value:"ge"}}),r("el-option",{attrs:{label:"小于",value:"lt"}}),r("el-option",{attrs:{label:"小于等于",value:"le"}}),r("el-option",{attrs:{label:"包含",value:"contains"}}),r("el-option",{attrs:{label:"以...开始",value:"startswith"}}),r("el-option",{attrs:{label:"以...结束",value:"endswith"}})],1)]}}])}),r("el-table-column",{attrs:{label:"配置",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["select"===t.row.inputType?r("div",[r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(r){return e.handleConfigOptions(t.$index)}}},[e._v(" 配置选项 ")])],1):r("div",{staticClass:"gray-text"},[e._v("无需配置")])]}}])}),r("el-table-column",{attrs:{label:"操作",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{staticStyle:{color:"#f56c6c"},attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(r){return e.handleDelete(t.$index)}}},[e._v(" 删除 ")])]}}])})],1)],1),r("div",{staticClass:"dialog-footer"},[e._t("footer",function(){return[r("el-button",{on:{click:e.handleClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("确定")])]})],2),r("el-dialog",{attrs:{title:"配置选项",visible:e.optionsDialogVisible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.optionsDialogVisible=t}}},[r("el-form",{attrs:{model:e.currentOptionConfig,"label-width":"100px",size:"small"}},[r("el-form-item",{attrs:{label:"数据来源"}},[r("el-radio-group",{model:{value:e.currentOptionConfig.sourceType,callback:function(t){e.$set(e.currentOptionConfig,"sourceType",t)},expression:"currentOptionConfig.sourceType"}},[r("el-radio",{attrs:{label:"manual"}},[e._v("手动配置")]),r("el-radio",{attrs:{label:"dict"}},[e._v("本地字典")]),r("el-radio",{attrs:{label:"api"}},[e._v("接口获取")])],1)],1),"dict"===e.currentOptionConfig.sourceType?r("el-form-item",{attrs:{label:"字典"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","filter-method":e.filterDict,placeholder:"请输入字典,如:orderTypeEnum",clearable:""},on:{change:e.handleDictKeyChange},model:{value:e.currentOptionConfig.dictKey,callback:function(t){e.$set(e.currentOptionConfig,"dictKey",t)},expression:"currentOptionConfig.dictKey"}},e._l(e.allDictList,function(t){return r("el-option",{key:t.key,attrs:{label:t.label,value:t.key}},[r("span",{staticStyle:{float:"left"}},[e._v(e._s(t.label))]),r("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.key))])])}),1)],1):e._e(),"api"===e.currentOptionConfig.sourceType?r("el-form-item",{attrs:{label:"接口地址"}},[r("el-input",{attrs:{placeholder:"请输入接口地址,如:/api/dict/list"},model:{value:e.currentOptionConfig.apiUrl,callback:function(t){e.$set(e.currentOptionConfig,"apiUrl",t)},expression:"currentOptionConfig.apiUrl"}})],1):e._e(),"api"===e.currentOptionConfig.sourceType?r("el-form-item",{attrs:{label:"请求方式"}},[r("el-select",{attrs:{placeholder:"请选择请求方式"},model:{value:e.currentOptionConfig.method,callback:function(t){e.$set(e.currentOptionConfig,"method",t)},expression:"currentOptionConfig.method"}},[r("el-option",{attrs:{label:"GET",value:"get"}}),r("el-option",{attrs:{label:"POST",value:"post"}})],1)],1):e._e(),"api"===e.currentOptionConfig.sourceType?r("el-form-item",{attrs:{label:"文本字段"}},[r("el-input",{attrs:{placeholder:"如:name"},model:{value:e.currentOptionConfig.labelField,callback:function(t){e.$set(e.currentOptionConfig,"labelField",t)},expression:"currentOptionConfig.labelField"}})],1):e._e(),"api"===e.currentOptionConfig.sourceType?r("el-form-item",{attrs:{label:"值字段"}},[r("el-input",{attrs:{placeholder:"如:id"},model:{value:e.currentOptionConfig.valueField,callback:function(t){e.$set(e.currentOptionConfig,"valueField",t)},expression:"currentOptionConfig.valueField"}})],1):e._e(),"manual"===e.currentOptionConfig.sourceType?r("el-form-item",{attrs:{label:"选项列表"}},[r("div",{staticClass:"options-config"},[e._l(e.currentOptionConfig.options,function(t,a){return r("div",{key:a,staticClass:"option-item"},[r("el-input",{staticStyle:{width:"150px"},attrs:{size:"small",placeholder:"文本"},model:{value:t.value,callback:function(r){e.$set(t,"value",r)},expression:"option.value"}}),r("el-input",{staticStyle:{width:"150px","margin-left":"10px"},attrs:{size:"small",placeholder:"值"},model:{value:t.key,callback:function(r){e.$set(t,"key",r)},expression:"option.key"}}),r("el-button",{staticStyle:{color:"#f56c6c","margin-left":"10px"},attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.handleDeleteOption(a)}}})],1)}),r("el-button",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{type:"dashed",size:"small",icon:"el-icon-plus"},on:{click:e.handleAddOption}},[e._v(" 添加选项 ")])],2)]):e._e(),"dict"===e.currentOptionConfig.sourceType&&e.isPreview?r("el-form-item",{attrs:{label:"预览"}},[r("div",{staticClass:"preview-box"},[e._l(e.previewOptions,function(t,a){return r("el-tag",{key:a,staticStyle:{margin:"5px"}},[e._v(" "+e._s(t.value)+" ("+e._s(t.key)+") ")])}),e.previewOptions&&0!==e.previewOptions.length?e._e():r("el-empty",{attrs:{description:"暂无数据","image-size":60}})],2)]):e._e()],1),r("div",{staticClass:"dialog-footer"},[e._t("footer",function(){return[r("el-button",{on:{click:function(t){e.optionsDialogVisible=!1}}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSaveOptions}},[e._v("确定")])]})],2)],1),r("el-dialog",{attrs:{title:"从预设添加条件",visible:e.customsDialogVisible,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.customsDialogVisible=t}}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.availableCustoms,border:"",stripe:""}},[r("el-table-column",{attrs:{label:"字段名称",prop:"name",align:"center"}}),r("el-table-column",{attrs:{label:"字段值",prop:"key",align:"center"}}),r("el-table-column",{attrs:{label:"数据类型",width:"120",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.keyType?r("el-tag",{attrs:{type:"info"}},[e._v("字符串")]):2===t.row.keyType?r("el-tag",{attrs:{type:"warning"}},[e._v("数字")]):3===t.row.keyType?r("el-tag",{attrs:{type:"success"}},[e._v("枚举")]):4===t.row.keyType?r("el-tag",{attrs:{type:"primary"}},[e._v("日期")]):e._e()]}}])}),r("el-table-column",{attrs:{label:"操作",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(r){return e.handleSelectCustom(t.row)}}},[e._v(" 添加 ")])]}}])})],1),r("div",{staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.customsDialogVisible=!1}}},[e._v("取消")])],1)],1)],1)},ci=[];const pi={name:"SearchConfigDialog",props:{visible:{type:Boolean,default:!1},formSearchData:{type:Object,default:()=>{}},formSearch:{type:Object,default:()=>{}},tableSearch:{type:Array,default:()=>[]},customs:{type:Array,default:()=>[]},dragable:{type:Boolean,default:!1},isPreview:{type:Boolean,default:!1}},data:()=>({dialogVisible:!1,configList:[],optionsDialogVisible:!1,customsDialogVisible:!1,currentEditIndex:-1,currentOptionConfig:{sourceType:"manual",dictKey:"",apiUrl:"",method:"get",valueField:"id",labelField:"name",options:[]},previewOptions:[],allDictList:[],allDictListBackup:[],sortable:null,currentConfig:{}}),computed:{availableCustoms(){const e=this.configList.map(e=>e.value);return this.customs.filter(t=>!e.includes(t.key))}},created(){this.loadAllDictList(),this.setArrVModelReset()},watch:{visible:{handler(e){this.dialogVisible=e,e&&(this.configList=JSON.parse(JSON.stringify(this.tableSearch)),this.$nextTick(()=>{this.initSortable()}))},immediate:!0},dialogVisible(e){this.$emit("update:visible",e),e||this.destroySortable()}},methods:{initSortable(){this.sortable&&this.sortable.destroy();const e=this.$refs.configTable;if(!e)return;const r=e.$el.querySelector(".el-table__body-wrapper tbody");r&&(this.sortable=t.create(r,{animation:150,handle:".sort-handle",ghostClass:"sortable-ghost",dragClass:"sortable-drag",onEnd:({newIndex:e,oldIndex:t})=>{if(e!==t){const r=this.configList[t];this.configList.splice(t,1),this.configList.splice(e,0,r)}}}))},destroySortable(){this.sortable&&(this.sortable.destroy(),this.sortable=null)},handleClose(){this.dialogVisible=!1},async handleSave(){for(const e of this.configList)"select"===e.inputType&&e.optionSource&&(await this.loadItemOptionsForSave(e),"in"===e.compare?e.props.multiple=!0:delete e.props.multiple);this.$emit("save",this.configList),this.dialogVisible=!1,console.log("[36m[4mol插件-动态搜索框配置数据",this.configList)},async loadItemOptionsForSave(e){if(!e.optionSource)return;const{sourceType:t}=e.optionSource;"dict"===t&&await this.loadDictOptionsForSave(e)},async loadDictOptionsForSave(e){try{const t=e.optionSource.dictKey;if(!t)return;const r=await this.getDictData(t);r&&Array.isArray(r)&&(e.children=r.map(e=>({key:e.key,value:e.value})))}catch(t){console.error("加载字典数据失败:",t)}},handleDelete(e){this.$confirm("确定要删除该条件吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.configList.splice(e,1)})},handleTypeChange(e){"select"!==e.inputType||e.children?"picker"===e.inputType?(e.props||(e.props={}),this.updateDatePickerProps(e)):e.dateType="":e.children=[]},handleDateTypeChange(e){e.props||(e.props={}),this.updateDatePickerProps(e);["daterange","datetimerange","monthrange"].includes(e.dateType)?e.compare="range":e.compare="eq"},updateDatePickerProps(e){const t=e.dateType||"date",r=e.props||{};switch(t){case"date":default:r.type="date",r.placeholder="选择日期",r.valueFormat="yyyy-MM-dd",r.format="yyyy/MM/dd";break;case"datetime":r.type="datetime",r.placeholder="选择日期时间",r.valueFormat="yyyy-MM-dd HH:mm:ss",r.format="yyyy/MM/dd HH:mm:ss";break;case"daterange":r.type="daterange",r.startPlaceholder="开始日期",r.endPlaceholder="结束日期",r.placeholder="选择日期范围",r.valueFormat="yyyy-MM-dd",r.format="yyyy/MM/dd";break;case"datetimerange":r.type="datetimerange",r.startPlaceholder="开始时间",r.endPlaceholder="结束时间",r.placeholder="选择时间范围",r.valueFormat="yyyy-MM-dd HH:mm:ss",r.format="yyyy/MM/dd HH:mm:ss",r.defaultTime=["00:00:00","23:59:59"];break;case"month":r.type="month",r.placeholder="选择月份",r.valueFormat="yyyy-MM",r.format="yyyy年MM月";break;case"monthrange":r.type="monthrange",r.startPlaceholder="开始月份",r.endPlaceholder="结束月份",r.placeholder="选择月份范围",r.valueFormat="yyyy-MM",r.format="yyyy年MM月";break;case"year":r.type="year",r.placeholder="选择年份",r.valueFormat="yyyy",r.format="yyyy年"}e.props=r},handleConfigOptions(e){this.currentEditIndex=e;const t=this.configList[e];this.currentConfig=JSON.parse(JSON.stringify(t));const r=t.optionSource||{};this.currentOptionConfig={sourceType:r.sourceType||"manual",dictKey:r.dictKey||"",apiUrl:r.apiUrl||"",method:r.method||"get",valueField:r.valueField||"id",labelField:r.labelField||"name",options:[]},"manual"===this.currentOptionConfig.sourceType&&(this.currentOptionConfig.options=JSON.parse(JSON.stringify(t.children||[]))),this.optionsDialogVisible=!0,this.loadPreviewOptions()},handleAddOption(){this.currentOptionConfig.options.push({key:"",value:""})},handleDeleteOption(e){this.currentOptionConfig.options.splice(e,1)},async loadApiOptions(e){try{const t=e.optionSource.apiUrl,r=e.optionSource.method||"get";if(!t)return;let a;if(a="post"===r?await this.post({url:t}):await this.get({url:t}),200!==a.code)return;if(a.result&&Array.isArray(a.result)){const{valueField:t,labelField:r}=e.optionSource;return a.result.map(e=>({key:e[t],value:e[r]}))}}catch(t){return console.error("加载接口数据失败:",t),[]}},needSetChildren(e,t){const{inputType:r,optionSource:a}=e;if(!a)return!1;const{sourceType:l,apiUrl:i,method:n,valueField:o,labelField:s}=a;if("select"!==r||"api"!==l)return!1;const{sourceType:c,apiUrl:p,method:u,valueField:d,labelField:h}=t;return l!==c||i!==p||n!==u||o!==d||s!==h},async handleSaveOptions(){const e=this.configList[this.currentEditIndex],t={sourceType:"",dictKey:"",apiUrl:"",valueField:"id",labelField:"name",options:[]};if("manual"===this.currentOptionConfig.sourceType){const r=JSON.parse(JSON.stringify(this.currentOptionConfig.options));e.children=r,e.optionSource={...t,sourceType:"manual",options:r}}else if("dict"===this.currentOptionConfig.sourceType)e.optionSource={...t,sourceType:"dict",dictKey:this.currentOptionConfig.dictKey},e.children=[];else if("api"===this.currentOptionConfig.sourceType){e.optionSource={...t,sourceType:"api",apiUrl:this.currentOptionConfig.apiUrl,method:this.currentOptionConfig.method,valueField:this.currentOptionConfig.valueField,labelField:this.currentOptionConfig.labelField};let r=[];this.needSetChildren(this.currentConfig,e.optionSource)?r=await this.loadApiOptions(e):e.children=r||[]}this.optionsDialogVisible=!1},tableRowClassName:({row:e,rowIndex:t})=>`row-${t}`,async loadPreviewOptions(){this.previewOptions=[],"dict"===this.currentOptionConfig.sourceType&&await this.loadDictOptions()},async loadDictOptions(){try{const e=this.currentOptionConfig.dictKey;if(!e)return;const t=await this.getDictData(e);t&&Array.isArray(t)&&(this.previewOptions=t.map(e=>({key:e.key,value:e.value})))}catch(e){console.error("加载字典数据失败:",e),this.$message.error("加载字典数据失败")}},getDictData:e=>new Promise(t=>{try{const r=localStorage.getItem("wms")||"{}",a=JSON.parse(r),l=(a.SET_enumsSelect||{})[e],i=[];l&&l.enums&&Array.isArray(l.enums)&&l.enums.forEach(e=>{i.push({key:e.key,value:e.value})}),t(i)}catch(r){console.error("获取字典数据失败:",r),t([])}}),async loadAllDictList(){try{const e=localStorage.getItem("wms")||"{}",t=JSON.parse(e).SET_enumsSelect||{},r=[];Object.keys(t).forEach(e=>{const a=t[e];a&&e&&r.push({key:String(e),label:a.desc||e})}),this.allDictList=r,this.allDictListBackup=r}catch(e){console.error("加载字典列表失败:",e),this.allDictList=[],this.allDictListBackup=[]}},filterDict(e){if(!e)return void(this.allDictList=this.allDictListBackup||[]);const t=this.allDictListBackup.filter(t=>t.key.toLowerCase().includes(e.toLowerCase())||t.label.toLowerCase().includes(e.toLowerCase()));this.allDictList=t},handleDictKeyChange(e){this.allDictList=this.allDictListBackup||[],e&&this.loadPreviewOptions()},handleSelectCustom(e){const t={label:e.name,value:e.key,inputType:{1:"text",2:"number",3:"select",4:"picker"}[e.keyType]||"text",compare:{1:"contains",2:"eq",3:"eq",4:"eq"}[e.keyType]||"eq",children:[],props:{}};4===e.keyType?(t.dateType="date",t.props={type:"date",placeholder:"选择日期",valueFormat:"yyyy-MM-dd",format:"yyyy/MM/dd"}):3===e.keyType&&(t.optionSource={sourceType:"dict",dictKey:e.enumName}),this.configList.push(t),this.customsDialogVisible=!1},setArrVModelReset(){this.tableSearch.forEach(e=>{const{value:t,inputType:r}=e;Object.keys(this.formSearch).includes(t)&&("select"!==r&&"picker"!==r||(delete this.formSearchData.value[t],delete this.formSearch[t]))})}}},ui={};var di=n(pi,si,ci,!1,hi,"5652e548",null,null);function hi(e){for(let t in ui)this[t]=ui[t]}var mi=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"formSearch formSearchArrowUp"},[e.formSearchData.tableSearch&&e.formSearchData.tableSearch.length>=0?r("div",{staticClass:"table-header"},[r("el-form",e._b({key:e.key,ref:"formSearch",attrs:{size:"small",rules:e.formSearchData.rules,model:e.formSearch,inline:!0,"label-position":"right"}},"el-form",Object.assign({},e.formSearchData.options&&e.formSearchData.options.formProps),!1),[r("div",{staticClass:"transitionGroup",class:[e.formSearchData.expendShow?"formSearchBtnArrowDowns":"formSearchBtnArrowUps"]},e._l(e.findTableSearch,function(t){return r("el-form-item",e._b({directives:[{name:"show",rawName:"v-show",value:!t.show,expression:"!item.show"}],key:t.value,staticClass:"table-header-item",class:{picker:t.props&&"datetimerange"===t.props.type,date:t.props&&"date"===t.props.type},attrs:{label:t.label,prop:t.value}},"el-form-item",t.labelProps||{},!1),["treeSelect"===t.inputType?r("Tree-select",e._b({ref:"TreeSelectref",refInFor:!0,attrs:{options:t.children},on:{getValue:function(r){t.change&&t.change(e.formSearch[t.value])}},model:{value:e.formSearch[t.value],callback:function(r){e.$set(e.formSearch,t.value,r)},expression:"formSearch[item.value]"}},"Tree-select",t.props||{},!1)):"select"===t.inputType?r("el-select",e._b({directives:[{name:"el-select-all",rawName:"v-el-select-all",value:t.loadmores,expression:"item.loadmores"}],attrs:{clearable:void 0===t.clearable||t.clearable,placeholder:`请选择${t.placeholder||t.label}`,"popper-append-to-body":!1},on:{change:function(r){t.change&&t.change(e.formSearch[t.value])}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch("formSearch")}},model:{value:e.formSearch[t.value],callback:function(r){e.$set(e.formSearch,t.value,r)},expression:"formSearch[item.value]"}},"el-select",t.props||{},!1),e._l(t.children,function(e){return r("el-option",{key:e.key,attrs:{label:e.value,value:e.key}})}),1):"selectTEMP"===t.inputType?r("el-select",e._b({directives:[{name:"el-select-all",rawName:"v-el-select-all",value:t.loadmores,expression:"item.loadmores"}],attrs:{placeholder:`请选择${t.placeholder||t.label}`,"popper-append-to-body":!1},on:{change:function(r){t.change&&t.change(e.formSearch[t.value])}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch("formSearch")}},model:{value:e.formSearch[t.value],callback:function(r){e.$set(e.formSearch,t.value,r)},expression:"formSearch[item.value]"}},"el-select",Object.assign({clearable:!0},t.props||{}),!1),e._l(t.children,function(e){return r("el-option",{key:e.key,attrs:{label:e.value,value:e.key}})}),1):"selectRemoteMethod"===t.inputType?r("el-select",{directives:[{name:"el-select-all",rawName:"v-el-select-all",value:t.loadmores,expression:"item.loadmores"}],attrs:{filterable:"",remote:"",clearable:"","reserve-keyword":"",placeholder:"请输入至少3位关键字","remote-method":t.remoteMethod,loading:t.loading},model:{value:e.formSearch[t.value],callback:function(r){e.$set(e.formSearch,t.value,r)},expression:"formSearch[item.value]"}},e._l(t.children,function(e){return r("el-option",{key:e.key,attrs:{label:e.value,value:e.key}})}),1):"picker"===t.inputType?r("el-date-picker",e._b({staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:t.props.placeholder||"选择日期","default-time":"datetimerange"==t.props.type?["00:00:00","23:59:59"]:""},model:{value:e.formSearch[t.value],callback:function(r){e.$set(e.formSearch,t.value,r)},expression:"formSearch[item.value]"}},"el-date-picker",t.props||{type:"date"},!1)):"numberRange"===t.inputType?r("ol-number-range",e._g(e._b({model:{value:e.formSearch[t.value],callback:function(r){e.$set(e.formSearch,t.value,r)},expression:"formSearch[item.value]"}},"ol-number-range",t.props||{},!1),Object.assign({},t.listeners,{change:function(e){return t.listeners&&t.listeners.change&&t.listeners.change({item:t,val:e})}}))):r("el-input",e._b({class:"number"==t.inputType?"numrule":"",attrs:{clearable:"",type:t.inputType||"text",placeholder:`请输入${t.placeholder||t.label}`,maxlength:t.maxlength,oninput:e.handleChangeInput(t)},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch("formSearch")},keydown:function(r){return e.keyInput(t,r)},paste:function(r){return e.onPaste(t,r)}},model:{value:e.formSearch[t.value],callback:function(r){e.$set(e.formSearch,t.value,r)},expression:"formSearch[item.value]"}},"el-input",t.props||{},!1))],1)}),1),r("el-form-item",{staticClass:"fromBtn",class:[e.formSearchData.expendShow?"formSearchBtnArrowDown":"formSearchBtnArrowUp"],staticStyle:{"word-break":"keep-all","white-space":"nowrap","margin-left":"10px"}},[e.formSearchData.reset?r("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.handleSearch("formSearch")}}},[e._v("查询 ")]):e._e(),e.formSearchData.reset?r("el-button",{attrs:{plain:"",size:"small"},on:{click:function(t){return e.handleReset("formSearch")}}},[e._v("重置")]):e._e(),e.formSearchData.expendShow?r("el-button",{attrs:{plain:"",size:"small",icon:e.expend?"el-icon-arrow-up":"el-icon-arrow-down"},on:{click:function(t){return e.handleExpend("formSearch")}}},[e._v(" "+e._s(e.expend?"收起":"展开"))]):e._e(),e.isCustomSearch?r("el-button",{attrs:{plain:"",size:"small",icon:"el-icon-setting"},on:{click:e.handleOpenConfig}},[e._v(" 配置 ")]):e._e()],1)],1)],1):e._e(),e.configDialogVisible?r("search-config-dialog",e._b({attrs:{visible:e.configDialogVisible,"table-search":e.formSearchData.tableSearch,formSearchData:e.formSearchData,formSearch:e.formSearch,customs:e.formSearchData.customs},on:{"update:visible":function(t){e.configDialogVisible=t},save:e.handleSaveConfig}},"search-config-dialog",e.$attrs,!1)):e._e()],1)},fi=[];const gi={name:"search",components:{OlNumberRange:z,SearchConfigDialog:function(){return di.exports}()},directives:{"el-select-loadmore":{bind(e,t){e.querySelector(".el-select-dropdown .el-select-dropdown__wrap").addEventListener("scroll",function(){const e=this.scrollHeight-this.scrollTop<=this.clientHeight;e>0&&e<2&&t.value()})}},"el-select-all":{bind(e,t,r){r.context;const a=e.querySelector(".el-select-dropdown .el-select-dropdown__wrap");a.addEventListener("scroll",function(){a.scrollHeight-a.scrollTop-2<=a.clientHeight&&(t.value.SELECTWRAP_DOM_index+=10,t.value.fn())})},unbind(e,t,r){r.context;const a=e.querySelector(".el-select-dropdown .el-select-dropdown__wrap");a&&a.removeEventListener("scroll",function(){t.value.SELECTWRAP_DOM_index=0})}}},props:{url:{type:String,default:""},formSearchData:{type:Object,default:()=>({buttonData:[],rules:{},value:{},tableSearchSlice:4,tableSearch:[],options:{},reset:!1,customs:[]})},tableSearchSlice:{type:Number,default:4},onSwagger:{type:Function,default:null},isCustomSearch:{type:Boolean,default:!1},method:{type:String}},data(){return{findTableSearch:{},expend:!this.formSearchData.expendShow,formSearch:{...this.formSearchData.value},configDialogVisible:!1,loadmores:{fn:this.loadmoreGX,SELECTWRAP_DOM_index:0,flage:null},tempBoxData:[],optionBox:[],key:0}},async created(){this.init()},mounted(){this.$nextTick(()=>{this.loadOptionSources()})},computed:{finalMethod(){return this.method||this.$olBaseConfig&&this.$olBaseConfig.method||"get"}},watch:{"formSearchData.value":{handler:function(e,t){if(e)return this.formSearch={...e}},deep:!0}},methods:{async init(){if(!this.isCustomSearch&&this.url){let t=(await mn()).paths[this.url][this.finalMethod].parameters||[];if("function"==typeof this.onSwagger)try{const e=await this.onSwagger({columns:t});e&&(t=e)}catch(e){}t.forEach(e=>{let t=this.formSearchData.tableSearch.find(t=>t.value.toLowerCase()===e.name.toLowerCase());if(t)t={...e,...t};else if(e.description){const t={value:e.name,label:e.description,inputType:"text",props:{}};if(e.schema.enum&&Array.isArray(e.schema.enum)){t.inputType="select";const r=e.schema.$$ref.split("/"),a=r[r.length-1],l=E(a);t.children=l.length?l:e.schema.enum.map(e=>({key:e,value:e}))}else"date-time"===e.schema.format?(t.inputType="picker",t.props.valueFormat="yyyy-MM-dd",t.props.format="yyyy/MM/dd"):e.schema&&"string"===e.schema.type&&(t.inputType="text");this.formSearchData.tableSearch.push(t)}});const r=await this.autoDetectRangeTimeFields(t);this.formSearchData.tableSearch=[...this.formSearchData.tableSearch,...r]}this.findTableSearch=this.formSearchData.tableSearch.length>this.tableSearchSlice?this.formSearchData.tableSearch.slice(0,this.tableSearchSlice):this.formSearchData.tableSearch,console.log("[36m[4mol插件-搜索框渲染",this.formSearchData.tableSearch)},async autoDetectRangeTimeFields(e){const t=[];if(!this.formSearchData.tableSearch.some(e=>"createdTime"===e.value)){["BeginTime","EndTime"].every(t=>e.some(e=>e.name===t))&&t.push({label:"创建时间",value:"createdTime",inputType:"picker",props:{type:"datetimerange",startPlaceholder:"开始时间",endPlaceholder:"结束时间",placeholder:"选择时间范围",valueFormat:"yyyy-MM-dd HH:mm:ss",format:"yyyy/MM/dd HH:mm:ss"},originalFields:{begin:"BeginTime",end:"EndTime"}})}const r=e.filter(e=>e.name.endsWith("Begin")),a=e.filter(e=>e.name.endsWith("End")),l=[];r.forEach(e=>{const t=e.name.replace("Begin",""),r=t+"End",i=a.find(e=>e.name===r);i&&l.push({...e,description:e.description||i.description||"",beginField:e.name,endField:r,timeField:t+"Time",label:t})});for(const i of l){const{beginField:e,endField:r,timeField:a,description:l}=i;if(!this.formSearchData.tableSearch.some(e=>e.value===a)){const i=l;this.removeOriginalFieldsFromValue([e,r]),t.push({label:i,value:a,inputType:"picker",props:{type:"datetimerange",startPlaceholder:"开始时间",endPlaceholder:"结束时间",placeholder:`选择${i}范围`,valueFormat:"yyyy-MM-dd HH:mm:ss",format:"yyyy/MM/dd HH:mm:ss"},originalFields:{begin:e,end:r}})}}return t},removeOriginalFieldsFromValue(e){e.forEach(e=>{const t=this.formSearchData.tableSearch.findIndex(t=>t.value===e);-1!==t&&this.formSearchData.tableSearch.splice(t,1)})},getValue(e){this.$emit("getTreeSelectValue",e)},setFilterConditionsByFormSearch(e){const t=[];return Object.keys(e).forEach(r=>{const a=this.formSearchData.tableSearch.find(e=>e.value===r);void 0!==e[r]&&null!==e[r]&&""!==e[r]&&t.push({key:r,values:Array.isArray(e[r])?e[r]:[e[r]],compare:a&&a.compare?a.compare:""})}),t},handleSearch(e,t){if(this.isCustomSearch){const e=this.setFilterConditionsByFormSearch(this.formSearch)||[];this.$emit("handleSearch",this.formSearch,{filterConditions:e}),console.log("[36m[4mol插件-动态搜索框查询",this.formSearch,{filterConditions:e})}else{this.formSearch.createdTime?(this.formSearch.BeginTime=this.formSearch.createdTime[0],this.formSearch.EndTime=this.formSearch.createdTime[1]):(this.formSearch.BeginTime=null,this.formSearch.EndTime=null),Object.keys(this.formSearch).forEach(e=>{const t=this.formSearchData.tableSearch.find(t=>t.value===e);if(t&&t.originalFields){const{begin:r,end:a}=t.originalFields;this.formSearch[e]&&Array.isArray(this.formSearch[e])?(this.formSearch[r]=this.formSearch[e][0],this.formSearch[a]=this.formSearch[e][1]):(this.formSearch[r]=null,this.formSearch[a]=null)}});const r=Object.assign({},this.formSearch);if(this.formSearchData.rules)return this.$refs[e].validate(e=>{if(!e)return!1;this.$emit("handleSearch",r,t)});this.$emit("handleSearch",r,t),console.log("[36m[4mol插件-搜索框查询",r)}},loadmore(e){this.$emit("loadmore",e)},handleReset(e){if(this.$refs[e].resetFields(),this.formSearchData.reset)for(const t in this.formSearch)"[object String]"===Object.prototype.toString.call(this.formSearch[t])?this.formSearch[t]=null:"[object Array]"===Object.prototype.toString.call(this.formSearch[t])?this.formSearch[t]=[]:"[object Object]"===Object.prototype.toString.call(this.formSearch[t])?this.formSearch[t]={}:"[object Boolean]"===Object.prototype.toString.call(this.formSearch[t])?this.formSearch[t]=!1:this.formSearch[t]=null;else this.formSearch={...this.formSearchData.value};if(this.$emit("handleReset",this.formSearch),this.formSearchData.reset)return!1;this.handleSearch()},handleExpend(){this.expend=!this.expend,this.findTableSearch=this.expend?this.formSearchData.tableSearch.slice(0,this.formSearchData.tableSearch.length):this.formSearchData.tableSearch.slice(0,this.tableSearchSlice),this.$emit("btnHandleExpend",this.expend)},handleOpenConfig(){this.configDialogVisible=!0},handleSaveConfig(e){this.isCustomSearch&&this.key++,this.formSearchData.tableSearch=e,this.findTableSearch=this.formSearchData.tableSearch.length>this.tableSearchSlice?this.formSearchData.tableSearch.slice(0,this.tableSearchSlice):this.formSearchData.tableSearch,this.$emit("onSave",e)},async loadOptionSources(){for(const e of this.formSearchData.tableSearch)"select"===e.inputType&&e.optionSource&&await this.loadItemOptions(e)},async loadItemOptions(e){if(!e.optionSource)return;const{sourceType:t}=e.optionSource;"dict"===t?await this.loadDictOptions(e):"api"===t&&await this.loadApiOptions(e)},async loadDictOptions(e){try{const t=e.optionSource.dictKey;if(!t)return;const r=await this.getDictData(t);if(r&&Array.isArray(r)){const t=r.map(e=>({key:e.key,value:e.value}));this.$set(e,"children",t)}}catch(t){console.error("加载字典数据失败:",t)}},async loadApiOptions(e){try{const t=e.optionSource.apiUrl,r=e.optionSource.method||"get";if(!t)return;let a;if(a="post"===r?await this.post({url:t}):await this.get({url:t}),200!==a.code)return;if(a.result&&Array.isArray(a.result)){const{valueField:t,labelField:r}=e.optionSource,l=a.result.map(e=>({key:e[t],value:e[r]}));this.$set(e,"children",l)}}catch(t){console.error("加载接口数据失败:",t)}},getDictData:e=>new Promise(t=>{try{const r=localStorage.getItem("wms")||"{}",a=JSON.parse(r),l=(a.SET_enumsSelect||{})[e],i=[];l&&l.enums&&Array.isArray(l.enums)&&l.enums.forEach(e=>{i.push({key:e.key,value:e.value})}),t(i)}catch(r){console.error("获取字典数据失败:",r),t([])}}),handleChangeInput(e){return"number"===e.inputType?this.handleOnInput(this.formSearch[e.value],e.value,e.max):null},keyInput(e,t){if("number"===e.inputType){let e=t.key;return"e"!==e&&"E"!==e&&"-"!==e&&"+"!==e&&"."!==e||(t.returnValue=!1,!1)}},onPaste(e,t){if("number"===e.inputType){const e=t.clipboardData.getData("text");/[^\d]/g.test(e)&&t.preventDefault()}},handleOnInput(e,t,r){e&&Number(e)<=0&&(this.formSearch[t]=0),e&&Number(e)>r&&(this.formSearch[t]=r)}}},bi={};var yi=n(gi,mi,fi,!1,vi,"2059874a",null,null);function vi(e){for(let t in bi)this[t]=bi[t]}const Ai=function(){return yi.exports}();Ai.install=function(e){e.component("ol-search ",Ai)};var Si=function(){var e=this,t=e.$createElement;return(e._self._c||t)("ol-search",e._g(e._b({key:e.key,ref:"customSearchRef",attrs:{"form-search-data":e.formSearchData,isCustomSearch:"",method:e.finalMethod},on:{onSave:e.onSave}},"ol-search",e.$attrs,!1),e.$listeners))},wi=[];const Ci={};var Di=n({name:"customSearch",props:{menuId:{type:String,default:""},formSearchData:{type:Object,default:()=>({buttonData:[],rules:{},value:{},tableSearchSlice:4,tableSearch:[],options:{},reset:!1,enableConfig:!1,customs:[]})},method:{type:String}},data:()=>({currentPageItem:{},key:0}),mounted(){this.$nextTick(()=>{this.init()})},computed:{finalMethod(){return this.method||this.$olBaseConfig&&this.$olBaseConfig.method||"get"}},methods:{init(){const e=(t,r)=>{for(const a of t){if(a.path===r.$route.path)return a;if(a.child&&a.child.length>0&&1!==a.type){const t=e(a.child,r);if(t)return t}}return null};let t=JSON.parse(localStorage.getItem("wms")),r=null;t&&(r=t.SET_MENUS);const a=r;this.currentPageItem=e(a,this);const l=this.menuId||this.currentPageItem&&this.currentPageItem.id;this.get({url:"/api/app/menu-search-setting/by-menu",data:{sysMenuId:l}}).then(e=>{if(200!==e.code)return;const t=e.result.settingJson?JSON.parse(e.result.settingJson):[];this.$set(this.formSearchData,"tableSearch",t),this.$refs.customSearchRef.init()})},onSave(e){const t=this.menuId||this.currentPageItem&&this.currentPageItem.id;this.post({url:"/api/app/menu-search-setting",data:{sysMenuId:t,settingJson:JSON.stringify(e)}}).then(e=>{200===e.code&&this.$message.success("保存成功")}),console.log("保存配置数据",e)}}},Si,wi,!1,xi,null,null,null);function xi(e){for(let t in Ci)this[t]=Ci[t]}const ki=function(){return Di.exports}();ki.install=function(e){e.component("ol-customSearch",ki)};var Ti=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{title:e.gettitle,visible:e.form.dialogFormVisible,"close-on-click-modal":!1,width:e.form.width||"45%","show-close":!0,top:"5vh"},on:{"update:visible":function(t){return e.$set(e.form,"dialogFormVisible",t)},close:function(t){return e.resetForm("form")},open:function(t){return e.handleOpen("form")}}},[r("el-form",{ref:"form",staticStyle:{display:"flex","flex-wrap":"wrap"},attrs:{model:e.form.value,rules:e.form.rules,"label-width":"130px"}},e._l(e.form.model,function(t,a){return r("el-form-item",{key:a,style:{width:e.width(t)},attrs:{label:t.label,prop:t.prop,required:t.required||!1}},["input"==t.type?r("el-input",{attrs:{placeholder:t.readonly?t.placeholder||t.label:`请输入${t.placeholder||t.label}`,clearable:t.clearable||!0,readonly:t.readonly||!1,disabled:t.disabled||!1,"show-password":t.showPassword||!1},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}}):e._e(),"number"==t.type?r("el-input-number",e._b({attrs:{placeholder:`请输入${t.placeholder||t.label}`,clearable:t.clearable||!0,readonly:t.readonly||!1,min:t.props.min||0},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-input-number",t.props||{},!1)):e._e(),"textarea"==t.type?r("el-input",{attrs:{type:"textarea",placeholder:`请输入${t.placeholder||t.label}`,autosize:t.autosize,readonly:t.readonly||!1,clearable:t.clearable||!0,maxlength:t.length||""},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}}):e._e(),"switch"==t.type?r("el-switch",{staticClass:"switchStyle",attrs:{"active-text":"启用","inactive-text":"禁用"},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}}):e._e(),"radio"==t.type?r("el-radio-group",{model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},e._l(t.child,function(t,a){return r("el-radio",{key:t.key,attrs:{label:t.key}},[e._v(e._s(t.value))])}),1):e._e(),"date"==t.type?r("el-date-picker",e._b({staticStyle:{width:"100%"},attrs:{placeholder:t.placeholder||"请选择日期",clearable:t.clearable||!0},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-date-picker",t.props||{type:"date"},!1)):e._e(),"treeSelect"==t.type?r("Tree-select",e._b({attrs:{options:t.child},on:{getValue:function(r){t.change&&t.change(e.form.value[t.prop])}},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"Tree-select",t.props||{},!1)):e._e(),"select"==t.type?r("el-select",e._g(e._b({attrs:{placeholder:`请选择${t.placeholder||t.label}`,clearable:!("clearable"in t)||t.clearable,disabled:t.disabled||!1},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-select",t.props||{},!1),Object.assign({},t.listeners||{},{change:function(){return e.selectChangeHandler(t,e.form.value[t.prop])}})),e._l(t.child,function(e,t){return r("el-option",{key:t,attrs:{label:e.value,value:e.key}})}),1):e._e(),"inputSpecial"==t.type?r("div",[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:t.layerprop}},[r("el-input",{attrs:{clearable:t.clearable||!0},model:{value:e.form.value[t.layerprop],callback:function(r){e.$set(e.form.value,t.layerprop,r)},expression:"form.value[item.layerprop]"}})],1)],1),r("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:3}},[e._v("- ")]),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:t.rowprop}},[r("el-input",{attrs:{clearable:t.clearable||!0},model:{value:e.form.value[t.rowprop],callback:function(r){e.$set(e.form.value,t.rowprop,r)},expression:"form.value[item.rowprop]"}})],1)],1),r("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:3}},[e._v("- ")]),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:t.columnprop}},[r("el-input",{attrs:{clearable:t.clearable||!0},model:{value:e.form.value[t.columnprop],callback:function(r){e.$set(e.form.value,t.columnprop,r)},expression:"form.value[item.columnprop]"}})],1)],1)],1):e._e(),"slot"==t.type?[e._t(t.name,null,{item:t})]:e._e()],2)}),1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){return e.resetForm("form")}}},[e._v("取 消")]),"get"!=e.form.requestData.methodsType?r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("确 定 ")]):e._e()],1)],1)],1)},Oi=[];const Ii={};var Ei=n({name:"dialogTemplate",props:{form:Object},data:()=>({}),computed:{width:()=>function(e){return this.form.model.length>18&&"textarea"!=e.type?"25%":this.form.model.length>10&&this.form.model.length<=18&&"textarea"!=e.type?"calc(100% / 3)":this.form.model.length>6&&this.form.model.length<=10&&"textarea"!=e.type?"50%":"textarea"==e.type&&e.width?e.width:"100%"},gettitle(){return this.form.title&&!this.form.titleAdd?this.form.title:this.form.titleAdd?"add"==this.form.requestData.flage?"添加":"编辑":"提示"}},methods:{selectChangeHandler(e,t){e.change?e.change(this.form.value[e.prop]):e.listeners&&e.listeners.change?e.listeners.change(e,this.form.value[e.prop]):this.selectChange(e,this.form.value[e.prop])},selectChange(e,t){let r={obj:e,val:t};this.$emit("selectChange",r)},submitForm(e){console.log("form",this.form),this.$refs[e].validate(e=>{if(!e)return console.log("error submit!!"),!1;if(this.form.requestData.specialFn&&!this.form.value.businessType&&!this.form.value.boxModel)return this.$message.error("业务类型和空容器型号必填一个");if("zjDetail"==this.form.requestData.flage)return this.$emit("newRequest",this.form.value);if("update"==this.form.requestData.flage)this.put({url:this.form.requestData.url+"/"+this.form.value.id,data:this.form.value,isLoading:!0}).then(e=>{this.form.requestData.fn(),this.form.dialogFormVisible=!1,this.$message({type:"success",message:"操作成功!"})});else{if("autoArrange"==this.form.requestData.flage)return this.$emit("submitForm","form");let e=this.form.requestData.url;if(this.form.requestData.flages){let t=this.form.requestData.joinData,r="";for(let e=0;e<t.length;e++)r+=`${0==e?"?":"&"}${t[e]}=${this.form.value[t[e]]}`;e=this.form.requestData.url+r}if(this.form.requestData.methodsType&&"get"==this.form.requestData.methodsType)return this.get({url:e,data:this.form.value,isLoading:!0}).then(e=>{this.form.requestData.fn(),this.form.dialogFormVisible=!1,this.$message({type:"success",message:"操作成功!"})});this.post({url:e,data:this.form.value,isLoading:!0}).then(e=>{this.form.requestData.fn(),this.form.dialogFormVisible=!1,this.$message({type:"success",message:"操作成功!"})})}})},closeD(e){this.form.dialogFormVisible=!1},resetForm(e){if(this.$emit("close"),"autoArrange"==this.form.requestData.flage)return this.$emit("resetForm");this.$refs[e].resetFields(),this.form.dialogFormVisible=!1},handleOpen(e){this.$nextTick(()=>{this.$refs[e].clearValidate()})}}},Ti,Oi,!1,Mi,null,null,null);function Mi(e){for(let t in Ii)this[t]=Ii[t]}const Bi=function(){return Ei.exports}();Bi.install=function(e){e.component("ol-dialogTemplate ",Bi)};const Pi=(e,t)=>{const r={prop:e,label:t.description,type:"input",hidden:!1,listeners:()=>{},props:{}};if(t.enum||Array.isArray(t.enum)){r.type="select";const e=t.$$ref.split("/"),a=e[e.length-1],l=E(a);r.children=l.length?l:t.enum.map(e=>({key:e,value:e}))}else"date-time"===t.format?(r.type="date",r.props.valueFormat="yyyy-MM-dd",r.props.format="yyyy/MM/dd"):"boolean"==t.type?r.type="switch":"integer"==t.type?r.type="number":r.type="input";return r};var ji=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",e._g(e._b({ref:"formRef",staticStyle:{display:"flex","flex-wrap":"wrap"},attrs:{model:e.form.value,rules:e.form.rules}},"el-form",Object.assign({labelWidth:"130px",disabled:!e.form.type},e.$attrs,e.form.attrs),!1),e.$listeners),[e._l(e.form.model,function(t,a){return[t.hidden?e._e():r("el-form-item",{key:a,style:{width:e.width(t)},attrs:{label:t.label,prop:t.prop,required:t.required||!1}},["input"==t.type?r("el-input",e._b({attrs:{placeholder:t.readonly?t.placeholder||t.label:`请输入${t.placeholder||t.label}`,clearable:t.clearable||!0,readonly:t.readonly||!1,"show-password":t.showPassword||!1},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-input",Object.assign({},t.props,{disabled:e.inputDisabled(t)}),!1)):"number"==t.type?r("el-input-number",e._b({attrs:{placeholder:`请输入${t.placeholder||t.label}`,clearable:t.clearable||!0,readonly:t.readonly||!1},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-input-number",Object.assign({min:0},t.props),!1)):"textarea"==t.type?r("el-input",{attrs:{type:"textarea",placeholder:`请输入${t.placeholder||t.label}`,autosize:t.autosize,readonly:t.readonly||!1,clearable:t.clearable||!0,maxlength:t.length||""},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}}):"switch"==t.type?r("el-switch",e._b({staticClass:"switchStyle",attrs:{"active-text":"启用","inactive-text":"禁用"},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-switch",t.props||{},!1)):"radio"==t.type?r("el-radio-group",{model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},e._l(t.children,function(t){return r("el-radio",{key:t.key,attrs:{label:t.key}},[e._v(e._s(t.value))])}),1):"date"==t.type?r("el-date-picker",e._g(e._b({staticStyle:{width:"100%"},attrs:{placeholder:t.placeholder||"请选择日期",clearable:t.clearable||!0},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-date-picker",Object.assign({type:"date"},t.props),!1),Object.assign({},t.listeners,{change:function(r){return e.changeHandle(r,t)}}))):"treeSelect"==t.type?r("Tree-select",e._b({attrs:{options:t.children},on:{getValue:function(r){t.change&&t.change(e.form.value[t.prop])}},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"Tree-select",t.props||{},!1)):"select"==t.type?r("el-select",e._g(e._b({attrs:{placeholder:`请选择${t.placeholder||t.label}`,clearable:!("clearable"in t)||t.clearable},nativeOn:{keyup:function(r){return function(r){return t.keyup({event:r,item:t,form:e.form.value})}.apply(null,arguments)}},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-select",Object.assign({disabled:!!t.disabled},t.props||{}),!1),Object.assign({},t.listeners,{change:function(r){return e.selectChangeHandle(r,t)}})),e._l(t.children,function(e,t){return r("el-option",{key:t,attrs:{label:e.value,value:e.key}})}),1):"numberRange"===t.type?r("ol-number-range",e._g(e._b({model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"ol-number-range",t.props||{},!1),Object.assign({},t.listeners,{change:function(e){return t.listeners&&t.listeners.change&&t.listeners.change({item:t,val:e})}}))):"inputSpecial"==t.type?r("div",[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:t.layerprop}},[r("el-input",{attrs:{clearable:t.clearable||!0},model:{value:e.form.value[t.layerprop],callback:function(r){e.$set(e.form.value,t.layerprop,r)},expression:"form.value[item.layerprop]"}})],1)],1),r("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:3}},[e._v("- ")]),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:t.rowprop}},[r("el-input",{attrs:{clearable:t.clearable||!0},model:{value:e.form.value[t.rowprop],callback:function(r){e.$set(e.form.value,t.rowprop,r)},expression:"form.value[item.rowprop]"}})],1)],1),r("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:3}},[e._v("- ")]),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:t.columnprop}},[r("el-input",{attrs:{clearable:t.clearable||!0},model:{value:e.form.value[t.columnprop],callback:function(r){e.$set(e.form.value,t.columnprop,r)},expression:"form.value[item.columnprop]"}})],1)],1)],1):"slot"==t.type?[e._t(t.name,null,{item:t})]:r("div",{staticStyle:{color:"red"}},[e._v('"'+e._s(t.type)+'"类型暂不支持,请手动添加')])],2)]})],2),e.showBtn?r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.$slots.btnSlot?e._t("btnSlot",null,{form:e.form}):[r("el-button",{on:{click:e.onCancel}},[e._v("取消")]),e.form.type?r("el-button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v("确定")]):e._e()],e._t("btnAfterSlot")],2):e._e()],1)},Ni=[];const _i={name:"form",components:{OlNumberRange:z},props:{url:{type:String,default:""},form:Object,defaultValue:{type:Object,default:()=>({})},showBtn:{type:Boolean,default:!0}},data:()=>({formInit:{}}),computed:{width:()=>function(e){return this.form.model.length>18&&"textarea"!=e.type?"25%":this.form.model.length>10&&this.form.model.length<=18&&"textarea"!=e.type?"calc(100% / 3)":this.form.model.length>6&&this.form.model.length<=10&&"textarea"!=e.type?"50%":"textarea"==e.type&&e.width?e.width:"100%"}},watch:{"form.type":{handler(e){let t;switch(Object.keys(this.form).includes("type")||this.$set(this.form,"type",1),e){case 0:t="详情";break;case 1:t="新建";break;case 2:t="编辑";break;default:t="弹框"}this.form.title=t},immediate:!0}},created(){Object.keys(this.defaultValue)&&Object.keys(this.defaultValue).length&&Object.keys(this.defaultValue).forEach(e=>{form.value[e]=this.defaultValue[e]}),(e=>{const{url:t,form:r}=e;mn().then(e=>{const[a,l]=((e,t)=>{try{const r=t.paths[e].post.requestBody.content["application/json"].schema;return[r,r.properties]}catch(r){try{const r=t.paths[e].put.requestBody.content["application/json"].schema;return[r,r.properties]}catch(a){const r=t.paths[e].get.responses[200].content["application/json"].schema;return[r,r.properties]}}})(t,e);if(!a||!l)return console.log("[36m[4mol插件-弹框数据异常");r.model.forEach(e=>{const t=l[e.prop];t&&(e={...Pi(e.prop,t),...e})}),Object.keys(l).forEach(e=>{const t=l[e];if(!r.model.find(t=>t.prop===e)&&t.description){const a=Pi(e,t);r.model.push(a)}}),a.required&&Array.isArray(a.required)&&a.required.forEach(e=>{Object.keys(r.rules).includes(e)||(r.rules[e]=[{required:!0,message:`${l[e].description}不能为空`}])})})})({url:this.url,form:this.form})},methods:{selectChangeHandle(e,t){t&&t.listeners&&t.listeners.change&&t.listeners.change(t,this.form.value[t.prop])||t.change?t.change(e):this.selectChange(t,e)},changeHandle(e,t){t&&t.listeners&&t.listeners.change&&t.listeners.change(t,this.form.value[t.prop])&&this.selectChange(t,e)},selectChange(e,t){const r={obj:e,val:t};this.$emit("selectChange",r)},inputDisabled(e){return!!e.props&&(!!Object.keys(e.props).includes("disabled")&&("function"==typeof e.props.disabled?e.props.disabled({item:e,form:this.form}):e.props.disabled))},validate(){return new Promise((e,t)=>{this.$refs.formRef.validate(r=>{r?e({valid:r,formData:this.form&&this.form.value||{}}):t("表单验证失败")})})},onCancel(){this.$refs.formRef.resetFields(),this.$refs.formRef.clearValidate(),this.$emit("onCancel")},onConfirm(){console.log("BaseForm数据",this.form),this.validate().then(()=>{this.$emit("onSubmit",{form:this.form,data:this.form.value})}).catch(e=>{console.log("校验失败",e)})}}},zi={};var Vi=n(_i,ji,Ni,!1,Qi,"051116b4",null,null);function Qi(e){for(let t in zi)this[t]=zi[t]}const Li=function(){return Vi.exports}();Li.install=function(e){e.component("ol-form ",Li)};var $i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"print-manage-container"},[r("div",{staticClass:"left-panel"},[r("div",{staticClass:"panel-title"},[e._v("菜单树")]),r("el-tree",{attrs:{data:e.menuTreeData,props:e.treeProps,"node-key":"id","current-node-key":e.currentMenuId,"default-expand-all":"","expand-on-click-node":!1,"highlight-current":""},on:{"node-click":e.handleNodeClick}})],1),r("div",{staticClass:"right-panel"},[r("div",{staticClass:"panel-header"},[r("span",{staticClass:"panel-title"},[e._v(e._s(e.currentMenuName)+" - 打印模板")]),r("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v(" 新增模板 ")])],1),r("div",{staticClass:"template-list"},[0===e.templateList.length?r("div",{staticClass:"empty-card",on:{click:e.handleAdd}},[r("i",{staticClass:"el-icon-plus add-icon"}),r("span",{staticClass:"add-text"},[e._v("点击添加模板")])]):e._e(),e._l(e.templateList,function(t){return r("div",{key:t.id,staticClass:"template-card"},[r("div",{staticClass:"card-header"},[r("i",{staticClass:"el-icon-document card-icon"}),r("span",{staticClass:"card-title"},[e._v(e._s(t.templeteName))])]),r("div",{staticClass:"card-body"},[r("div",{staticClass:"card-info"},[r("span",{staticClass:"info-label"},[e._v("数据源URL:")]),r("span",{staticClass:"info-value"},[e._v(e._s(t.sourceUrl||"无"))])]),r("div",{staticClass:"card-info"},[r("span",{staticClass:"info-label"},[e._v("备注:")]),r("span",{staticClass:"info-value"},[e._v(e._s(t.remark||"无"))])])]),r("div",{staticClass:"card-footer"},[r("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-edit"},on:{click:function(r){return e.handleEdit(t)}}},[e._v(" 编辑 ")]),r("el-button",{staticClass:"delete-btn",attrs:{type:"text",size:"small",icon:"el-icon-delete"},on:{click:function(r){return e.handleDelete(t)}}},[e._v(" 删除 ")])],1)])})],2)]),r("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("el-form",{ref:"formRef",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"模板名称",prop:"templeteName"}},[r("el-input",{attrs:{placeholder:"请输入模板名称"},model:{value:e.form.templeteName,callback:function(t){e.$set(e.form,"templeteName",t)},expression:"form.templeteName"}})],1),r("el-form-item",{attrs:{label:"创建模板",prop:"templeteJson"}},[r("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.form.templeteJson?"已创建":"未创建"))]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleCreateTemplate}},[e._v("创建模板")])],1),r("el-form-item",{attrs:{label:"数据源URL",prop:"sourceUrl"}},[r("el-input",{attrs:{placeholder:"请输入数据源URL"},on:{blur:function(t){e.form.sourceUrl=e.form.sourceUrl&&e.form.sourceUrl.trim()}},model:{value:e.form.sourceUrl,callback:function(t){e.$set(e.form,"sourceUrl",t)},expression:"form.sourceUrl"}})],1),r("el-form-item",{attrs:{label:"备注"}},[r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入备注"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("确定")])],1)],1)],1)])},Fi=[];const Hi={};var Ri=n({name:"print-model",data:()=>({menuTreeData:[],treeProps:{label:"title",children:"child"},currentMenuId:null,currentMenuName:"全部",currentItem:{},templateList:[],dialogVisible:!1,dialogTitle:"新增模板",form:{id:null,templeteName:"",remark:"",templeteJson:"",sourceUrl:""},rules:{templeteName:[{required:!0,message:"请输入模板名称",trigger:"blur"}],templeteJson:[{required:!0,message:"请输入模板JSON",trigger:"blur"}]}}),mounted(){this.initMenuTree()},methods:{initMenuTree(){const e=JSON.parse(localStorage.getItem("wms")||"{}").SET_MENUS||[];this.menuTreeData=this.buildTreeData(e);const t=this.findFirstMenuNode(this.menuTreeData);t&&(this.currentMenuId=t.id,this.currentMenuName=t.title,this.currentItem=t,this.loadTemplates(t.id))},findFirstMenuNode(e){if(!e||0===e.length)return null;for(const t of e){if(t.child&&t.child.length>0){const e=this.findFirstMenuNode(t.child);if(e)return e}return t}return null},buildTreeData(e){return e.filter(e=>(e.child&&e.child.length>0&&(e.child=this.buildTreeData(e.child)),0===e.type))},handleNodeClick(e){this.currentMenuId=e.id,this.currentMenuName=e.title,this.currentItem=e,this.loadTemplates(e.id)},async loadTemplates(e){var t;try{const r=await this.get({url:"/api/app/print-templete/page-list",data:{MenuId:e,Page:1,MaxResultCount:1e3}});if(200!==r.code)return;this.templateList=(null==(t=r.result)?void 0:t.items)||[]}catch(r){console.error("加载模板列表失败:",r)}},handleAdd(){this.dialogTitle="新增模板",this.form={id:null,templeteName:"",remark:"",templeteJson:"",sourceUrl:""},this.dialogVisible=!0,this.$nextTick(()=>{this.$refs.formRef&&this.$refs.formRef.clearValidate()})},handleEdit(e){this.dialogTitle="编辑模板",this.form={id:e.id,templeteName:e.templeteName,remark:e.remark,templeteJson:e.templeteJson,sourceUrl:e.sourceUrl||""},this.dialogVisible=!0},async handleDelete(e){this.$confirm("确认删除该模板吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{try{await this.del({url:`/api/app/print-templete/print-templete/${e.id}`}),this.$message.success("删除成功"),this.loadTemplates(this.currentMenuId)}catch(t){console.error("删除失败:",t)}}).catch(()=>{})},async handleSubmit(){this.$refs.formRef.validate(async e=>{if(e)try{this.form.id?(await this.put({url:"/api/app/print-templete/print-templete",data:{id:this.form.id,templeteName:this.form.templeteName,templeteJson:this.form.templeteJson,sourceUrl:this.form.sourceUrl}}),this.$message.success("编辑成功")):(await this.post({url:"/api/app/print-templete/print-templete",data:{menuId:this.currentMenuId,templeteName:this.form.templeteName,templeteJson:this.form.templeteJson,sourceUrl:this.form.sourceUrl}}),this.$message.success("新增成功")),this.dialogVisible=!1,this.loadTemplates(this.currentMenuId)}catch(t){console.error("提交失败:",t)}})},handleCreateTemplate(){let e={};if(this.form.templeteJson)try{e=JSON.parse(this.form.templeteJson)}catch(t){console.error("解析模板JSON失败:",t)}this.$hiprint({defaultTemplate:e,onSubmit:e=>{this.form.templeteJson=JSON.stringify(e),console.log("保存的结果",this.form),this.$message.success("模板创建成功!")}})}}},$i,Fi,!1,Wi,"645d66fe",null,null);function Wi(e){for(let t in Hi)this[t]=Hi[t]}const Ui=function(){return Ri.exports}();Ui.install=function(e){e.component("ol-print-model",Ui)};var qi=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"paper-selector"},[r("el-button-group",[e._l(e.paperTypes,function(t,a){return r("el-button",{key:a,attrs:{type:e.curPaperType===a?"primary":"default",size:"small"},on:{click:function(r){return e.setPaper(a,t)}}},[e._v(" "+e._s(a)+" ")])}),r("el-button",{attrs:{type:"other"===e.curPaperType?"primary":"default",size:"small"},on:{click:e.showPaperPop}},[e._v(" 自定义纸张 ")])],2),r("el-dialog",{attrs:{title:"设置纸张宽高(mm)",visible:e.paperPopVisible,width:"400px","append-to-body":!0,"z-index":3001},on:{"update:visible":function(t){e.paperPopVisible=t}}},[r("el-form",{attrs:{"label-width":"80px"}},[r("el-form-item",{attrs:{label:"纸张宽度"}},[r("el-input",{attrs:{type:"number",placeholder:"宽(mm)"},model:{value:e.paperWidth,callback:function(t){e.paperWidth=t},expression:"paperWidth"}})],1),r("el-form-item",{attrs:{label:"纸张高度"}},[r("el-input",{attrs:{type:"number",placeholder:"高(mm)"},model:{value:e.paperHeight,callback:function(t){e.paperHeight=t},expression:"paperHeight"}})],1)],1),r("span",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.hidePaperPop}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.setPaperOther}},[e._v("确定")])],1)],1)],1)},Yi=[];const Gi={};var Zi=n({name:"PaperSelector",props:{hiprintTemplate:{type:Object,required:!0}},data:()=>({curPaper:{type:"A4",width:210,height:296.6},paperTypes:{A3:{width:420,height:296.6},A4:{width:210,height:296.6},A5:{width:210,height:147.6},B3:{width:500,height:352.6},B4:{width:250,height:352.6},B5:{width:250,height:175.6}},paperPopVisible:!1,paperWidth:"220",paperHeight:"80"}),computed:{curPaperType(){let e="other",t=this.paperTypes;for(const r in t){let a=t[r],{width:l,height:i}=this.curPaper;a.width===l&&a.height===i&&(e=r)}return e}},methods:{showPaperPop(){this.paperPopVisible=!0},hidePaperPop(){this.paperPopVisible=!1},setPaper(e,t){try{Object.keys(this.paperTypes).includes(e)?(this.curPaper={type:e,width:t.width,height:t.height},this.hiprintTemplate.setPaper(t.width,t.height)):(this.curPaper={type:"other",width:t.width,height:t.height},this.hiprintTemplate.setPaper(t.width,t.height)),this.$emit("change",this.curPaper)}catch(r){this.$message.error(`操作失败: ${r}`)}},setPaperOther(){let e={};e.width=Number(this.paperWidth),e.height=Number(this.paperHeight),this.paperPopVisible=!1,this.setPaper("other",e)}}},qi,Yi,!1,Ji,"2c749e94",null,null);function Ji(e){for(let t in Gi)this[t]=Gi[t]}var Xi=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"print-dialog-overlay"},[r("div",{staticClass:"print-dialog"},[r("div",{staticClass:"print-dialog-header"},[r("span",[e._v("打印设计器")]),r("i",{staticClass:"iconfont close-btn",on:{click:e.close}},[e._v("x")])]),r("div",{staticClass:"print-dialog-body"},[r("div",{staticClass:"header-box",staticStyle:{"margin-bottom":"10px"}},[r("paper-selector",{ref:"paperSelector",attrs:{"hiprint-template":e.hiprintTemplate}}),r("div",[e._t("default",null,{hiprintTemplate:e.hiprintTemplate,print:e.print,clearPaper:e.clearPaper,exportJson:e.exportJson}),r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.print}},[r("i",{staticClass:"iconfont sv-printer"}),e._v(" 打印 ")]),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"danger",size:"small"},on:{click:e.clearPaper}},[r("i",{staticClass:"iconfont sv-clear"}),e._v(" 清空纸张 ")]),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"success",size:"small"},on:{click:e.exportJson}},[r("i",{staticClass:"iconfont sv-export"}),e._v(" 保存 ")])],2)],1),e._m(0)])])])},Ki=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"main flex-row",staticStyle:{height:"87vh"}},[t("div",{staticClass:"flex-2 left flex-col"},[t("div",{staticClass:"container rect-printElement-types",attrs:{id:"provider-container1"}})]),t("div",{staticClass:"flex-5 center"},[t("div",{attrs:{id:"hiprint-printTemplate"}})]),t("div",{staticClass:"flex-2 right"},[t("div",{attrs:{id:"PrintElementOptionSetting"}})])])}];const en={name:"print",components:{PaperSelector:function(){return Zi.exports}()},props:{printData:{type:Object,default:()=>{}},onPrintData:{type:Function,default:null},defaultTemplate:{type:Object,default:()=>{}},grid:{type:Boolean,default:!1},paperSize:{type:Object,default:()=>({width:210,height:296.6})}},data:()=>({hiprintTemplate:{}}),created(){r.hiprint.init({providers:[{addElementTypes:e=>{e.removePrintElementTypes("providerModule1"),e.addPrintElementTypes("providerModule1",[new r.hiprint.PrintElementTypeGroup("常规",[{tid:"providerModule2.customText",title:"文本",customText:"自定义文本",custom:!0,type:"text",options:{field:"name",testData:"内容"}},{tid:"providerModule2.longText",title:"长文本",type:"longText",options:{field:"test.longText",width:200,testData:"长文本分页/不分页测试"}},{tid:"providerModule1.type",title:"纯文本",data:"纯文本",type:"text",options:{testData:"纯文本",height:16,fontSize:15,fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"providerModule1.platform",title:"标题",data:"标题",type:"text",options:{field:"platform",testData:"平台名称",height:17,fontSize:16.5,fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"providerModule2.table",title:"表格",type:"table",options:{field:"table",fields:[]},columns:[[{title:"名称",align:"center",field:"name"},{title:"性别",align:"center",field:"gender"},{title:"数量",align:"center",field:"count"},{title:"金额",align:"center",field:"amount"}]]},{tid:"providerModule1.barcode",title:"条形码",data:"XS888888888",type:"text",options:{field:"barcode",testData:"XS888888888",height:32,fontSize:12,lineHeight:18,textAlign:"left",textType:"barcode"}},{tid:"providerModule1.qrcode",title:"二维码",data:"XS888888888",type:"text",options:{field:"qrcode",testData:"XS888888888",height:32,fontSize:12,lineHeight:18,textType:"qrcode"}},{tid:"providerModule1.image",title:"图片",data:"",type:"image"}]),new r.hiprint.PrintElementTypeGroup("定制",[{tid:"providerModule1.khname",title:"客户名称",data:"高级客户",type:"text",options:{field:"name",testData:"高级客户",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"providerModule1.tel",title:"客户电话",data:"18888888888",type:"text",options:{field:"tel",testData:"18888888888",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"providerModule1.order",title:"订单编号",data:"XS888888888",type:"text",options:{field:"order",testData:"XS888888888",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"providerModule1.date",title:"业务日期",data:"2020-01-01",type:"text",options:{field:"date",testData:"2020-01-01",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}}]),new r.hiprint.PrintElementTypeGroup("辅助",[{tid:"providerModule2.hline",title:"横线",type:"hline"},{tid:"providerModule2.vline",title:"竖线",type:"vline"},{tid:"providerModule2.rect",title:"矩形",type:"rect"},{tid:"providerModule2.oval",title:"椭圆",type:"oval"}])])}}]})},mounted(){this.buildLeftElement(),this.buildDesigner()},methods:{buildLeftElement(){$("#provider-container1").empty(),r.hiprint.PrintElementTypeManager.build($("#provider-container1"),"providerModule1")},async buildDesigner(){$("#hiprint-printTemplate").empty(),this.hiprintTemplate=new r.hiprint.PrintTemplate({template:this.defaultTemplate,settingContainer:"#PrintElementOptionSetting",history:!0,onDataChanged:(e,t)=>{console.log(e),console.log(t)}}),this.$refs.paperSelector&&(this.$refs.paperSelector.curPaper=this.paperSize),this.hiprintTemplate.design("#hiprint-printTemplate",{grid:this.grid})},async print(){let e=this.printData;if(this.onPrintData)try{const t=await this.onPrintData(this.printData);t?e=t:console.error("onPrintData 执行失败,返回数据为空")}catch(r){console.error("onPrintData 执行失败:",r)}let t={};t.curPaper=this.paperSize,this.hiprintTemplate.print(e,{leftOffset:-1,topOffset:-1},t)},exportJson(){const e=this.hiprintTemplate.getJson(),t=JSON.stringify(e,null,2);new Blob([t],{type:"application/json"}),console.log("保存",JSON.parse(t)),this.$emit("submit",JSON.parse(t)),this.close()},clearPaper(){this.hiprintTemplate.clear()},close(){this.$destroy(),this.$el.remove(),this.$emit("close")}}},tn={};var rn=n(en,Xi,Ki,!1,an,"26cff75a",null,null);function an(e){for(let t in tn)this[t]=tn[t]}const ln=function(){return rn.exports}();ln.install=function(e){e.component("ol-print",ln)};let nn=null,on=null;const sn={install(e){const t=function(t){const{printData:r,onPrintData:a,defaultTemplate:l,onSubmit:i,grid:n}=t||{};nn&&(nn.$destroy(),on&&on.parentNode&&on.parentNode.removeChild(on),nn=null,on=null),on=document.createElement("div"),document.body.appendChild(on);const o=e.extend(ln),s={grid:n};return r&&(s.printData=r),a&&(s.onPrintData=a),l&&(s.defaultTemplate=l),nn=new o({propsData:s}),i&&"function"==typeof i&&nn.$on("submit",e=>{i(e)}),nn.$mount(on),nn};e.prototype.$hiprint=t,e.prototype.$hiprint.print=function(e){const r=t(e);r.print(),r.$nextTick(()=>{r.close()})}}},cn=()=>{const e="[1m";console.log(`\n[36m${e}${"⭐".repeat(3)}[32m${e}[4mol-base-components swagger服务加载成功! ✔️\n`)},pn="SwaggerDB",un=1,dn="swaggerDataStore";function hn(){return new Promise((e,t)=>{const r=indexedDB.open(pn,un);r.onupgradeneeded=e=>{e.target.result.createObjectStore(dn)},r.onsuccess=t=>{e(t.target.result)},r.onerror=e=>{t(e.target.error)}})}function mn(){return hn().then(e=>new Promise((t,r)=>{const a=e.transaction(dn,"readonly").objectStore(dn).get("swaggerData");a.onsuccess=e=>{t(e.target.result)},a.onerror=e=>{r(e.target.error)}}))}function fn(){const e=document.getElementById("loading");e&&document.body.removeChild(e)}const gn=[I,w,Ai,ki,Bi,Li,z,ln,Ui];e.Dialog=Bi,e.Hiprint=sn,e.OlCustomSearch=ki,e.OlDropdownPrint=w,e.OlForm=Li,e.OlNumberRange=z,e.OlPrint=ln,e.OlPrintModel=Ui,e.OlSearch=Ai,e.OlTable=I,e.default=async function(e,t){gn.map(t=>{e.component(`ol-${t.name}`,t)}),e.prototype.$olBaseConfig=t||{},(()=>{const e="[36m",t="[1m";console.log(`\n${e}${t}${"⭐".repeat(3)}[32m${t}[4mol-base-components 插件加载成功! ✔️\n${e}感谢使用我们的组件库,期待你的精彩应用![0m\n`)})()},e.getData=mn,e.swaggerInstall=async e=>{if(!e)return Promise.reject(new Error("Swagger URL is required."));const t=await mn();if(t)return cn(),Promise.resolve(t);try{!function(){const e=document.createElement("style");e.innerHTML="\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n #loading-spinner {\n width: 50px; /* 调整大小 */\n height: 50px; /* 调整大小 */\n border: 8px solid rgba(255, 255, 255, 0.3);\n border-top: 8px solid #a8c8e0; /* 与背景色协调的颜色 */\n border-radius: 50%;\n animation: spin 1s linear infinite; /* 添加旋转动画 */\n margin-bottom: 10px; /* 图标和文本之间的间距 */\n }\n #loading {\n background: linear-gradient(135deg, #a8c8e0, #f0f4f8); /* 更柔和的渐变背景 */\n color: #333; /* 文本颜色 */\n z-index:9999999;\n }\n ",document.head.appendChild(e);const t=document.createElement("div");t.id="loading",t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.display="flex",t.style.flexDirection="column",t.style.justifyContent="center",t.style.alignItems="center";const r=document.createElement("div");r.id="loading-spinner",t.appendChild(r);const a=document.createElement("div");a.innerText="初始化数据中,请耐心等待...",t.appendChild(a),document.body.appendChild(t)}();const t=(await a(e)).spec;return await(r=t,hn().then(e=>new Promise((t,a)=>{const l=e.transaction(dn,"readwrite");l.objectStore(dn).put(r,"swaggerData"),l.oncomplete=()=>t(),l.onerror=e=>a(e.target.error)}))),fn(),cn(),Promise.resolve(t)}catch(l){return fn(),console.error("获取 Swagger 数据失败:",l),Promise.reject(l)}var r},e.swaggerUnload=async function(){await hn().then(e=>new Promise((t,r)=>{const a=e.transaction(dn,"readwrite");a.objectStore(dn).delete("swaggerData"),a.oncomplete=()=>t(),a.onerror=e=>r(e.target.error)}))},Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("sortablejs"),require("vue-plugin-hiprint"),require("swagger-client")):"function"==typeof define&&define.amd?define(["exports","sortablejs","vue-plugin-hiprint","swagger-client"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["ol-base-components"]={},e.Sortable,e.vuePluginHiprint,e.SwaggerClient)}(this,function(e,t,r,a){var l,i;function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const o=n(r);var s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"Print_box",staticStyle:{width:"100%"}},[r("div",{staticClass:"Print_hader",staticStyle:{"text-align":"center","font-size":"25px","font-weight":"500","margin-bottom":"15px"}},[e._v(" "+e._s(e.printListObj.title)+" ")]),r("div",{staticClass:"Print_body"},[r("div",{staticClass:"Print_body_table",staticStyle:{"margin-bottom":"15px"}},[r("table",{staticStyle:{width:"100%","border-collapse":"collapse",border:"1px black solid","box-sizing":"border-box"}},[r("thead",{staticStyle:{display:"table-header-group"}},[r("tr",e._l(e.printListObj.tableHeader,function(t,a){return r("th",{key:a,style:{border:"1px solid black",padding:"7px",fontSize:"12px",width:t.width,minWidth:t.width,maxWidth:t.width,wordBreak:"break-all",wordWrap:"break-word"},attrs:{colspan:t.colspan}},[e._v(" "+e._s(t.label)+" ")])}),0)]),r("tbody",e._l(e.printListObj.tableData,function(t,a){return r("tr",{key:a},e._l(e.printListObj.tableHeader,function(a,l){return r("div",{key:l},[2==t.hot?r("td",{style:{border:"1px solid black",padding:"7px",fontSize:"12px",width:a.width,wordBreak:"break-all",wordWrap:"break-word",background:"#ccc !important"}},[r("span",[e._v(e._s(t[a.prop])+" ")])]):r("td",{style:{border:"1px solid black",padding:"7px",fontSize:"12px",width:a.width,fontWeight:a.weight,wordBreak:"break-all",wordWrap:"break-word"}},[r("span",[e._v(e._s(t[a.prop])+" ")])])])}),0)}),0)])])]),r("div",{staticClass:"Print_footer"}),r("div",{staticStyle:{"page-break-after":"always"}})])},c=[];function p(e,t,r,a,l,i,n,o){var s,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),a&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),n?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),l&&l.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(n)},c._ssrRegister=s):l&&(s=o?function(){l.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:l),s)if(c.functional){c._injectStyles=s;var p=c.render;c.render=function(e,t){return s.call(t),p(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,s):[s]}return{exports:e,options:c}}const u={};var d=p({props:{printListObj:Object},data:()=>({tableHeader:[{label:"Item No",prop:"itemNo"},{label:"STO",prop:"sto"},{label:"Country of Origin",prop:"countryofOrigin"},{label:"Material",prop:"material"},{label:"Deliervy Qty",prop:"deliervyQty"},{label:"Label Req.",prop:"labenReq"},{label:"Batch",prop:"batch"},{label:"Bill of Land",prop:"billofLand"}],tableData:[{countryofOrigin:"22",createDate:"2020-08-03T15:10:16",deliervyQty:33,invoice:"22",itemNo:"1",labenReq:"22",material:"22",sto:"sto",actualQty:0,batch:"batch",billofLand:"billofLand"},{actualQty:0,batch:"444",billofLand:"555",countryofOrigin:"66666",createDate:"2020-08-03T15:10:16",deliervyQty:33,invoice:"6677",itemNo:"1",labenReq:"666666",material:"6666666",sto:"88888888888"}]}),watch:{printListObj:{handler(){},deep:!0}}},s,c,!1,h,"1c21c016",null,null);function h(e){for(let t in u)this[t]=u[t]}const m=function(){return d.exports}();var f=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.shouldShow?r("el-table-column",e._b({key:`${e.column.prop}-${e.column.show}`,attrs:{label:e.column.label,prop:e.column.prop,"min-width":e.column.minWidth||"150px","show-overflow-tooltip":e.column.overHidden||!0,type:e.column.type||"normal"},scopedSlots:e._u([{key:"header",fn:function(){return[e.column.prop?r("el-tooltip",{attrs:{content:`${e.column.label} ${e.column.prop}`,placement:"top"}},[r("span",[e._v(e._s(e.column.label))])]):r("span",[e._v(e._s(e.column.label))])]},proxy:!0},e._l(e.$scopedSlots,function(t,r){return{key:r,fn:function(t){return[e._t(r,null,null,t)]}}}),e.column.children?null:{key:"default",fn:function(t){return[e.column.render?r("render-dom",{attrs:{render:function(){return e.column.render(t.row)}}}):e.column.renderSlot?e._t(e.column.prop,null,{row:t.row}):r("span",[e._v(e._s(t.row[e.column.prop]))])]}}],null,!0)},"el-table-column",Object.assign({align:"center",width:e.column.width,fixed:e.column.fixed||!1,sortable:e.column.sortable||!1},e.column.attrs),!1),[e.column.children&&e.column.children.length?e._l(e.column.children,function(t,a){return r("TableColumn",{key:a,attrs:{column:t},scopedSlots:e._u([e._l(e.$scopedSlots,function(t,r){return{key:r,fn:function(t){return[e._t(r,null,null,t)]}}})],null,!0)})}):e._e()],2):e._e()},g=[];const b={};var y=p({name:"TableColumn",components:{renderDom:{functional:!0,props:{render:Function},render:(e,t)=>e("div",[t.props.render()])},TableColumn:null},props:{column:{type:Object,required:!0}},data:()=>({}),computed:{shouldShow(){return!this.column.hasOwnProperty("show")||this.column.show}}},f,g,!1,v,null,null,null);function v(e){for(let t in b)this[t]=b[t]}const A=function(){return y.exports}();var S=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[r("img",{staticStyle:{width:"14px",height:"14px",cursor:"pointer"},attrs:{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNzc1NzgzOTUxNTIzIiBjbGFzcz0iaWNv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AgMCAxIDAgNzEuNTg4MzY3ek03MzAuNzc0MDQ5IDI5My43OTg2NThIMjc5LjQ4MDk4NGEzNS43OTQxODMgMzUuNzk0MTgzIDAgMCAxIDAtNzEuNTg4MzY3aDQ1MS4yOTMwNjVhMzUuNzk0MTgzIDM1Ljc5NDE4MyAwIDAgMSAwIDcxLjU4ODM2N3pNNzI2LjE5MjM5NCA2ODQuMDk4NDM0SDQ3MC40Nzg3NDdhMzUuNzk0MTgzIDM1Ljc5NDE4MyAwIDEgMSAwLTcxLjU4ODM2N2gyNTcuNzE4MTIxYTM1Ljc5NDE4MyAzNS43OTQxODMgMCAwIDEgMCA3MS41ODgzNjd6TTcyNi4xOTIzOTQgODUyLjE4NzkxOUg0NzAuNDc4NzQ3YTM1Ljc5NDE4MyAzNS43OTQxODMgMCAwIDEgMC03MS41ODgzNjZoMjU3LjcxODEyMWEzNS43OTQxODMgMzUuNzk0MTgzIDAgMCAxIDAgNzEuNTg4MzY2eiIgZmlsbD0iIzU0NTQ1NCIgcC1pZD0iNDkzNSI+PC9wYXRoPjwvc3ZnPg==",alt:"print"}}),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.templateList,function(t,a){return r("el-dropdown-item",{key:a,attrs:{command:t.id,disabled:t.disabled}},[e._v(" "+e._s(t.templeteName||"-")+" ")])}),1)],1)},w=[];const C={};var D=p({name:"dropdown-print",props:{menuId:{type:String,default:""},printData:{type:[Object,Array],default:()=>{}},onPrintData:{type:Function,default:null},multipleSelection:{type:Array,default:()=>[]}},data:()=>({templateList:[{id:1,templeteName:"暂无数据",disabled:!0}]}),created(){this.getPrintTemplateList()},methods:{async getPrintTemplateList(){var e;const t=(e,r)=>{for(const a of e){if(a.path===r.$route.path)return a;if(a.child&&a.child.length>0&&1!==a.type){const e=t(a.child,r);if(e)return e}}return null};let r=JSON.parse(localStorage.getItem("wms")),a=null;r&&(a=r.SET_MENUS);const l=a;this.currentPageItem=t(l,this);const i=this.menuId||this.currentPageItem&&this.currentPageItem.id;try{const t=await this.get({url:"/api/app/print-templete/page-list",data:{MenuId:i,page:1,MaxResultCount:1e3}});Array.isArray(null==(e=t.result)?void 0:e.items)&&t.result.items.length>0?this.templateList=t.result.items:this.templateList=[{id:1,templeteName:"暂无数据",disabled:!0}]}catch(n){console.error("加载模板列表失败:",n)}},handleCommand(e){if(!Array.isArray(this.templateList))return;const t=this.templateList.find(t=>t.id===e);if(!t)return this.$message.error("未找到打印模板");const r={printData:this.printData||{},defaultTemplate:t.templeteJson?JSON.parse(t.templeteJson):{}};if(this.onPrintData){let e=!1;const a=t=>{e=!0,t?(r.printData=t,this.$hiprint.print(r)):this.$message.error("打印数据不能为空")};this.onPrintData(t,a),e||(t.sourceUrl?this.printByApi(r,t):(r.printData=this.printData||{},this.$hiprint.print(r)))}else t.sourceUrl?this.printByApi(r,t):this.printDefault(r)},printByApi(e,t){e.printData=this.getPrintDataByApi(t);if(!(e.printData&&(Array.isArray(e.printData)&&e.printData.length>0||"object"==typeof e.printData&&Object.keys(e.printData).length>0)))return this.$message.error("打印数据不能为空");this.$hiprint.print(e)},printDefault(e){e.printData=this.printData||{},this.$hiprint.print(e)},async getPrintDataByApi(e){try{let t=[];this.multipleSelection&&this.multipleSelection.length>0&&(t=this.multipleSelection.reduce((e,t)=>(e.push(t.id),e),[]));const r=await this.get({url:`${e.sourceUrl}`,data:{ids:t}});return 200!==r.code?{}:Array.isArray(r.result)&&r.result.length>0?r.result:{}}catch(t){console.error(`获取打印数据失败: ${e.sourceUrl}`,t)}}}},S,w,!1,x,"2de53864",null,null);function x(e){for(let t in C)this[t]=C[t]}const k=function(){return D.exports}();var T=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"table_list_fix"},[e._t("content_context"),e.btnlist.length||e.tableData.options.headTool||e.tableData.options.refreshBtn||e.tableData.options.downloadBtn?[e.showBtnBox?r("div",{staticClass:"btnbox"},[r("div",e._l(e.btnlist,function(t,a){return r("el-button",{key:a,attrs:{size:"small",type:t.types?t.types:"primary"},on:{click:t.method}},[t.icon?r("i",{class:t.icon}):e._e(),e._v(" "+e._s(t.title)+" ")])}),1),r("div",{staticClass:"toolbox"},[e._t("toolbox-before",null,{tableData:e.tableData,multipleSelection:e.multipleSelection,paginations:e.paginations,loading:e.tableData.loading}),e.tableData.options.headTool?r("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click"}},[r("div",{staticClass:"avatar-wrapper"},[r("div",{staticClass:"layui-table-tool-self"},[r("i",{staticClass:"el-icon-s-operation"})])]),r("el-dropdown-menu",{staticStyle:{padding:"5px"},attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-checkbox-group",{model:{value:e.checkedTableColumns,callback:function(t){e.checkedTableColumns=t},expression:"checkedTableColumns"}},e._l(e.checkedTableList,function(t){return r("el-checkbox",{key:t.prop,staticClass:"checkbox",attrs:{label:t.prop}},[e._v(e._s(t.label)+" ")])}),1)],1)],1):e._e(),e.tableData.options.refreshBtn?r("div",{staticClass:"avatar-container right-menu-item hover-effect el-dropdown",on:{click:e.refreshTable}},[e._m(0)]):e._e(),e.tableData.options.downloadBtn?r("div",{staticClass:"avatar-container right-menu-item hover-effect el-dropdown",on:{click:e.printTable}},[e._m(1)]):e._e(),e.isSmartPrintBtn?r("div",{staticClass:"avatar-container right-menu-item hover-effect el-dropdown"},[r("div",{staticClass:"avatar-wrapper"},[r("div",{staticClass:"layui-table-tool-self"},[r("print-template-selector",e._b({attrs:{menuId:e.menuId,printData:e.tableData.printData,multipleSelection:e.multipleSelection}},"print-template-selector",e.$attrs,!1))],1)])]):e._e(),e._t("toolbox-after",null,{tableData:e.tableData,multipleSelection:e.multipleSelection,paginations:e.paginations,loading:e.tableData.loading})],2)]):e._e()]:e._e(),r("div",{key:e.tableData.columns.length,staticClass:"tablebox"},[r("el-table",e._g(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.tableData.loading,expression:"tableData.loading"}],ref:e.tableRef,staticStyle:{width:"100%"},attrs:{border:"",data:e.tableData.rows,height:"100%","default-sort":e.tableData.sort},on:{"selection-change":e.SelectionChange,select:e.select,"select-all":e.selectAll,"row-click":e.rowClick}},"el-table",e.tableData.options,!1),e.tableEvents),[e.tableData.options&&e.tableData.options.selection?r("el-table-column",{attrs:{width:"60",align:"center",type:"selection",label:""}}):e._e(),e.tableData.options&&e.tableData.options.index?r("el-table-column",{attrs:{width:"60",align:"center",type:"index",index:e.computeTableIndex,label:"序号"}}):e._e(),e._l(this.tableData.columns,function(t,a){return[r("TableColumn",{key:`${t.prop||t.label}-${t.show}-${a}`,attrs:{column:t,id:`${t.prop}-${t.show}-${a}`},scopedSlots:e._u([e._l(e.$scopedSlots,function(t,r){return{key:r,fn:function(t){return[e._t(r,null,null,t)]}}})],null,!0)})]}),e.tableData.operates&&e.tableData.operates.length>0?r("el-table-column",e._b({attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"operate-group"},[e._l(e.tableData.operates,function(a,l){return[!a.isShow||a.isShow&&a.isShow(t.row,t.$index)?r("span",{key:l},[r("el-button",{style:a.style||"",attrs:{size:a.size||"small",type:a.type||"text",icon:a.icon,plain:a.plain,disabled:a.disabled&&a.disabled(t.row,t.$index)},on:{click:function(e){return e.stopPropagation(),a.method(t.row,t.$index)}}},[e._v(e._s(a.label)+e._s(e.tableData.operates.length>=2?" ":""))])],1):e._e()]})],2)]}}],null,!1,878221902)},"el-table-column",e.tableData.operatesAttrs,!1),[e._v("· ")]):e._e(),r("div",{staticClass:"empty",attrs:{slot:"empty"},slot:"empty"},[0==e.tableData.rows.length?r("img",{attrs:{src:e.nodata}}):e._e()])],2)],1),r("div",{staticClass:"pagebox"},[r("el-row",[r("el-col",{attrs:{span:24}},[e.paginations.pagetionShow&&e.paginations.total>0?r("el-pagination",{attrs:{"current-page":e.paginations.page,"page-sizes":e.paginations.page_sizes||e.pageSizes,"page-size":e.paginations.limit,layout:"total, sizes, prev, pager, next, jumper,slot",total:e.paginations.total},on:{"update:currentPage":function(t){return e.$set(e.paginations,"page",t)},"update:current-page":function(t){return e.$set(e.paginations,"page",t)},"size-change":e.handleSizeChange,"current-change":e.handleindexChange}},[e.paginations.refresh?r("div",{key:1,staticClass:"avatar-container right-menu-item hover-effect el-dropdown",staticStyle:{"margin-left":"10px"},on:{click:e.refreshTableBTN}},[r("div",{staticClass:"avatar-wrapper"},[r("div",{staticClass:"layui-table-tool-self"},[r("i",{staticClass:"el-icon-refresh"})])])]):e._e()]):e._e()],1)],1)],1),r("printTemplate",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"printTemplate",attrs:{"print-list-obj":e.printListObj}})],2)},O=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"avatar-wrapper"},[t("div",{staticClass:"layui-table-tool-self"},[t("i",{staticClass:"el-icon-refresh"})])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"avatar-wrapper"},[t("div",{staticClass:"layui-table-tool-self"},[t("i",{staticClass:"el-icon-printer"})])])}];const I={name:"table",components:{printTemplate:m,TableColumn:A,PrintTemplateSelector:k,renderDom:{functional:!0,props:{render:Function},render:(e,t)=>e("div",[t.props.render()])}},model:{prop:"multipleSelection",event:"SelectionChange"},props:{menuId:{type:String,default:""},url:{type:String,default:""},printListObj:{type:Object,default:()=>({title:"",tableHeader:"",tableData:""})},btnlist:Array,outTable:{type:Object,default:()=>({tableProp:{}})},tableData:{type:Object,default:()=>({loading:!1,options:{selection:null,index:null,headTool:!0,refreshBtn:!0,downloadBtn:!0},rows:[],columns:[],operates:[],operatesAttrs:{},printData:{}})},tableDataShow:{type:Boolean,default:!0},pageSizes:{type:Array,default:()=>[20,30,40,60,100,200]},paginations:{type:Object,default:()=>({page:1,total:0,limit:30,pagetionShow:!0})},emptyImg:{type:Boolean,default:!1},tableEvents:Object,showBtnBox:{type:Boolean,default:!0},onSwagger:{type:Function,default:null},onMerged:{type:Function,default:null},method:{type:String}},data(){return{nodata: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=",tableRef:this.tableData.tableRef||"tableRef",toggleRowFlage:this.tableData.toggleRowFlage||!1,pagetionShow:this.paginations.pagetionShow||!0,twinPage:1,columnsWatcher:null,key:0}},computed:{bindTableColumns(){return this.tableData.columns.filter(e=>!Object.keys(e).includes("show")||e.show)},checkedTableList:{get(){return this.getAllColumnsWithProp(this.tableData.columns)}},checkedTableColumns:{get(){return this.getAllLabelsWithProp()},set(e){this.setColumnsShow(e),this.$nextTick(()=>{this.$refs.tableRef.doLayout()})}},finalMethod(){return this.method||this.$olBaseConfig&&this.$olBaseConfig.method||"get"},isSmartPrintBtn(){return Object.keys(this.tableData.options).includes("smartPrintBtn")?!!this.tableData.options.smartPrintBtn:this.$olBaseConfig&&this.$olBaseConfig.smartPrintBtn||!1}},created(){this.url&&this.init()},beforeDestroy(){this.stopColumnsWatching()},methods:{init(){Sn().then(async e=>{let t=e.paths[this.url][this.finalMethod].responses[200].content["application/json"].schema.properties.items.items.properties;if("function"==typeof this.onSwagger)try{const e=await this.onSwagger({columns:t});e&&(t=e)}catch(l){}const r=e=>{e.forEach(e=>{if(e.children&&e.children.length)r(e.children);else if(e.prop&&t[e.prop]){const r=t[e.prop];this.$set(e,"label",r.description),Object.keys(e).includes("show")||this.$set(e,"show",!0)}})};r(this.tableData.columns),Object.keys(t).forEach(e=>{const r=t[e];if(r.description){const t={prop:e,label:r.description,show:!0,sortable:!1,attrs:{}};r.enum&&Array.isArray(r.enum)&&(t.prop=`${e}Desc`,t.label=r.description.replace(/(枚举|枚举值)/g,"")),"boolean"===r.type&&(t.prop=`${e}Text`),this.findColumnByProp(this.tableData.columns,t.prop)||this.tableData.columns.push(t)}}),this.sortColumns(this.tableData.columns);const a=e=>{e.forEach(e=>{e.hasOwnProperty("show")||this.$set(e,"show",!0),e.children&&e.children.length?a(e.children):e.hasOwnProperty("show")||this.$set(e,"show",!0)})};if(a(this.tableData.columns),console.log("[36m[4mol插件-表格",this.tableData.columns),"function"==typeof this.onMerged)try{const e=await this.onMerged({columns:this.tableData.columns});Array.isArray(e)&&(this.tableData.columns=e)}catch(i){}this.startColumnsWatching()}).catch(e=>{console.error("获取 Swagger 数据失败:",e)})},sortColumns(e){let t=0;e.forEach(r=>{if(!r.beforeProp){r.sort=t,t++;const a=e.find(e=>e.beforeProp==r.prop);a&&(a.sort=t,t++)}}),e.sort((e,t)=>e.sort-t.sort)},findColumnByProp(e,t){for(const r of e)if(r.children&&r.children.length){const e=this.findColumnByProp(r.children,t);if(e)return e}else if(r.prop===t)return r;return null},radioChange(){this.$emit("radioChange",this.twinPage)},refreshTable(){const e=this.$router.history.current;this.$store.dispatch("tagsView/delCachedView",e).then(()=>{const{fullPath:t}=e;this.$nextTick(()=>{this.$router.replace({path:"/redirect"+t})})}),this.$emit("refreshTable")},printTable(){console.log("printTable"),this.tableData.rows.length<=0||(this.printListObj.title=this.$router.history.current.name,this.printListObj.tableHeader=this.tableData.columns,this.printListObj.tableData=this.tableData.rows,console.log(this.printListObj),setTimeout(()=>{$(".printTemplate").show(),$(".printTemplate").jqprint(),$(".printTemplate").hide()},50),this.$emit("printTable"))},selectAll(e){this.$emit("selectAll",e)},select(e,t){this.$emit("selectTab",e,t)},refreshTableBTN(){this.$emit("refreshTableBTN")},rowClick(e,t){"操作"!==t.label&&(this.$emit("rowClick",e),this.tableData.columns.every(e=>"是否只出样件"!==e.label)&&this.$refs.tableRef.toggleRowSelection(e))},computeTableIndex(e){return(this.paginations.page-1)*this.paginations.limit+e+1},SelectionChange(e){this.multipleSelection=e,this.$emit("SelectionChange",e)},handleSizeChange(e){this.paginations.limit=e,this.$emit("handleSizeChange",e)},handleindexChange(e){this.paginations.page=e,this.$emit("handleindexChange",e)},getCheckboxList(){return this.tableData.column},setCheckboxList(e){},getAllColumnsWithProp(e){const t=[],r=new Map,a=e=>{e.forEach(e=>{e.children&&e.children.length?a(e.children):e.prop&&(r.has(e.prop)||(r.set(e.prop,e),t.push(e)))})};return a(e),t},getAllLabelsWithProp(){const e=[],t=r=>{r.forEach(r=>{r.children&&r.children.length?t(r.children):r.prop&&r.show&&!e.includes(r.prop)&&r.show&&e.push(r.prop)})};return t(this.tableData.columns),e},setColumnsShow(e){const t=r=>{r.forEach(r=>{r.children&&r.children.length?t(r.children):r.prop&&(e.includes(r.prop)?this.$set(r,"show",!0):this.$set(r,"show",!1))})};t(this.tableData.columns)},startColumnsWatching(){this.stopColumnsWatching(),this.columnsWatcher=this.$watch("tableData.columns",()=>this.key+=1,{deep:!0,immediate:!1})},stopColumnsWatching(){this.columnsWatcher&&(this.columnsWatcher(),this.columnsWatcher=null)}}},E={};var M=p(I,T,O,!1,B,"5e84c9a6",null,null);function B(e){for(let t in E)this[t]=E[t]}const j=function(){return M.exports}();j.install=function(e){e.component("ol-table",j)},k.install=function(e){e.component("ol-dropdown-print",k)};const P=e=>{const t=localStorage.getItem("wms");if(!t)return[];const r=e[0].toLowerCase()+e.slice(1);return JSON.parse(t).SET_enumsSelect[r].enums||[]};var N=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ol-number-range",class:{"is-disabled":e.disabled}},[r("el-input",{ref:"startInput",staticClass:"range-input start-input",attrs:{type:"number",placeholder:e.startPlaceholder,min:e.min,max:e.max,disabled:e.disabled},on:{blur:e.handleStartBlur,input:e.handleStartInput},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleStartBlur.apply(null,arguments)}},model:{value:e.startValue,callback:function(t){e.startValue=t},expression:"startValue"}}),r("span",{staticClass:"range-separator"},[e._v("-")]),r("el-input",{ref:"endInput",staticClass:"range-input end-input",attrs:{type:"number",placeholder:e.endPlaceholder,min:e.min,max:e.max,disabled:e.disabled},on:{blur:e.handleEndBlur,input:e.handleEndInput},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEndBlur.apply(null,arguments)}},model:{value:e.endValue,callback:function(t){e.endValue=t},expression:"endValue"}}),e.clearable&&!e.disabled&&(e.startValue||e.endValue)?r("i",{staticClass:"el-icon-circle-close clear-icon",on:{click:e.handleClear}}):e._e()],1)},_=[];const z={name:"number-range",props:{value:{type:Array,default:()=>[null,null]},min:{type:Number,default:0},max:{type:Number,default:999999},startPlaceholder:{type:String,default:"起始值"},endPlaceholder:{type:String,default:"终止值"},clearable:{type:Boolean,default:!0},autoFillDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},precision:{type:Number,default:0,validator:e=>void 0===e||Number.isInteger(e)&&e>=0}},data:()=>({startValue:null,endValue:null}),watch:{value:{handler(e){Array.isArray(e)&&2===e.length?(this.startValue=null!==e[0]&&void 0!==e[0]?this.formatPrecision(Number(e[0])):null,this.endValue=null!==e[1]&&void 0!==e[1]?this.formatPrecision(Number(e[1])):null):(this.startValue=null,this.endValue=null)},immediate:!0,deep:!0}},methods:{formatPrecision(e){return void 0!==this.precision&&null!==this.precision?Number(Number(e).toFixed(this.precision)):e},handleStartInput(e){if(!this.disabled){if(""===e||null==e)this.startValue=null;else{let t=Number(e);t<this.min?t=this.min:t>this.max&&(t=this.max),this.startValue=this.formatPrecision(t)}this.emitValue()}},handleEndInput(e){if(!this.disabled){if(""===e||null==e)this.endValue=null;else{let t=Number(e);t<this.min?t=this.min:t>this.max&&(t=this.max),this.endValue=this.formatPrecision(t)}this.emitValue()}},handleStartBlur(){this.disabled||(this.autoFillDefault&&null!==this.startValue&&null===this.endValue&&(this.endValue=this.formatPrecision(this.max)),null!==this.startValue&&(this.startValue=this.formatPrecision(this.startValue)),this.validateRange(),this.emitValue())},handleEndBlur(){this.disabled||(this.autoFillDefault&&null!==this.endValue&&null===this.startValue&&(this.startValue=this.formatPrecision(this.min)),null!==this.endValue&&(this.endValue=this.formatPrecision(this.endValue)),this.validateRange(),this.emitValue())},validateRange(){if(null!==this.startValue&&null!==this.endValue&&this.startValue>this.endValue){const e=this.startValue;this.startValue=this.formatPrecision(this.endValue),this.endValue=this.formatPrecision(e)}},handleClear(){this.disabled||(this.startValue=null,this.endValue=null,this.emitValue())},emitValue(){const e=[this.startValue,this.endValue];this.$emit("input",e),this.$emit("change",e)}}},V={};var Q=p(z,N,_,!1,L,"653fc76e",null,null);function L(e){for(let t in V)this[t]=V[t]}const F=function(){return Q.exports}();F.install=function(e){e.component("ol-number-range ",F)};var H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},R=function(e){return e&&e.Math===Math&&e},W=R("object"==typeof globalThis&&globalThis)||R("object"==typeof window&&window)||R("object"==typeof self&&self)||R("object"==typeof H&&H)||R("object"==typeof H&&H)||function(){return this}()||Function("return this")(),U={},q=function(e){try{return!!e()}catch(t){return!0}},Y=!q(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),G=!q(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Z=G,J=Function.prototype.call,X=Z?J.bind(J):function(){return J.apply(J,arguments)},K={},ee={}.propertyIsEnumerable,te=Object.getOwnPropertyDescriptor,re=te&&!ee.call({1:2},1);K.f=re?function(e){var t=te(this,e);return!!t&&t.enumerable}:ee;var ae,le,ie=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ne=G,oe=Function.prototype,se=oe.call,ce=ne&&oe.bind.bind(se,se),pe=ne?ce:function(e){return function(){return se.apply(e,arguments)}},ue=pe,de=ue({}.toString),he=ue("".slice),me=q,fe=function(e){return he(de(e),8,-1)},ge=Object,be=pe("".split),ye=me(function(){return!ge("z").propertyIsEnumerable(0)})?function(e){return"String"===fe(e)?be(e,""):ge(e)}:ge,ve=function(e){return null==e},Ae=ve,Se=TypeError,we=function(e){if(Ae(e))throw new Se("Can't call method on "+e);return e},Ce=ye,De=we,xe=function(e){return Ce(De(e))},ke="object"==typeof document&&document.all,Te=void 0===ke&&void 0!==ke?function(e){return"function"==typeof e||e===ke}:function(e){return"function"==typeof e},Oe=Te,Ie=function(e){return"object"==typeof e?null!==e:Oe(e)},Ee=W,Me=Te,Be=function(e,t){return arguments.length<2?(r=Ee[e],Me(r)?r:void 0):Ee[e]&&Ee[e][t];var r},je=pe({}.isPrototypeOf),Pe=W.navigator,Ne=Pe&&Pe.userAgent,_e=W,ze=Ne?String(Ne):"",Ve=_e.process,Qe=_e.Deno,Le=Ve&&Ve.versions||Qe&&Qe.version,$e=Le&&Le.v8;$e&&(le=(ae=$e.split("."))[0]>0&&ae[0]<4?1:+(ae[0]+ae[1])),!le&&ze&&(!(ae=ze.match(/Edge\/(\d+)/))||ae[1]>=74)&&(ae=ze.match(/Chrome\/(\d+)/))&&(le=+ae[1]);var Fe=le,He=q,Re=W.String,We=!!Object.getOwnPropertySymbols&&!He(function(){var e=Symbol("symbol detection");return!Re(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Fe&&Fe<41}),Ue=We&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,qe=Be,Ye=Te,Ge=je,Ze=Object,Je=Ue?function(e){return"symbol"==typeof e}:function(e){var t=qe("Symbol");return Ye(t)&&Ge(t.prototype,Ze(e))},Xe=String,Ke=Te,et=function(e){try{return Xe(e)}catch(t){return"Object"}},tt=TypeError,rt=function(e){if(Ke(e))return e;throw new tt(et(e)+" is not a function")},at=ve,lt=X,it=Te,nt=Ie,ot=TypeError,st={exports:{}},ct=W,pt=Object.defineProperty,ut=function(e,t){try{pt(ct,e,{value:t,configurable:!0,writable:!0})}catch(r){ct[e]=t}return t},dt=W,ht=ut,mt="__core-js_shared__",ft=st.exports=dt[mt]||ht(mt,{});(ft.versions||(ft.versions=[])).push({version:"3.49.0",mode:"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"});var gt=st.exports,bt=gt,yt=function(e,t){return bt[e]||(bt[e]=t||{})},vt=we,At=Object,St=function(e){return At(vt(e))},wt=pe({}.hasOwnProperty),Ct=Object.hasOwn||function(e,t){return wt(St(e),t)},Dt=pe,xt=0,kt=Math.random(),Tt=Dt(1.1.toString),Ot=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Tt(++xt+kt,36)},It=yt,Et=Ct,Mt=Ot,Bt=We,jt=Ue,Pt=W.Symbol,Nt=It("wks"),_t=jt?Pt.for||Pt:Pt&&Pt.withoutSetter||Mt,zt=function(e){return Et(Nt,e)||(Nt[e]=Bt&&Et(Pt,e)?Pt[e]:_t("Symbol."+e)),Nt[e]},Vt=X,Qt=Ie,Lt=Je,$t=function(e,t){var r=e[t];return at(r)?void 0:rt(r)},Ft=function(e,t){var r,a;if("string"===t&&it(r=e.toString)&&!nt(a=lt(r,e)))return a;if(it(r=e.valueOf)&&!nt(a=lt(r,e)))return a;if("string"!==t&&it(r=e.toString)&&!nt(a=lt(r,e)))return a;throw new ot("Can't convert object to primitive value")},Ht=TypeError,Rt=zt("toPrimitive"),Wt=function(e,t){if(!Qt(e)||Lt(e))return e;var r,a=$t(e,Rt);if(a){if(void 0===t&&(t="default"),r=Vt(a,e,t),!Qt(r)||Lt(r))return r;throw new Ht("Can't convert object to primitive value")}return void 0===t&&(t="number"),Ft(e,t)},Ut=Je,qt=function(e){var t=Wt(e,"string");return Ut(t)?t:t+""},Yt=Ie,Gt=W.document,Zt=Yt(Gt)&&Yt(Gt.createElement),Jt=function(e){return Zt?Gt.createElement(e):{}},Xt=Jt,Kt=!Y&&!q(function(){return 7!==Object.defineProperty(Xt("div"),"a",{get:function(){return 7}}).a}),er=Y,tr=X,rr=K,ar=ie,lr=xe,ir=qt,nr=Ct,or=Kt,sr=Object.getOwnPropertyDescriptor;U.f=er?sr:function(e,t){if(e=lr(e),t=ir(t),or)try{return sr(e,t)}catch(r){}if(nr(e,t))return ar(!tr(rr.f,e,t),e[t])};var cr={},pr=Y&&q(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),ur=Ie,dr=String,hr=TypeError,mr=function(e){if(ur(e))return e;throw new hr(dr(e)+" is not an object")},fr=Y,gr=Kt,br=pr,yr=mr,vr=qt,Ar=TypeError,Sr=Object.defineProperty,wr=Object.getOwnPropertyDescriptor,Cr="enumerable",Dr="configurable",xr="writable";cr.f=fr?br?function(e,t,r){if(yr(e),t=vr(t),yr(r),"function"==typeof e&&"prototype"===t&&"value"in r&&xr in r&&!r[xr]){var a=wr(e,t);a&&a[xr]&&(e[t]=r.value,r={configurable:Dr in r?r[Dr]:a[Dr],enumerable:Cr in r?r[Cr]:a[Cr],writable:!1})}return Sr(e,t,r)}:Sr:function(e,t,r){if(yr(e),t=vr(t),yr(r),gr)try{return Sr(e,t,r)}catch(a){}if("get"in r||"set"in r)throw new Ar("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var kr=cr,Tr=ie,Or=Y?function(e,t,r){return kr.f(e,t,Tr(1,r))}:function(e,t,r){return e[t]=r,e},Ir={exports:{}},Er=Y,Mr=Ct,Br=Function.prototype,jr=Er&&Object.getOwnPropertyDescriptor,Pr=Mr(Br,"name"),Nr={EXISTS:Pr,PROPER:Pr&&"something"===function(){}.name,CONFIGURABLE:Pr&&(!Er||Er&&jr(Br,"name").configurable)},_r=Te,zr=gt,Vr=pe(Function.toString);_r(zr.inspectSource)||(zr.inspectSource=function(e){return Vr(e)});var Qr,Lr,$r,Fr=zr.inspectSource,Hr=Te,Rr=W.WeakMap,Wr=Hr(Rr)&&/native code/.test(String(Rr)),Ur=Ot,qr=yt("keys"),Yr=function(e){return qr[e]||(qr[e]=Ur(e))},Gr={},Zr=Wr,Jr=W,Xr=Ie,Kr=Or,ea=Ct,ta=gt,ra=Yr,aa=Gr,la="Object already initialized",ia=Jr.TypeError,na=Jr.WeakMap;if(Zr||ta.state){var oa=ta.state||(ta.state=new na);oa.get=oa.get,oa.has=oa.has,oa.set=oa.set,Qr=function(e,t){if(oa.has(e))throw new ia(la);return t.facade=e,oa.set(e,t),t},Lr=function(e){return oa.get(e)||{}},$r=function(e){return oa.has(e)}}else{var sa=ra("state");aa[sa]=!0,Qr=function(e,t){if(ea(e,sa))throw new ia(la);return t.facade=e,Kr(e,sa,t),t},Lr=function(e){return ea(e,sa)?e[sa]:{}},$r=function(e){return ea(e,sa)}}var ca={set:Qr,get:Lr,has:$r,enforce:function(e){return $r(e)?Lr(e):Qr(e,{})},getterFor:function(e){return function(t){var r;if(!Xr(t)||(r=Lr(t)).type!==e)throw new ia("Incompatible receiver, "+e+" required");return r}}},pa=pe,ua=q,da=Te,ha=Ct,ma=Y,fa=Nr.CONFIGURABLE,ga=Fr,ba=ca.enforce,ya=ca.get,va=String,Aa=Object.defineProperty,Sa=pa("".slice),wa=pa("".replace),Ca=pa([].join),Da=ma&&!ua(function(){return 8!==Aa(function(){},"length",{value:8}).length}),xa=String(String).split("String"),ka=Ir.exports=function(e,t,r){"Symbol("===Sa(va(t),0,7)&&(t="["+wa(va(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!ha(e,"name")||fa&&e.name!==t)&&(ma?Aa(e,"name",{value:t,configurable:!0}):e.name=t),Da&&r&&ha(r,"arity")&&e.length!==r.arity&&Aa(e,"length",{value:r.arity});try{r&&ha(r,"constructor")&&r.constructor?ma&&Aa(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(l){}var a=ba(e);return ha(a,"source")||(a.source=Ca(xa,"string"==typeof t?t:"")),e};Function.prototype.toString=ka(function(){return da(this)&&ya(this).source||ga(this)},"toString");var Ta=Ir.exports,Oa=Te,Ia=cr,Ea=Ta,Ma=ut,Ba={},ja=Math.ceil,Pa=Math.floor,Na=Math.trunc||function(e){var t=+e;return(t>0?Pa:ja)(t)},_a=function(e){var t=+e;return t!=t||0===t?0:Na(t)},za=_a,Va=Math.max,Qa=Math.min,La=_a,$a=Math.min,Fa=function(e){var t=La(e);return t>0?$a(t,9007199254740991):0},Ha=xe,Ra=function(e,t){var r=za(e);return r<0?Va(r+t,0):Qa(r,t)},Wa=function(e){return Fa(e.length)},Ua=function(e){return function(t,r,a){var l=Ha(t),i=Wa(l);if(0===i)return!e&&-1;var n,o=Ra(a,i);if(e&&r!=r){for(;i>o;)if((n=l[o++])!=n)return!0}else for(;i>o;o++)if((e||o in l)&&l[o]===r)return e||o||0;return!e&&-1}},qa={includes:Ua(!0),indexOf:Ua(!1)},Ya=Ct,Ga=xe,Za=qa.indexOf,Ja=Gr,Xa=pe([].push),Ka=function(e,t){var r,a=Ga(e),l=0,i=[];for(r in a)!Ya(Ja,r)&&Ya(a,r)&&Xa(i,r);for(;t.length>l;)Ya(a,r=t[l++])&&(~Za(i,r)||Xa(i,r));return i},el=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tl=Ka,rl=el.concat("length","prototype");Ba.f=Object.getOwnPropertyNames||function(e){return tl(e,rl)};var al={};al.f=Object.getOwnPropertySymbols;var ll=Be,il=Ba,nl=al,ol=mr,sl=pe([].concat),cl=ll("Reflect","ownKeys")||function(e){var t=il.f(ol(e)),r=nl.f;return r?sl(t,r(e)):t},pl=Ct,ul=cl,dl=U,hl=cr,ml=q,fl=Te,gl=/#|\.prototype\./,bl=function(e,t){var r=vl[yl(e)];return r===Sl||r!==Al&&(fl(t)?ml(t):!!t)},yl=bl.normalize=function(e){return String(e).replace(gl,".").toLowerCase()},vl=bl.data={},Al=bl.NATIVE="N",Sl=bl.POLYFILL="P",wl=bl,Cl=W,Dl=U.f,xl=Or,kl=function(e,t,r,a){a||(a={});var l=a.enumerable,i=void 0!==a.name?a.name:t;if(Oa(r)&&Ea(r,i,a),a.global)l?e[t]=r:Ma(t,r);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(n){}l?e[t]=r:Ia.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e},Tl=ut,Ol=function(e,t,r){for(var a=ul(t),l=hl.f,i=dl.f,n=0;n<a.length;n++){var o=a[n];pl(e,o)||r&&pl(r,o)||l(e,o,i(t,o))}},Il=wl,El={},Ml=Ka,Bl=el,jl=Object.keys||function(e){return Ml(e,Bl)},Pl=Y,Nl=pr,_l=cr,zl=mr,Vl=xe,Ql=jl;El.f=Pl&&!Nl?Object.defineProperties:function(e,t){zl(e);for(var r,a=Vl(t),l=Ql(t),i=l.length,n=0;i>n;)_l.f(e,r=l[n++],a[r]);return e};var Ll,$l=Be("document","documentElement"),Fl=mr,Hl=El,Rl=el,Wl=Gr,Ul=$l,ql=Jt,Yl="prototype",Gl="script",Zl=Yr("IE_PROTO"),Jl=function(){},Xl=function(e){return"<"+Gl+">"+e+"</"+Gl+">"},Kl=function(e){e.write(Xl("")),e.close();var t=e.parentWindow.Object;return e=null,t},ei=function(){try{Ll=new ActiveXObject("htmlfile")}catch(l){}var e,t,r;ei="undefined"!=typeof document?document.domain&&Ll?Kl(Ll):(t=ql("iframe"),r="java"+Gl+":",t.style.display="none",Ul.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Xl("document.F=Object")),e.close(),e.F):Kl(Ll);for(var a=Rl.length;a--;)delete ei[Yl][Rl[a]];return ei()};Wl[Zl]=!0;var ti=zt,ri=Object.create||function(e,t){var r;return null!==e?(Jl[Yl]=Fl(e),r=new Jl,Jl[Yl]=null,r[Zl]=e):r=ei(),void 0===t?r:Hl.f(r,t)},ai=cr.f,li=ti("unscopables"),ii=Array.prototype;void 0===ii[li]&&ai(ii,li,{configurable:!0,value:ri(null)});var ni=function(e,t){var r,a,l,i,n,o=e.target,s=e.global,c=e.stat;if(r=s?Cl:c?Cl[o]||Tl(o,{}):Cl[o]&&Cl[o].prototype)for(a in t){if(i=t[a],l=e.dontCallGetSet?(n=Dl(r,a))&&n.value:r[a],!Il(s?a:o+(c?".":"#")+a,e.forced)&&void 0!==l){if(typeof i==typeof l)continue;Ol(i,l)}(e.sham||l&&l.sham)&&xl(i,"sham",!0),kl(r,a,i,e)}},oi=qa.includes,si=q,ci=function(e){ii[li][e]=!0},pi=si(function(){return!Array(1).includes()}),ui=si(function(){return[,1].includes(void 0,1)});ni({target:"Array",proto:!0,forced:pi||ui},{includes:function(e){return oi(this,e,arguments.length>1?arguments[1]:void 0)}}),ci("includes");var di=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:"搜索条件配置",visible:e.dialogVisible,width:"60%","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t},close:e.handleClose}},[r("div",{staticClass:"search-config-container"},[r("div",{staticClass:"config-header"},[e.customs&&e.customs.length>0?r("el-button",{attrs:{type:"success",size:"small"},on:{click:function(t){e.customsDialogVisible=!0}}},[r("i",{staticClass:"el-icon-plus"}),e._v(" 从预设添加 ")]):e._e()],1),r("el-table",{ref:"configTable",staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.configList,border:"",stripe:"","row-class-name":e.tableRowClassName,"row-key":"value","tree-props":{children:""}}},[e.dragable?r("el-table-column",{attrs:{label:"排序",width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("i",{staticClass:"el-icon-rank sort-handle",staticStyle:{cursor:"move","font-size":"18px"}})]}}],null,!1,3289925553)}):e._e(),r("el-table-column",{attrs:{label:"字段名称",prop:"label",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-input",{attrs:{size:"small",placeholder:"请输入字段名称",disabled:""},model:{value:t.row.label,callback:function(r){e.$set(t.row,"label",r)},expression:"scope.row.label"}})]}}])}),r("el-table-column",{attrs:{label:"字段值",prop:"value",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-input",{attrs:{size:"small",placeholder:"请输入字段值",disabled:""},model:{value:t.row.value,callback:function(r){e.$set(t.row,"value",r)},expression:"scope.row.value"}})]}}])}),r("el-table-column",{attrs:{label:"输入类型",prop:"inputType",width:"130",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-select",{attrs:{size:"small",placeholder:"请选择类型",disabled:["number","picker"].includes(t.row.inputType)},on:{change:function(r){return e.handleTypeChange(t.row)}},model:{value:t.row.inputType,callback:function(r){e.$set(t.row,"inputType",r)},expression:"scope.row.inputType"}},[r("el-option",{attrs:{label:"文本输入",value:"text"}}),r("el-option",{attrs:{label:"数字输入",value:"number",disabled:""}}),r("el-option",{attrs:{label:"下拉选择",value:"select"}}),r("el-option",{attrs:{label:"日期选择",value:"picker",disabled:""}})],1)]}}])}),r("el-table-column",{attrs:{label:"日期类型",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["picker"===t.row.inputType?r("el-select",{attrs:{size:"small",placeholder:"请选择日期类型"},on:{change:function(r){return e.handleDateTypeChange(t.row)}},model:{value:t.row.dateType,callback:function(r){e.$set(t.row,"dateType",r)},expression:"scope.row.dateType"}},[r("el-option",{attrs:{label:"日期",value:"date"}}),r("el-option",{attrs:{label:"日期时间",value:"datetime"}}),r("el-option",{attrs:{label:"日期范围",value:"daterange"}}),r("el-option",{attrs:{label:"日期时间范围",value:"datetimerange"}}),r("el-option",{attrs:{label:"月份",value:"month"}}),r("el-option",{attrs:{label:"月份范围",value:"monthrange"}}),r("el-option",{attrs:{label:"年份",value:"year"}})],1):r("div",{staticClass:"gray-text"},[e._v("-")])]}}])}),r("el-table-column",{attrs:{label:"比较方式",width:"130",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-select",{attrs:{size:"small",placeholder:"请选择比较方式"},model:{value:t.row.compare,callback:function(r){e.$set(t.row,"compare",r)},expression:"scope.row.compare"}},[r("el-option",{attrs:{label:"范围",value:"range"}}),r("el-option",{attrs:{label:"包含于",value:"in"}}),r("el-option",{attrs:{label:"不包含于",value:"not in"}}),r("el-option",{attrs:{label:"等于",value:"eq"}}),r("el-option",{attrs:{label:"不等于",value:"ne"}}),r("el-option",{attrs:{label:"大于",value:"gt"}}),r("el-option",{attrs:{label:"大于等于",value:"ge"}}),r("el-option",{attrs:{label:"小于",value:"lt"}}),r("el-option",{attrs:{label:"小于等于",value:"le"}}),r("el-option",{attrs:{label:"包含",value:"contains"}}),r("el-option",{attrs:{label:"以...开始",value:"startswith"}}),r("el-option",{attrs:{label:"以...结束",value:"endswith"}})],1)]}}])}),r("el-table-column",{attrs:{label:"配置",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["select"===t.row.inputType?r("div",[r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(r){return e.handleConfigOptions(t.$index)}}},[e._v(" 配置选项 ")])],1):r("div",{staticClass:"gray-text"},[e._v("无需配置")])]}}])}),r("el-table-column",{attrs:{label:"操作",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{staticStyle:{color:"#f56c6c"},attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(r){return e.handleDelete(t.$index)}}},[e._v(" 删除 ")])]}}])})],1)],1),r("div",{staticClass:"dialog-footer"},[e._t("footer",function(){return[r("el-button",{on:{click:e.handleClose}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("确定")])]})],2),r("el-dialog",{attrs:{title:"配置选项",visible:e.optionsDialogVisible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.optionsDialogVisible=t}}},[r("el-form",{attrs:{model:e.currentOptionConfig,"label-width":"100px",size:"small"}},[r("el-form-item",{attrs:{label:"数据来源"}},[r("el-radio-group",{model:{value:e.currentOptionConfig.sourceType,callback:function(t){e.$set(e.currentOptionConfig,"sourceType",t)},expression:"currentOptionConfig.sourceType"}},[r("el-radio",{attrs:{label:"manual"}},[e._v("手动配置")]),r("el-radio",{attrs:{label:"dict"}},[e._v("本地字典")]),r("el-radio",{attrs:{label:"api"}},[e._v("接口获取")])],1)],1),"dict"===e.currentOptionConfig.sourceType?r("el-form-item",{attrs:{label:"字典"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","filter-method":e.filterDict,placeholder:"请输入字典,如:orderTypeEnum",clearable:""},on:{change:e.handleDictKeyChange},model:{value:e.currentOptionConfig.dictKey,callback:function(t){e.$set(e.currentOptionConfig,"dictKey",t)},expression:"currentOptionConfig.dictKey"}},e._l(e.allDictList,function(t){return r("el-option",{key:t.key,attrs:{label:t.label,value:t.key}},[r("span",{staticStyle:{float:"left"}},[e._v(e._s(t.label))]),r("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.key))])])}),1)],1):e._e(),"api"===e.currentOptionConfig.sourceType?r("el-form-item",{attrs:{label:"接口地址"}},[r("el-input",{attrs:{placeholder:"请输入接口地址,如:/api/dict/list"},model:{value:e.currentOptionConfig.apiUrl,callback:function(t){e.$set(e.currentOptionConfig,"apiUrl",t)},expression:"currentOptionConfig.apiUrl"}})],1):e._e(),"api"===e.currentOptionConfig.sourceType?r("el-form-item",{attrs:{label:"请求方式"}},[r("el-select",{attrs:{placeholder:"请选择请求方式"},model:{value:e.currentOptionConfig.method,callback:function(t){e.$set(e.currentOptionConfig,"method",t)},expression:"currentOptionConfig.method"}},[r("el-option",{attrs:{label:"GET",value:"get"}}),r("el-option",{attrs:{label:"POST",value:"post"}})],1)],1):e._e(),"api"===e.currentOptionConfig.sourceType?r("el-form-item",{attrs:{label:"文本字段"}},[r("el-input",{attrs:{placeholder:"如:name"},model:{value:e.currentOptionConfig.labelField,callback:function(t){e.$set(e.currentOptionConfig,"labelField",t)},expression:"currentOptionConfig.labelField"}})],1):e._e(),"api"===e.currentOptionConfig.sourceType?r("el-form-item",{attrs:{label:"值字段"}},[r("el-input",{attrs:{placeholder:"如:id"},model:{value:e.currentOptionConfig.valueField,callback:function(t){e.$set(e.currentOptionConfig,"valueField",t)},expression:"currentOptionConfig.valueField"}})],1):e._e(),"manual"===e.currentOptionConfig.sourceType?r("el-form-item",{attrs:{label:"选项列表"}},[r("div",{staticClass:"options-config"},[e._l(e.currentOptionConfig.options,function(t,a){return r("div",{key:a,staticClass:"option-item"},[r("el-input",{staticStyle:{width:"150px"},attrs:{size:"small",placeholder:"文本"},model:{value:t.value,callback:function(r){e.$set(t,"value",r)},expression:"option.value"}}),r("el-input",{staticStyle:{width:"150px","margin-left":"10px"},attrs:{size:"small",placeholder:"值"},model:{value:t.key,callback:function(r){e.$set(t,"key",r)},expression:"option.key"}}),r("el-button",{staticStyle:{color:"#f56c6c","margin-left":"10px"},attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.handleDeleteOption(a)}}})],1)}),r("el-button",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{type:"dashed",size:"small",icon:"el-icon-plus"},on:{click:e.handleAddOption}},[e._v(" 添加选项 ")])],2)]):e._e(),"dict"===e.currentOptionConfig.sourceType&&e.isPreview?r("el-form-item",{attrs:{label:"预览"}},[r("div",{staticClass:"preview-box"},[e._l(e.previewOptions,function(t,a){return r("el-tag",{key:a,staticStyle:{margin:"5px"}},[e._v(" "+e._s(t.value)+" ("+e._s(t.key)+") ")])}),e.previewOptions&&0!==e.previewOptions.length?e._e():r("el-empty",{attrs:{description:"暂无数据","image-size":60}})],2)]):e._e()],1),r("div",{staticClass:"dialog-footer"},[e._t("footer",function(){return[r("el-button",{on:{click:function(t){e.optionsDialogVisible=!1}}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSaveOptions}},[e._v("确定")])]})],2)],1),r("el-dialog",{attrs:{title:"从预设添加条件",visible:e.customsDialogVisible,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.customsDialogVisible=t}}},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.availableCustoms,border:"",stripe:""}},[r("el-table-column",{attrs:{label:"字段名称",prop:"name",align:"center"}}),r("el-table-column",{attrs:{label:"字段值",prop:"key",align:"center"}}),r("el-table-column",{attrs:{label:"数据类型",width:"120",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.keyType?r("el-tag",{attrs:{type:"info"}},[e._v("字符串")]):2===t.row.keyType?r("el-tag",{attrs:{type:"warning"}},[e._v("数字")]):3===t.row.keyType?r("el-tag",{attrs:{type:"success"}},[e._v("枚举")]):4===t.row.keyType?r("el-tag",{attrs:{type:"primary"}},[e._v("日期")]):e._e()]}}])}),r("el-table-column",{attrs:{label:"操作",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(r){return e.handleSelectCustom(t.row)}}},[e._v(" 添加 ")])]}}])})],1),r("div",{staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.customsDialogVisible=!1}}},[e._v("取消")])],1)],1)],1)},hi=[];const mi={name:"SearchConfigDialog",props:{visible:{type:Boolean,default:!1},formSearchData:{type:Object,default:()=>{}},formSearch:{type:Object,default:()=>{}},tableSearch:{type:Array,default:()=>[]},customs:{type:Array,default:()=>[]},dragable:{type:Boolean,default:!1},isPreview:{type:Boolean,default:!1}},data:()=>({dialogVisible:!1,configList:[],optionsDialogVisible:!1,customsDialogVisible:!1,currentEditIndex:-1,currentOptionConfig:{sourceType:"manual",dictKey:"",apiUrl:"",method:"get",valueField:"id",labelField:"name",options:[]},previewOptions:[],allDictList:[],allDictListBackup:[],sortable:null,currentConfig:{}}),computed:{availableCustoms(){const e=this.configList.map(e=>e.value);return this.customs.filter(t=>!e.includes(t.key))}},created(){this.loadAllDictList(),this.setArrVModelReset()},watch:{visible:{handler(e){this.dialogVisible=e,e&&(this.configList=JSON.parse(JSON.stringify(this.tableSearch)),this.$nextTick(()=>{this.initSortable()}))},immediate:!0},dialogVisible(e){this.$emit("update:visible",e),e||this.destroySortable()}},methods:{initSortable(){this.sortable&&this.sortable.destroy();const e=this.$refs.configTable;if(!e)return;const r=e.$el.querySelector(".el-table__body-wrapper tbody");r&&(this.sortable=t.create(r,{animation:150,handle:".sort-handle",ghostClass:"sortable-ghost",dragClass:"sortable-drag",onEnd:({newIndex:e,oldIndex:t})=>{if(e!==t){const r=this.configList[t];this.configList.splice(t,1),this.configList.splice(e,0,r)}}}))},destroySortable(){this.sortable&&(this.sortable.destroy(),this.sortable=null)},handleClose(){this.dialogVisible=!1},async handleSave(){for(const e of this.configList)"select"===e.inputType&&e.optionSource&&(await this.loadItemOptionsForSave(e),"in"===e.compare?e.props.multiple=!0:delete e.props.multiple);this.$emit("save",this.configList),this.dialogVisible=!1,console.log("[36m[4mol插件-动态搜索框配置数据",this.configList)},async loadItemOptionsForSave(e){if(!e.optionSource)return;const{sourceType:t}=e.optionSource;"dict"===t&&await this.loadDictOptionsForSave(e)},async loadDictOptionsForSave(e){try{const t=e.optionSource.dictKey;if(!t)return;const r=await this.getDictData(t);r&&Array.isArray(r)&&(e.children=r.map(e=>({key:e.key,value:e.value})))}catch(t){console.error("加载字典数据失败:",t)}},handleDelete(e){this.$confirm("确定要删除该条件吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.configList.splice(e,1)})},handleTypeChange(e){"select"!==e.inputType||e.children?"picker"===e.inputType?(e.props||(e.props={}),this.updateDatePickerProps(e)):e.dateType="":e.children=[]},handleDateTypeChange(e){e.props||(e.props={}),this.updateDatePickerProps(e);["daterange","datetimerange","monthrange"].includes(e.dateType)?e.compare="range":e.compare="eq"},updateDatePickerProps(e){const t=e.dateType||"date",r=e.props||{};switch(t){case"date":default:r.type="date",r.placeholder="选择日期",r.valueFormat="yyyy-MM-dd",r.format="yyyy/MM/dd";break;case"datetime":r.type="datetime",r.placeholder="选择日期时间",r.valueFormat="yyyy-MM-dd HH:mm:ss",r.format="yyyy/MM/dd HH:mm:ss";break;case"daterange":r.type="daterange",r.startPlaceholder="开始日期",r.endPlaceholder="结束日期",r.placeholder="选择日期范围",r.valueFormat="yyyy-MM-dd",r.format="yyyy/MM/dd";break;case"datetimerange":r.type="datetimerange",r.startPlaceholder="开始时间",r.endPlaceholder="结束时间",r.placeholder="选择时间范围",r.valueFormat="yyyy-MM-dd HH:mm:ss",r.format="yyyy/MM/dd HH:mm:ss",r.defaultTime=["00:00:00","23:59:59"];break;case"month":r.type="month",r.placeholder="选择月份",r.valueFormat="yyyy-MM",r.format="yyyy年MM月";break;case"monthrange":r.type="monthrange",r.startPlaceholder="开始月份",r.endPlaceholder="结束月份",r.placeholder="选择月份范围",r.valueFormat="yyyy-MM",r.format="yyyy年MM月";break;case"year":r.type="year",r.placeholder="选择年份",r.valueFormat="yyyy",r.format="yyyy年"}e.props=r},handleConfigOptions(e){this.currentEditIndex=e;const t=this.configList[e];this.currentConfig=JSON.parse(JSON.stringify(t));const r=t.optionSource||{};this.currentOptionConfig={sourceType:r.sourceType||"manual",dictKey:r.dictKey||"",apiUrl:r.apiUrl||"",method:r.method||"get",valueField:r.valueField||"id",labelField:r.labelField||"name",options:[]},"manual"===this.currentOptionConfig.sourceType&&(this.currentOptionConfig.options=JSON.parse(JSON.stringify(t.children||[]))),this.optionsDialogVisible=!0,this.loadPreviewOptions()},handleAddOption(){this.currentOptionConfig.options.push({key:"",value:""})},handleDeleteOption(e){this.currentOptionConfig.options.splice(e,1)},async loadApiOptions(e){try{const t=e.optionSource.apiUrl,r=e.optionSource.method||"get";if(!t)return;let a;if(a="post"===r?await this.post({url:t}):await this.get({url:t}),200!==a.code)return;if(a.result&&Array.isArray(a.result)){const{valueField:t,labelField:r}=e.optionSource;return a.result.map(e=>({key:e[t],value:e[r]}))}}catch(t){return console.error("加载接口数据失败:",t),[]}},needSetChildren(e,t){const{inputType:r,optionSource:a}=e;if(!a)return!1;const{sourceType:l,apiUrl:i,method:n,valueField:o,labelField:s}=a;if("select"!==r||"api"!==l)return!1;const{sourceType:c,apiUrl:p,method:u,valueField:d,labelField:h}=t;return l!==c||i!==p||n!==u||o!==d||s!==h},async handleSaveOptions(){const e=this.configList[this.currentEditIndex],t={sourceType:"",dictKey:"",apiUrl:"",valueField:"id",labelField:"name",options:[]};if("manual"===this.currentOptionConfig.sourceType){const r=JSON.parse(JSON.stringify(this.currentOptionConfig.options));e.children=r,e.optionSource={...t,sourceType:"manual",options:r}}else if("dict"===this.currentOptionConfig.sourceType)e.optionSource={...t,sourceType:"dict",dictKey:this.currentOptionConfig.dictKey},e.children=[];else if("api"===this.currentOptionConfig.sourceType){e.optionSource={...t,sourceType:"api",apiUrl:this.currentOptionConfig.apiUrl,method:this.currentOptionConfig.method,valueField:this.currentOptionConfig.valueField,labelField:this.currentOptionConfig.labelField};let r=[];this.needSetChildren(this.currentConfig,e.optionSource)?r=await this.loadApiOptions(e):e.children=r||[]}this.optionsDialogVisible=!1},tableRowClassName:({row:e,rowIndex:t})=>`row-${t}`,async loadPreviewOptions(){this.previewOptions=[],"dict"===this.currentOptionConfig.sourceType&&await this.loadDictOptions()},async loadDictOptions(){try{const e=this.currentOptionConfig.dictKey;if(!e)return;const t=await this.getDictData(e);t&&Array.isArray(t)&&(this.previewOptions=t.map(e=>({key:e.key,value:e.value})))}catch(e){console.error("加载字典数据失败:",e),this.$message.error("加载字典数据失败")}},getDictData:e=>new Promise(t=>{try{const r=localStorage.getItem("wms")||"{}",a=JSON.parse(r),l=(a.SET_enumsSelect||{})[e],i=[];l&&l.enums&&Array.isArray(l.enums)&&l.enums.forEach(e=>{i.push({key:e.key,value:e.value})}),t(i)}catch(r){console.error("获取字典数据失败:",r),t([])}}),async loadAllDictList(){try{const e=localStorage.getItem("wms")||"{}",t=JSON.parse(e).SET_enumsSelect||{},r=[];Object.keys(t).forEach(e=>{const a=t[e];a&&e&&r.push({key:String(e),label:a.desc||e})}),this.allDictList=r,this.allDictListBackup=r}catch(e){console.error("加载字典列表失败:",e),this.allDictList=[],this.allDictListBackup=[]}},filterDict(e){if(!e)return void(this.allDictList=this.allDictListBackup||[]);const t=this.allDictListBackup.filter(t=>t.key.toLowerCase().includes(e.toLowerCase())||t.label.toLowerCase().includes(e.toLowerCase()));this.allDictList=t},handleDictKeyChange(e){this.allDictList=this.allDictListBackup||[],e&&this.loadPreviewOptions()},handleSelectCustom(e){const t={label:e.name,value:e.key,inputType:{1:"text",2:"number",3:"select",4:"picker"}[e.keyType]||"text",compare:{1:"contains",2:"eq",3:"eq",4:"eq"}[e.keyType]||"eq",children:[],props:{}};4===e.keyType?(t.dateType="date",t.props={type:"date",placeholder:"选择日期",valueFormat:"yyyy-MM-dd",format:"yyyy/MM/dd"}):3===e.keyType&&(t.optionSource={sourceType:"dict",dictKey:e.enumName}),this.configList.push(t),this.customsDialogVisible=!1},setArrVModelReset(){this.tableSearch.forEach(e=>{const{value:t,inputType:r}=e;Object.keys(this.formSearch).includes(t)&&("select"!==r&&"picker"!==r||(delete this.formSearchData.value[t],delete this.formSearch[t]))})}}},fi={};var gi=p(mi,di,hi,!1,bi,"5652e548",null,null);function bi(e){for(let t in fi)this[t]=fi[t]}var yi=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"formSearch formSearchArrowUp"},[e.formSearchData.tableSearch&&e.formSearchData.tableSearch.length>=0?r("div",{staticClass:"table-header"},[r("el-form",e._b({key:e.key,ref:"formSearch",attrs:{size:"small",rules:e.formSearchData.rules,model:e.formSearch,inline:!0,"label-position":"right"}},"el-form",Object.assign({},e.formSearchData.options&&e.formSearchData.options.formProps),!1),[r("div",{staticClass:"transitionGroup",class:[e.formSearchData.expendShow?"formSearchBtnArrowDowns":"formSearchBtnArrowUps"]},e._l(e.findTableSearch,function(t){return r("el-form-item",e._b({directives:[{name:"show",rawName:"v-show",value:!t.show,expression:"!item.show"}],key:t.value,staticClass:"table-header-item",class:{picker:t.props&&"datetimerange"===t.props.type,date:t.props&&"date"===t.props.type},attrs:{label:t.label,prop:t.value}},"el-form-item",t.labelProps||{},!1),["treeSelect"===t.inputType?r("Tree-select",e._b({ref:"TreeSelectref",refInFor:!0,attrs:{options:t.children},on:{getValue:function(r){t.change&&t.change(e.formSearch[t.value])}},model:{value:e.formSearch[t.value],callback:function(r){e.$set(e.formSearch,t.value,r)},expression:"formSearch[item.value]"}},"Tree-select",t.props||{},!1)):"select"===t.inputType?r("el-select",e._b({directives:[{name:"el-select-all",rawName:"v-el-select-all",value:t.loadmores,expression:"item.loadmores"}],attrs:{clearable:void 0===t.clearable||t.clearable,placeholder:`请选择${t.placeholder||t.label}`,"popper-append-to-body":!1},on:{change:function(r){t.change&&t.change(e.formSearch[t.value])}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch("formSearch")}},model:{value:e.formSearch[t.value],callback:function(r){e.$set(e.formSearch,t.value,r)},expression:"formSearch[item.value]"}},"el-select",t.props||{},!1),e._l(t.children,function(e){return r("el-option",{key:e.key,attrs:{label:e.value,value:e.key}})}),1):"selectTEMP"===t.inputType?r("el-select",e._b({directives:[{name:"el-select-all",rawName:"v-el-select-all",value:t.loadmores,expression:"item.loadmores"}],attrs:{placeholder:`请选择${t.placeholder||t.label}`,"popper-append-to-body":!1},on:{change:function(r){t.change&&t.change(e.formSearch[t.value])}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch("formSearch")}},model:{value:e.formSearch[t.value],callback:function(r){e.$set(e.formSearch,t.value,r)},expression:"formSearch[item.value]"}},"el-select",Object.assign({clearable:!0},t.props||{}),!1),e._l(t.children,function(e){return r("el-option",{key:e.key,attrs:{label:e.value,value:e.key}})}),1):"selectRemoteMethod"===t.inputType?r("el-select",{directives:[{name:"el-select-all",rawName:"v-el-select-all",value:t.loadmores,expression:"item.loadmores"}],attrs:{filterable:"",remote:"",clearable:"","reserve-keyword":"",placeholder:"请输入至少3位关键字","remote-method":t.remoteMethod,loading:t.loading},model:{value:e.formSearch[t.value],callback:function(r){e.$set(e.formSearch,t.value,r)},expression:"formSearch[item.value]"}},e._l(t.children,function(e){return r("el-option",{key:e.key,attrs:{label:e.value,value:e.key}})}),1):"picker"===t.inputType?r("el-date-picker",e._b({staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:t.props.placeholder||"选择日期","default-time":"datetimerange"==t.props.type?["00:00:00","23:59:59"]:""},model:{value:e.formSearch[t.value],callback:function(r){e.$set(e.formSearch,t.value,r)},expression:"formSearch[item.value]"}},"el-date-picker",t.props||{type:"date"},!1)):"numberRange"===t.inputType?r("ol-number-range",e._g(e._b({model:{value:e.formSearch[t.value],callback:function(r){e.$set(e.formSearch,t.value,r)},expression:"formSearch[item.value]"}},"ol-number-range",t.props||{},!1),Object.assign({},t.listeners,{change:function(e){return t.listeners&&t.listeners.change&&t.listeners.change({item:t,val:e})}}))):r("el-input",e._b({class:"number"==t.inputType?"numrule":"",attrs:{clearable:"",type:t.inputType||"text",placeholder:`请输入${t.placeholder||t.label}`,maxlength:t.maxlength,oninput:e.handleChangeInput(t)},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch("formSearch")},keydown:function(r){return e.keyInput(t,r)},paste:function(r){return e.onPaste(t,r)}},model:{value:e.formSearch[t.value],callback:function(r){e.$set(e.formSearch,t.value,r)},expression:"formSearch[item.value]"}},"el-input",t.props||{},!1))],1)}),1),r("el-form-item",{staticClass:"fromBtn",class:[e.formSearchData.expendShow?"formSearchBtnArrowDown":"formSearchBtnArrowUp"],staticStyle:{"word-break":"keep-all","white-space":"nowrap","margin-left":"10px"}},[e.formSearchData.reset?r("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.handleSearch("formSearch")}}},[e._v("查询 ")]):e._e(),e.formSearchData.reset?r("el-button",{attrs:{plain:"",size:"small"},on:{click:function(t){return e.handleReset("formSearch")}}},[e._v("重置")]):e._e(),e.formSearchData.expendShow?r("el-button",{attrs:{plain:"",size:"small",icon:e.expend?"el-icon-arrow-up":"el-icon-arrow-down"},on:{click:function(t){return e.handleExpend("formSearch")}}},[e._v(" "+e._s(e.expend?"收起":"展开"))]):e._e(),e.isCustomSearch?r("el-button",{attrs:{plain:"",size:"small",icon:"el-icon-setting"},on:{click:e.handleOpenConfig}},[e._v(" 配置 ")]):e._e()],1)],1)],1):e._e(),e.configDialogVisible?r("search-config-dialog",e._b({attrs:{visible:e.configDialogVisible,"table-search":e.formSearchData.tableSearch,formSearchData:e.formSearchData,formSearch:e.formSearch,customs:e.formSearchData.customs},on:{"update:visible":function(t){e.configDialogVisible=t},save:e.handleSaveConfig}},"search-config-dialog",e.$attrs,!1)):e._e()],1)},vi=[];const Ai={name:"search",components:{OlNumberRange:F,SearchConfigDialog:function(){return gi.exports}()},directives:{"el-select-loadmore":{bind(e,t){e.querySelector(".el-select-dropdown .el-select-dropdown__wrap").addEventListener("scroll",function(){const e=this.scrollHeight-this.scrollTop<=this.clientHeight;e>0&&e<2&&t.value()})}},"el-select-all":{bind(e,t,r){r.context;const a=e.querySelector(".el-select-dropdown .el-select-dropdown__wrap");a.addEventListener("scroll",function(){a.scrollHeight-a.scrollTop-2<=a.clientHeight&&(t.value.SELECTWRAP_DOM_index+=10,t.value.fn())})},unbind(e,t,r){r.context;const a=e.querySelector(".el-select-dropdown .el-select-dropdown__wrap");a&&a.removeEventListener("scroll",function(){t.value.SELECTWRAP_DOM_index=0})}}},props:{url:{type:String,default:""},formSearchData:{type:Object,default:()=>({buttonData:[],rules:{},value:{},tableSearchSlice:4,tableSearch:[],options:{},reset:!1,customs:[]})},tableSearchSlice:{type:Number,default:4},onSwagger:{type:Function,default:null},isCustomSearch:{type:Boolean,default:!1},method:{type:String}},data(){return{findTableSearch:{},expend:!this.formSearchData.expendShow,formSearch:{...this.formSearchData.value},configDialogVisible:!1,loadmores:{fn:this.loadmoreGX,SELECTWRAP_DOM_index:0,flage:null},tempBoxData:[],optionBox:[],key:0}},async created(){this.init()},mounted(){this.$nextTick(()=>{this.loadOptionSources()})},computed:{finalMethod(){return this.method||this.$olBaseConfig&&this.$olBaseConfig.method||"get"}},watch:{"formSearchData.value":{handler:function(e,t){if(e)return this.formSearch={...e}},deep:!0}},methods:{async init(){if(!this.isCustomSearch&&this.url){let t=(await Sn()).paths[this.url][this.finalMethod].parameters||[];if("function"==typeof this.onSwagger)try{const e=await this.onSwagger({columns:t});e&&(t=e)}catch(e){}t.forEach(e=>{let t=this.formSearchData.tableSearch.find(t=>t.value.toLowerCase()===e.name.toLowerCase());if(t)t={...e,...t};else if(e.description){const t={value:e.name,label:e.description,inputType:"text",props:{}};if(e.schema.enum&&Array.isArray(e.schema.enum)){t.inputType="select";const r=e.schema.$$ref.split("/"),a=r[r.length-1],l=P(a);t.children=l.length?l:e.schema.enum.map(e=>({key:e,value:e}))}else"date-time"===e.schema.format?(t.inputType="picker",t.props.valueFormat="yyyy-MM-dd",t.props.format="yyyy/MM/dd"):e.schema&&"string"===e.schema.type&&(t.inputType="text");this.formSearchData.tableSearch.push(t)}});const r=await this.autoDetectRangeTimeFields(t);this.formSearchData.tableSearch=[...this.formSearchData.tableSearch,...r]}this.findTableSearch=this.formSearchData.tableSearch.length>this.tableSearchSlice?this.formSearchData.tableSearch.slice(0,this.tableSearchSlice):this.formSearchData.tableSearch,console.log("[36m[4mol插件-搜索框渲染",this.formSearchData.tableSearch)},async autoDetectRangeTimeFields(e){const t=[];if(!this.formSearchData.tableSearch.some(e=>"createdTime"===e.value)){["BeginTime","EndTime"].every(t=>e.some(e=>e.name===t))&&t.push({label:"创建时间",value:"createdTime",inputType:"picker",props:{type:"datetimerange",startPlaceholder:"开始时间",endPlaceholder:"结束时间",placeholder:"选择时间范围",valueFormat:"yyyy-MM-dd HH:mm:ss",format:"yyyy/MM/dd HH:mm:ss"},originalFields:{begin:"BeginTime",end:"EndTime"}})}const r=e.filter(e=>e.name.endsWith("Begin")),a=e.filter(e=>e.name.endsWith("End")),l=[];r.forEach(e=>{const t=e.name.replace("Begin",""),r=t+"End",i=a.find(e=>e.name===r);i&&l.push({...e,description:e.description||i.description||"",beginField:e.name,endField:r,timeField:t+"Time",label:t})});for(const i of l){const{beginField:e,endField:r,timeField:a,description:l}=i;if(!this.formSearchData.tableSearch.some(e=>e.value===a)){const i=l;this.removeOriginalFieldsFromValue([e,r]),t.push({label:i,value:a,inputType:"picker",props:{type:"datetimerange",startPlaceholder:"开始时间",endPlaceholder:"结束时间",placeholder:`选择${i}范围`,valueFormat:"yyyy-MM-dd HH:mm:ss",format:"yyyy/MM/dd HH:mm:ss"},originalFields:{begin:e,end:r}})}}return t},removeOriginalFieldsFromValue(e){e.forEach(e=>{const t=this.formSearchData.tableSearch.findIndex(t=>t.value===e);-1!==t&&this.formSearchData.tableSearch.splice(t,1)})},getValue(e){this.$emit("getTreeSelectValue",e)},setFilterConditionsByFormSearch(e){const t=[];return Object.keys(e).forEach(r=>{const a=this.formSearchData.tableSearch.find(e=>e.value===r);void 0!==e[r]&&null!==e[r]&&""!==e[r]&&t.push({key:r,values:Array.isArray(e[r])?e[r]:[e[r]],compare:a&&a.compare?a.compare:""})}),t},handleSearch(e,t){if(this.isCustomSearch){const e=this.setFilterConditionsByFormSearch(this.formSearch)||[];this.$emit("handleSearch",this.formSearch,{filterConditions:e}),console.log("[36m[4mol插件-动态搜索框查询",this.formSearch,{filterConditions:e})}else{this.formSearch.createdTime?(this.formSearch.BeginTime=this.formSearch.createdTime[0],this.formSearch.EndTime=this.formSearch.createdTime[1]):(this.formSearch.BeginTime=null,this.formSearch.EndTime=null),Object.keys(this.formSearch).forEach(e=>{const t=this.formSearchData.tableSearch.find(t=>t.value===e);if(t&&t.originalFields){const{begin:r,end:a}=t.originalFields;this.formSearch[e]&&Array.isArray(this.formSearch[e])?(this.formSearch[r]=this.formSearch[e][0],this.formSearch[a]=this.formSearch[e][1]):(this.formSearch[r]=null,this.formSearch[a]=null)}});const r=Object.assign({},this.formSearch);if(this.formSearchData.rules)return this.$refs[e].validate(e=>{if(!e)return!1;this.$emit("handleSearch",r,t)});this.$emit("handleSearch",r,t),console.log("[36m[4mol插件-搜索框查询",r)}},loadmore(e){this.$emit("loadmore",e)},handleReset(e){if(this.$refs[e].resetFields(),this.formSearchData.reset)for(const t in this.formSearch)"[object String]"===Object.prototype.toString.call(this.formSearch[t])?this.formSearch[t]=null:"[object Array]"===Object.prototype.toString.call(this.formSearch[t])?this.formSearch[t]=[]:"[object Object]"===Object.prototype.toString.call(this.formSearch[t])?this.formSearch[t]={}:"[object Boolean]"===Object.prototype.toString.call(this.formSearch[t])?this.formSearch[t]=!1:this.formSearch[t]=null;else this.formSearch={...this.formSearchData.value};if(this.$emit("handleReset",this.formSearch),this.formSearchData.reset)return!1;this.handleSearch()},handleExpend(){this.expend=!this.expend,this.findTableSearch=this.expend?this.formSearchData.tableSearch.slice(0,this.formSearchData.tableSearch.length):this.formSearchData.tableSearch.slice(0,this.tableSearchSlice),this.$emit("btnHandleExpend",this.expend)},handleOpenConfig(){this.configDialogVisible=!0},handleSaveConfig(e){this.isCustomSearch&&this.key++,this.formSearchData.tableSearch=e,this.findTableSearch=this.formSearchData.tableSearch.length>this.tableSearchSlice?this.formSearchData.tableSearch.slice(0,this.tableSearchSlice):this.formSearchData.tableSearch,this.$emit("onSave",e)},async loadOptionSources(){for(const e of this.formSearchData.tableSearch)"select"===e.inputType&&e.optionSource&&await this.loadItemOptions(e)},async loadItemOptions(e){if(!e.optionSource)return;const{sourceType:t}=e.optionSource;"dict"===t?await this.loadDictOptions(e):"api"===t&&await this.loadApiOptions(e)},async loadDictOptions(e){try{const t=e.optionSource.dictKey;if(!t)return;const r=await this.getDictData(t);if(r&&Array.isArray(r)){const t=r.map(e=>({key:e.key,value:e.value}));this.$set(e,"children",t)}}catch(t){console.error("加载字典数据失败:",t)}},async loadApiOptions(e){try{const t=e.optionSource.apiUrl,r=e.optionSource.method||"get";if(!t)return;let a;if(a="post"===r?await this.post({url:t}):await this.get({url:t}),200!==a.code)return;if(a.result&&Array.isArray(a.result)){const{valueField:t,labelField:r}=e.optionSource,l=a.result.map(e=>({key:e[t],value:e[r]}));this.$set(e,"children",l)}}catch(t){console.error("加载接口数据失败:",t)}},getDictData:e=>new Promise(t=>{try{const r=localStorage.getItem("wms")||"{}",a=JSON.parse(r),l=(a.SET_enumsSelect||{})[e],i=[];l&&l.enums&&Array.isArray(l.enums)&&l.enums.forEach(e=>{i.push({key:e.key,value:e.value})}),t(i)}catch(r){console.error("获取字典数据失败:",r),t([])}}),handleChangeInput(e){return"number"===e.inputType?this.handleOnInput(this.formSearch[e.value],e.value,e.max):null},keyInput(e,t){if("number"===e.inputType){let e=t.key;return"e"!==e&&"E"!==e&&"-"!==e&&"+"!==e&&"."!==e||(t.returnValue=!1,!1)}},onPaste(e,t){if("number"===e.inputType){const e=t.clipboardData.getData("text");/[^\d]/g.test(e)&&t.preventDefault()}},handleOnInput(e,t,r){e&&Number(e)<=0&&(this.formSearch[t]=0),e&&Number(e)>r&&(this.formSearch[t]=r)}}},Si={};var wi=p(Ai,yi,vi,!1,Ci,"2059874a",null,null);function Ci(e){for(let t in Si)this[t]=Si[t]}const Di=function(){return wi.exports}();Di.install=function(e){e.component("ol-search ",Di)};var xi=function(){var e=this,t=e.$createElement;return(e._self._c||t)("ol-search",e._g(e._b({key:e.key,ref:"customSearchRef",attrs:{"form-search-data":e.formSearchData,isCustomSearch:"",method:e.finalMethod},on:{onSave:e.onSave}},"ol-search",e.$attrs,!1),e.$listeners))},ki=[];const Ti={};var Oi=p({name:"customSearch",props:{menuId:{type:String,default:""},formSearchData:{type:Object,default:()=>({buttonData:[],rules:{},value:{},tableSearchSlice:4,tableSearch:[],options:{},reset:!1,enableConfig:!1,customs:[]})},method:{type:String}},data:()=>({currentPageItem:{},key:0}),mounted(){this.$nextTick(()=>{this.init()})},computed:{finalMethod(){return this.method||this.$olBaseConfig&&this.$olBaseConfig.method||"get"}},methods:{init(){const e=(t,r)=>{for(const a of t){if(a.path===r.$route.path)return a;if(a.child&&a.child.length>0&&1!==a.type){const t=e(a.child,r);if(t)return t}}return null};let t=JSON.parse(localStorage.getItem("wms")),r=null;t&&(r=t.SET_MENUS);const a=r;this.currentPageItem=e(a,this);const l=this.menuId||this.currentPageItem&&this.currentPageItem.id;this.get({url:"/api/app/menu-search-setting/by-menu",data:{sysMenuId:l}}).then(e=>{if(200!==e.code)return;const t=e.result.settingJson?JSON.parse(e.result.settingJson):[];this.$set(this.formSearchData,"tableSearch",t),this.$refs.customSearchRef.init()})},onSave(e){const t=this.menuId||this.currentPageItem&&this.currentPageItem.id;this.post({url:"/api/app/menu-search-setting",data:{sysMenuId:t,settingJson:JSON.stringify(e)}}).then(e=>{200===e.code&&this.$message.success("保存成功")}),console.log("保存配置数据",e)}}},xi,ki,!1,Ii,null,null,null);function Ii(e){for(let t in Ti)this[t]=Ti[t]}const Ei=function(){return Oi.exports}();Ei.install=function(e){e.component("ol-customSearch",Ei)};var Mi=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-dialog",{directives:[{name:"el-drag-dialog",rawName:"v-el-drag-dialog"}],attrs:{title:e.gettitle,visible:e.form.dialogFormVisible,"close-on-click-modal":!1,width:e.form.width||"45%","show-close":!0,top:"5vh"},on:{"update:visible":function(t){return e.$set(e.form,"dialogFormVisible",t)},close:function(t){return e.resetForm("form")},open:function(t){return e.handleOpen("form")}}},[r("el-form",{ref:"form",staticStyle:{display:"flex","flex-wrap":"wrap"},attrs:{model:e.form.value,rules:e.form.rules,"label-width":"130px"}},e._l(e.form.model,function(t,a){return r("el-form-item",{key:a,style:{width:e.width(t)},attrs:{label:t.label,prop:t.prop,required:t.required||!1}},["input"==t.type?r("el-input",{attrs:{placeholder:t.readonly?t.placeholder||t.label:`请输入${t.placeholder||t.label}`,clearable:t.clearable||!0,readonly:t.readonly||!1,disabled:t.disabled||!1,"show-password":t.showPassword||!1},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}}):e._e(),"number"==t.type?r("el-input-number",e._b({attrs:{placeholder:`请输入${t.placeholder||t.label}`,clearable:t.clearable||!0,readonly:t.readonly||!1,min:t.props.min||0},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-input-number",t.props||{},!1)):e._e(),"textarea"==t.type?r("el-input",{attrs:{type:"textarea",placeholder:`请输入${t.placeholder||t.label}`,autosize:t.autosize,readonly:t.readonly||!1,clearable:t.clearable||!0,maxlength:t.length||""},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}}):e._e(),"switch"==t.type?r("el-switch",{staticClass:"switchStyle",attrs:{"active-text":"启用","inactive-text":"禁用"},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}}):e._e(),"radio"==t.type?r("el-radio-group",{model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},e._l(t.child,function(t,a){return r("el-radio",{key:t.key,attrs:{label:t.key}},[e._v(e._s(t.value))])}),1):e._e(),"date"==t.type?r("el-date-picker",e._b({staticStyle:{width:"100%"},attrs:{placeholder:t.placeholder||"请选择日期",clearable:t.clearable||!0},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-date-picker",t.props||{type:"date"},!1)):e._e(),"treeSelect"==t.type?r("Tree-select",e._b({attrs:{options:t.child},on:{getValue:function(r){t.change&&t.change(e.form.value[t.prop])}},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"Tree-select",t.props||{},!1)):e._e(),"select"==t.type?r("el-select",e._g(e._b({attrs:{placeholder:`请选择${t.placeholder||t.label}`,clearable:!("clearable"in t)||t.clearable,disabled:t.disabled||!1},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-select",t.props||{},!1),Object.assign({},t.listeners||{},{change:function(){return e.selectChangeHandler(t,e.form.value[t.prop])}})),e._l(t.child,function(e,t){return r("el-option",{key:t,attrs:{label:e.value,value:e.key}})}),1):e._e(),"inputSpecial"==t.type?r("div",[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:t.layerprop}},[r("el-input",{attrs:{clearable:t.clearable||!0},model:{value:e.form.value[t.layerprop],callback:function(r){e.$set(e.form.value,t.layerprop,r)},expression:"form.value[item.layerprop]"}})],1)],1),r("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:3}},[e._v("- ")]),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:t.rowprop}},[r("el-input",{attrs:{clearable:t.clearable||!0},model:{value:e.form.value[t.rowprop],callback:function(r){e.$set(e.form.value,t.rowprop,r)},expression:"form.value[item.rowprop]"}})],1)],1),r("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:3}},[e._v("- ")]),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:t.columnprop}},[r("el-input",{attrs:{clearable:t.clearable||!0},model:{value:e.form.value[t.columnprop],callback:function(r){e.$set(e.form.value,t.columnprop,r)},expression:"form.value[item.columnprop]"}})],1)],1)],1):e._e(),"slot"==t.type?[e._t(t.name,null,{item:t})]:e._e()],2)}),1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){return e.resetForm("form")}}},[e._v("取 消")]),"get"!=e.form.requestData.methodsType?r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("确 定 ")]):e._e()],1)],1)],1)},Bi=[];const ji={};var Pi=p({name:"dialogTemplate",props:{form:Object},data:()=>({}),computed:{width:()=>function(e){return this.form.model.length>18&&"textarea"!=e.type?"25%":this.form.model.length>10&&this.form.model.length<=18&&"textarea"!=e.type?"calc(100% / 3)":this.form.model.length>6&&this.form.model.length<=10&&"textarea"!=e.type?"50%":"textarea"==e.type&&e.width?e.width:"100%"},gettitle(){return this.form.title&&!this.form.titleAdd?this.form.title:this.form.titleAdd?"add"==this.form.requestData.flage?"添加":"编辑":"提示"}},methods:{selectChangeHandler(e,t){e.change?e.change(this.form.value[e.prop]):e.listeners&&e.listeners.change?e.listeners.change(e,this.form.value[e.prop]):this.selectChange(e,this.form.value[e.prop])},selectChange(e,t){let r={obj:e,val:t};this.$emit("selectChange",r)},submitForm(e){console.log("form",this.form),this.$refs[e].validate(e=>{if(!e)return console.log("error submit!!"),!1;if(this.form.requestData.specialFn&&!this.form.value.businessType&&!this.form.value.boxModel)return this.$message.error("业务类型和空容器型号必填一个");if("zjDetail"==this.form.requestData.flage)return this.$emit("newRequest",this.form.value);if("update"==this.form.requestData.flage)this.put({url:this.form.requestData.url+"/"+this.form.value.id,data:this.form.value,isLoading:!0}).then(e=>{this.form.requestData.fn(),this.form.dialogFormVisible=!1,this.$message({type:"success",message:"操作成功!"})});else{if("autoArrange"==this.form.requestData.flage)return this.$emit("submitForm","form");let e=this.form.requestData.url;if(this.form.requestData.flages){let t=this.form.requestData.joinData,r="";for(let e=0;e<t.length;e++)r+=`${0==e?"?":"&"}${t[e]}=${this.form.value[t[e]]}`;e=this.form.requestData.url+r}if(this.form.requestData.methodsType&&"get"==this.form.requestData.methodsType)return this.get({url:e,data:this.form.value,isLoading:!0}).then(e=>{this.form.requestData.fn(),this.form.dialogFormVisible=!1,this.$message({type:"success",message:"操作成功!"})});this.post({url:e,data:this.form.value,isLoading:!0}).then(e=>{this.form.requestData.fn(),this.form.dialogFormVisible=!1,this.$message({type:"success",message:"操作成功!"})})}})},closeD(e){this.form.dialogFormVisible=!1},resetForm(e){if(this.$emit("close"),"autoArrange"==this.form.requestData.flage)return this.$emit("resetForm");this.$refs[e].resetFields(),this.form.dialogFormVisible=!1},handleOpen(e){this.$nextTick(()=>{this.$refs[e].clearValidate()})}}},Mi,Bi,!1,Ni,null,null,null);function Ni(e){for(let t in ji)this[t]=ji[t]}const _i=function(){return Pi.exports}();_i.install=function(e){e.component("ol-dialogTemplate ",_i)};const zi=(e,t)=>{const r={prop:e,label:t.description,type:"input",hidden:!1,listeners:()=>{},props:{}};if(t.enum||Array.isArray(t.enum)){r.type="select";const e=t.$$ref.split("/"),a=e[e.length-1],l=P(a);r.children=l.length?l:t.enum.map(e=>({key:e,value:e}))}else"date-time"===t.format?(r.type="date",r.props.valueFormat="yyyy-MM-dd",r.props.format="yyyy/MM/dd"):"boolean"==t.type?r.type="switch":"integer"==t.type?r.type="number":r.type="input";return r};var Vi=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",e._g(e._b({ref:"formRef",staticStyle:{display:"flex","flex-wrap":"wrap"},attrs:{model:e.form.value,rules:e.form.rules}},"el-form",Object.assign({labelWidth:"130px",disabled:!e.form.type},e.$attrs,e.form.attrs),!1),e.$listeners),[e._l(e.form.model,function(t,a){return[t.hidden?e._e():r("el-form-item",{key:a,style:{width:e.width(t)},attrs:{label:t.label,prop:t.prop,required:t.required||!1}},["input"==t.type?r("el-input",e._b({attrs:{placeholder:t.readonly?t.placeholder||t.label:`请输入${t.placeholder||t.label}`,clearable:t.clearable||!0,readonly:t.readonly||!1,"show-password":t.showPassword||!1},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-input",Object.assign({},t.props,{disabled:e.inputDisabled(t)}),!1)):"number"==t.type?r("el-input-number",e._b({attrs:{placeholder:`请输入${t.placeholder||t.label}`,clearable:t.clearable||!0,readonly:t.readonly||!1},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-input-number",Object.assign({min:0},t.props),!1)):"textarea"==t.type?r("el-input",{attrs:{type:"textarea",placeholder:`请输入${t.placeholder||t.label}`,autosize:t.autosize,readonly:t.readonly||!1,clearable:t.clearable||!0,maxlength:t.length||""},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}}):"switch"==t.type?r("el-switch",e._b({staticClass:"switchStyle",attrs:{"active-text":"启用","inactive-text":"禁用"},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-switch",t.props||{},!1)):"radio"==t.type?r("el-radio-group",{model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},e._l(t.children,function(t){return r("el-radio",{key:t.key,attrs:{label:t.key}},[e._v(e._s(t.value))])}),1):"date"==t.type?r("el-date-picker",e._g(e._b({staticStyle:{width:"100%"},attrs:{placeholder:t.placeholder||"请选择日期",clearable:t.clearable||!0},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-date-picker",Object.assign({type:"date"},t.props),!1),Object.assign({},t.listeners,{change:function(r){return e.changeHandle(r,t)}}))):"treeSelect"==t.type?r("Tree-select",e._b({attrs:{options:t.children},on:{getValue:function(r){t.change&&t.change(e.form.value[t.prop])}},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"Tree-select",t.props||{},!1)):"select"==t.type?r("el-select",e._g(e._b({attrs:{placeholder:`请选择${t.placeholder||t.label}`,clearable:!("clearable"in t)||t.clearable},nativeOn:{keyup:function(r){return function(r){return t.keyup({event:r,item:t,form:e.form.value})}.apply(null,arguments)}},model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"el-select",Object.assign({disabled:!!t.disabled},t.props||{}),!1),Object.assign({},t.listeners,{change:function(r){return e.selectChangeHandle(r,t)}})),e._l(t.children,function(e,t){return r("el-option",{key:t,attrs:{label:e.value,value:e.key}})}),1):"numberRange"===t.type?r("ol-number-range",e._g(e._b({model:{value:e.form.value[t.prop],callback:function(r){e.$set(e.form.value,t.prop,r)},expression:"form.value[item.prop]"}},"ol-number-range",t.props||{},!1),Object.assign({},t.listeners,{change:function(e){return t.listeners&&t.listeners.change&&t.listeners.change({item:t,val:e})}}))):"inputSpecial"==t.type?r("div",[r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:t.layerprop}},[r("el-input",{attrs:{clearable:t.clearable||!0},model:{value:e.form.value[t.layerprop],callback:function(r){e.$set(e.form.value,t.layerprop,r)},expression:"form.value[item.layerprop]"}})],1)],1),r("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:3}},[e._v("- ")]),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:t.rowprop}},[r("el-input",{attrs:{clearable:t.clearable||!0},model:{value:e.form.value[t.rowprop],callback:function(r){e.$set(e.form.value,t.rowprop,r)},expression:"form.value[item.rowprop]"}})],1)],1),r("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:3}},[e._v("- ")]),r("el-col",{attrs:{span:6}},[r("el-form-item",{attrs:{prop:t.columnprop}},[r("el-input",{attrs:{clearable:t.clearable||!0},model:{value:e.form.value[t.columnprop],callback:function(r){e.$set(e.form.value,t.columnprop,r)},expression:"form.value[item.columnprop]"}})],1)],1)],1):"slot"==t.type?[e._t(t.name,null,{item:t})]:r("div",{staticStyle:{color:"red"}},[e._v('"'+e._s(t.type)+'"类型暂不支持,请手动添加')])],2)]})],2),e.showBtn?r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.$slots.btnSlot?e._t("btnSlot",null,{form:e.form}):[r("el-button",{on:{click:e.onCancel}},[e._v("取消")]),e.form.type?r("el-button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v("确定")]):e._e()],e._t("btnAfterSlot")],2):e._e()],1)},Qi=[];const Li={name:"form",components:{OlNumberRange:F},props:{url:{type:String,default:""},form:Object,defaultValue:{type:Object,default:()=>({})},showBtn:{type:Boolean,default:!0}},data:()=>({formInit:{}}),computed:{width:()=>function(e){return this.form.model.length>18&&"textarea"!=e.type?"25%":this.form.model.length>10&&this.form.model.length<=18&&"textarea"!=e.type?"calc(100% / 3)":this.form.model.length>6&&this.form.model.length<=10&&"textarea"!=e.type?"50%":"textarea"==e.type&&e.width?e.width:"100%"}},watch:{"form.type":{handler(e){let t;switch(Object.keys(this.form).includes("type")||this.$set(this.form,"type",1),e){case 0:t="详情";break;case 1:t="新建";break;case 2:t="编辑";break;default:t="弹框"}this.form.title=t},immediate:!0}},created(){Object.keys(this.defaultValue)&&Object.keys(this.defaultValue).length&&Object.keys(this.defaultValue).forEach(e=>{form.value[e]=this.defaultValue[e]}),(e=>{const{url:t,form:r}=e;Sn().then(e=>{const[a,l]=((e,t)=>{try{const r=t.paths[e].post.requestBody.content["application/json"].schema;return[r,r.properties]}catch(r){try{const r=t.paths[e].put.requestBody.content["application/json"].schema;return[r,r.properties]}catch(a){const r=t.paths[e].get.responses[200].content["application/json"].schema;return[r,r.properties]}}})(t,e);if(!a||!l)return console.log("[36m[4mol插件-弹框数据异常");r.model.forEach(e=>{const t=l[e.prop];t&&(e={...zi(e.prop,t),...e})}),Object.keys(l).forEach(e=>{const t=l[e];if(!r.model.find(t=>t.prop===e)&&t.description){const a=zi(e,t);r.model.push(a)}}),a.required&&Array.isArray(a.required)&&a.required.forEach(e=>{Object.keys(r.rules).includes(e)||(r.rules[e]=[{required:!0,message:`${l[e].description}不能为空`}])})})})({url:this.url,form:this.form})},methods:{selectChangeHandle(e,t){t&&t.listeners&&t.listeners.change&&t.listeners.change(t,this.form.value[t.prop])||t.change?t.change(e):this.selectChange(t,e)},changeHandle(e,t){t&&t.listeners&&t.listeners.change&&t.listeners.change(t,this.form.value[t.prop])&&this.selectChange(t,e)},selectChange(e,t){const r={obj:e,val:t};this.$emit("selectChange",r)},inputDisabled(e){return!!e.props&&(!!Object.keys(e.props).includes("disabled")&&("function"==typeof e.props.disabled?e.props.disabled({item:e,form:this.form}):e.props.disabled))},validate(){return new Promise((e,t)=>{this.$refs.formRef.validate(r=>{r?e({valid:r,formData:this.form&&this.form.value||{}}):t("表单验证失败")})})},onCancel(){this.$refs.formRef.resetFields(),this.$refs.formRef.clearValidate(),this.$emit("onCancel")},onConfirm(){console.log("BaseForm数据",this.form),this.validate().then(()=>{this.$emit("onSubmit",{form:this.form,data:this.form.value})}).catch(e=>{console.log("校验失败",e)})}}},$i={};var Fi=p(Li,Vi,Qi,!1,Hi,"051116b4",null,null);function Hi(e){for(let t in $i)this[t]=$i[t]}const Ri=function(){return Fi.exports}();Ri.install=function(e){e.component("ol-form ",Ri)};var Wi=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"print-manage-container"},[r("div",{staticClass:"left-panel"},[r("div",{staticClass:"panel-title"},[e._v("菜单树")]),r("el-tree",{attrs:{data:e.menuTreeData,props:e.treeProps,"node-key":"id","current-node-key":e.currentMenuId,"default-expand-all":"","expand-on-click-node":!1,"highlight-current":""},on:{"node-click":e.handleNodeClick}})],1),r("div",{staticClass:"right-panel"},[r("div",{staticClass:"panel-header"},[r("span",{staticClass:"panel-title"},[e._v(e._s(e.currentMenuName)+" - 打印模板")]),r("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v(" 新增模板 ")])],1),r("div",{staticClass:"template-list"},[0===e.templateList.length?r("div",{staticClass:"empty-card",on:{click:e.handleAdd}},[r("i",{staticClass:"el-icon-plus add-icon"}),r("span",{staticClass:"add-text"},[e._v("点击添加模板")])]):e._e(),e._l(e.templateList,function(t){return r("div",{key:t.id,staticClass:"template-card"},[r("div",{staticClass:"card-header"},[r("i",{staticClass:"el-icon-document card-icon"}),r("span",{staticClass:"card-title"},[e._v(e._s(t.templeteName))])]),r("div",{staticClass:"card-body"},[r("div",{staticClass:"card-info"},[r("span",{staticClass:"info-label"},[e._v("数据源URL:")]),r("span",{staticClass:"info-value"},[e._v(e._s(t.sourceUrl||"无"))])]),r("div",{staticClass:"card-info"},[r("span",{staticClass:"info-label"},[e._v("备注:")]),r("span",{staticClass:"info-value"},[e._v(e._s(t.remark||"无"))])])]),r("div",{staticClass:"card-footer"},[r("el-button",{attrs:{type:"text",size:"small",icon:"el-icon-edit"},on:{click:function(r){return e.handleEdit(t)}}},[e._v(" 编辑 ")]),r("el-button",{staticClass:"delete-btn",attrs:{type:"text",size:"small",icon:"el-icon-delete"},on:{click:function(r){return e.handleDelete(t)}}},[e._v(" 删除 ")])],1)])})],2)]),r("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("el-form",{ref:"formRef",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"模板名称",prop:"templeteName"}},[r("el-input",{attrs:{placeholder:"请输入模板名称"},model:{value:e.form.templeteName,callback:function(t){e.$set(e.form,"templeteName",t)},expression:"form.templeteName"}})],1),r("el-form-item",{attrs:{label:"创建模板",prop:"templeteJson"}},[r("span",{staticStyle:{"margin-right":"10px"}},[e._v(e._s(e.form.templeteJson?"已创建":"未创建"))]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleCreateTemplate}},[e._v("创建模板")])],1),r("el-form-item",{attrs:{label:"数据源URL",prop:"sourceUrl"}},[r("el-input",{attrs:{placeholder:"请输入数据源URL"},on:{blur:function(t){e.form.sourceUrl=e.form.sourceUrl&&e.form.sourceUrl.trim()}},model:{value:e.form.sourceUrl,callback:function(t){e.$set(e.form,"sourceUrl",t)},expression:"form.sourceUrl"}})],1),r("el-form-item",{attrs:{label:"备注"}},[r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入备注"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("确定")])],1)],1)],1)])},Ui=[];const qi={};var Yi=p({name:"print-model",data:()=>({menuTreeData:[],treeProps:{label:"title",children:"child"},currentMenuId:null,currentMenuName:"全部",currentItem:{},templateList:[],dialogVisible:!1,dialogTitle:"新增模板",form:{id:null,templeteName:"",remark:"",templeteJson:"",sourceUrl:""},rules:{templeteName:[{required:!0,message:"请输入模板名称",trigger:"blur"}],templeteJson:[{required:!0,message:"请输入模板JSON",trigger:"blur"}]}}),mounted(){this.initMenuTree()},methods:{initMenuTree(){const e=JSON.parse(localStorage.getItem("wms")||"{}").SET_MENUS||[];this.menuTreeData=this.buildTreeData(e);const t=this.findFirstMenuNode(this.menuTreeData);t&&(this.currentMenuId=t.id,this.currentMenuName=t.title,this.currentItem=t,this.loadTemplates(t.id))},findFirstMenuNode(e){if(!e||0===e.length)return null;for(const t of e){if(t.child&&t.child.length>0){const e=this.findFirstMenuNode(t.child);if(e)return e}return t}return null},buildTreeData(e){return e.filter(e=>(e.child&&e.child.length>0&&(e.child=this.buildTreeData(e.child)),0===e.type))},handleNodeClick(e){this.currentMenuId=e.id,this.currentMenuName=e.title,this.currentItem=e,this.loadTemplates(e.id)},async loadTemplates(e){var t;try{const r=await this.get({url:"/api/app/print-templete/page-list",data:{MenuId:e,Page:1,MaxResultCount:1e3}});if(200!==r.code)return;this.templateList=(null==(t=r.result)?void 0:t.items)||[]}catch(r){console.error("加载模板列表失败:",r)}},handleAdd(){this.dialogTitle="新增模板",this.form={id:null,templeteName:"",remark:"",templeteJson:"",sourceUrl:""},this.dialogVisible=!0,this.$nextTick(()=>{this.$refs.formRef&&this.$refs.formRef.clearValidate()})},handleEdit(e){this.dialogTitle="编辑模板",this.form={id:e.id,templeteName:e.templeteName,remark:e.remark,templeteJson:e.templeteJson,sourceUrl:e.sourceUrl||""},this.dialogVisible=!0},async handleDelete(e){this.$confirm("确认删除该模板吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{try{await this.del({url:`/api/app/print-templete/print-templete/${e.id}`}),this.$message.success("删除成功"),this.loadTemplates(this.currentMenuId)}catch(t){console.error("删除失败:",t)}}).catch(()=>{})},async handleSubmit(){this.$refs.formRef.validate(async e=>{if(e)try{this.form.id?(await this.put({url:"/api/app/print-templete/print-templete",data:{id:this.form.id,templeteName:this.form.templeteName,templeteJson:this.form.templeteJson,sourceUrl:this.form.sourceUrl}}),this.$message.success("编辑成功")):(await this.post({url:"/api/app/print-templete/print-templete",data:{menuId:this.currentMenuId,templeteName:this.form.templeteName,templeteJson:this.form.templeteJson,sourceUrl:this.form.sourceUrl}}),this.$message.success("新增成功")),this.dialogVisible=!1,this.loadTemplates(this.currentMenuId)}catch(t){console.error("提交失败:",t)}})},handleCreateTemplate(){let e={};if(this.form.templeteJson)try{e=JSON.parse(this.form.templeteJson)}catch(t){console.error("解析模板JSON失败:",t)}this.$hiprint({defaultTemplate:e,onSubmit:e=>{this.form.templeteJson=JSON.stringify(e),console.log("保存的结果",this.form),this.$message.success("模板创建成功!")}})}}},Wi,Ui,!1,Gi,"645d66fe",null,null);function Gi(e){for(let t in qi)this[t]=qi[t]}const Zi=function(){return Yi.exports}();Zi.install=function(e){e.component("ol-print-model",Zi)};const Ji=o.hiprint||(null==(l=o.default)?void 0:l.hiprint)||o.default;var Xi=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"paper-selector"},[r("el-button-group",[e._l(e.paperTypes,function(t,a){return r("el-button",{key:a,attrs:{type:e.curPaperType===a?"primary":"default",size:"small"},on:{click:function(r){return e.setPaper(a,t)}}},[e._v(" "+e._s(a)+" ")])}),r("el-button",{attrs:{type:"other"===e.curPaperType?"primary":"default",size:"small"},on:{click:e.showPaperPop}},[e._v(" 自定义纸张 ")])],2),r("el-dialog",{attrs:{title:"设置纸张宽高(mm)",visible:e.paperPopVisible,width:"400px","append-to-body":!0,"z-index":3001},on:{"update:visible":function(t){e.paperPopVisible=t}}},[r("el-form",{attrs:{"label-width":"80px"}},[r("el-form-item",{attrs:{label:"纸张宽度"}},[r("el-input",{attrs:{type:"number",placeholder:"宽(mm)"},model:{value:e.paperWidth,callback:function(t){e.paperWidth=t},expression:"paperWidth"}})],1),r("el-form-item",{attrs:{label:"纸张高度"}},[r("el-input",{attrs:{type:"number",placeholder:"高(mm)"},model:{value:e.paperHeight,callback:function(t){e.paperHeight=t},expression:"paperHeight"}})],1)],1),r("span",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.hidePaperPop}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.setPaperOther}},[e._v("确定")])],1)],1)],1)},Ki=[];const en={};var tn=p({name:"PaperSelector",props:{hiprintTemplate:{type:Object,required:!0}},data:()=>({curPaper:{type:"A4",width:210,height:296.6},paperTypes:{A3:{width:420,height:296.6},A4:{width:210,height:296.6},A5:{width:210,height:147.6},B3:{width:500,height:352.6},B4:{width:250,height:352.6},B5:{width:250,height:175.6}},paperPopVisible:!1,paperWidth:"220",paperHeight:"80"}),computed:{curPaperType(){let e="other",t=this.paperTypes;for(const r in t){let a=t[r],{width:l,height:i}=this.curPaper;a.width===l&&a.height===i&&(e=r)}return e}},methods:{showPaperPop(){this.paperPopVisible=!0},hidePaperPop(){this.paperPopVisible=!1},setPaper(e,t){try{Object.keys(this.paperTypes).includes(e)?(this.curPaper={type:e,width:t.width,height:t.height},this.hiprintTemplate.setPaper(t.width,t.height)):(this.curPaper={type:"other",width:t.width,height:t.height},this.hiprintTemplate.setPaper(t.width,t.height)),this.$emit("change",this.curPaper)}catch(r){this.$message.error(`操作失败: ${r}`)}},setPaperOther(){let e={};e.width=Number(this.paperWidth),e.height=Number(this.paperHeight),this.paperPopVisible=!1,this.setPaper("other",e)}}},Xi,Ki,!1,rn,"2c749e94",null,null);function rn(e){for(let t in en)this[t]=en[t]}const an=function(){return tn.exports}();var ln=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"print-dialog-overlay"},[r("div",{staticClass:"print-dialog"},[r("div",{staticClass:"print-dialog-header"},[r("span",[e._v("打印设计器")]),r("i",{staticClass:"iconfont close-btn",on:{click:e.close}},[e._v("x")])]),r("div",{staticClass:"print-dialog-body"},[r("div",{staticClass:"header-box",staticStyle:{"margin-bottom":"10px"}},[r("paper-selector",{ref:"paperSelector",attrs:{"hiprint-template":e.hiprintTemplate}}),r("div",[e._t("default",null,{hiprintTemplate:e.hiprintTemplate,print:e.print,clearPaper:e.clearPaper,exportJson:e.exportJson}),r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.print}},[r("i",{staticClass:"iconfont sv-printer"}),e._v(" 打印 ")]),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"danger",size:"small"},on:{click:e.clearPaper}},[r("i",{staticClass:"iconfont sv-clear"}),e._v(" 清空纸张 ")]),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"success",size:"small"},on:{click:e.exportJson}},[r("i",{staticClass:"iconfont sv-export"}),e._v(" 保存 ")])],2)],1),e._m(0)])])])},nn=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"main flex-row",staticStyle:{height:"87vh"}},[t("div",{staticClass:"flex-2 left flex-col"},[t("div",{staticClass:"container rect-printElement-types",attrs:{id:"provider-container1"}})]),t("div",{staticClass:"flex-5 center"},[t("div",{attrs:{id:"hiprint-printTemplate"}})]),t("div",{staticClass:"flex-2 right"},[t("div",{attrs:{id:"PrintElementOptionSetting"}})])])}];const on=o.hiprint||(null==(i=o.default)?void 0:i.hiprint)||o.default,sn={name:"print",components:{PaperSelector:an},props:{printData:{type:Object,default:()=>{}},onPrintData:{type:Function,default:null},defaultTemplate:{type:Object,default:()=>{}},grid:{type:Boolean,default:!1},paperSize:{type:Object,default:()=>({width:210,height:296.6})}},data:()=>({hiprintTemplate:{}}),created(){on.init({providers:[{addElementTypes:e=>{e.removePrintElementTypes("providerModule1"),e.addPrintElementTypes("providerModule1",[new Ji.PrintElementTypeGroup("常规",[{tid:"providerModule2.customText",title:"文本",customText:"自定义文本",custom:!0,type:"text",options:{field:"name",testData:"内容"}},{tid:"providerModule2.longText",title:"长文本",type:"longText",options:{field:"test.longText",width:200,testData:"长文本分页/不分页测试"}},{tid:"providerModule1.type",title:"纯文本",data:"纯文本",type:"text",options:{testData:"纯文本",height:16,fontSize:15,fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"providerModule1.platform",title:"标题",data:"标题",type:"text",options:{field:"platform",testData:"平台名称",height:17,fontSize:16.5,fontWeight:"700",textAlign:"center",hideTitle:!0}},{tid:"providerModule2.table",title:"表格",type:"table",options:{field:"table",fields:[]},columns:[[{title:"名称",align:"center",field:"name"},{title:"性别",align:"center",field:"gender"},{title:"数量",align:"center",field:"count"},{title:"金额",align:"center",field:"amount"}]]},{tid:"providerModule1.barcode",title:"条形码",data:"XS888888888",type:"text",options:{field:"barcode",testData:"XS888888888",height:32,fontSize:12,lineHeight:18,textAlign:"left",textType:"barcode"}},{tid:"providerModule1.qrcode",title:"二维码",data:"XS888888888",type:"text",options:{field:"qrcode",testData:"XS888888888",height:32,fontSize:12,lineHeight:18,textType:"qrcode"}},{tid:"providerModule1.image",title:"图片",data:"",type:"image"}]),new Ji.PrintElementTypeGroup("定制",[{tid:"providerModule1.khname",title:"客户名称",data:"高级客户",type:"text",options:{field:"name",testData:"高级客户",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"providerModule1.tel",title:"客户电话",data:"18888888888",type:"text",options:{field:"tel",testData:"18888888888",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"providerModule1.order",title:"订单编号",data:"XS888888888",type:"text",options:{field:"order",testData:"XS888888888",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}},{tid:"providerModule1.date",title:"业务日期",data:"2020-01-01",type:"text",options:{field:"date",testData:"2020-01-01",height:16,fontSize:6.75,fontWeight:"700",textAlign:"left",textContentVerticalAlign:"middle"}}]),new Ji.PrintElementTypeGroup("辅助",[{tid:"providerModule2.hline",title:"横线",type:"hline"},{tid:"providerModule2.vline",title:"竖线",type:"vline"},{tid:"providerModule2.rect",title:"矩形",type:"rect"},{tid:"providerModule2.oval",title:"椭圆",type:"oval"}])])}}]})},mounted(){this.buildLeftElement(),this.buildDesigner()},methods:{buildLeftElement(){$("#provider-container1").empty(),on.PrintElementTypeManager.build($("#provider-container1"),"providerModule1")},async buildDesigner(){$("#hiprint-printTemplate").empty(),this.hiprintTemplate=new on.PrintTemplate({template:this.defaultTemplate,settingContainer:"#PrintElementOptionSetting",history:!0,onDataChanged:(e,t)=>{console.log(e),console.log(t)}}),this.$refs.paperSelector&&(this.$refs.paperSelector.curPaper=this.paperSize),this.hiprintTemplate.design("#hiprint-printTemplate",{grid:this.grid})},async print(){let e=this.printData;if(this.onPrintData)try{const t=await this.onPrintData(this.printData);t?e=t:console.error("onPrintData 执行失败,返回数据为空")}catch(r){console.error("onPrintData 执行失败:",r)}let t={};t.curPaper=this.paperSize,this.hiprintTemplate.print(e,{leftOffset:-1,topOffset:-1},t)},exportJson(){const e=this.hiprintTemplate.getJson(),t=JSON.stringify(e,null,2);new Blob([t],{type:"application/json"}),console.log("保存",JSON.parse(t)),this.$emit("submit",JSON.parse(t)),this.close()},clearPaper(){this.hiprintTemplate.clear()},close(){this.$destroy(),this.$el.remove(),this.$emit("close")}}},cn={};var pn=p(sn,ln,nn,!1,un,"7a502882",null,null);function un(e){for(let t in cn)this[t]=cn[t]}const dn=function(){return pn.exports}();dn.install=function(e){e.component("ol-print",dn)};let hn=null,mn=null;const fn={install(e){const t=function(t){const{printData:r,onPrintData:a,defaultTemplate:l,onSubmit:i,grid:n}=t||{};hn&&(hn.$destroy(),mn&&mn.parentNode&&mn.parentNode.removeChild(mn),hn=null,mn=null),mn=document.createElement("div"),document.body.appendChild(mn);const o=e.extend(dn),s={grid:n};return r&&(s.printData=r),a&&(s.onPrintData=a),l&&(s.defaultTemplate=l),hn=new o({propsData:s}),i&&"function"==typeof i&&hn.$on("submit",e=>{i(e)}),hn.$mount(mn),hn};e.prototype.$hiprint=t,e.prototype.$hiprint.print=function(e){const r=t(e);r.print(),r.$nextTick(()=>{r.close()})}}},gn=()=>{const e="[1m";console.log(`\n[36m${e}${"⭐".repeat(3)}[32m${e}[4mol-base-components swagger服务加载成功! ✔️\n`)},bn="SwaggerDB",yn=1,vn="swaggerDataStore";function An(){return new Promise((e,t)=>{const r=indexedDB.open(bn,yn);r.onupgradeneeded=e=>{e.target.result.createObjectStore(vn)},r.onsuccess=t=>{e(t.target.result)},r.onerror=e=>{t(e.target.error)}})}function Sn(){return An().then(e=>new Promise((t,r)=>{const a=e.transaction(vn,"readonly").objectStore(vn).get("swaggerData");a.onsuccess=e=>{t(e.target.result)},a.onerror=e=>{r(e.target.error)}}))}function wn(){const e=document.getElementById("loading");e&&document.body.removeChild(e)}const Cn=[j,k,Di,Ei,_i,Ri,F,dn,Zi];e.Dialog=_i,e.Hiprint=fn,e.OlCustomSearch=Ei,e.OlDropdownPrint=k,e.OlForm=Ri,e.OlNumberRange=F,e.OlPrint=dn,e.OlPrintModel=Zi,e.OlSearch=Di,e.OlTable=j,e.default=async function(e,t){Cn.map(t=>{e.component(`ol-${t.name}`,t)}),e.prototype.$olBaseConfig=t||{},(()=>{const e="[36m",t="[1m";console.log(`\n${e}${t}${"⭐".repeat(3)}[32m${t}[4mol-base-components 插件加载成功! ✔️\n${e}感谢使用我们的组件库,期待你的精彩应用![0m\n`)})()},e.getData=Sn,e.swaggerInstall=async e=>{if(!e)return Promise.reject(new Error("Swagger URL is required."));const t=await Sn();if(t)return gn(),Promise.resolve(t);try{!function(){const e=document.createElement("style");e.innerHTML="\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n #loading-spinner {\n width: 50px; /* 调整大小 */\n height: 50px; /* 调整大小 */\n border: 8px solid rgba(255, 255, 255, 0.3);\n border-top: 8px solid #a8c8e0; /* 与背景色协调的颜色 */\n border-radius: 50%;\n animation: spin 1s linear infinite; /* 添加旋转动画 */\n margin-bottom: 10px; /* 图标和文本之间的间距 */\n }\n #loading {\n background: linear-gradient(135deg, #a8c8e0, #f0f4f8); /* 更柔和的渐变背景 */\n color: #333; /* 文本颜色 */\n z-index:9999999;\n }\n ",document.head.appendChild(e);const t=document.createElement("div");t.id="loading",t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.display="flex",t.style.flexDirection="column",t.style.justifyContent="center",t.style.alignItems="center";const r=document.createElement("div");r.id="loading-spinner",t.appendChild(r);const a=document.createElement("div");a.innerText="初始化数据中,请耐心等待...",t.appendChild(a),document.body.appendChild(t)}();const t=(await a(e)).spec;return await(r=t,An().then(e=>new Promise((t,a)=>{const l=e.transaction(vn,"readwrite");l.objectStore(vn).put(r,"swaggerData"),l.oncomplete=()=>t(),l.onerror=e=>a(e.target.error)}))),wn(),gn(),Promise.resolve(t)}catch(l){return wn(),console.error("获取 Swagger 数据失败:",l),Promise.reject(l)}var r},e.swaggerUnload=async function(){await An().then(e=>new Promise((t,r)=>{const a=e.transaction(vn,"readwrite");a.objectStore(vn).delete("swaggerData"),a.oncomplete=()=>t(),a.onerror=e=>r(e.target.error)}))},Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.Print_box[data-v-1c21c016]{width:100%}.Print_hader[data-v-1c21c016]{text-align:center;font-size:30px;font-weight:500}.Print_body_QR[data-v-1c21c016]{float:right}.Print_body_label[data-v-1c21c016]{display:flex;justify-content:space-between}[data-v-1c21c016] .active{font-weight:800!important}.print-template-selector[data-v-2de53864]{display:inline-block}.table_list_fix[data-v-5e84c9a6]{overflow:auto;flex:1;display:flex;flex-direction:column;justify-content:space-between;padding:10px;gap:10px}.table_list_fix[data-v-5e84c9a6] .el-table td{padding:0}.table_list_fix[data-v-5e84c9a6] .el-table td div{line-height:28px;font-size:12px}.table_list_fix[data-v-5e84c9a6] .el-table th{padding:0;background:#f5f7fa}.table_list_fix[data-v-5e84c9a6] .el-table th div{line-height:28px;color:#909399;font-size:12px}.table_list_fix .btn-operates[data-v-5e84c9a6]{margin:10px 0 10px 15px}.table_list_fix .btn-operates[data-v-5e84c9a6] a{color:#fff;text-decoration:none;display:inline-block;margin:0 5px}.table_list_fix .btn-operates[data-v-5e84c9a6] a ::v-deep .el-button{width:100%;padding:7px;font-size:13px}.table-header[data-v-5e84c9a6]{padding-top:10px}.table-header .table-header_button[data-v-5e84c9a6]{text-align:right;float:right;margin-bottom:12px;line-height:40px}.newjump[data-v-5e84c9a6]{text-decoration:none;color:#1e90ff}.tablebox[data-v-5e84c9a6]{box-sizing:border-box;flex:1;overflow:auto}[data-v-5e84c9a6] .el-table__body tr.current-row>td{background-color:#1890ff!important;color:#fff}[data-v-5e84c9a6] .redrow{background:#fde6e6!important}.btnbox[data-v-5e84c9a6]{width:100%;display:flex;align-items:center;justify-content:space-between}.btnbox .upload-demo[data-v-5e84c9a6]{display:-webkit-inline-box;margin-left:10px}.btnbox .el-form-item[data-v-5e84c9a6]{margin-bottom:0}.layui-table-tool-self[data-v-5e84c9a6]{display:block;width:26px;height:26px;padding:5px;line-height:16px;text-align:center;color:#333;border:1px solid #ccc;cursor:pointer}.checkbox[data-v-5e84c9a6]{display:block}.operate-group[data-v-5e84c9a6]{display:flex;align-items:center;justify-content:space-around}.toolbox[data-v-5e84c9a6]{display:flex;gap:10px}.ol-number-range[data-v-653fc76e]{position:relative;display:inline-flex;align-items:center;width:100%;background-color:#fff;border:1px solid #dcdfe6;border-radius:4px;transition:border-color .2s cubic-bezier(.645,.045,.355,1);padding:0 30px 0 10px;box-sizing:border-box;height:32px;line-height:32px}.ol-number-range[data-v-653fc76e]:hover{border-color:#c0c4cc}.ol-number-range[data-v-653fc76e]:focus-within{border-color:#409eff;outline:none}.ol-number-range .range-input[data-v-653fc76e]{flex:1;border:none;background:transparent;padding:0;height:100%;line-height:inherit}.ol-number-range .range-input[data-v-653fc76e] .el-input__inner{border:none;padding:0;height:100%;line-height:inherit;background:transparent;text-align:center;font-size:14px;color:#606266}.ol-number-range .range-input[data-v-653fc76e] .el-input__inner:focus{border:none;outline:none}.ol-number-range .range-input[data-v-653fc76e] .el-input__inner::placeholder{color:#c0c4cc}.ol-number-range .range-input[data-v-653fc76e] .el-input__inner::-webkit-outer-spin-button,.ol-number-range .range-input[data-v-653fc76e] .el-input__inner::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.ol-number-range .range-input[data-v-653fc76e] .el-input__inner[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}.ol-number-range .start-input[data-v-653fc76e] .el-input__inner,.ol-number-range .end-input[data-v-653fc76e] .el-input__inner{text-align:center}.ol-number-range .range-separator[data-v-653fc76e]{flex-shrink:0;padding:0 8px;color:#c0c4cc;font-size:14px;line-height:1}.ol-number-range .clear-icon[data-v-653fc76e]{position:absolute;right:8px;top:50%;transform:translateY(-50%);cursor:pointer;color:#c0c4cc;font-size:14px;transition:color .2s;z-index:1}.ol-number-range .clear-icon[data-v-653fc76e]:hover{color:#909399}[data-v-653fc76e] .el-form-item--small .ol-number-range{padding:0 30px 0 10px;height:28px;line-height:28px}[data-v-653fc76e] .el-form-item--small .ol-number-range .range-input{height:28px;line-height:28px}[data-v-653fc76e] .el-form-item--small .ol-number-range .range-input ::v-deep .el-input__inner{height:28px;line-height:28px;font-size:13px}.ol-number-range.is-disabled[data-v-653fc76e]{background-color:#f5f7fa;border-color:#e4e7ed;cursor:not-allowed}.ol-number-range.is-disabled .range-input[data-v-653fc76e] .el-input__inner{background-color:#f5f7fa;color:#c0c4cc;cursor:not-allowed}.ol-number-range.is-disabled .clear-icon[data-v-653fc76e]{display:none}.search-config-container[data-v-5652e548]{padding-bottom:10px}.config-header[data-v-5652e548]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.option-item[data-v-5652e548]{display:flex;align-items:center;margin-bottom:10px}.gray-text[data-v-5652e548]{color:#909399;font-size:12px}.sort-handle[data-v-5652e548]{color:#909399;transition:color .3s}.sort-handle[data-v-5652e548]:hover{color:#409eff}.sortable-ghost[data-v-5652e548]{opacity:.4;background-color:#f5f7fa}.sortable-drag[data-v-5652e548]{opacity:1;background-color:#fff;box-shadow:0 2px 12px #0000001a}.dialog-footer[data-v-5652e548]{display:flex;align-items:center;justify-content:center}.options-config[data-v-5652e548]{max-height:400px;overflow-y:auto}.formSearch .el-form-item[data-v-2059874a]{margin-right:2px;margin-bottom:5px}.formSearch .el-form-item[data-v-2059874a] .el-form-item__label{width:37%!important;padding:0 5px 0 0;word-break:keep-all;white-space:nowrap;font-size:13px}.formSearch .el-form-item[data-v-2059874a] .el-form-item__content{width:63%!important}.formSearch[data-v-2059874a] .el-select{width:100%!important}.formSearch .formSearchBtnArrowUp[data-v-2059874a] .el-form-item__content{width:130px!important}.formSearchArrowUp .el-form[data-v-2059874a]{position:relative}.formSearchArrowUp .formSearchBtnArrowDown[data-v-2059874a]{position:absolute;top:0;width:15%;left:81.5%}.formSearchArrowUp .formSearchBtnArrowDown[data-v-2059874a] .el-form-item__content{width:100%!important}.formSearchArrowUp .formSearchBtnArrowDown[data-v-2059874a] .el-form-item__content ::v-deep .el-button{margin-left:0;font-size:13px;padding:5px 10px}.table-header[data-v-2059874a]{padding-top:10px;border-bottom:1px #ccc solid;min-height:49px}.table-header .table-header-item .el-form-item[data-v-2059874a]{width:100%;display:flex;margin-bottom:12px}.table-header .table-header-item .el-form-item .el-form-item__content[data-v-2059874a],.table-header .table-header-item .el-form-item .el-select[data-v-2059874a]{width:100%}.transitionGroup[data-v-2059874a]{display:flex;flex-wrap:wrap}.transitionGroup .el-form-item[data-v-2059874a],.formSearchBtnArrowDowns .el-form-item[data-v-2059874a]{width:20%}.formSearchBtnArrowUps[data-v-2059874a]{display:inline}.list-enter-active[data-v-2059874a],.list-leave-active[data-v-2059874a]{transition:all 1s}.list-enter[data-v-2059874a]{opacity:0;transform:translate(-30px)}.list-leave-to[data-v-2059874a]{opacity:0;transform:translate(30px)}[data-v-2059874a] .el-select-dropdown__item.hover,[data-v-2059874a] .el-select-dropdown__item:hover{background-color:#eff7ff!important}[data-v-2059874a] .el-input.is-disabled ::v-deep .el-input__inner{background-color:#eceff8;border-color:#eceff8}[data-v-2059874a] .el-input--small ::v-deep .el-input__inner{height:28px;line-height:28px}.fromBtn[data-v-2059874a] .el-button{font-size:12px}.btnbox[data-v-2059874a]{padding:10px}.btnbox .upload-demo[data-v-2059874a]{display:-webkit-inline-box;margin-left:10px}[data-v-2059874a] .numrule input::-webkit-outer-spin-button,[data-v-2059874a] .numrule input::-webkit-inner-spin-button{-webkit-appearance:none!important}[data-v-2059874a] .numrule input[type=number]{-moz-appearance:textfield!important}[data-v-2059874a] .numrule .el-input__inner{line-height:1px!important}.el-dialog__header{background-color:#008cff!important;padding:10px 15px;text-align:left}.el-dialog__header .el-dialog__title,.el-dialog__header .el-dialog__headerbtn i{color:#fff}.el-dialog__body{padding:25px 20px}.el-dialog__close{cursor:pointer!important;font-size:20px!important;position:relative!important;top:-11px!important;color:#fff!important;border-radius:50%!important;text-align:center!important;height:30px!important;width:30px!important;line-height:30px!important;vertical-align:middle!important;right:-13px!important}.el-select,.el-input-number{width:100%!important}.activeWidth{width:50%!important}.switchStyle .el-switch__label{position:absolute;display:none;color:#fff}.switchStyle .el-switch__label--left{z-index:9;left:20px}.switchStyle .el-switch__label--right{z-index:9}.switchStyle .el-switch__label.is-active{display:block}.switchStyle.el-switch .el-switch__core,.el-switch .el-switch__label{width:60px!important}.dialog-footer[data-v-051116b4]{display:flex;justify-content:flex-end}.print-manage-container[data-v-645d66fe]{display:flex;height:calc(100vh - 84px);background:#f5f5f5;padding:20px;gap:20px}.left-panel[data-v-645d66fe]{width:280px;background:#fff;border-radius:4px;padding:20px;box-shadow:0 2px 12px #0000001a;overflow-y:auto}.panel-title[data-v-645d66fe]{font-size:16px;font-weight:500;color:#303133}.custom-tree-node[data-v-645d66fe]{flex:1;display:flex;align-items:center;justify-content:space-between;font-size:14px;padding-right:8px}.tree-icon[data-v-645d66fe]{margin-right:8px;font-size:16px;color:#909399}.tree-label[data-v-645d66fe]{color:#606266}.right-panel[data-v-645d66fe]{flex:1;background:#fff;border-radius:4px;padding:20px;box-shadow:0 2px 12px #0000001a;display:flex;flex-direction:column}.panel-header[data-v-645d66fe]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid #ebeef5}.panel-header .panel-title[data-v-645d66fe]{font-size:16px;font-weight:500;color:#303133}.template-list[data-v-645d66fe]{overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px;padding:10px}.empty-card[data-v-645d66fe]{width:100%;height:200px;border:2px dashed #dcdfe6;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .3s;grid-column:1 / -1}.empty-card[data-v-645d66fe]:hover{border-color:#409eff;background:#f0f9ff}.add-icon[data-v-645d66fe]{font-size:48px;color:#c0c4cc;margin-bottom:10px;transition:all .3s}.empty-card:hover .add-icon[data-v-645d66fe]{color:#409eff;transform:scale(1.1)}.add-text[data-v-645d66fe]{font-size:14px;color:#909399}.template-card[data-v-645d66fe]{background:#fff;border:1px solid #ebeef5;border-radius:8px;padding:20px;transition:all .3s;box-shadow:0 2px 4px #0000000d}.template-card[data-v-645d66fe]:hover{box-shadow:0 4px 12px #00000026;transform:translateY(-2px)}.card-header[data-v-645d66fe]{display:flex;align-items:center;margin-bottom:15px;padding-bottom:10px;border-bottom:1px solid #f0f0f0}.card-icon[data-v-645d66fe]{font-size:24px;color:#409eff;margin-right:10px}.card-title[data-v-645d66fe]{font-size:16px;font-weight:500;color:#303133;flex:1}.card-body[data-v-645d66fe]{margin-bottom:15px}.card-info[data-v-645d66fe]{display:flex;align-items:center;margin-bottom:10px;font-size:14px}.info-label[data-v-645d66fe]{color:#909399;margin-right:5px}.info-value[data-v-645d66fe]{color:#606266;flex:1;word-break:break-all}.card-footer[data-v-645d66fe]{display:flex;justify-content:flex-end;gap:10px;padding-top:10px;border-top:1px solid #f0f0f0}.delete-btn[data-v-645d66fe],.delete-btn[data-v-645d66fe]:hover{color:#f56c6c}.dialog-footer[data-v-645d66fe]{display:flex;justify-content:flex-end;gap:10px}[data-v-645d66fe]::-webkit-scrollbar{width:6px;height:6px}[data-v-645d66fe]::-webkit-scrollbar-thumb{background:#dcdfe6;border-radius:3px}[data-v-645d66fe]::-webkit-scrollbar-track{background:#f5f5f5}.paper-selector[data-v-2c749e94]{display:inline-block}.flex-row[data-v-26cff75a]{display:flex}.flex-col[data-v-26cff75a]{display:flex;flex-direction:column}.flex-wrap[data-v-26cff75a]{flex-wrap:wrap}.align-center[data-v-26cff75a]{align-items:center}.justify-center[data-v-26cff75a]{justify-content:center}.flex-1[data-v-26cff75a]{flex:1}.flex-2[data-v-26cff75a]{flex:2}.flex-3[data-v-26cff75a]{flex:3}.flex-4[data-v-26cff75a]{flex:4}.flex-5[data-v-26cff75a]{flex:5}.ml-10[data-v-26cff75a]{margin-left:10px}.mr-10[data-v-26cff75a]{margin-right:10px}.mt-10[data-v-26cff75a]{margin-top:10px}.mb-10[data-v-26cff75a]{margin-bottom:10px}button[data-v-26cff75a]{padding:10px;min-width:40px;color:#fff;opacity:.9;cursor:pointer;border-width:0;border:1px solid #d9d9d9}button[data-v-26cff75a]:hover{opacity:1}button i[data-v-26cff75a]{font-size:16px!important}.circle[data-v-26cff75a],.circle-4[data-v-26cff75a]{border-radius:4px!important}.circle-10[data-v-26cff75a]{border-radius:10px!important}.primary[data-v-26cff75a]{background:purple}.info[data-v-26cff75a]{color:#000;background:none}.info[data-v-26cff75a]:hover{color:purple;border-color:purple}.secondary[data-v-26cff75a]{background:#1976d2}.warning[data-v-26cff75a]{background:#d32f2f}.modal[data-v-26cff75a]{padding:0;margin:0}.modal .mask[data-v-26cff75a]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;height:100%;background-color:#00000073}.modal .wrap[data-v-26cff75a]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;overflow:auto;background-color:#00000073;outline:0}.modal .wrap .box[data-v-26cff75a]{position:relative;margin:10% auto;width:40%;background:#fff;border-radius:4px;z-index:1001;box-shadow:0 5px 10px #0003;transition:all .3s ease}.modal-box__header[data-v-26cff75a]{padding:10px 14px;border-bottom:1px solid #e9e9e9}.modal-box__footer[data-v-26cff75a]{text-align:end}.modal-box__footer button[data-v-26cff75a]{min-width:100px}.modal-box__footer button[data-v-26cff75a]:not(:last-child){margin-right:10px}.hiprint-headerLine[data-v-26cff75a],.hiprint-footerLine[data-v-26cff75a]{border-color:purple!important}.hiprint-headerLine[data-v-26cff75a]:hover,.hiprint-footerLine[data-v-26cff75a]:hover{border-top:3px dashed purple!important}.hiprint-headerLine[data-v-26cff75a]:hover:before{content:"页眉线";left:calc(50% - 18px);position:relative;background:#ffff;top:-14px;color:purple;font-size:12px}.hiprint-footerLine[data-v-26cff75a]:hover:before{content:"页脚线";left:calc(50% - 18px);position:relative;color:purple;background:#ffff;top:-14px;font-size:12px}.rect-printElement-types .hiprint-printElement-type>li>ul>li>a{color:#000!important;display:flex;align-items:center;justify-content:center}.custom-style-types .hiprint-printElement-type{display:block}.custom-style-types .hiprint-printElement-type{padding:0;list-style:none}.custom-style-types .hiprint-printElement-type>li>.title{display:block;padding:4px 0;color:#003ae6;clear:both}.custom-style-types .hiprint-printElement-type>li>ul{padding:0;display:block;list-style:none}.custom-style-types .hiprint-printElement-type>li>ul>li{display:block;width:50%;float:left;max-width:100px}.custom-style-types .hiprint-printElement-type>li>ul>li>a{padding:12px 6px;color:#1296db;text-decoration:none;background:#fff;border:1px solid #ddd;margin-right:5px;width:95%;max-width:100px;display:inline-block;text-align:center;margin-bottom:7px;box-sizing:border-box;border:1px solid rgba(0,0,0,.2);border-radius:4px;box-shadow:0 1px #00000026}#hiwprint_iframe{position:fixed!important;top:-9999px!important;left:-9999px!important;width:0!important;height:0!important;visibility:hidden!important;opacity:0!important}.api[data-v-26cff75a]{background:#00acc1}.auto[data-v-26cff75a]{width:auto!important}.paper[data-v-26cff75a]{margin-right:10px}.paper button[data-v-26cff75a]:not(class*="auto"){width:60px!important}.paper button+button[data-v-26cff75a]{margin-left:-1px}.paper button[data-v-26cff75a]:first-child:last-child{border-radius:4px}.paper button[data-v-26cff75a]:first-child:not(:last-child){border-top-left-radius:4px;border-bottom-left-radius:4px}.paper button[data-v-26cff75a]:last-child:not(:first-child){border-top-right-radius:4px;border-bottom-right-radius:4px}.popover[data-v-26cff75a]{position:absolute;margin-top:10px;z-index:10}.popover .popover-content[data-v-26cff75a]{background:white;border-radius:4px;padding:10px 14px;box-shadow:2px 2px 2px 4px #80008033}.popover .input[data-v-26cff75a]{height:24px;padding:2px 4px}.popover .input[data-v-26cff75a]:hover{border-color:#f59bf1;border-radius:4px}.left[data-v-26cff75a]{background:white;border-radius:4px;border:1px solid #d9d9d9;box-shadow:2px 2px 2px #80008033;overflow:auto}.left .container[data-v-26cff75a]{height:100%;overflow:auto;padding:0 10%;background:rgba(92,91,92,.1)}.left .container[id*=provider-container2][data-v-26cff75a]{margin-bottom:10px;background:rgba(92,91,92,.1)}.center[data-v-26cff75a]{margin:0 10px;background:white;border-radius:4px;border:1px solid #d9d9d9;padding:20px;box-shadow:2px 2px 2px #80008033;overflow:auto}.right[data-v-26cff75a]{background:white;border-radius:4px;border:1px solid #d9d9d9;padding:10px 0;box-shadow:2px 2px 2px #80008033;overflow:auto}.title[data-v-26cff75a]{font-size:16px;font-weight:500;margin:4px 0 4px 10px}.item[data-v-26cff75a]{display:flex;flex-direction:column;align-items:center;background:white;padding:4px 10px;margin:10px 8px 4px;width:38%;min-height:60px;border-radius:4px;box-shadow:2px 2px 2px 2px #ababab33}.item .iconfont[data-v-26cff75a]{font-size:1.5rem}.item span[data-v-26cff75a]{font-size:14px}.print-dialog-overlay[data-v-26cff75a]{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:3000}.print-dialog[data-v-26cff75a]{background:#fff;width:95vw;height:95vh;border-radius:8px;box-shadow:0 2px 12px #00000026;display:flex;flex-direction:column}.print-dialog-header[data-v-26cff75a]{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;border-bottom:1px solid #e8e8e8;font-size:16px;font-weight:500}.close-btn[data-v-26cff75a]{cursor:pointer;font-size:20px;color:#000;font-style:normal}.close-btn[data-v-26cff75a]:hover{color:#606266}.print-dialog-body[data-v-26cff75a]{flex:1;overflow:hidden;padding:10px;display:flex;flex-direction:column}.print-dialog-body .main[data-v-26cff75a]{flex:1;overflow:hidden}.button-item[data-v-26cff75a]{height:40px}.header-box[data-v-26cff75a]{display:flex;align-items:center;justify-content:space-between}
|
|
1
|
+
.Print_box[data-v-1c21c016]{width:100%}.Print_hader[data-v-1c21c016]{text-align:center;font-size:30px;font-weight:500}.Print_body_QR[data-v-1c21c016]{float:right}.Print_body_label[data-v-1c21c016]{display:flex;justify-content:space-between}[data-v-1c21c016] .active{font-weight:800!important}.print-template-selector[data-v-2de53864]{display:inline-block}.table_list_fix[data-v-5e84c9a6]{overflow:auto;flex:1;display:flex;flex-direction:column;justify-content:space-between;padding:10px;gap:10px}.table_list_fix[data-v-5e84c9a6] .el-table td{padding:0}.table_list_fix[data-v-5e84c9a6] .el-table td div{line-height:28px;font-size:12px}.table_list_fix[data-v-5e84c9a6] .el-table th{padding:0;background:#f5f7fa}.table_list_fix[data-v-5e84c9a6] .el-table th div{line-height:28px;color:#909399;font-size:12px}.table_list_fix .btn-operates[data-v-5e84c9a6]{margin:10px 0 10px 15px}.table_list_fix .btn-operates[data-v-5e84c9a6] a{color:#fff;text-decoration:none;display:inline-block;margin:0 5px}.table_list_fix .btn-operates[data-v-5e84c9a6] a ::v-deep .el-button{width:100%;padding:7px;font-size:13px}.table-header[data-v-5e84c9a6]{padding-top:10px}.table-header .table-header_button[data-v-5e84c9a6]{text-align:right;float:right;margin-bottom:12px;line-height:40px}.newjump[data-v-5e84c9a6]{text-decoration:none;color:#1e90ff}.tablebox[data-v-5e84c9a6]{box-sizing:border-box;flex:1;overflow:auto}[data-v-5e84c9a6] .el-table__body tr.current-row>td{background-color:#1890ff!important;color:#fff}[data-v-5e84c9a6] .redrow{background:#fde6e6!important}.btnbox[data-v-5e84c9a6]{width:100%;display:flex;align-items:center;justify-content:space-between}.btnbox .upload-demo[data-v-5e84c9a6]{display:-webkit-inline-box;margin-left:10px}.btnbox .el-form-item[data-v-5e84c9a6]{margin-bottom:0}.layui-table-tool-self[data-v-5e84c9a6]{display:block;width:26px;height:26px;padding:5px;line-height:16px;text-align:center;color:#333;border:1px solid #ccc;cursor:pointer}.checkbox[data-v-5e84c9a6]{display:block}.operate-group[data-v-5e84c9a6]{display:flex;align-items:center;justify-content:space-around}.toolbox[data-v-5e84c9a6]{display:flex;gap:10px}.ol-number-range[data-v-653fc76e]{position:relative;display:inline-flex;align-items:center;width:100%;background-color:#fff;border:1px solid #dcdfe6;border-radius:4px;transition:border-color .2s cubic-bezier(.645,.045,.355,1);padding:0 30px 0 10px;box-sizing:border-box;height:32px;line-height:32px}.ol-number-range[data-v-653fc76e]:hover{border-color:#c0c4cc}.ol-number-range[data-v-653fc76e]:focus-within{border-color:#409eff;outline:none}.ol-number-range .range-input[data-v-653fc76e]{flex:1;border:none;background:transparent;padding:0;height:100%;line-height:inherit}.ol-number-range .range-input[data-v-653fc76e] .el-input__inner{border:none;padding:0;height:100%;line-height:inherit;background:transparent;text-align:center;font-size:14px;color:#606266}.ol-number-range .range-input[data-v-653fc76e] .el-input__inner:focus{border:none;outline:none}.ol-number-range .range-input[data-v-653fc76e] .el-input__inner::placeholder{color:#c0c4cc}.ol-number-range .range-input[data-v-653fc76e] .el-input__inner::-webkit-outer-spin-button,.ol-number-range .range-input[data-v-653fc76e] .el-input__inner::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.ol-number-range .range-input[data-v-653fc76e] .el-input__inner[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}.ol-number-range .start-input[data-v-653fc76e] .el-input__inner,.ol-number-range .end-input[data-v-653fc76e] .el-input__inner{text-align:center}.ol-number-range .range-separator[data-v-653fc76e]{flex-shrink:0;padding:0 8px;color:#c0c4cc;font-size:14px;line-height:1}.ol-number-range .clear-icon[data-v-653fc76e]{position:absolute;right:8px;top:50%;transform:translateY(-50%);cursor:pointer;color:#c0c4cc;font-size:14px;transition:color .2s;z-index:1}.ol-number-range .clear-icon[data-v-653fc76e]:hover{color:#909399}[data-v-653fc76e] .el-form-item--small .ol-number-range{padding:0 30px 0 10px;height:28px;line-height:28px}[data-v-653fc76e] .el-form-item--small .ol-number-range .range-input{height:28px;line-height:28px}[data-v-653fc76e] .el-form-item--small .ol-number-range .range-input ::v-deep .el-input__inner{height:28px;line-height:28px;font-size:13px}.ol-number-range.is-disabled[data-v-653fc76e]{background-color:#f5f7fa;border-color:#e4e7ed;cursor:not-allowed}.ol-number-range.is-disabled .range-input[data-v-653fc76e] .el-input__inner{background-color:#f5f7fa;color:#c0c4cc;cursor:not-allowed}.ol-number-range.is-disabled .clear-icon[data-v-653fc76e]{display:none}.search-config-container[data-v-5652e548]{padding-bottom:10px}.config-header[data-v-5652e548]{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.option-item[data-v-5652e548]{display:flex;align-items:center;margin-bottom:10px}.gray-text[data-v-5652e548]{color:#909399;font-size:12px}.sort-handle[data-v-5652e548]{color:#909399;transition:color .3s}.sort-handle[data-v-5652e548]:hover{color:#409eff}.sortable-ghost[data-v-5652e548]{opacity:.4;background-color:#f5f7fa}.sortable-drag[data-v-5652e548]{opacity:1;background-color:#fff;box-shadow:0 2px 12px #0000001a}.dialog-footer[data-v-5652e548]{display:flex;align-items:center;justify-content:center}.options-config[data-v-5652e548]{max-height:400px;overflow-y:auto}.formSearch .el-form-item[data-v-2059874a]{margin-right:2px;margin-bottom:5px}.formSearch .el-form-item[data-v-2059874a] .el-form-item__label{width:37%!important;padding:0 5px 0 0;word-break:keep-all;white-space:nowrap;font-size:13px}.formSearch .el-form-item[data-v-2059874a] .el-form-item__content{width:63%!important}.formSearch[data-v-2059874a] .el-select{width:100%!important}.formSearch .formSearchBtnArrowUp[data-v-2059874a] .el-form-item__content{width:130px!important}.formSearchArrowUp .el-form[data-v-2059874a]{position:relative}.formSearchArrowUp .formSearchBtnArrowDown[data-v-2059874a]{position:absolute;top:0;width:15%;left:81.5%}.formSearchArrowUp .formSearchBtnArrowDown[data-v-2059874a] .el-form-item__content{width:100%!important}.formSearchArrowUp .formSearchBtnArrowDown[data-v-2059874a] .el-form-item__content ::v-deep .el-button{margin-left:0;font-size:13px;padding:5px 10px}.table-header[data-v-2059874a]{padding-top:10px;border-bottom:1px #ccc solid;min-height:49px}.table-header .table-header-item .el-form-item[data-v-2059874a]{width:100%;display:flex;margin-bottom:12px}.table-header .table-header-item .el-form-item .el-form-item__content[data-v-2059874a],.table-header .table-header-item .el-form-item .el-select[data-v-2059874a]{width:100%}.transitionGroup[data-v-2059874a]{display:flex;flex-wrap:wrap}.transitionGroup .el-form-item[data-v-2059874a],.formSearchBtnArrowDowns .el-form-item[data-v-2059874a]{width:20%}.formSearchBtnArrowUps[data-v-2059874a]{display:inline}.list-enter-active[data-v-2059874a],.list-leave-active[data-v-2059874a]{transition:all 1s}.list-enter[data-v-2059874a]{opacity:0;transform:translate(-30px)}.list-leave-to[data-v-2059874a]{opacity:0;transform:translate(30px)}[data-v-2059874a] .el-select-dropdown__item.hover,[data-v-2059874a] .el-select-dropdown__item:hover{background-color:#eff7ff!important}[data-v-2059874a] .el-input.is-disabled ::v-deep .el-input__inner{background-color:#eceff8;border-color:#eceff8}[data-v-2059874a] .el-input--small ::v-deep .el-input__inner{height:28px;line-height:28px}.fromBtn[data-v-2059874a] .el-button{font-size:12px}.btnbox[data-v-2059874a]{padding:10px}.btnbox .upload-demo[data-v-2059874a]{display:-webkit-inline-box;margin-left:10px}[data-v-2059874a] .numrule input::-webkit-outer-spin-button,[data-v-2059874a] .numrule input::-webkit-inner-spin-button{-webkit-appearance:none!important}[data-v-2059874a] .numrule input[type=number]{-moz-appearance:textfield!important}[data-v-2059874a] .numrule .el-input__inner{line-height:1px!important}.el-dialog__header{background-color:#008cff!important;padding:10px 15px;text-align:left}.el-dialog__header .el-dialog__title,.el-dialog__header .el-dialog__headerbtn i{color:#fff}.el-dialog__body{padding:25px 20px}.el-dialog__close{cursor:pointer!important;font-size:20px!important;position:relative!important;top:-11px!important;color:#fff!important;border-radius:50%!important;text-align:center!important;height:30px!important;width:30px!important;line-height:30px!important;vertical-align:middle!important;right:-13px!important}.el-select,.el-input-number{width:100%!important}.activeWidth{width:50%!important}.switchStyle .el-switch__label{position:absolute;display:none;color:#fff}.switchStyle .el-switch__label--left{z-index:9;left:20px}.switchStyle .el-switch__label--right{z-index:9}.switchStyle .el-switch__label.is-active{display:block}.switchStyle.el-switch .el-switch__core,.el-switch .el-switch__label{width:60px!important}.dialog-footer[data-v-051116b4]{display:flex;justify-content:flex-end}.print-manage-container[data-v-645d66fe]{display:flex;height:calc(100vh - 84px);background:#f5f5f5;padding:20px;gap:20px}.left-panel[data-v-645d66fe]{width:280px;background:#fff;border-radius:4px;padding:20px;box-shadow:0 2px 12px #0000001a;overflow-y:auto}.panel-title[data-v-645d66fe]{font-size:16px;font-weight:500;color:#303133}.custom-tree-node[data-v-645d66fe]{flex:1;display:flex;align-items:center;justify-content:space-between;font-size:14px;padding-right:8px}.tree-icon[data-v-645d66fe]{margin-right:8px;font-size:16px;color:#909399}.tree-label[data-v-645d66fe]{color:#606266}.right-panel[data-v-645d66fe]{flex:1;background:#fff;border-radius:4px;padding:20px;box-shadow:0 2px 12px #0000001a;display:flex;flex-direction:column}.panel-header[data-v-645d66fe]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid #ebeef5}.panel-header .panel-title[data-v-645d66fe]{font-size:16px;font-weight:500;color:#303133}.template-list[data-v-645d66fe]{overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px;padding:10px}.empty-card[data-v-645d66fe]{width:100%;height:200px;border:2px dashed #dcdfe6;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .3s;grid-column:1 / -1}.empty-card[data-v-645d66fe]:hover{border-color:#409eff;background:#f0f9ff}.add-icon[data-v-645d66fe]{font-size:48px;color:#c0c4cc;margin-bottom:10px;transition:all .3s}.empty-card:hover .add-icon[data-v-645d66fe]{color:#409eff;transform:scale(1.1)}.add-text[data-v-645d66fe]{font-size:14px;color:#909399}.template-card[data-v-645d66fe]{background:#fff;border:1px solid #ebeef5;border-radius:8px;padding:20px;transition:all .3s;box-shadow:0 2px 4px #0000000d}.template-card[data-v-645d66fe]:hover{box-shadow:0 4px 12px #00000026;transform:translateY(-2px)}.card-header[data-v-645d66fe]{display:flex;align-items:center;margin-bottom:15px;padding-bottom:10px;border-bottom:1px solid #f0f0f0}.card-icon[data-v-645d66fe]{font-size:24px;color:#409eff;margin-right:10px}.card-title[data-v-645d66fe]{font-size:16px;font-weight:500;color:#303133;flex:1}.card-body[data-v-645d66fe]{margin-bottom:15px}.card-info[data-v-645d66fe]{display:flex;align-items:center;margin-bottom:10px;font-size:14px}.info-label[data-v-645d66fe]{color:#909399;margin-right:5px}.info-value[data-v-645d66fe]{color:#606266;flex:1;word-break:break-all}.card-footer[data-v-645d66fe]{display:flex;justify-content:flex-end;gap:10px;padding-top:10px;border-top:1px solid #f0f0f0}.delete-btn[data-v-645d66fe],.delete-btn[data-v-645d66fe]:hover{color:#f56c6c}.dialog-footer[data-v-645d66fe]{display:flex;justify-content:flex-end;gap:10px}[data-v-645d66fe]::-webkit-scrollbar{width:6px;height:6px}[data-v-645d66fe]::-webkit-scrollbar-thumb{background:#dcdfe6;border-radius:3px}[data-v-645d66fe]::-webkit-scrollbar-track{background:#f5f5f5}.paper-selector[data-v-2c749e94]{display:inline-block}.flex-row[data-v-7a502882]{display:flex}.flex-col[data-v-7a502882]{display:flex;flex-direction:column}.flex-wrap[data-v-7a502882]{flex-wrap:wrap}.align-center[data-v-7a502882]{align-items:center}.justify-center[data-v-7a502882]{justify-content:center}.flex-1[data-v-7a502882]{flex:1}.flex-2[data-v-7a502882]{flex:2}.flex-3[data-v-7a502882]{flex:3}.flex-4[data-v-7a502882]{flex:4}.flex-5[data-v-7a502882]{flex:5}.ml-10[data-v-7a502882]{margin-left:10px}.mr-10[data-v-7a502882]{margin-right:10px}.mt-10[data-v-7a502882]{margin-top:10px}.mb-10[data-v-7a502882]{margin-bottom:10px}button[data-v-7a502882]{padding:10px;min-width:40px;color:#fff;opacity:.9;cursor:pointer;border-width:0;border:1px solid #d9d9d9}button[data-v-7a502882]:hover{opacity:1}button i[data-v-7a502882]{font-size:16px!important}.circle[data-v-7a502882],.circle-4[data-v-7a502882]{border-radius:4px!important}.circle-10[data-v-7a502882]{border-radius:10px!important}.primary[data-v-7a502882]{background:purple}.info[data-v-7a502882]{color:#000;background:none}.info[data-v-7a502882]:hover{color:purple;border-color:purple}.secondary[data-v-7a502882]{background:#1976d2}.warning[data-v-7a502882]{background:#d32f2f}.modal[data-v-7a502882]{padding:0;margin:0}.modal .mask[data-v-7a502882]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;height:100%;background-color:#00000073}.modal .wrap[data-v-7a502882]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;overflow:auto;background-color:#00000073;outline:0}.modal .wrap .box[data-v-7a502882]{position:relative;margin:10% auto;width:40%;background:#fff;border-radius:4px;z-index:1001;box-shadow:0 5px 10px #0003;transition:all .3s ease}.modal-box__header[data-v-7a502882]{padding:10px 14px;border-bottom:1px solid #e9e9e9}.modal-box__footer[data-v-7a502882]{text-align:end}.modal-box__footer button[data-v-7a502882]{min-width:100px}.modal-box__footer button[data-v-7a502882]:not(:last-child){margin-right:10px}.hiprint-headerLine[data-v-7a502882],.hiprint-footerLine[data-v-7a502882]{border-color:purple!important}.hiprint-headerLine[data-v-7a502882]:hover,.hiprint-footerLine[data-v-7a502882]:hover{border-top:3px dashed purple!important}.hiprint-headerLine[data-v-7a502882]:hover:before{content:"页眉线";left:calc(50% - 18px);position:relative;background:#ffff;top:-14px;color:purple;font-size:12px}.hiprint-footerLine[data-v-7a502882]:hover:before{content:"页脚线";left:calc(50% - 18px);position:relative;color:purple;background:#ffff;top:-14px;font-size:12px}.rect-printElement-types .hiprint-printElement-type>li>ul>li>a{color:#000!important;display:flex;align-items:center;justify-content:center}.custom-style-types .hiprint-printElement-type{display:block}.custom-style-types .hiprint-printElement-type{padding:0;list-style:none}.custom-style-types .hiprint-printElement-type>li>.title{display:block;padding:4px 0;color:#003ae6;clear:both}.custom-style-types .hiprint-printElement-type>li>ul{padding:0;display:block;list-style:none}.custom-style-types .hiprint-printElement-type>li>ul>li{display:block;width:50%;float:left;max-width:100px}.custom-style-types .hiprint-printElement-type>li>ul>li>a{padding:12px 6px;color:#1296db;text-decoration:none;background:#fff;border:1px solid #ddd;margin-right:5px;width:95%;max-width:100px;display:inline-block;text-align:center;margin-bottom:7px;box-sizing:border-box;border:1px solid rgba(0,0,0,.2);border-radius:4px;box-shadow:0 1px #00000026}#hiwprint_iframe{position:fixed!important;top:-9999px!important;left:-9999px!important;width:0!important;height:0!important;visibility:hidden!important;opacity:0!important}.api[data-v-7a502882]{background:#00acc1}.auto[data-v-7a502882]{width:auto!important}.paper[data-v-7a502882]{margin-right:10px}.paper button[data-v-7a502882]:not(class*="auto"){width:60px!important}.paper button+button[data-v-7a502882]{margin-left:-1px}.paper button[data-v-7a502882]:first-child:last-child{border-radius:4px}.paper button[data-v-7a502882]:first-child:not(:last-child){border-top-left-radius:4px;border-bottom-left-radius:4px}.paper button[data-v-7a502882]:last-child:not(:first-child){border-top-right-radius:4px;border-bottom-right-radius:4px}.popover[data-v-7a502882]{position:absolute;margin-top:10px;z-index:10}.popover .popover-content[data-v-7a502882]{background:white;border-radius:4px;padding:10px 14px;box-shadow:2px 2px 2px 4px #80008033}.popover .input[data-v-7a502882]{height:24px;padding:2px 4px}.popover .input[data-v-7a502882]:hover{border-color:#f59bf1;border-radius:4px}.left[data-v-7a502882]{background:white;border-radius:4px;border:1px solid #d9d9d9;box-shadow:2px 2px 2px #80008033;overflow:auto}.left .container[data-v-7a502882]{height:100%;overflow:auto;padding:0 10%;background:rgba(92,91,92,.1)}.left .container[id*=provider-container2][data-v-7a502882]{margin-bottom:10px;background:rgba(92,91,92,.1)}.center[data-v-7a502882]{margin:0 10px;background:white;border-radius:4px;border:1px solid #d9d9d9;padding:20px;box-shadow:2px 2px 2px #80008033;overflow:auto}.right[data-v-7a502882]{background:white;border-radius:4px;border:1px solid #d9d9d9;padding:10px 0;box-shadow:2px 2px 2px #80008033;overflow:auto}.title[data-v-7a502882]{font-size:16px;font-weight:500;margin:4px 0 4px 10px}.item[data-v-7a502882]{display:flex;flex-direction:column;align-items:center;background:white;padding:4px 10px;margin:10px 8px 4px;width:38%;min-height:60px;border-radius:4px;box-shadow:2px 2px 2px 2px #ababab33}.item .iconfont[data-v-7a502882]{font-size:1.5rem}.item span[data-v-7a502882]{font-size:14px}.print-dialog-overlay[data-v-7a502882]{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:3000}.print-dialog[data-v-7a502882]{background:#fff;width:95vw;height:95vh;border-radius:8px;box-shadow:0 2px 12px #00000026;display:flex;flex-direction:column}.print-dialog-header[data-v-7a502882]{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;border-bottom:1px solid #e8e8e8;font-size:16px;font-weight:500}.close-btn[data-v-7a502882]{cursor:pointer;font-size:20px;color:#000;font-style:normal}.close-btn[data-v-7a502882]:hover{color:#606266}.print-dialog-body[data-v-7a502882]{flex:1;overflow:hidden;padding:10px;display:flex;flex-direction:column}.print-dialog-body .main[data-v-7a502882]{flex:1;overflow:hidden}.button-item[data-v-7a502882]{height:40px}.header-box[data-v-7a502882]{display:flex;align-items:center;justify-content:space-between}
|
package/package.json
CHANGED