1 line
51 KiB
JavaScript
1 line
51 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-subPages-userInfo1"],{"053f":function(t,e,n){"use strict";n.r(e);var i=n("72d5"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"0cd1":function(t,e,n){"use strict";var i=n("5fd0"),a=n.n(i);a.a},"1a30":function(t,e,n){var i=n("333d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("77b4f9b1",i,!0,{sourceMap:!1,shadowMode:!1})},"227a":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var i={styles:String,disableScroll:{type:Boolean,default:!0},type:{type:String,default:"2d"},penColor:{type:String,default:"black"},penSize:{type:Number,default:2},backgroundColor:String,openSmooth:Boolean,minLineWidth:{type:Number,default:2},maxLineWidth:{type:Number,default:6},minSpeed:{type:Number,default:1.5},maxWidthDiffRate:{type:Number,default:20},maxHistoryLength:{type:Number,default:20},beforeDelay:{type:Number,default:0},landscape:{type:Boolean},boundingBox:{type:Boolean}};e.default=i},"333d":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".base-info[data-v-c57bc99a]{\n\t/* padding: 16px; */width:100%;height:100vh;position:relative;box-sizing:border-box}.form-user[data-v-c57bc99a]{margin:16px;\n\t/* border: #e5e5e5 1px solid; */padding:10px 16px;box-shadow:#e5e5e5 0 0 10px 1px;border-radius:10px}.form-user[data-v-c57bc99a] .u-form-item__body__left__content__label{font-size:14px;color:grey}.form-user[data-v-c57bc99a] .u-form-item__body__right__content__slot{display:flex;justify-content:flex-end}.save-btn[data-v-c57bc99a]{margin:20px 26px 0 26px}.assign[data-v-c57bc99a]{display:flex;flex-direction:row;justify-content:space-between;margin:10px 26px;align-items:center}.assign-again[data-v-c57bc99a]{display:flex;flex-direction:row;align-items:center}.top-label[data-v-c57bc99a]{font-size:14px;\n\t/* padding: 10px 0; */line-height:21px;\n\t/* text-align: center; */color:#303133}.top-label-assign[data-v-c57bc99a]{font-size:14px;\n\t/* padding: 10px 0; */line-height:21px;\n\t/* color: #fff; */\n\t/* font-weight: bold; */margin-right:3px\n\t/* text-align: center; */\n\t/* color: #808080; */}.signature-img[data-v-c57bc99a]{border:1px solid #e5e5e5;margin:0 16px}.action[data-v-c57bc99a]{display:flex}.action .btn[data-v-c57bc99a]{width:25%;text-align:center;padding:10px 0;font-size:14px;color:#333;border-right:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5}.action .btn[data-v-c57bc99a]:first-child{border-left:1px solid #e5e5e5}",""]),t.exports=e},"4ac8":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.base64ToPath=function(t){var e=/data:image\/(\w+);base64,(.*)/.exec(t)||[],n=(0,a.default)(e,3);n[1],n[2];return new Promise((function(t,e){}))},e.canIUseCanvas2d=function(){return!1},e.compareVersion=o,e.getRect=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="boundingClientRect",i=e.context,a=e.type,o=void 0===a?n:a;return new Promise((function(e,a){var r=uni.createSelectorQuery().in(i).select(t),s=function(t){t?e(t):a()};o==n?r[o](s).exec():r[o]({node:!0,size:!0,rect:!0},s).exec()}))},e.isPC=void 0,e.isTransparent=function(t){if("transparent"===t)return!0;if(t.startsWith("rgba")){var e=t.match(/\d+(\.\d+)?/g);if(null!==e){var n=parseFloat(e[3]);if(0===n)return!0}}return!1},e.requestAnimationFrame=void 0,e.sleep=function(t){return new Promise((function(e){return setTimeout(e,t)}))},e.wrapEvent=void 0;var a=i(n("3835"));function o(t,e){t=t.split("."),e=e.split(".");var n=Math.max(t.length,e.length);while(t.length<n)t.push("0");while(e.length<n)e.push("0");for(var i=0;i<n;i++){var a=parseInt(t[i],10),o=parseInt(e[i],10);if(a>o)return 1;if(a<o)return-1}return 0}n("14d9"),n("e25e"),n("ac1f"),n("00b4"),n("d3b7"),n("2ca0"),n("466d"),n("acd8");var r=uni.getSystemInfoSync(),s=r.platform;r.SDKVersion;var u=/windows|mac/.test(s);e.isPC=u;e.wrapEvent=function(t){if(t)return t.preventDefault||(t.preventDefault=function(){}),t};e.requestAnimationFrame=function(t){setTimeout(t,30)}},5426:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("5530")),o=i(n("c7eb")),r=i(n("1da1"));n("e9c4"),n("d81d");var s=n("4ac8"),u=n("605d2"),c=n("6106"),l=i(n("227a")),f={props:l.default,data:function(){return{canvasWidth:null,canvasHeight:null,offscreenWidth:null,offscreenHeight:null,useCanvas2d:!0,show:!0,offscreenStyles:"",showMask:!1}},computed:{canvasId:function(){return"lime-signature".concat(this._uid)},offscreenId:function(){return this.canvasId+"offscreen"},offscreenSize:function(){var t=this.offscreenWidth,e=this.offscreenHeight;return this.landscape?[e,t]:[t,e]},canvasStyle:function(){var t=this.canvasWidth,e=this.canvasHeight,n=this.backgroundColor;return{width:t&&t+"px",height:e&&e+"px",background:n}},param:function(){var t=this.penColor,e=this.penSize,n=this.backgroundColor,i=this.landscape,a=this.boundingBox,o=this.openSmooth,r=this.minLineWidth,s=this.maxLineWidth,u=this.minSpeed,c=this.maxWidthDiffRate,l=this.maxHistoryLength,f=this.disableScroll;return JSON.parse(JSON.stringify({penColor:t,penSize:e,backgroundColor:n,landscape:i,boundingBox:a,openSmooth:o,minLineWidth:r,maxLineWidth:s,minSpeed:u,maxWidthDiffRate:c,maxHistoryLength:l,disableScroll:f}))}},created:function(){this.useCanvas2d="2d"==this.type&&(0,s.canIUseCanvas2d)()&&!s.isPC,this.showMask=s.isPC},mounted:function(){var t=this;return(0,r.default)((0,o.default)().mark((function e(){var n;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.beforeDelay){e.next=3;break}return e.next=3,(0,s.sleep)(t.beforeDelay);case 3:return e.next=5,t.getContext();case 5:n=e.sent,t.signature=new u.Signature(n),t.canvasEl=t.signature.canvas.get("el"),t.offscreenWidth=t.canvasWidth=t.signature.canvas.get("width"),t.offscreenHeight=t.canvasHeight=t.signature.canvas.get("height"),t.stopWatch=t.$watch("param",(function(e){t.signature.pen.setOption(e)}),{immediate:!0});case 11:case"end":return e.stop()}}),e)})))()},beforeDestroy:function(){this.stopWatch&&this.stopWatch(),this.signature.destroy(),this.show=!1,this.signature=null},methods:{undo:function(){this.signature&&this.signature.undo()},clear:function(){this.signature&&this.signature.clear()},isEmpty:function(){return this.signature.isEmpty()},canvasToTempFilePath:function(t){var e=this,n=this.isEmpty(),i=function(e){return t.fail&&t.fail(e)},a=this.signature.canvas.get("el"),u=a.canvas,l=this.backgroundColor,f=this.landscape,d=this.boundingBox,h=this.signature.canvas.get("width"),v=this.signature.canvas.get("height"),p=0,m=0,g=function(i){var a=uni.createCanvasContext("offscreen",e);a.save(),a.setTransform(1,0,0,1,0,0),f&&(a.translate(0,h),a.rotate(-Math.PI/2)),l&&!(0,s.isTransparent)(l)&&(a.fillStyle=l,a.fillRect(0,0,h,v)),a.drawImage(i,0,0,h,v),a.draw(!1,(function(){(0,c.toDataURL)("offscreen",e,t).then((function(e){var i=Math.max(h,v);a.restore(),a.clearRect(0,0,i,i),function(e){t.success&&t.success(e)}({tempFilePath:e,isEmpty:n})}))}))},y=function(){var t=(0,r.default)((0,o.default)().mark((function t(){var n;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.offscreenWidth==h&&e.offscreenHeight==v){t.next=5;break}return e.offscreenWidth=h,e.offscreenHeight=v,t.next=5,(0,s.sleep)(100);case 5:n={x:p,y:m,width:h,height:v,canvas:u},(0,c.toDataURL)(e.canvasId,e,n).then(g).catch(i);case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();d&&!s.isPC?this.signature.getContentBoundingBox(function(){var t=(0,r.default)((0,o.default)().mark((function t(n){return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.offscreenWidth=h=n.width,e.offscreenHeight=v=n.height,p=n.startX,m=n.startY,y();case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()):y()},getContext:function(){var t=this;return(0,s.getRect)("#".concat(this.canvasId),{context:this,type:this.useCanvas2d?"fields":"boundingClientRect"}).then((function(e){if(e){var n,i=e.width,a=e.height,o=e.node,r=e.left,u=e.top,l=e.right,f=uni.getSystemInfoSync(),d=f.pixelRatio;return o?(n=o.getContext("2d"),o.width=i*d,o.height=a*d):(d=1,n=(0,c.uniContext)(t.canvasId,t),o={createImage:c.createImage,toDataURL:function(){return(0,c.toDataURL)(t.canvasId,t)},requestAnimationFrame:s.requestAnimationFrame}),n.clearRect(0,0,i,a),{left:r,top:u,right:l,width:i,height:a,context:n,canvas:o,pixelRatio:d}}}))},getTouch:function(t){var e=this;return s.isPC&&this.canvasRect&&(t.touches=t.touches.map((function(t){return(0,a.default)((0,a.default)({},t),{},{x:t.clientX-e.canvasRect.left,y:t.clientY-e.canvasRect.top})}))),t},touchStart:function(t){var e=this;this.canvasEl&&(this.isStart=!0,s.isPC?(0,s.getRect)("#".concat(this.canvasId),{context:this}).then((function(n){e.canvasRect=n,e.canvasEl.dispatchEvent("touchstart",(0,s.wrapEvent)(e.getTouch(t)))})):this.canvasEl.dispatchEvent("touchstart",(0,s.wrapEvent)(t)))},touchMove:function(t){!this.canvasEl||!this.isStart&&this.canvasEl||this.canvasEl.dispatchEvent("touchmove",(0,s.wrapEvent)(this.getTouch(t)))},touchEnd:function(t){this.canvasEl&&(this.isStart=!1,this.canvasEl.dispatchEvent("touchend",(0,s.wrapEvent)(t)))}}};e.default=f},"5fd0":function(t,e,n){var i=n("6e07");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("5660594e",i,!0,{sourceMap:!1,shadowMode:!1})},"605d2":function(t,e,n){"use strict";var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Signature=void 0;var a=i(n("53ca"));function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;arguments.length>e;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t){return s="function"==typeof Symbol&&"symbol"==(0,a.default)(Symbol.iterator)?function(t){return(0,a.default)(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":(0,a.default)(t)},s(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;e.length>n;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function p(t,e){if(e&&("object"==(0,a.default)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var a=h(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return p(this,n)}}n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("14d9"),n("159b"),n("dbb4"),n("1d1c"),n("7a82"),n("e01a"),n("d28b"),n("3ca3"),n("ddb0"),n("d9e2"),n("d401"),n("131a"),n("3410"),n("f8c9"),n("4ae1"),n("a434"),n("acd8"),n("a9e3"),n("cb29"),n("fb6a");var g=function(t){var e=s(t);return null!==t&&"object"===e||"function"===e},y={}.toString,b=function(t,e){return y.call(t)==="[object "+e+"]"},_=function(t){return b(t,"String")},x=function(t){return b(t,"Number")},w=function(t){return b(t,"Function")},S=function(){function t(){u(this,t),this.__events=void 0,this.__events={}}return l(t,[{key:"on",value:function(t,e){if(t&&e){var n=this.__events[t]||[];n.push(e),this.__events[t]=n}}},{key:"emit",value:function(t,e){var n=this;if(g(t)&&(t=(e=t)&&e.type),t){var i=this.__events[t];i&&i.length&&i.forEach((function(t){t.call(n,e)}))}}},{key:"off",value:function(t,e){var n=this.__events,i=n[t];if(i&&i.length)if(e)for(var a=0,o=i.length;o>a;a++)i[a]===e&&(i.splice(a,1),a--);else delete n[t]}},{key:"getEvents",value:function(){return this.__events}}]),t}(),P=function(t){d(n,S);var e=m(n);function n(t,i){var a;return u(this,n),(a=e.call(this)).context=void 0,a.canvas=void 0,a.attrs=void 0,a.isCanvasElement=void 0,a.context=t,a.canvas=i.canvas||t.canvas||{width:i.width||0,height:i.height||0},a.attrs=i||{},a.isCanvasElement=!0,a}return l(n,[{key:"width",get:function(){return this.canvas.width},set:function(t){this.canvas.width=t}},{key:"height",get:function(){return this.canvas.height},set:function(t){this.canvas.height=t}},{key:"getContext",value:function(){return this.context}},{key:"getBoundingClientRect",value:function(){var t=this.attrs||{},e=t.top,n=t.right,i=t.width,a=t.height,o=t.left,r=t.bottom;return{top:void 0===e?0:e,width:void 0===i?0:i,right:void 0===n?0:n,height:void 0===a?0:a,bottom:void 0===r?0:r,left:void 0===o?0:o}}},{key:"setAttribute",value:function(t,e){this.attrs[t]=e}},{key:"addEventListener",value:function(t,e){this.on(t,e)}},{key:"removeEventListener",value:function(t,e){this.off(t,e)}},{key:"dispatchEvent",value:function(t,e){this.emit(t,e)}}]),n}();function k(t,e){try{return t.currentStyle?t.currentStyle[e]:document.defaultView&&document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}catch(t){return{width:300,height:150}[e]}}function C(t,e){var n=e.get("el");if(!n)return t;var i=n.getBoundingClientRect(),a=i.top,o=void 0===a?0:a,r=i.left,s=void 0===r?0:r,u=parseFloat(k(n,"padding-left"))||0,c=parseFloat(k(n,"padding-top"))||0;return{x:t.x-s-u,y:t.y-o-c}}function E(t,e){var n=e.get("landscape");if(!n)return t;if(w(n))return n(t,e);var i=e.get("height");return{x:t.y,y:i-t.x}}var I=function(t,e){var n=t.touches;if(!n||!n.length)return[E(C({x:t.clientX,y:t.clientY},e),e)];n.length||(n=t.changedTouches||[]);for(var i=[],a=0,o=n.length;o>a;a++){var r,s=n[a],u=s.x,c=s.y,l=s.clientX,f=s.clientY;r=x(u)||x(c)?{x:u,y:c}:C({x:l,y:f},e),i.push(E(r,e))}return i},M=function(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.abs(n)>Math.abs(i)?n>0?"right":"left":i>0?"down":"up"},D=function(t,e){var n=Math.abs(e.x-t.x),i=Math.abs(e.y-t.y);return Math.sqrt(n*n+i*i)},T=function(){function t(e){var n=this,i=e.canvas,a=e.el;u(this,t),this.processEvent=void 0,this.canvas=void 0,this.startTime=0,this.endTime=0,this.startPoints=null,this.startDistance=0,this.center=null,this.pressTimeout=void 0,this.eventType=null,this.direction=null,this.lastMoveTime=0,this.prevMovePoints=null,this.prevMoveTime=0,this.lastMovePoints=null,this.pinch=!1,this._click=function(t){var e=I(t,n.canvas);t.points=e,n.emitEvent("click",t)},this._start=function(t){var e,i,a=I(t,n.canvas);a&&(t.points=a,n.emitEvent("touchstart",t),n.reset(),n.startTime=Date.now(),n.startPoints=a,a.length>1?(n.startDistance=D(a[0],a[1]),n.center={x:(e=a[0]).x+((i=a[1]).x-e.x)/2,y:e.y+(i.y-e.y)/2}):n.pressTimeout=setTimeout((function(){var e="press",i="none";t.direction=i,n.emitStart(e,t),n.emitEvent(e,t),n.eventType=e,n.direction=i}),250))},this._move=function(t){var e=I(t,n.canvas);if(e){t.points=e,n.emitEvent("touchmove",t);var i=n.startPoints;if(i)if(e.length>1){var a=n.startDistance,o=D(e[0],e[1]);t.zoom=o/a,t.center=n.center,n.emitStart("pinch",t),n.emitEvent("pinch",t)}else{var r=e[0].x-i[0].x,s=e[0].y-i[0].y,u=n.direction||M(i[0],e[0]);n.direction=u;var c=n.getEventType(e);t.direction=u,t.deltaX=r,t.deltaY=s,n.emitStart(c,t),n.emitEvent(c,t);var l=n.lastMoveTime,f=Date.now();f-l>0&&(n.prevMoveTime=l,n.prevMovePoints=n.lastMovePoints,n.lastMoveTime=f,n.lastMovePoints=e)}}},this._end=function(t){var e=I(t,n.canvas);t.points=e,n.emitEnd(t),n.emitEvent("touchend",t);var i=n.lastMoveTime;if(100>Date.now()-i){var a=i-(n.prevMoveTime||n.startTime);if(a>0){var o=n.prevMovePoints||n.startPoints,r=n.lastMovePoints;if(!o||!r)return;var s=D(o[0],r[0])/a;s>.3&&(t.velocity=s,t.direction=M(o[0],r[0]),n.emitEvent("swipe",t))}}n.reset();var u=t.touches;u&&u.length>0&&n._start(t)},this._cancel=function(t){n.emitEvent("touchcancel",t),n.reset()},this.canvas=i,this.delegateEvent(a),this.processEvent={}}return l(t,[{key:"delegateEvent",value:function(t){t.addEventListener("click",this._click),t.addEventListener("touchstart",this._start),t.addEventListener("touchmove",this._move),t.addEventListener("touchend",this._end),t.addEventListener("touchcancel",this._cancel)}},{key:"emitEvent",value:function(t,e){this.canvas.emit(t,e)}},{key:"getEventType",value:function(t){var e,n=this.eventType,i=this.startTime,a=this.startPoints;if(n)return n;var o=this.canvas.__events.pan;if(o&&o.length){var r=Date.now();if(!a)return;e=r-i>250&&10>D(a[0],t[0])?"press":"pan"}else e="press";return this.eventType=e,e}},{key:"enable",value:function(t){this.processEvent[t]=!0}},{key:"isProcess",value:function(t){return this.processEvent[t]}},{key:"emitStart",value:function(t,e){this.isProcess(t)||(this.enable(t),this.emitEvent("".concat(t,"start"),e))}},{key:"emitEnd",value:function(t){}},{key:"clearPressTimeout",value:function(){this.pressTimeout&&(clearTimeout(this.pressTimeout),this.pressTimeout=null)}},{key:"reset",value:function(){this.clearPressTimeout(),this.startTime=0,this.startPoints=null,this.startDistance=0,this.direction=null,this.eventType=null,this.pinch=!1,this.prevMoveTime=0,this.prevMovePoints=null,this.lastMoveTime=0,this.lastMovePoints=null}}]),t}(),N=function(t){d(n,S);var e=m(n);function n(t){var i;return u(this,n),(i=e.call(this))._attrs={},i._isWindow=void 0,i._attrs=Object.assign({},t),i._isWindow="undefined"!=typeof window,i._initPixelRatio(),i._initCanvas(),["createImage","toDataURL","requestAnimationFrame"].forEach((function(e){i._initAttrs(e,t.canvas||i.get("el"))})),i}return l(n,[{key:"get",value:function(t){return this._attrs[t]}},{key:"set",value:function(t,e){this._attrs[t]=e}},{key:"_initAttrs",value:function(t,e){var n=this;this.get(t)||this.set(t,(function(){return e[t]?e[t].apply(e,arguments):n._isWindow?window[t]?(i=window)[t].apply(i,arguments):"createImage"==t?new Image:null:void 0;var i}))}},{key:"_initCanvas",value:function(){var t,e,n=this.get("el"),i=this.get("context");if(!n&&!i)throw Error("请指定 id、el 或 context!");t=n?_(n)?(e=n)?document.getElementById(e):null:n:function(t,e){return t?function(t){if(!t)return!1;if(1!==t.nodeType||!t.nodeName||"canvas"!==t.nodeName.toLowerCase())return!1;var e=!1;try{t.addEventListener("eventTest",(function(){e=!0})),t.dispatchEvent(new Event("eventTest"))}catch(t){e=!1}return e}(t.canvas)?t.canvas:new P(t,e):null}(i,this._attrs),i&&t&&!t.getContext&&(t.getContext=function(){return i});var a=this.get("width")||function(t){var e=k(t,"width");return"auto"===e&&(e=t.offsetWidth),parseFloat(e)}(t)||t.width,o=this.get("height")||function(t){var e=k(t,"height");return"auto"===e&&(e=t.offsetHeight),parseFloat(e)}(t)||t.height;this.set("canvas",this),this.set("el",t),this.set("context",i||t.getContext("2d")),this.changeSize(a,o);var r=new T({canvas:this,el:t,parent:this.get("parent")});this.set("eventController",r)}},{key:"_initPixelRatio",value:function(){this.get("pixelRatio")||this.set("pixelRatio",window&&window.devicePixelRatio||1)}},{key:"changeSize",value:function(t,e){var n,i=this.get("pixelRatio"),a=this.get("el");a.style&&(a.style.width=t+"px",a.style.height=e+"px"),(n=a)&&"object"===s(n)&&(1===n.nodeType&&n.nodeName||n.isCanvasElement)&&(a.width=t*i,a.height=e*i,1!==i&&this.get("context").scale(i,i)),this.set("width",t),this.set("height",e)}},{key:"destroy",value:function(){if(!this.get("destroyed")){var t=this.get("el");t.width=0,t.height=0,this.clear(),this._attrs={},this.set("destroyed",!0)}}},{key:"clear",value:function(){}},{key:"isDestroyed",value:function(){return this.get("destroyed")}}]),n}(),R={penColor:"black",backgroundColor:"",openSmooth:!0,penSize:2,minLineWidth:2,maxLineWidth:6,minSpeed:1.5,maxWidthDiffRate:20,maxHistoryLength:20},L=null,O=function(){function t(e){var n=this;u(this,t),this.canAddHistory=!0,this.points=[],this.historyList=[],this.canvas=void 0,this._isEmpty=!0,this.active=!1,this.getLineWidth=function(t){var e=n.get("options"),i=e.minSpeed,a=e.minLineWidth,o=n.getMaxLineWidth();return Math.min(Math.max(o-(o-a)*t/Math.max(Math.min(i,10),1),a),o)},this.drawTrapezoid=function(t,e,i,a){var o=n.get("context");o.beginPath(),o.moveTo(Number(t.x.toFixed(1)),Number(t.y.toFixed(1))),o.lineTo(Number(e.x.toFixed(1)),Number(e.y.toFixed(1))),o.lineTo(Number(i.x.toFixed(1)),Number(i.y.toFixed(1))),o.lineTo(Number(a.x.toFixed(1)),Number(a.y.toFixed(1))),o.fillStyle=n.get("options").penColor,o.fill(),o.draw&&o.draw(!0)},this.drawNoSmoothLine=function(t,e){e.lastX=t.x+.5*(e.x-t.x),e.lastY=t.y+.5*(e.y-t.y),"number"==typeof t.lastX&&n.drawCurveLine(t.lastX,t.lastY,t.x,t.y,e.lastX,e.lastY,n.getMaxLineWidth())},this.drawCurveLine=function(t,e,i,a,o,r,s){s=Number(s.toFixed(1));var u=n.get("context");u.lineWidth=s,u.beginPath(),u.moveTo(Number(t.toFixed(1)),Number(e.toFixed(1))),u.quadraticCurveTo(Number(i.toFixed(1)),Number(a.toFixed(1)),Number(o.toFixed(1)),Number(r.toFixed(1))),u.stroke(),u.draw&&u.draw(!0)},this.getRadianData=function(t,e,n,i){var a=n-t,o=i-e;if(0===a)return{val:0,pos:-1};if(0===o)return{val:0,pos:1};var r=Math.abs(Math.atan(o/a));return n>t&&e>i||t>n&&i>e?{val:r,pos:1}:{val:r,pos:-1}},this.getRadianPoints=function(t,e,n,i){if(0===t.val)return 1===t.pos?[{x:e,y:n+i},{x:e,y:n-i}]:[{y:n,x:e+i},{y:n,x:e-i}];var a=Math.sin(t.val)*i,o=Math.cos(t.val)*i;return 1===t.pos?[{x:e+a,y:n+o},{x:e-a,y:n-o}]:[{x:e+a,y:n-o},{x:e-a,y:n+o}]},this.drawSmoothLine=function(t,e){var i=e.x-t.x,a=e.y-t.y;if(Math.abs(i)+Math.abs(a)>2?(e.lastX1=t.x+.3*i,e.lastY1=t.y+.3*a,e.lastX2=t.x+.7*i,e.lastY2=t.y+.7*a):(e.lastX1=e.lastX2=t.x+.5*i,e.lastY1=e.lastY2=t.y+.5*a),e.perLineWidth=(t.lineWidth+e.lineWidth)/2,"number"==typeof t.lastX1){if(n.drawCurveLine(t.lastX2,t.lastY2,t.x,t.y,e.lastX1,e.lastY1,e.perLineWidth),t.isFirstPoint)return;if(t.lastX1===t.lastX2&&t.lastY1===t.lastY2)return;var o=n.getRadianData(t.lastX1,t.lastY1,t.lastX2,t.lastY2),r=n.getRadianPoints(o,t.lastX1,t.lastY1,t.perLineWidth/2),s=n.getRadianPoints(o,t.lastX2,t.lastY2,e.perLineWidth/2);n.drawTrapezoid(r[0],s[0],s[1],r[1])}else e.isFirstPoint=!0},this.addHistory=function(){var t=n.get("options").maxHistoryLength;if(t&&n.canAddHistory)if(n.canAddHistory=!1,n.get("createImage")){var e=null;e=n.get("createImage")();var i=n.get("toDataURL")&&n.get("toDataURL")();_(i)?e.src=i:i.then((function(t){e.src=t})),e.onload=function(){var i=L;L=e,n.historyList.push(i),n.historyList=n.historyList.slice(-t)}}else n.historyList.length++},this.drawByImage=function(t){var e=n.get("context"),i=n.get("width"),a=n.get("height");e.clearRect(0,0,i,a);try{t&&e.drawImage(t,0,0,i,a),e.draw&&e.draw(!0)}catch(t){n.historyList.length=0}},this.isEmpty=function(){return n.get("options").maxHistoryLength>0?0===n.historyList.length:n._isEmpty},this.clear=function(){var t=n.get("context");t.clearRect(0,0,n.get("width"),n.get("height")),t.draw&&t.draw(),n._isEmpty=!0,L=null,n.historyList.length=0},this.undo=function(){if(0===n.get("options").maxHistoryLength&&n.clear(),n.get("createImage")&&n.historyList.length){var t=n.historyList.splice(-1)[0];n.drawByImage(t),0===n.historyList.length&&n.clear()}},this.canvas=e,this.canvas.set("pen",R),this.init()}return l(t,[{key:"getOption",value:function(){}},{key:"setOption",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=r({},t),n=e.maxLineWidth;if(n&&t.penSize&&n==R.maxLineWidth){var i=Math.max(n,t.penSize);e.maxLineWidth=i}this.canvas.set("pen",Object.assign({},R,e))}},{key:"get",value:function(t){return this.canvas.get("options"==t?"pen":t)}},{key:"init",value:function(){var t=this;this.get("context").lineCap="round",this.canvas.on("touchstart",(function(e){return t.onDrawStart(e)})),this.canvas.on("touchmove",(function(e){return t.onDrawMove(e)})),this.canvas.on("touchend",(function(e){return t.onDrawEnd(e)}))}},{key:"drawBackground",value:function(){var t=this.get("context"),e=this.get("width"),n=this.get("height"),i=this.get("options"),a=i.backgroundColor,o=i.backgroundImage;a&&(t.fillStyle=a,t.fillRect(0,0,e,n),t.draw&&t.draw(!0)),o&&this.drawByImage(o)}},{key:"getContentBoundingBox",value:function(t){var e=this.get("pixelRatio"),n=this.get("width"),i=this.get("height"),a=this.get("el"),o="CANVAS"===a.nodeName,r=o?n:a.width,s=o?i:a.height;e=o?1:e;var u=function(n){for(var i=r,a=s,o=0,u=0,c=0;n.length>c;c+=4)if(n[c+3]>0){var l=c/4%r,f=Math.floor(c/4/r);i=Math.min(i,l),a=Math.min(a,f),o=Math.max(o,l),u=Math.max(u,f)}var d={width:(o-i+1)/e,height:(u-a+1)/e,startX:i/e,startY:a/e};return t&&t(d),d};if("CANVAS"===a.nodeName){var c=document.createElement("canvas");c.width=n,c.height=i;var l=c.getContext("2d");l.drawImage(a,0,0,n,i);var f=l.getImageData(0,0,n,i).data;return u(f)}var d,h=this.get("context").getImageData(0,0,r,s);return g(d=h)&&w(d.then)&&w(d.catch)?(h.then((function(t){return u(t.data)})),null):u(h.data)}},{key:"remove",value:function(){var t=this;this.canvas.off("touchstart",(function(e){return t.onDrawStart(e)})),this.canvas.off("touchmove",(function(e){return t.onDrawMove(e)})),this.canvas.off("touchend",(function(e){return t.onDrawEnd(e)}))}},{key:"disableScroll",value:function(t){t.preventDefault&&this.get("options").disableScroll&&t.preventDefault()}},{key:"onDrawStart",value:function(t){this.disableScroll(t);var e=t.points;if(this.active){this.canAddHistory=!0,this.get("context").strokeStyle=this.get("options").penColor;var n=e[0];this.initPoint(n.x,n.y)}}},{key:"onDrawMove",value:function(t){if(this.disableScroll(t),this.active){var e=t.points[0];this.initPoint(e.x,e.y),this.onDraw()}}},{key:"onDrawEnd",value:function(t){this.active&&(this.addHistory(),this.canAddHistory=!0,this.points=[])}},{key:"onDraw",value:function(){var t=this,e=this.get("context");if(this.points.length>=2){e.lineWidth=this.get("options").penSize||2;var n=this.points.slice(-1)[0],i=this.points.slice(-2,-1)[0],a=function(){t._isEmpty=!1,t.get("options").openSmooth?t.drawSmoothLine(i,n):t.drawNoSmoothLine(i,n)},o=this.get("el").canvas;o&&o.requestAnimationFrame?o.requestAnimationFrame((function(){return a()})):"function"==typeof requestAnimationFrame?requestAnimationFrame((function(){return a()})):a()}}},{key:"getMaxLineWidth",value:function(){var t=this.get("options");return Math.min(t.penSize,t.maxLineWidth)}},{key:"initPoint",value:function(t,e){var n={x:t,y:e,t:Date.now()},i=this.points.slice(-1)[0];if(!i||i.t!==n.t&&(i.x!==t||i.y!==e)){if(this.get("options").openSmooth&&i){var a=this.points.slice(-2,-1)[0];if(n.distance=Math.sqrt(Math.pow(n.x-i.x,2)+Math.pow(n.y-i.y,2)),n.speed=n.distance/(n.t-i.t||.1),n.lineWidth=this.getLineWidth(n.speed),a&&a.lineWidth&&i.lineWidth){var o=(n.lineWidth-i.lineWidth)/i.lineWidth,r=this.get("options").maxWidthDiffRate/100;r=r>1?1:.01>r?.01:r,Math.abs(o)>r&&(n.lineWidth=i.lineWidth*(1+(o>0?r:-r)))}}this.points.push(n),this.points=this.points.slice(-3)}}}]),t}(),W=function(){function t(e){u(this,t),this.canvas=void 0,this._ee=void 0,this.pen=void 0;var n=new N(e);n.set("parent",this),this.canvas=n,this._ee=new S,this.pen=new O(n),this.init()}return l(t,[{key:"init",value:function(){this.pen.active=!0}},{key:"destroy",value:function(){this.canvas.destroy()}},{key:"clear",value:function(){this.pen.clear()}},{key:"undo",value:function(){this.pen.undo()}},{key:"save",value:function(){}},{key:"getContentBoundingBox",value:function(t){return this.pen.getContentBoundingBox(t)}},{key:"isEmpty",value:function(){return this.pen.isEmpty()}},{key:"on",value:function(t,e){this._ee.on(t,e)}},{key:"emit",value:function(t,e){this._ee.emit(t,e)}},{key:"off",value:function(t,e){this._ee.off(t,e)}}]),t}();e.Signature=W;var F=W;e.default=F},6106:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.uniContext=e.toDataURL=e.createImage=void 0,e.useCurrentPage=function(){var t=getCurrentPages();return t[t.length-1]};var a=i(n("5530")),o=i(n("d4ec")),r=i(n("bee2"));n("99af"),n("d3b7");e.uniContext=function(t,e){var n=uni.createCanvasContext(t,e);return n.uniDrawImage||(n.uniDrawImage=n.drawImage,n.drawImage=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];n.uniDrawImage.apply(n,[t.src].concat(i))}),n.getImageData||(n.getImageData=function(n,i,a,o){return new Promise((function(r,s){e.proxy&&(e=e.proxy),uni.canvasGetImageData({canvasId:t,x:n,y:i,width:a,height:o,success:function(t){r(t)},fail:function(t){s(t)}},e)}))}),n};var s=function(){function t(){(0,o.default)(this,t),this.currentSrc=null,this.naturalHeight=0,this.naturalWidth=0,this.width=0,this.height=0,this.tagName="IMG"}return(0,r.default)(t,[{key:"src",get:function(){return this.currentSrc},set:function(t){var e=this;this.currentSrc=t,uni.getImageInfo({src:t,success:function(t){e.naturalWidth=e.width=t.width,e.naturalHeight=e.height=t.height,e.onload()},fail:function(){e.onerror()}})}}]),t}();e.createImage=function(){return new s};e.toDataURL=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(i,o){var r=n.canvas,s=(n.width,n.height,n.destWidth,n.destHeight,n.x,n.y,(0,a.default)((0,a.default)({},n),{},{canvasId:t,id:t,canvas:r,success:function(t){i(t.tempFilePath)},fail:function(t){o(t)}}));r&&r.toTempFilePath?r.toTempFilePath(s):uni.canvasToTempFilePath(s,e)}))}},"62f8":function(t,e,n){"use strict";var i=n("1a30"),a=n.n(i);a.a},6770:function(t,e,n){"use strict";n.r(e);var i=n("e87d"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"6e07":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";@font-face{font-family:iconfont;src:url(/static/iconfont/iconfont.woff?t=1545807318834) format("woff"),url(/static/iconfont/iconfont.ttf?t=1545807318834) format("truetype")}\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/* uView */.lime-signature[data-v-08a66a1c],\r\n.lime-signature__canvas[data-v-08a66a1c]{position:relative;width:100%;height:100%}.mask[data-v-08a66a1c]{position:absolute;left:0;right:0;bottom:0;top:0}.offscreen[data-v-08a66a1c]{position:fixed;top:0;left:9999px}',""]),t.exports=e},"72d5":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("c7eb")),o=i(n("1da1")),r=i(n("5530"));n("c975"),n("d3b7");var s=n("c4f1"),u=n("05f1"),c=i(n("9560")),l={data:function(){return{show:!1,sourceUrl:c.default.uni_app_web_source_url,userInfo:{},penColor:"#333",penSize:5,openSmooth:!0,dataModel:{},rules:{}}},onLoad:function(){var t,e=this,n=uni.getStorageSync("orgId"),i=uni.getStorageSync("appInfo"),a=(null===i||void 0===i||null===(t=i.User)||void 0===t?void 0:t.ID)||"",o=(0,u.initFilter)(n);(0,u.extendRule)(o,"ID",1,a),(0,u.extendInclude)(o,"Nav_ApproveRole"),(0,u.extendInclude)(o,"Nav_ProdutionUnit"),(0,u.extendInclude)(o,"Nav_BelongRoles.Nav_BelongRole"),(0,u.extendInclude)(o,"Nav_Department"),(0,u.extendInclude)(o,"Nav_Person.Nav_Post"),(0,u.extendInclude)(o,"Nav_Person.Nav_TeamPersons.Nav_Team"),(0,u.extendInclude)(o,"Nav_UserSignFiles.Nav_ImgFile.Nav_File"),(0,s.getUserLists)(o).then((function(t){if(t.IsSuccessful){for(var n,a,o,s,u,c,l,f,d,h,v,p=t.Data[0]||{},m=p.Nav_BelongRoles,g="",y="",b=0;b<m.length;b++)m[b].Nav_BelongRole&&-1==y.indexOf(m[b].Nav_BelongRole.CODE)&&(y+=(y.length>0?",":"")+m[b].Nav_BelongRole.CODE,g+=(g.length>0?",":"")+m[b].Nav_BelongRole.NAME);e.userInfo=(0,r.default)((0,r.default)({},p),{},{UserName:null===i||void 0===i||null===(n=i.User)||void 0===n?void 0:n.NAME,UserCode:null===i||void 0===i||null===(a=i.User)||void 0===a?void 0:a.CODE,DepartmentName:null===(o=p.Nav_Department)||void 0===o?void 0:o.NAME,TeamName:null===(s=p.Nav_Person)||void 0===s||null===(u=s.Nav_TeamPersons[0])||void 0===u||null===(c=u.Nav_Team)||void 0===c?void 0:c.NAME,PostName:null===(l=p.Nav_Person)||void 0===l||null===(f=l.Nav_Post)||void 0===f?void 0:f.NAME,SignaturePhoto:p.Nav_UserSignFiles&&e.sourceUrl+(null===(d=p.Nav_UserSignFiles[0])||void 0===d||null===(h=d.Nav_ImgFile)||void 0===h||null===(v=h.Nav_File)||void 0===v?void 0:v.FILE_PATH),RoleName:g})}}))},methods:{formSubmit:function(){uni.navigateBack()},reUpload:function(){this.show=!0},handleCancel:function(){this.show=!1},handleSignature:function(t){var e=this;"openSmooth"!==t?"save"!==t?this.$refs.signatureRef&&this.$refs.signatureRef[t]():this.$refs.signatureRef.canvasToTempFilePath({success:function(){var t=(0,o.default)((0,a.default)().mark((function t(n){return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n.isEmpty){t.next=7;break}return uni.showLoading({title:"正在上传图片..."}),t.next=4,e.uploadFilePromise(n.tempFilePath);case 4:t.sent,e.userInfo.SignaturePhoto=n.tempFilePath,e.show=!1;case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}):this.openSmooth=!this.openSmooth},uploadFilePromise:function(t){var e,n=uni.getStorageSync("appInfo"),i=(null===n||void 0===n||null===(e=n.User)||void 0===e?void 0:e.ID)||"",a=uni.getStorageSync("orgId"),o=uni.getStorageSync("Tenant")||"",r=c.default.serviceHost("/PF/File/UploadFileEditSign");return new Promise((function(e,n){uni.uploadFile({url:r,filePath:t,fileList:t,name:"file",formData:{OrgId:a,userID:i},header:{Tenant:o,userid:i},success:function(t){if(200===t.statusCode){uni.hideLoading();var i=JSON.parse(t.data);i.IsSuccessful?e(i.Data):n(i.ErrorMessage)}}})}))}}};e.default=l},"7ff5":function(t,e,n){"use strict";var i=n("e461"),a=n.n(i);a.a},8304:function(t,e,n){"use strict";n.r(e);var i=n("9361"),a=n("053f");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("62f8");var r=n("f0c5"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"c57bc99a",null,!1,i["a"],void 0);e["default"]=s.exports},9361:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={"u-Form":n("6f92").default,uFormItem:n("b41e").default,uButton:n("3327").default,uPopup:n("11c6").default,lSignature:n("b30f").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"base-info"},[n("v-uni-view",{staticClass:"form-user"},[n("u--form",{ref:"form",staticClass:"info-form",attrs:{labelPosition:"left",labelWidth:"80px",labelAlign:"left",model:t.dataModel,rules:t.rules,errorType:"border-bottom"}},[n("u-form-item",{attrs:{label:"姓名",prop:"name","border-bottom":!0}},[n("v-uni-text",[t._v(t._s(t.userInfo.UserName))])],1),n("u-form-item",{attrs:{label:"编码",prop:"code","border-bottom":!0}},[n("v-uni-text",[t._v(t._s(t.userInfo.UserCode))])],1),n("u-form-item",{attrs:{label:"手机",prop:"phone","border-bottom":!0}},[n("v-uni-text",[t._v(t._s(t.userInfo.PHONE))])],1),n("u-form-item",{attrs:{label:"身份证",prop:"phone","border-bottom":!0}},[n("v-uni-text",[t._v(t._s(t.userInfo.ID_CARD))])],1),n("u-form-item",{attrs:{label:"部门",prop:"department","border-bottom":!0}},[n("v-uni-text",[t._v(t._s(t.userInfo.DepartmentName))])],1),n("u-form-item",{attrs:{label:"班组",prop:"post","border-bottom":!0}},[n("v-uni-text",[t._v(t._s(t.userInfo.TeamName))])],1),n("u-form-item",{attrs:{label:"岗位",prop:"job"}},[n("v-uni-text",[t._v(t._s(t.userInfo.PostName))])],1)],1)],1),n("v-uni-view",{staticClass:"assign"},[n("v-uni-view",{staticClass:"top-label"},[t._v("签名")]),n("v-uni-view",{staticClass:"assign-again",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.reUpload.apply(void 0,arguments)}}},[n("u-button",{attrs:{type:"primary",icon:"download",text:"上传签名",size:"small"}})],1)],1),n("v-uni-view",{staticClass:"signature-img"},[n("v-uni-image",{staticStyle:{width:"100%"},attrs:{mode:"widthFix",src:t.userInfo.SignaturePhoto}})],1),n("v-uni-button",{staticClass:"save-btn",attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.formSubmit.apply(void 0,arguments)}}},[t._v("确定")]),n("u-popup",{attrs:{show:t.show,mode:"center",customStyle:{width:"100%",height:"100%"},closeable:!0},on:{open:function(e){arguments[0]=e=t.$handleEvent(e),function(){}.apply(void 0,arguments)},close:function(e){var n=this;arguments[0]=e=t.$handleEvent(e),function(){n.show=!1}.apply(void 0,arguments)}}},[n("v-uni-view",{staticStyle:{width:"100%",height:"100%",border:"1px solid #ddd"}},[n("l-signature",{ref:"signatureRef",attrs:{disableScroll:!0,backgroundColor:"#fff",penColor:t.penColor,penSize:t.penSize,openSmooth:t.openSmooth,landscape:!0}})],1),n("v-uni-view",{staticClass:"action"},[n("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleSignature("clear")}}},[t._v("清空")]),n("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleSignature("undo")}}},[t._v("撤消")]),n("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleSignature("save")}}},[t._v("保存")]),t.userInfo.SignaturePhoto?n("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleCancel.apply(void 0,arguments)}}},[t._v("取消")]):n("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleSignature("openSmooth")}}},[t._v("压感"+t._s(t.openSmooth?"开":"关"))])],1)],1)],1)},o=[]},9841:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";@font-face{font-family:iconfont;src:url(/static/iconfont/iconfont.woff?t=1545807318834) format("woff"),url(/static/iconfont/iconfont.ttf?t=1545807318834) format("truetype")}\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/* uView */uni-view[data-v-03e1ba13], uni-scroll-view[data-v-03e1ba13], uni-swiper-item[data-v-03e1ba13]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-form-item[data-v-03e1ba13]{display:flex;flex-direction:column;font-size:14px;color:#303133}.u-form-item__body[data-v-03e1ba13]{display:flex;flex-direction:row;padding:10px 0}.u-form-item__body__left[data-v-03e1ba13]{display:flex;flex-direction:row;align-items:center}.u-form-item__body__left__content[data-v-03e1ba13]{position:relative;display:flex;flex-direction:row;align-items:center;padding-right:%?10?%;flex:1}.u-form-item__body__left__content__icon[data-v-03e1ba13]{margin-right:%?8?%}.u-form-item__body__left__content__required[data-v-03e1ba13]{position:absolute;left:-9px;color:#f56c6c;line-height:20px;font-size:20px;top:3px}.u-form-item__body__left__content__label[data-v-03e1ba13]{display:flex;flex-direction:row;align-items:center;flex:1;color:#303133;font-size:15px}.u-form-item__body__right[data-v-03e1ba13]{flex:1}.u-form-item__body__right__content[data-v-03e1ba13]{display:flex;flex-direction:row;align-items:center;flex:1}.u-form-item__body__right__content__slot[data-v-03e1ba13]{flex:1;display:flex;flex-direction:row;align-items:center}.u-form-item__body__right__content__icon[data-v-03e1ba13]{margin-left:%?10?%;color:#c0c4cc;font-size:%?30?%}.u-form-item__body__right__message[data-v-03e1ba13]{font-size:12px;line-height:12px;color:#f56c6c}',""]),t.exports=e},"9a5a":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var i={props:{label:{type:String,default:uni.$u.props.formItem.label},prop:{type:String,default:uni.$u.props.formItem.prop},borderBottom:{type:[String,Boolean],default:uni.$u.props.formItem.borderBottom},labelPosition:{type:String,default:uni.$u.props.formItem.labelPosition},labelWidth:{type:[String,Number],default:uni.$u.props.formItem.labelWidth},rightIcon:{type:String,default:uni.$u.props.formItem.rightIcon},leftIcon:{type:String,default:uni.$u.props.formItem.leftIcon},required:{type:Boolean,default:uni.$u.props.formItem.required},leftIconStyle:{type:[String,Object],default:uni.$u.props.formItem.leftIconStyle}}};e.default=i},b30f:function(t,e,n){"use strict";n.r(e);var i=n("d0b1"),a=n("b7a1");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);var r=n("f5b0");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("0cd1");var s=n("f0c5");a["default"].__module="sign";var u=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"08a66a1c",null,!1,i["a"],a["default"]);e["default"]=u.exports},b41e:function(t,e,n){"use strict";n.r(e);var i=n("e780"),a=n("6770");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("7ff5");var r=n("f0c5"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"03e1ba13",null,!1,i["a"],void 0);e["default"]=s.exports},b7a1:function(t,e,n){"use strict";n.r(e);var i=n("f7d2"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},c4f1:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.GetRiskAreaMaster=function(t){return new Promise((function(e,n){a.default.post("/BS/BSRiskSubmit/GetRiskAreaMaster",t).then((function(t){t.IsSuccessful&&e(t.Data)})).catch((function(t){n(t)}))}))},e.getCheckArea=function(t){return new Promise((function(e,n){a.default.post("/HM/HMRiskTask/OrderPagedAreaMineType",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.getCheckContent=function(t){return new Promise((function(e,n){a.default.post("/BS/BSCheckContents/OrderPagedObject",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.getCheckLevel=function(t){return new Promise((function(e,n){a.default.post("/BS/BSCheckTypeLevel/OrderPagedLevel",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.getCheckProblem=function(t){return new Promise((function(e,n){a.default.post("/BS/CheckQuestion/OrderPaged",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.getCheckType=function(t){return new Promise((function(e,n){a.default.post("/BS/BSCheckType/OrderPaged",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.getRiskDataById=function(t){return new Promise((function(e,n){a.default.post("/BS/RiskSubmit/Get",t).then((function(t){t.IsSuccessful&&e(t.Data)})).catch((function(t){n(t)}))}))},e.getRiskReportData=function(t){return new Promise((function(e,n){a.default.post("/BS/RiskSubmit/OrderPaged",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.getUserLists=function(t){return new Promise((function(e,n){a.default.post("/FM/User/OrderPaged",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},e.saveRiskReport=function(t){return new Promise((function(e,n){a.default.post("/BS/BSRiskSubmit/FullUpdateUser",t).then((function(t){t.IsSuccessful&&e(t.Data)})).catch((function(t){n(t)}))}))},e.saveUser=function(t){return new Promise((function(e,n){a.default.post("/FM/User/Update",t).then((function(t){t.IsSuccessful&&e(t)})).catch((function(t){n(t)}))}))},n("d3b7");var a=i(n("a7f0"))},cb29:function(t,e,n){var i=n("23e7"),a=n("81d5"),o=n("44d2");i({target:"Array",proto:!0},{fill:a}),o("fill")},d0b1:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show?n("v-uni-view",{ref:"limeSignature",staticClass:"lime-signature",style:[t.canvasStyle,t.styles]},[t.useCanvas2d?n("v-uni-canvas",{staticClass:"lime-signature__canvas",attrs:{id:t.canvasId,type:"2d",disableScroll:t.disableScroll},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchStart.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.touchMove.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.touchEnd.apply(void 0,arguments)}}}):n("v-uni-canvas",{staticClass:"lime-signature__canvas",attrs:{disableScroll:t.disableScroll,"canvas-id":t.canvasId,id:t.canvasId,width:t.canvasWidth,height:t.canvasHeight},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchStart.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.touchMove.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.touchEnd.apply(void 0,arguments)},mousedown:function(e){arguments[0]=e=t.$handleEvent(e),t.touchStart.apply(void 0,arguments)},mousemove:function(e){arguments[0]=e=t.$handleEvent(e),t.touchMove.apply(void 0,arguments)},mouseup:function(e){arguments[0]=e=t.$handleEvent(e),t.touchEnd.apply(void 0,arguments)}}}),n("v-uni-canvas",{staticClass:"offscreen",style:"width:"+t.offscreenSize[0]+"px;height:"+t.offscreenSize[1]+"px",attrs:{"canvas-id":"offscreen",id:"offscreen",width:t.offscreenSize[0],height:t.offscreenSize[1]}}),t.showMask?n("v-uni-view",{staticClass:"mask",on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchStart.apply(void 0,arguments)},touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.touchMove.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.touchEnd.apply(void 0,arguments)}}}):t._e()],1):t._e()},a=[]},d565:function(t,e){},e461:function(t,e,n){var i=n("9841");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("6b3d00ec",i,!0,{sourceMap:!1,shadowMode:!1})},e780:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uIcon:n("f7d8").default,uLine:n("524a").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-form-item"},[n("v-uni-view",{staticClass:"u-form-item__body",style:[t.$u.addStyle(t.customStyle),{flexDirection:"left"===(t.labelPosition||t.parentData.labelPosition)?"row":"column"}],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickHandler.apply(void 0,arguments)}}},[t._t("label",[t.required||t.leftIcon||t.label?n("v-uni-view",{staticClass:"u-form-item__body__left",style:{width:t.$u.addUnit(t.labelWidth||t.parentData.labelWidth),marginBottom:"left"===t.parentData.labelPosition?0:"5px"}},[n("v-uni-view",{staticClass:"u-form-item__body__left__content"},[t.required?n("v-uni-text",{staticClass:"u-form-item__body__left__content__required"},[t._v("*")]):t._e(),t.leftIcon?n("v-uni-view",{staticClass:"u-form-item__body__left__content__icon"},[n("u-icon",{attrs:{name:t.leftIcon,"custom-style":t.leftIconStyle}})],1):t._e(),n("v-uni-text",{staticClass:"u-form-item__body__left__content__label",style:[t.parentData.labelStyle,{justifyContent:"left"===t.parentData.labelAlign?"flex-start":"center"===t.parentData.labelAlign?"center":"flex-end"}]},[t._v(t._s(t.label))])],1)],1):t._e()]),n("v-uni-view",{staticClass:"u-form-item__body__right"},[n("v-uni-view",{staticClass:"u-form-item__body__right__content"},[n("v-uni-view",{staticClass:"u-form-item__body__right__content__slot"},[t._t("default")],2),t.$slots.right?n("v-uni-view",{staticClass:"item__body__right__content__icon"},[t._t("right")],2):t._e()],1)],1)],2),t._t("error",[t.message&&"message"===t.parentData.errorType?n("v-uni-text",{staticClass:"u-form-item__body__right__message",style:{marginLeft:t.$u.addUnit("top"===t.parentData.labelPosition?0:t.labelWidth||t.parentData.labelWidth)}},[t._v(t._s(t.message))]):t._e()]),t.borderBottom?n("u-line",{attrs:{color:t.message&&"border-bottom"===t.parentData.errorType?t.$u.color.error:t.propsLine.color,customStyle:"margin-top: "+(t.message&&"message"===t.parentData.errorType?"5px":0)}}):t._e()],2)},o=[]},e87d:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("9a5a")),o={name:"u-form-item",mixins:[uni.$u.mpMixin,uni.$u.mixin,a.default],data:function(){return{message:"",parentData:{labelPosition:"left",labelAlign:"left",labelStyle:{},labelWidth:45,errorType:"message"}}},computed:{propsLine:function(){return uni.$u.props.line}},mounted:function(){this.init()},methods:{init:function(){this.updateParentData(),this.parent||uni.$u.error("u-form-item需要结合u-form组件使用")},updateParentData:function(){this.getParentData("u-form")},clearValidate:function(){this.message=null},resetField:function(){var t=uni.$u.getProperty(this.parent.originalModel,this.prop);uni.$u.setProperty(this.parent.model,this.prop,t),this.message=null},clickHandler:function(){this.$emit("click")}}};e.default=o},f5b0:function(t,e,n){"use strict";n.r(e);var i=n("5426"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},f7d2:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("d565")),o=a.default;e.default=o}}]); |