ApprovalAction~ApprovalApply.fb2b1a35.js 94 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ApprovalAction~ApprovalApply"],{"0607":function(e,t,r){"use strict";r("5e4c")},"0781":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAAAk1BMVEUAAAAAwbQBwbUBwrUCwrYBwbUAwrYAzbMBwrUBwbUBwrUCwbUCwrUAwbUAwrYAwrYBwbYBwrUBwbUBwrYBwbUAwrYAwrUAwbYAwLQAvrgAv68BwrYBwrUCwrUAwrUAwrYAw7cAw7cAw7gAwbUAw7kBwrYBwbUCwrcAwbUAw7cAwbYAwbUAwLMAxbcBwbYCwbQBwbVBksG5AAAAMHRSTlMAEfvtmdluBPbp4Z+SfGhP9PDPzckvKR4bCgixrad1Yl1LRSMYwLqJgnFXPjo20aSMH9xxAAABIklEQVQoz3WS13KDMBQFhSimOQEbbOMa957s/39dhC0GEZF90RntiFsG0TC7LuJQukW6HQiLaSJpiL/+2iDEpJiacuChGA3v+0N5+8mB6GHo2vpboXFSCfmk/TKwrETLLgffaVoOlRUdniGkOifgV6LLBuT+/ViCrmtQgNdUHguLT3BfYQFDW88zKOvgw0PYnOC1vAymPTqBdX1KcHp0qmvmMOnRKwjqcwSfPXqsrz3wbHsAZnrCqLL0Gr7fE0Y9gzsuXN/xA7LSbiye65/BV7k7+oV6KZoyg+huLDQBXKfdvwRWevpqE1Mzav3OReF7w/V5EaI4dv3+hIEb1P0yNpa9O0oto7O6trw43C5ekgbPgcraFyrbtH4i/mfjLruvbX4BnUcqUEVerZEAAAAASUVORK5CYII="},"0873":function(e,t,r){},"0cab":function(e,t,r){},"0e66":function(e,t,r){"use strict";r("0cab")},1207:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]={name:"oInput",props:["widget","preview","value","fileCheck"],data:function(){var e;return{dataModel:(null===(e=this.widget.options)||void 0===e?void 0:e.defaultValue)||null,inputType:null}},mounted:function(){if(this.inputType="text",this.value){var e=this.widget,t=e.originModel||e.model;for(var r in this.value)r==t&&(this.dataModel=this.value[r])}},methods:{verifyNumberIntegerAndFloat:function(e){var t=e.charAt(0),r=e.replace(/(^\s*)|(\s*$)/g,"");return r=r.replace(/[^\d.]/g,""),r=r.replace(/^0{2}$/g,"0"),r=r.replace(/^\./g,""),r=r.replace(".","$#$").replace(/\./g,"").replace("$#$","."),r=r.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"),"-"==t&&(r="-"+r),r},onVerifiyNumberInteger:function(e){var t=e.charAt(0),r=e.replace(/(^\s*)|(\s*$)/g,"");return r=r.replace(/[\.]*/g,""),r=r.replace(/(^0[\d]*)$/g,"0"),r=r.replace(/^0\d$/g,"0"),r=r.replace(/[^\d]/g,""),"-"==t&&(r="-"+r),r},onFormatter:function(e){return"integer"===this.options.dataType?this.onVerifiyNumberInteger(e):"float"===this.options.dataType||this.options.dataType.number?this.verifyNumberIntegerAndFloat(e):e}},computed:{options:function(){return this.widget.options||{}},rule:function rule(){var _this=this,rules=this.widget.rules||[];return rules&&rules.length>0&&rules.forEach((function(item){item.pattern&&(item.pattern=eval(item.pattern)),_this.fileCheck&&(item.required=!1)})),rules}},watch:{}}},1343:function(e,t,r){},"14e9":function(e,t,r){"use strict";r("d3d9")},1558:function(e,t,r){},"15b3":function(e,t,r){"use strict";r("a5ee")},"1f68":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]={name:"oRadio",props:["widget","preview","value","fileCheck"],data:function(){var e;return{dataModel:(null===(e=this.widget.options)||void 0===e?void 0:e.defaultValue)||null}},mounted:function(){if(this.value){var e=this.widget,t=e.originModel||e.model;for(var r in this.value)r==t&&(this.dataModel=this.value[r])}},methods:{},computed:{options:function(){return this.widget.options||{}},rule:function rule(){var _this=this,rules=this.widget.rules||[];return rules&&rules.length>0&&rules.forEach((function(item){item.pattern&&(item.pattern=eval(item.pattern)),_this.fileCheck&&(item.required=!1)})),rules}},watch:{}}},"29e0":function(e,t,r){"use strict";r("1343")},"2b98":function(module,__webpack_exports__,__webpack_require__){"use strict";var _views_massMessage_api__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("4efa"),axios__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("bc3a"),axios__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new k(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return E()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var l=g(a,r);if(l){if(l===s)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=c(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var s={};function d(){}function f(){}function h(){}var p={};l(p,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(C([])));m&&m!==t&&r.call(m,i)&&(p=m);var _=h.prototype=d.prototype=Object.create(p);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){function n(i,o,a,l){var u=c(e[i],e,o);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==_typeof(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(d).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function g(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,g(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=c(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,s;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return f.prototype=h,l(_,"constructor",h),l(h,"constructor",f),f.displayName=l(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,a,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(y.prototype),l(y.prototype,o,(function(){return this})),e.AsyncIterator=y,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new y(u(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,a,"Generator"),l(_,i,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,s):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},e}function asyncGeneratorStep(e,t,r,n,i,o,a){try{var l=e[o](a),u=l.value}catch(c){return void r(c)}l.done?t(u):Promise.resolve(u).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){asyncGeneratorStep(o,n,i,a,l,"next",e)}function l(e){asyncGeneratorStep(o,n,i,a,l,"throw",e)}a(void 0)}))}}__webpack_exports__["a"]={name:"oImgUpload",props:["widget","preview","value","fileCheck"],data:function(){var e;return{dataModel:(null===(e=this.widget.options)||void 0===e?void 0:e.defaultValue)||[],ossUploadUrl:"https://ks3-cn-beijing.ksyuncs.com/daya",dataObj:{policy:"",signature:"",key:"",KSSAccessKeyId:"",acl:"public-read",name:""}}},mounted:function(){if(this.value){var e=this.widget,t=e.originModel||e.model;for(var r in this.value)r==t&&(this.dataModel=this.value[r])}},methods:{beforeRead:function(e){var t=e.size/1024/1024<5;return!!t||(this.$toast("上传图片大小不能超过 5MB"),!1)},beforeDelete:function(e,t){return this.dataModel.splice(t.index,1),!0},afterRead:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){var n,i,o,a,l,u,c,s,d;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.status="uploading",t.message="上传中...",n=t.file.name||"",i=n&&n.replace(/ /gi,"_"),o=(new Date).getTime()+i,a={filename:i,bucketName:this.bucket_name,postData:{filename:i,acl:"public-read",key:o,unknowValueField:[]}},e.next=9,Object(_views_massMessage_api__WEBPACK_IMPORTED_MODULE_0__["e"])(a);case 9:for(s in l=e.sent,u={policy:l.data.policy,signature:l.data.signature,key:o,KSSAccessKeyId:l.data.kssAccessKeyId,acl:"public-read",name:i},c=new FormData,u)c.append(s,u[s]);return c.append("file",t.file),e.next=16,axios__WEBPACK_IMPORTED_MODULE_1___default()({method:"post",url:this.ossUploadUrl,data:c});case 16:d=this.ossUploadUrl+"/"+o,t.status="done",this.dataModel[r.index]={url:d},e.next=26;break;case 21:return e.prev=21,e.t0=e["catch"](0),t.status="failed",t.message="上传失败",e.abrupt("return",!1);case 26:case"end":return e.stop()}}),e,this,[[0,21]])})));function t(t,r){return e.apply(this,arguments)}return t}()},computed:{options:function(){return this.widget.options||{}},rule:function rule(){var _this=this,rules=this.widget.rules||[];return rules&&rules.length>0&&rules.forEach((function(item){item.pattern&&(item.pattern=eval(item.pattern)),_this.fileCheck&&(item.required=!1)})),rules}},watch:{}}},"2d18":function(e,t,r){"use strict";r("4bcd")},3122:function(module,__webpack_exports__,__webpack_require__){"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"===typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}__webpack_exports__["a"]={name:"oSelect",props:["widget","preview","value","fileCheck"],data:function(){var e;return{dataModel:(null===(e=this.widget.options)||void 0===e?void 0:e.defaultValue)||null,showSelect:!1,multiple:!1,columns:[],selectValue:[],radio:null}},mounted:function(){var e,t,r,n=this;if(null===(e=this.options)||void 0===e||null===(t=e.options)||void 0===t||t.forEach((function(e){n.columns.push(e.value)})),this.multiple=(null===(r=this.options)||void 0===r?void 0:r.multiple)||!1,this.value){var i=this.widget,o=i.originModel||i.model;for(var a in this.value)a==o&&(this.dataModel=this.value[a])}},methods:{onClick:function(){this.showSelect=!0},onPopupSubmit:function(){var e,t,r=this;this.dataModel=this.selectValue.join(","),this.showSelect=!1;var n=[];null===(e=this.options)||void 0===e||null===(t=e.options)||void 0===t||t.forEach((function(e){if(r.selectValue.includes(e.value)){var t=e.relationOptions||[];n.push.apply(n,_toConsumableArray(t))}}));var i=_toConsumableArray(new Set(n));i.length>0&&this.$emit("relationFormChange",i)},onRadio:function(){var e,t,r=this;this.dataModel=this.radio,this.showSelect=!1;var n=[];null===(e=this.options)||void 0===e||null===(t=e.options)||void 0===t||t.forEach((function(e){if(r.radio==e.value){var t=e.relationOptions||[];n.push.apply(n,_toConsumableArray(t))}})),n.length>0&&this.$emit("relationFormChange",n)}},computed:{options:function(){return this.widget.options||{}},rule:function rule(){var _this4=this,rules=this.widget.rules||[];return rules&&rules.length>0&&rules.forEach((function(item){item.pattern&&(item.pattern=eval(item.pattern)),_this4.fileCheck&&(item.required=!1)})),rules}},watch:{}}},"325c":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));r("5a0c");function n(){var e=navigator.userAgent;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1==e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/Mac OS X/),android:e.indexOf("DAYAAPPA")>-1||e.indexOf("Adr")>-1,iPhone:e.indexOf("DAYAAPPI")>-1,isApp:e.indexOf("DAYAAPPI")>-1||e.indexOf("DAYAAPPA")>-1||e.indexOf("Adr")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari"),weixin:e.indexOf("MicroMessenger")>-1,huawei:!!e.match(/huawei/i)||!!e.match(/honor/i),xiaomi:!!e.match(/mi\s/i)||!!e.match(/redmi/i)||!!e.match(/mix/i)}}function i(){var e=window.location.href,t="";return t=/test/.test(e)?"http://mstutest.dayaedu.com":/dev/.test(e)?"http://mstudev.dayaedu.com":/online/.test(e)?"https://mstuonline.dayaedu.com":"http://mstutest.dayaedu.com",t}},3324:function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new k(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return E()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var l=g(a,r);if(l){if(l===s)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=c(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var s={};function d(){}function f(){}function h(){}var p={};l(p,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(C([])));m&&m!==t&&r.call(m,i)&&(p=m);var _=h.prototype=d.prototype=Object.create(p);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){function n(i,o,a,l){var u=c(e[i],e,o);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==_typeof(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(d).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function g(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,g(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=c(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,s;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return f.prototype=h,l(_,"constructor",h),l(h,"constructor",f),f.displayName=l(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,a,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(y.prototype),l(y.prototype,o,(function(){return this})),e.AsyncIterator=y,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new y(u(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,a,"Generator"),l(_,i,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,s):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},e}function asyncGeneratorStep(e,t,r,n,i,o,a){try{var l=e[o](a),u=l.value}catch(c){return void r(c)}l.done?t(u):Promise.resolve(u).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){asyncGeneratorStep(o,n,i,a,l,"next",e)}function l(e){asyncGeneratorStep(o,n,i,a,l,"throw",e)}a(void 0)}))}}__webpack_exports__["a"]={name:"oOrgan",props:["widget","preview","value","fileCheck"],data:function(){var e;return{dataModel:(null===(e=this.widget.options)||void 0===e?void 0:e.defaultValue)||null,showDataModel:null,showSelect:!1,columns:[]}},mounted:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n,i=this;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setAllBranch");case 2:return e.next=4,this.getList();case 4:if(this.value){for(n in t=this.widget,r=t.originModel||t.model,this.value)n==r&&(this.dataModel=this.value[n]);this.columns.forEach((function(e){i.dataModel==e.value&&(i.showDataModel=e.text)}))}case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{onClick:function(){this.showSelect=!0},onConfirm:function(e){this.dataModel=e.value,this.showDataModel=e.text,this.showSelect=!1},onCancel:function(){this.showSelect=!1},getList:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n=this;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:try{this.columns=[],t=this.selects.allBranch,r=t||[],r.forEach((function(e){n.columns.push({text:e.value,value:e.key})}))}catch(i){}case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},computed:{options:function(){return this.widget.options||{}},rule:function rule(){var _this3=this,rules=this.widget.rules||[];return rules&&rules.length>0&&rules.forEach((function(item){item.pattern&&(item.pattern=eval(item.pattern)),_this3.fileCheck&&(item.required=!1)})),rules}},watch:{}}},3451:function(e,t,r){"use strict";r("483e")},"347b":function(e,t,r){"use strict";r("870b")},3862:function(module,__webpack_exports__,__webpack_require__){"use strict";var _components_MHeader__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("6e6e"),_common_loading__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("485a"),_api__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("764a"),_common_util__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("325c"),_helpers_native_message__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("ddf4");function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new k(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return E()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var l=g(a,r);if(l){if(l===s)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=c(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var s={};function d(){}function f(){}function h(){}var p={};l(p,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(C([])));m&&m!==t&&r.call(m,i)&&(p=m);var _=h.prototype=d.prototype=Object.create(p);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){function n(i,o,a,l){var u=c(e[i],e,o);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==_typeof(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(d).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function g(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,g(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=c(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,s;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return f.prototype=h,l(_,"constructor",h),l(h,"constructor",f),f.displayName=l(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,a,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(y.prototype),l(y.prototype,o,(function(){return this})),e.AsyncIterator=y,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new y(u(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,a,"Generator"),l(_,i,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,s):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},e}function asyncGeneratorStep(e,t,r,n,i,o,a){try{var l=e[o](a),u=l.value}catch(c){return void r(c)}l.done?t(u):Promise.resolve(u).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){asyncGeneratorStep(o,n,i,a,l,"next",e)}function l(e){asyncGeneratorStep(o,n,i,a,l,"throw",e)}a(void 0)}))}}__webpack_exports__["a"]={name:"oFileUpload",components:{MHeader:_components_MHeader__WEBPACK_IMPORTED_MODULE_0__["a"]},props:["widget","preview","value","fileCheck"],data:function(){var e,t=this;return{dataModel:(null===(e=this.widget.options)||void 0===e?void 0:e.defaultValue)||null,filePreview:!1,fileType:"xls",previewUrl:"",numPages:1,backUrl:{status:!0,callBack:function(){t.filePreview=!1}}}},mounted:function(){if(this.value){var e=this.widget,t=e.originModel||e.model;for(var r in this.value)r==t&&(this.dataModel=this.value[r])}},methods:{checkFileSuffix:function(e){var t=e.split("."),r=t[t.length-1];return"xlsx"==r||"xls"==r||"pdf"==r},getFileSuffix:function(e){var t=e.split("."),r=t[t.length-1];return"xlsx"==r||"xls"==r?"xls":"doc"==r||"docx"==r?"doc":"pdf"==r?"pdf":""},beforeRead:function(e){var t=e.size/1024/1024<20;return!!t||(this.$toast("上传文件大小不能超过 20MB"),!1)},beforeDelete:function(e,t){return this.dataModel.splice(t.index,1),(!this.dataModel||this.dataModel&&this.dataModel.length<=0)&&this.$emit("fileCheckRequired",!1),!0},afterRead:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,r){var n,i,o,a;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,Object(_common_loading__WEBPACK_IMPORTED_MODULE_1__["a"])(!0),t.status="uploading",t.message="上传中...",n=new FormData,n.append("file",t.file),i=null,o=this.$route.query,!o.processId){e.next=15;break}return n.append("processId",o.processId),e.next=12,Object(_api__WEBPACK_IMPORTED_MODULE_2__["j"])(n);case 12:i=e.sent,e.next=18;break;case 15:return e.next=17,Object(_api__WEBPACK_IMPORTED_MODULE_2__["r"])(n);case 17:i=e.sent;case 18:if(a=i.data,200!=a.code){e.next=25;break}t.status="done",this.dataModel[r.index]={url:a.data.url,name:t.file.name,file:{name:t.file.name}},19==o.processId&&this.$emit("fileCheckRequired",!0),e.next=30;break;case 25:return t.status="failed",t.message="上传失败",this.$toast(a.msg),this.dataModel.splice(r.index,1),e.abrupt("return",!1);case 30:Object(_common_loading__WEBPACK_IMPORTED_MODULE_1__["a"])(!1),e.next=40;break;case 33:return e.prev=33,e.t0=e["catch"](0),Object(_common_loading__WEBPACK_IMPORTED_MODULE_1__["a"])(!1),t.status="failed",t.message="上传失败",this.dataModel.splice(r.index,1),e.abrupt("return",!1);case 40:case"end":return e.stop()}}),e,this,[[0,33]])})));function t(t,r){return e.apply(this,arguments)}return t}(),downLoadFile2:function(e){var t=this;this.$toast.loading({duration:0,forbidClick:!0,message:"下载中..."}),Object(_common_util__WEBPACK_IMPORTED_MODULE_3__["a"])().isApp?Object(_helpers_native_message__WEBPACK_IMPORTED_MODULE_4__["b"])({api:"downloadFile",content:{downloadUrl:e}},(function(){t.$toast.clear()})):(this.$toast.clear(),window.location.href=e)},downLoadFile:function(e){var t=this;if(this.filePreview=!0,this.fileType=this.getFileSuffix(e),"xls"==this.fileType||"pdf"==this.fileType){this.$toast.loading({duration:0,forbidClick:!0,message:"加载中..."});var r=this;this.$nextTick((function(){var n=document.createElement("iframe");n.id="preview_iframe",n.style.width="100%",n.style.height="100%",n.style.border="none","xls"==t.fileType?Object(_common_util__WEBPACK_IMPORTED_MODULE_3__["a"])().android?n.src="https://api.idocv.com/view/url?url="+encodeURIComponent(e+"?times="+(new Date).getTime()):n.src="https://view.officeapps.live.com/op/view.aspx?src="+e:n.src=window.location.origin+"/pdf/web/viewer.html?file="+encodeURIComponent(e),n.attachEvent?n.attachEvent("onload",(function(){r.$toast.clear()})):n.onload=function(){r.$toast.clear()},document.querySelector("#previewIframe").appendChild(n)}))}else this.fileType}},computed:{options:function(){return this.widget.options||{}},rule:function rule(){var _this5=this,rules=this.widget.rules||[];return rules&&rules.length>0&&rules.forEach((function(item){item.pattern&&(item.pattern=eval(item.pattern)),_this5.fileCheck&&(item.required=!1)})),rules}},watch:{}}},3889:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.formData&&e.formData.list?e._l(e.formData.list,(function(t,n){return r("div",{key:n},["input"!=t.type||t.hidden?e._e():[r("o-input",{attrs:{widget:t,preview:e.preview,value:e.value}})],"textarea"!=t.type||t.hidden?e._e():[r("o-textarea",{attrs:{widget:t,preview:e.preview,value:e.value}})],"number"!=t.type||t.hidden?e._e():[r("o-number",{attrs:{widget:t,preview:e.preview,value:e.value}})],"radio"!=t.type||t.hidden?e._e():[r("o-radio",{attrs:{widget:t,preview:e.preview,value:e.value}})],"checkbox"!=t.type||t.hidden?e._e():[r("o-checkbox",{attrs:{widget:t,preview:e.preview,value:e.value}})],"date"!=t.type||t.hidden?e._e():[r("o-date",{attrs:{widget:t,preview:e.preview,value:e.value}})],"rate"!=t.type||t.hidden?e._e():[r("o-rate",{attrs:{widget:t,preview:e.preview,value:e.value}})],"select"!=t.type||t.hidden?e._e():[r("o-select",{attrs:{widget:t,preview:e.preview,value:e.value},on:{relationFormChange:e.relationFormChange}})],"organ"!=t.type||t.hidden?e._e():[r("o-organ",{attrs:{widget:t,preview:e.preview,value:e.value}})],"school"!=t.type||t.hidden?e._e():[r("o-school",{attrs:{widget:t,preview:e.preview,value:e.value}})],"text"!=t.type||t.hidden?e._e():[r("o-text",{attrs:{widget:t,preview:e.preview,value:e.value}})],"imgupload"!=t.type||t.hidden?e._e():[r("o-img-upload",{attrs:{widget:t,preview:e.preview,value:e.value}})],"file"!=t.type||t.hidden?e._e():[r("o-file-upload",{attrs:{widget:t,preview:e.preview,value:e.value},on:{fileCheckRequired:e.fileCheckRequired}})],"divider"!=t.type||t.hidden?e._e():[r("o-divider",{attrs:{widget:t,preview:e.preview,value:e.value}})],"cascader"!=t.type||t.hidden?e._e():[r("o-cascader",{attrs:{widget:t,preview:e.preview,value:e.value}})],"subform"==t.type?[r("div",{directives:[{name:"show",rawName:"v-show",value:!t.hidden,expression:"!item.hidden"}]},[r("o-subform",{ref:"subform",refInFor:!0,attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.value},on:{relationFormChange:e.relationFormChange,fileCheckRequired:e.fileCheckRequired}})],1)]:e._e()],2)})):e._e()],2)},i=[],o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"input"==e.widget.type?r("div",{staticClass:"oInput controller",class:[e.preview?"":"o-unit"]},[e.preview?r("van-cell",{staticClass:"preview",attrs:{title:e.widget.name||"文本框",value:e.dataModel}}):r("van-field",{attrs:{name:e.widget.model,label:e.widget.name||"文本框",type:e.inputType,required:!e.fileCheck&&(e.options.required||!1),disabled:e.options.disabled||!1,clearable:"",placeholder:e.options.placeholder||"请输入",autocomplete:"off",formatter:e.onFormatter,rules:e.rule},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})],1):e._e()},a=[],l=r("1207"),u=l["a"],c=(r("29e0"),r("2877")),s=Object(c["a"])(u,o,a,!1,null,"6f712df0",null),d=s.exports,f=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"textarea"==e.widget.type?r("div",{staticClass:"oTextarea controller",class:[e.preview?"":"o-unit"]},[e.preview?r("van-cell",{staticClass:"preview",attrs:{title:e.widget.name||"文本框"}},[r("p",{domProps:{innerHTML:e._s(e.dataModelFormatBr(e.dataModel))}})]):r("van-field",{attrs:{name:e.widget.model,label:e.widget.name||"文本框",required:!e.fileCheck&&(e.options.required||!1),disabled:e.options.disabled||!1,"show-error":!1,"scroll-to-error":!0,placeholder:e.options.placeholder||"请输入",type:"textarea",clearable:"",autosize:{maxHeight:120,minHeight:60},rules:e.rule},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})],1):e._e()},h=[],p=r("e7d9"),v=p["a"],m=(r("15b3"),Object(c["a"])(v,f,h,!1,null,"49c99935",null)),_=m.exports,w=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"number"==e.widget.type?r("div",{staticClass:"oNumber controller",class:[e.preview?"":"o-unit"]},[e.preview?r("van-cell",{staticClass:"preview",attrs:{title:e.widget.name||"文本框",value:e.dataModel}}):r("van-field",{attrs:{name:e.widget.model,label:e.widget.name||"文本框",required:!e.fileCheck&&(e.options.required||!1),disabled:e.options.disabled||!1,type:"number",clearable:"",placeholder:e.options.placeholder||"请输入",rules:e.rule},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})],1):e._e()},y=[],g=r("c070"),b=g["a"],x=(r("0607"),Object(c["a"])(b,w,y,!1,null,"cb8c8616",null)),k=x.exports,C=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"radio"==e.widget.type?r("div",{staticClass:"oRadio controller",class:[e.preview?"":"o-unit"]},[e.preview?r("van-cell",{staticClass:"preview",attrs:{title:e.widget.name||"单选框",value:e.dataModel}}):r("van-field",{attrs:{name:e.widget.model,label:e.widget.name||"单选框",required:!e.fileCheck&&(e.options.required||!1),disabled:e.options.disabled||!1,clearable:"",placeholder:e.options.placeholder||"请选择",rules:e.rule},scopedSlots:e._u([{key:"input",fn:function(){return[r("van-radio-group",{attrs:{direction:e.options.inline?"horizontal":"vertical"},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},e._l(e.options.options,(function(t){return r("van-radio",{key:t.value,attrs:{name:t.value}},[e._v(e._s(t.value))])})),1)]},proxy:!0}],null,!1,1647557114)})],1):e._e()},E=[],O=r("1f68"),M=O["a"],S=(r("2d18"),Object(c["a"])(M,C,E,!1,null,"1ebfb4d7",null)),L=S.exports,A=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"checkbox"==e.widget.type?r("div",{staticClass:"oCheckbox controller",class:[e.preview?"":"o-unit"]},[e.preview?r("van-field",{staticClass:"preview",attrs:{name:e.widget.model,label:e.widget.name||"复选框"},scopedSlots:e._u([{key:"input",fn:function(){return[r("van-checkbox-group",{attrs:{disabled:"",direction:e.options.inline?"horizontal":"vertical"},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},e._l(e.options.options,(function(t){return r("van-checkbox",{key:t.value,attrs:{shape:"square",name:t.value}},[e._v(e._s(t.value))])})),1)]},proxy:!0}],null,!1,2446324420)}):r("van-field",{attrs:{name:e.widget.model,label:e.widget.name||"复选框",required:!e.fileCheck&&(e.options.required||!1),disabled:e.options.disabled||!1,clearable:"",rules:e.rule},scopedSlots:e._u([{key:"input",fn:function(){return[r("van-checkbox-group",{attrs:{direction:e.options.inline?"horizontal":"vertical"},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}},e._l(e.options.options,(function(t){return r("van-checkbox",{key:t.value,attrs:{shape:"square",name:t.value}},[e._v(e._s(t.value))])})),1)]},proxy:!0}],null,!1,157240258)})],1):e._e()},P=[],j=r("7071"),T=j["a"],D=(r("4397"),Object(c["a"])(T,A,P,!1,null,"d256d604",null)),I=D.exports,q=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"date"==e.widget.type?r("div",{staticClass:"oDate controller",class:[e.preview?"":"o-unit"]},[e.preview?r("van-cell",{staticClass:"preview",attrs:{title:e.widget.name||"文本框",value:e.dataModel}}):r("van-field",{attrs:{name:e.widget.model,label:e.widget.name||"文本框",required:!e.fileCheck&&(e.options.required||!1),disabled:e.options.disabled||!1,readonly:"",clearable:"",placeholder:e.options.placeholder||"请输入",clickable:!0,rules:e.rule},on:{click:e.onClick},scopedSlots:e._u([{key:"right-icon",fn:function(){return[r("i",{staticClass:"van-icon van-icon-arrow van-cell__right-icon"})]},proxy:!0}],null,!1,2515712705),model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),r("van-popup",{attrs:{position:"bottom"},model:{value:e.showDate,callback:function(t){e.showDate=t},expression:"showDate"}},[r("van-datetime-picker",{attrs:{type:e.dateType,formatter:e.formatter},on:{confirm:e.onConfirm,cancel:e.onCancel},model:{value:e.currentDate,callback:function(t){e.currentDate=t},expression:"currentDate"}})],1)],1):e._e()},B=[],R=r("5003"),U=R["a"],G=(r("14e9"),Object(c["a"])(U,q,B,!1,null,"169764ff",null)),V=G.exports,F=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"rate"==e.widget.type?r("div",{staticClass:"oRate controller",class:[e.preview?"":"o-unit"]},[e.preview?r("van-field",{staticClass:"preview",attrs:{name:e.widget.model,label:e.widget.name||"文本框"},scopedSlots:e._u([{key:"input",fn:function(){return[r("van-rate",{attrs:{size:25,readonly:!0,count:e.options.max,color:"#ffd21e","void-icon":"star","void-color":"#eee"},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]},proxy:!0}],null,!1,3265659362)}):r("van-field",{attrs:{name:e.widget.model,label:e.widget.name||"文本框",required:!e.fileCheck&&(e.options.required||!1),clearable:"",placeholder:e.options.placeholder||"请输入",rules:e.rule},scopedSlots:e._u([{key:"input",fn:function(){return[r("van-rate",{attrs:{size:25,disabled:e.options.disabled||!1,count:e.options.max,color:"#ffd21e","void-icon":"star","void-color":"#eee"},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]},proxy:!0}],null,!1,1569551217)})],1):e._e()},$=[],N=r("5eb6"),K=N["a"],H=(r("c054"),Object(c["a"])(K,F,$,!1,null,"32686ee0",null)),Y=H.exports,W=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"select"==e.widget.type?r("div",{staticClass:"oSelect controller",class:[e.preview?"":"o-unit"]},[e.preview?r("van-cell",{staticClass:"preview",attrs:{title:e.widget.name||"文本框",value:e.dataModel}}):r("van-field",{attrs:{name:e.widget.model,label:e.widget.name||"文本框",required:!e.fileCheck&&(e.options.required||!1),disabled:e.options.disabled||!1,clearable:"",readonly:"",clickable:"",placeholder:e.options.placeholder||"请输入",rules:e.rule,"clear-trigger":"always"},on:{click:e.onClick},scopedSlots:e._u([{key:"right-icon",fn:function(){return[r("i",{staticClass:"van-icon van-icon-arrow van-cell__right-icon"})]},proxy:!0}],null,!1,2515712705),model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),r("van-popup",{staticStyle:{height:"45%"},attrs:{position:"bottom",round:""},model:{value:e.showSelect,callback:function(t){e.showSelect=t},expression:"showSelect"}},[r("van-cell",{staticClass:"select-popup-header",attrs:{title:" "},scopedSlots:e._u([{key:"icon",fn:function(){return[r("van-icon",{attrs:{name:"arrow-down",size:"22px"},on:{click:function(t){e.showSelect=!1}}})]},proxy:!0}],null,!1,3827496521)},[e.multiple?r("span",{staticClass:"btnSure",staticStyle:{padding:"0 .18rem"},attrs:{type:"info"},on:{click:e.onPopupSubmit}},[e._v("确定")]):e._e()]),e.multiple?r("van-checkbox-group",{staticClass:"select-list",model:{value:e.selectValue,callback:function(t){e.selectValue=t},expression:"selectValue"}},e._l(e.columns,(function(t,n){return r("van-checkbox",{key:n,staticClass:"select-item",attrs:{name:t}},[e._v(e._s(t))])})),1):r("van-radio-group",{staticClass:"select-list",model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},e._l(e.columns,(function(t,n){return r("van-radio",{key:n,staticClass:"select-item",attrs:{name:t},on:{click:e.onRadio}},[e._v(e._s(t))])})),1)],1)],1):e._e()},z=[],Q=r("3122"),J=Q["a"],X=(r("347b"),Object(c["a"])(J,W,z,!1,null,"3532fde8",null)),Z=X.exports,ee=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"organ"==e.widget.type?r("div",{staticClass:"oOrgan controller",class:[e.preview?"":"o-unit"]},[e.preview?r("van-cell",{staticClass:"preview",attrs:{border:!1,title:e.widget.name||"文本框",value:e.dataModel}}):r("van-field",{attrs:{name:e.widget.model,label:e.widget.name||"文本框",required:!e.fileCheck&&(e.options.required||!1),disabled:e.options.disabled||!1,clearable:"",readonly:"",placeholder:e.options.placeholder||"请输入",rules:e.rule,"clear-trigger":"always"},on:{click:e.onClick},scopedSlots:e._u([{key:"right-icon",fn:function(){return[r("i",{staticClass:"van-icon van-icon-arrow van-cell__right-icon"})]},proxy:!0}],null,!1,2515712705),model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),e.showDataModel&&!e.preview?r("div",{staticClass:"valueShow"},[e._v("\n "+e._s(e.showDataModel)+"\n ")]):e._e(),e.showDataModel&&e.preview?r("div",{staticClass:"valueShow valuePreview"},[e._v("\n "+e._s(e.showDataModel)+"\n "),r("input",{attrs:{type:"hidden",name:e.widget.model},domProps:{value:e.dataModel}})]):e._e(),r("van-popup",{attrs:{position:"bottom"},model:{value:e.showSelect,callback:function(t){e.showSelect=t},expression:"showSelect"}},[r("van-picker",{attrs:{"show-toolbar":"",columns:e.columns,"visible-item-count":"4"},on:{confirm:e.onConfirm,cancel:e.onCancel}})],1)],1):e._e()},te=[],re=r("3324"),ne=re["a"],ie=(r("7d0e"),Object(c["a"])(ne,ee,te,!1,null,"50613b7a",null)),oe=ie.exports,ae=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"school"==e.widget.type?r("div",{staticClass:"oSchool controller",class:[e.preview?"":"o-unit"]},[e.preview?r("van-cell",{staticClass:"preview",attrs:{border:!1,title:e.widget.name||"文本框",value:e.dataModel}}):r("van-field",{attrs:{name:e.widget.model,label:e.widget.name||"文本框",required:!e.fileCheck&&(e.options.required||!1),disabled:e.options.disabled||!1,clearable:"",readonly:"",clickable:"",placeholder:e.options.placeholder||"请输入",rules:e.rule,"clear-trigger":"always"},on:{click:e.onClick},scopedSlots:e._u([{key:"right-icon",fn:function(){return[r("i",{staticClass:"van-icon van-icon-arrow van-cell__right-icon"})]},proxy:!0}],null,!1,2515712705),model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}}),e.showDataModel&&!e.preview?r("div",{staticClass:"valueShow"},[e._v(e._s(e.showDataModel))]):e._e(),e.showDataModel&&e.preview?r("div",{staticClass:"valueShow valuePreview"},[e._v(e._s(e.showDataModel))]):e._e(),r("van-popup",{attrs:{position:"bottom"},model:{value:e.showSelect,callback:function(t){e.showSelect=t},expression:"showSelect"}},[r("van-picker",{attrs:{"show-toolbar":"",columns:e.columns,"visible-item-count":"4"},on:{confirm:e.onConfirm,cancel:e.onCancel}})],1)],1):e._e()},le=[],ue=r("634f"),ce=ue["a"],se=(r("3451"),Object(c["a"])(ce,ae,le,!1,null,"96f61e7e",null)),de=se.exports,fe=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"text"==e.widget.type?r("div",{staticClass:"oText"},[r("p",{staticClass:"text-content",class:[e.preview?"textMarginTop":null]},[e._v(e._s(e.dataModel))])]):e._e()},he=[],pe={name:"oText",props:["widget","preview"],data:function(){var e;return{dataModel:(null===(e=this.widget.options)||void 0===e?void 0:e.defaultValue)||null}},mounted:function(){},methods:{},computed:{options:function(){return this.widget.options||{}}},watch:{}},ve=pe,me=(r("adbc"),Object(c["a"])(ve,fe,he,!1,null,"405f6e86",null)),_e=me.exports,we=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"imgupload"==e.widget.type?r("div",{staticClass:"oImgUpload controller",class:[e.preview?"":"o-unit"]},[e.preview?r("van-field",{staticClass:"preview",attrs:{name:e.widget.model,label:e.widget.name||"图片"},scopedSlots:e._u([{key:"input",fn:function(){return[r("van-uploader",{attrs:{disabled:!0,deletable:!1,"max-count":e.dataModel.length||0,"preview-size":"0.5rem"},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]},proxy:!0}],null,!1,1971352206)}):r("van-field",{attrs:{name:e.widget.model,label:e.widget.name||"图片",required:!e.fileCheck&&(e.options.required||!1),rules:e.rule},scopedSlots:e._u([{key:"input",fn:function(){return[r("van-uploader",{attrs:{"before-read":e.beforeRead,"before-delete":e.beforeDelete,"after-read":e.afterRead,"max-count":e.options.length,"preview-size":"0.6rem"},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]},proxy:!0}],null,!1,1430365124)})],1):e._e()},ye=[],ge=r("2b98"),be=ge["a"],xe=(r("dbbb"),Object(c["a"])(be,we,ye,!1,null,"b1272a92",null)),ke=xe.exports,Ce=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"file"==e.widget.type?r("div",{staticClass:"oFileUpload controller",class:[e.preview?"":"o-unit"]},[e.preview?r("van-field",{staticClass:"preview",attrs:{name:e.widget.model,label:e.widget.name||"附件"},scopedSlots:e._u([{key:"input",fn:function(){return e._l(e.dataModel,(function(t,n){return r("div",{key:n,staticClass:"preview_file"},[r("div",{staticClass:"preview_item"},[r("i",{staticClass:"van-icon van-icon-description van-uploader__file-icon"}),r("span",{staticStyle:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis",width:"2rem"}},[e._v(e._s(t.name||t.url))])]),r("div",{staticClass:"preview_btn"},[e.checkFileSuffix(t.url)?r("van-button",{attrs:{disabled:!e.checkFileSuffix(t.url),type:"info",size:"mini"},on:{click:function(r){return e.downLoadFile(t.url)}}},[e._v("预览")]):e._e()],1)])}))},proxy:!0}],null,!1,3989713437)}):r("van-field",{attrs:{name:e.widget.model,label:e.widget.name||"附件",required:!e.fileCheck&&(e.options.required||!1),rules:e.rule},scopedSlots:e._u([{key:"input",fn:function(){return[r("van-uploader",{attrs:{"before-read":e.beforeRead,"before-delete":e.beforeDelete,"after-read":e.afterRead,disabled:e.options.disabled||!1,"max-count":e.options.length,accept:"image/*, *.xlsx, *.xls,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document, *.txt, *.pdf","preview-size":"0.6rem"},model:{value:e.dataModel,callback:function(t){e.dataModel=t},expression:"dataModel"}})]},proxy:!0}],null,!1,3877635050)}),r("van-popup",{staticStyle:{height:"100%"},attrs:{position:"bottom"},model:{value:e.filePreview,callback:function(t){e.filePreview=t},expression:"filePreview"}},[r("van-sticky",[r("m-header",{attrs:{backUrl:e.backUrl,isFixed:!1,name:"预览"}})],1),!e.filePreview||"xls"!=e.fileType&&"pdf"!=e.fileType?e._e():r("div",{staticStyle:{height:"calc(100vh - 0.44rem)"},attrs:{id:"previewIframe"}}),e.filePreview&&"doc"==e.fileType?r("div",{staticStyle:{height:"calc(100vh - 0.44rem)"}}):e._e()],1)],1):e._e()},Ee=[],Oe=r("3862"),Me=Oe["a"],Se=(r("0e66"),Object(c["a"])(Me,Ce,Ee,!1,null,"d6018530",null)),Le=Se.exports,Ae=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"divider"==e.widget.type?r("div",{staticClass:"oDivider",class:[e.preview?"":"o-unit"]},[e.preview?r("van-divider",{style:{borderColor:"#c0c0c0",margin:0},attrs:{"content-position":e.options.content_position}},[e._v(e._s(e.dataModel))]):r("van-divider",{style:{borderColor:"#c0c0c0",padding:"0 16px",margin:0},attrs:{"content-position":e.options.content_position}},[e._v(e._s(e.dataModel))])],1):e._e()},Pe=[],je={name:"oDivider",props:["widget","preview"],data:function(){var e;return{dataModel:(null===(e=this.widget.options)||void 0===e?void 0:e.defaultValue)||null}},mounted:function(){},methods:{},computed:{options:function(){return this.widget.options||{}}}},Te=je,De=(r("6cb8"),Object(c["a"])(Te,Ae,Pe,!1,null,"449022a5",null)),Ie=De.exports,qe=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"cascader"==e.widget.type?r("div",{staticClass:"oCascader controller",class:[e.preview?"":"o-unit"]},[e.preview?r("van-cell",{staticClass:"preview",attrs:{title:e.widget.name||"级联选择",value:e.previewValue}}):r("van-field",{attrs:{name:e.widget.model,label:e.widget.name||"级联选择",required:!e.fileCheck&&(e.options.required||!1),disabled:e.options.disabled||!1,clearable:"",readonly:"",placeholder:e.options.placeholder||"请选择",rules:e.rule},on:{click:e.onClick},scopedSlots:e._u([{key:"right-icon",fn:function(){return[r("i",{staticClass:"van-icon van-icon-arrow van-cell__right-icon"})]},proxy:!0}],null,!1,2515712705),model:{value:e.values,callback:function(t){e.values=t},expression:"values"}}),r("van-popup",{attrs:{position:"bottom"},model:{value:e.showCascader,callback:function(t){e.showCascader=t},expression:"showCascader"}},[r("van-cascader",{attrs:{title:e.options.placeholder||"请选择",options:e.columns,"active-color":"#01C1B5"},on:{close:function(t){e.showCascader=!1},finish:e.onConfirm}})],1)],1):e._e()},Be=[],Re=r("7688"),Ue=Re["a"],Ge=(r("c0e0"),Object(c["a"])(Ue,qe,Be,!1,null,"2704155f",null)),Ve=Ge.exports,Fe=function(){var e=this,t=e.$createElement,r=e._self._c||t;return"subform"==e.widget.type?r("div",{staticClass:"oSubform",class:[e.preview?"":"o-unit"]},[e.preview?e._e():r("van-cell",{staticStyle:{"padding-bottom":"5px"},attrs:{title:e.widget.name||"子表单",border:!1}}),e._l(e.columns,(function(t,n){return r("div",{key:n,class:e.preview?"previewSection":null},[e.preview?r("van-cell",{staticClass:"previewTitle",attrs:{title:(e.widget.name||"子表单")+""+(n+1),border:!1}}):e._e(),e.columns.length>1&&!e.preview?r("span",{staticClass:"delete"},[r("span",{on:{click:function(r){return e.onDelete(t,n)}}},[e._v("删除")])]):e._e(),t.list&&t.list.length>0?r("div",{class:[e.preview?null:"van-hairline--bottom"]},e._l(t.list,(function(t,i){return r("div",{key:"o"+i},["input"!=t.type||t.hidden?e._e():[r("o-input",{attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.defaultValue?e.defaultValue[n]:null}})],"textarea"!=t.type||t.hidden?e._e():[r("o-textarea",{attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.defaultValue?e.defaultValue[n]:null}})],"number"!=t.type||t.hidden?e._e():[r("o-number",{attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.defaultValue?e.defaultValue[n]:null}})],"radio"!=t.type||t.hidden?e._e():[r("o-radio",{attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.defaultValue?e.defaultValue[n]:null}})],"checkbox"!=t.type||t.hidden?e._e():[r("o-checkbox",{attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.defaultValue?e.defaultValue[n]:null}})],"date"!=t.type||t.hidden?e._e():[r("o-date",{attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.defaultValue?e.defaultValue[n]:null}})],"rate"!=t.type||t.hidden?e._e():[r("o-rate",{attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.defaultValue?e.defaultValue[n]:null}})],"select"!=t.type||t.hidden?e._e():[r("o-select",{attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.defaultValue?e.defaultValue[n]:null},on:{relationFormChange:e.relationFormChange}})],"organ"!=t.type||t.hidden?e._e():[r("o-organ",{attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.defaultValue?e.defaultValue[n]:null}})],"school"!=t.type||t.hidden?e._e():[r("o-school",{attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.defaultValue?e.defaultValue[n]:null}})],"text"!=t.type||t.hidden?e._e():[r("o-text",{attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.defaultValue?e.defaultValue[n]:null}})],"imgupload"!=t.type||t.hidden?e._e():[r("o-img-upload",{attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.defaultValue?e.defaultValue[n]:null}})],"file"!=t.type||t.hidden?e._e():[r("o-file-upload",{attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.defaultValue?e.defaultValue[n]:null},on:{fileCheckRequired:e.fileCheckRequired}})],"divider"!=t.type||t.hidden?e._e():[r("o-divider",{attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.defaultValue?e.defaultValue[n]:null}})],"cascader"!=t.type||t.hidden?e._e():[r("o-cascader",{attrs:{widget:t,fileCheck:e.fileCheck,preview:e.preview,value:e.defaultValue?e.defaultValue[n]:null}})]],2)})),0):e._e()],1)})),e.preview?e._e():r("div",{staticClass:"addItem",on:{click:e.addItem}},[r("van-icon",{attrs:{name:"plus"}}),e._v(" 添加\n ")],1)],2):e._e()},$e=[];function Ne(e){return We(e)||Ye(e)||He(e)||Ke()}function Ke(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function He(e,t){if(e){if("string"===typeof e)return ze(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ze(e,t):void 0}}function Ye(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function We(e){if(Array.isArray(e))return ze(e)}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Qe={name:"oSubform",components:{OInput:d,OTextarea:_,ONumber:k,ORadio:L,OCheckbox:I,ODate:V,ORate:Y,OSelect:Z,OOrgan:oe,OSchool:de,OText:_e,OImgUpload:ke,OFileUpload:Le,ODivider:Ie,OCascader:Ve},props:["widget","value","preview","fileCheck"],data:function(){return{columns:[],tempColumns:[],models:{},defaultValue:null}},mounted:function(){this.__init()},methods:{__init:function(){var e=this;this.columns=[],this.tempColumns=[];var t=this.widget.columns||[],r={list:[]};if(t.forEach((function(t){var n,i;(null===(n=t.list)||void 0===n?void 0:n.length)>0&&(t.list.forEach((function(t){t.originModel=t.model,t.model=e.widget.model+"."+t.model+".0"})),(i=r.list).push.apply(i,Ne(t.list)))})),this.columns.push(r),this.tempColumns.push(r),this.value){var n=this.widget,i=n.originModel||n.model;for(var o in this.value)o==i&&(this.defaultValue=this.value[o])}if(this.defaultValue){var a,l=this.defaultValue.length-(null===(a=this.columns)||void 0===a?void 0:a.length);if(l>0)for(var u=0;u<l;u++)this.addItem()}},reSetFormData:function(){this.columns=[];var e=this.widget.columns||[],t={list:[]};e.forEach((function(e){var r,n;(null===(r=e.list)||void 0===r?void 0:r.length)>0&&(n=t.list).push.apply(n,Ne(e.list))})),this.columns.push(t)},addItem:function(){var e,t=this,r=JSON.parse(JSON.stringify(this.tempColumns));r.forEach((function(e){var r;(null===(r=e.list)||void 0===r?void 0:r.length)>0&&e.list.forEach((function(e){var r=e.model.split(".");r.pop(),r=r.join("."),e.model=r+"."+t.columns.length}))})),(e=this.columns).push.apply(e,Ne(r))},onDelete:function(e,t){var r=this;this.$dialog.confirm({message:"你确定要删除吗?"}).then((function(){-1!==t&&r.columns.splice(t,1)}))},relationFormChange:function(e){this.$emit("relationFormChange",e)},fileCheckRequired:function(e){this.$emit("fileCheckRequired",e)}},computed:{options:function(){return this.widget.options||{}}},watch:{}},Je=Qe,Xe=(r("f522"),Object(c["a"])(Je,Fe,$e,!1,null,"076ea924",null)),Ze=Xe.exports,et={name:"formModal",components:{OInput:d,OTextarea:_,ONumber:k,ORadio:L,OCheckbox:I,ODate:V,ORate:Y,OSelect:Z,OOrgan:oe,OSchool:de,OText:_e,OImgUpload:ke,OFileUpload:Le,ODivider:Ie,OCascader:Ve,OSubform:Ze},props:{value:{type:Object,default:function(){return{}}},formData:{type:Object,default:function(){return{}}},preview:{type:Boolean,default:function(){return!1}}},data:function(){return{formStatus:!1,fileCheck:!1}},mounted:function(){if(!this.preview){var e=this.formData,t=this.getSelectValueObject(e);this.formStatus=t,this.relationFormChange()}},methods:{getSelectValueObject:function(e){var t=e.list||[],r=!1;return t.forEach((function(e){if("select"==e.type&&e.options.relationStatus&&(r=!0),"subform"==e.type){var t=e.columns||[];t.forEach((function(t){var n=t.list||[];n.forEach((function(t){"select"==t.type&&e.options.relationStatus&&(r=!0)}))}))}})),r},relationFormChange:function(e){var t,r=this,n=e||[];null===(t=this.formData.list)||void 0===t||t.forEach((function(e){if(r.formStatus?("text"==e.type||"subform"==e.type||e.options.relationStatus?e.hidden=!1:e.hidden=!0,n.includes(e.model)&&(e.hidden=!1)):e.hidden=!1,"subform"==e.type){var t=e.columns||[];t.forEach((function(e){var t;(null===(t=e.list)||void 0===t?void 0:t.length)>0&&e.list.forEach((function(e){r.formStatus?("text"==e.type||"subform"==e.type||e.options.relationStatus?e.hidden=!1:e.hidden=!0,n.includes(e.originModel)&&(e.hidden=!1)):e.hidden=!1}))}));var i=r.$refs.subform;i.forEach((function(e){e.reSetFormData()}));var o=!0;t.forEach((function(e){var t;(null===(t=e.list)||void 0===t?void 0:t.length)>0&&e.list.forEach((function(e){e.hidden||(o=!1)}))})),e.hidden=o}})),this.$forceUpdate()},fileCheckRequired:function(e){this.fileCheck=e,this.$forceUpdate()}}},tt=et,rt=Object(c["a"])(tt,n,i,!1,null,null,null);t["a"]=rt.exports},4397:function(e,t,r){"use strict";r("eb17")},"483e":function(e,t,r){},"485a":function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));r("433b");var n=r("d399");function i(e){e?n["a"].loading({duration:0,forbidClick:!0,message:"加载中..."}):n["a"].clear()}},"4bcd":function(e,t,r){},"4efa":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"f",(function(){return o})),r.d(t,"c",(function(){return a})),r.d(t,"b",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"e",(function(){return c}));var n=r("2b7c"),i=function(e){return Object(n["a"])({url:"/imSendGroupMessage/queryPage",method:"post",requestType:"form",data:e})},o=function(e){return Object(n["a"])({url:"/imSendGroupMessage/queryGroupPage1",method:"post",requestType:"form",data:e})},a=function(e){return Object(n["a"])({url:"/imSendGroupMessage/send",method:"post",data:e})},l=function(e){return Object(n["a"])({url:"/imSendGroupMessage/delete",method:"post",requestType:"form",data:e})},u=function(e){return Object(n["a"])({url:"/imSendGroupMessage/update",method:"post",data:e})};function c(e){return Object(n["a"])({method:"post",url:"/getUploadSign",data:e})}},5003:function(module,__webpack_exports__,__webpack_require__){"use strict";var dayjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("5a0c"),dayjs__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_0__);__webpack_exports__["a"]={name:"oDate",props:["widget","preview","value","fileCheck"],data:function(){var e;return{dataModel:(null===(e=this.widget.options)||void 0===e?void 0:e.defaultValue)||null,showDate:!1,currentDate:new Date,dateType:"date"}},mounted:function(){var e,t,r;if("dates"==(null===(e=this.options)||void 0===e?void 0:e.type)||"daterange"==(null===(t=this.options)||void 0===t?void 0:t.type)?this.dateType="date":"datetimerange"==(null===(r=this.options)||void 0===r?void 0:r.type)?this.dateType="datetime":this.dateType=this.options.type,this.value){var n=this.widget,i=n.originModel||n.model;for(var o in this.value)o==i&&(this.dataModel=this.value[o])}},methods:{onClick:function(){this.showDate=!0},onConfirm:function(e){this.dataModel=dayjs__WEBPACK_IMPORTED_MODULE_0___default()(e).format("YYYY-MM-DD"),this.showDate=!1},onCancel:function(){this.showDate=!1},formatter:function(e,t){return"year"===e?t+"年":"month"===e?t+"月":"day"===e?t+"日":"hour"==e?t+"时":"minute"==e?t+"分":t}},computed:{options:function(){return this.widget.options||{}},rule:function rule(){var _this=this,rules=this.widget.rules||[];return rules&&rules.length>0&&rules.forEach((function(item){item.pattern&&(item.pattern=eval(item.pattern)),_this.fileCheck&&(item.required=!1)})),rules}},watch:{}}},5192:function(e,t,r){},"5e4c":function(e,t,r){},"5eb6":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]={name:"oRate",props:["widget","preview","value","fileCheck"],data:function(){var e;return{dataModel:(null===(e=this.widget.options)||void 0===e?void 0:e.defaultValue)||null}},mounted:function(){if(this.value){var e=this.widget,t=e.originModel||e.model;for(var r in this.value)r==t&&(this.dataModel=this.value[r])}},methods:{},computed:{options:function(){return this.widget.options||{}},rule:function rule(){var _this=this,rules=this.widget.rules||[];return rules&&rules.length>0&&rules.forEach((function(item){item.pattern&&(item.pattern=eval(item.pattern)),_this.fileCheck&&(item.required=!1)})),rules}},watch:{}}},"5ffd":function(e,t,r){},"634f":function(module,__webpack_exports__,__webpack_require__){"use strict";var _api__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("764a");function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new k(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return E()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var l=g(a,r);if(l){if(l===s)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=c(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var s={};function d(){}function f(){}function h(){}var p={};l(p,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(C([])));m&&m!==t&&r.call(m,i)&&(p=m);var _=h.prototype=d.prototype=Object.create(p);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){function n(i,o,a,l){var u=c(e[i],e,o);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==_typeof(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(d).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function g(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,g(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=c(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,s;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return f.prototype=h,l(_,"constructor",h),l(h,"constructor",f),f.displayName=l(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,a,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(y.prototype),l(y.prototype,o,(function(){return this})),e.AsyncIterator=y,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new y(u(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,a,"Generator"),l(_,i,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,s):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},e}function asyncGeneratorStep(e,t,r,n,i,o,a){try{var l=e[o](a),u=l.value}catch(c){return void r(c)}l.done?t(u):Promise.resolve(u).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){asyncGeneratorStep(o,n,i,a,l,"next",e)}function l(e){asyncGeneratorStep(o,n,i,a,l,"throw",e)}a(void 0)}))}}__webpack_exports__["a"]={name:"oSchool",props:["widget","preview","value","fileCheck"],data:function(){var e;return{dataModel:(null===(e=this.widget.options)||void 0===e?void 0:e.defaultValue)||null,showDataModel:null,showSelect:!1,columns:[],organId:null}},mounted:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n,i,o,a=this;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null===(t=this.options)||void 0===t||null===(r=t.options)||void 0===r||r.forEach((function(e){a.columns.push(e.value)})),this.value){for(o in n=this.widget,i=n.originModel||n.model,this.value)o==i&&(this.dataModel=this.value[o]);setTimeout(_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,i,o,l;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=n.model.indexOf("subform"),r=n.options.displayRelation,i=null,t>-1&&(i=n.model.replace(n.originModel,r)),o=document.querySelector('input[name="'.concat(r,'"]'))||document.querySelector('input[name="'.concat(i,'"]')),l=o?o.value:null,l){e.next=8;break}return e.abrupt("return");case 8:return a.organId=l,e.next=11,a.getList();case 11:a.columns.forEach((function(e){a.dataModel==e.value&&(a.showDataModel=e.text)}));case 12:case"end":return e.stop()}}),e)}))),200)}case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{onClick:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n,i,o,a;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.widget,r=t.model.indexOf("subform"),n=t.options.displayRelation,i=null,r>-1&&(i=t.model.replace(t.originModel,n)),o=document.querySelector('input[name="'.concat(n,'"]'))||document.querySelector('input[name="'.concat(i,'"]')),n&&o){e.next=9;break}return this.$toast("模板配置有误,请联系总部管理员"),e.abrupt("return");case 9:if(a=o.value,a){e.next=13;break}return this.$toast("请选择分部"),e.abrupt("return");case 13:if(a==this.organId){e.next=17;break}return this.organId=a,e.next=17,this.getList();case 17:this.showSelect=!0;case 18:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getList:function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n=this;return _regeneratorRuntime().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.columns=[],e.next=4,Object(_api__WEBPACK_IMPORTED_MODULE_0__["f"])({organId:this.organId});case 4:t=e.sent,r=t.data||[],r.forEach((function(e){n.columns.push({text:e.name,value:e.id})})),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),onConfirm:function(e){this.dataModel=e.value,this.showDataModel=e.text,this.showSelect=!1},onCancel:function(){this.showSelect=!1}},computed:{options:function(){return this.widget.options||{}},rule:function rule(){var _this3=this,rules=this.widget.rules||[];return rules&&rules.length>0&&rules.forEach((function(item){item.pattern&&(item.pattern=eval(item.pattern)),_this3.fileCheck&&(item.required=!1)})),rules}},watch:{}}},"675c":function(e,t,r){},"6cb8":function(e,t,r){"use strict";r("5ffd")},"6e6e":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"mheader"},[r("header",{staticClass:"m-nav-header",class:[e.isFixed?"fixed":""]},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:e.goBack}},[r("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),r("div",{staticClass:"m-nav-bar__title"},[e._t("default",(function(){return[e._v(e._s(e.name?e.name:e.$route.meta.descrition))]}))],2),r("div",{staticClass:"m-nav-bar__right"},[e._t("right")],2)])])},i=[],o={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{goBack:function(){var e=this.backUrl;"function"==typeof e.callBack?e.callBack():e.path?this.$router.push({path:e.path,query:e.params}):history.go(-1)}}},a=o,l=(r("70bb"),r("2877")),u=Object(l["a"])(a,n,i,!1,null,"10a70108",null);t["a"]=u.exports},7071:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]={name:"oCheckbox",props:["widget","preview","value","fileCheck"],data:function(){var e;return{dataModel:(null===(e=this.widget.options)||void 0===e?void 0:e.defaultValue)||null}},mounted:function(){if(this.value){var e=this.widget,t=e.originModel||e.model;for(var r in this.value)r==t&&(this.dataModel=this.value[r])}},methods:{},computed:{options:function(){return this.widget.options||{}},rule:function rule(){var _this=this,rules=this.widget.rules||[];return rules&&rules.length>0&&rules.forEach((function(item){item.pattern&&(item.pattern=eval(item.pattern)),_this.fileCheck&&(item.required=!1)})),rules}},watch:{}}},"70bb":function(e,t,r){"use strict";r("c905")},"71c2":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.appHide?r("div",{staticClass:"mheader",style:{height:"calc("+e.titleHeight+"px + "+e.navBarHeight+"px)"}},[r("header",{staticClass:"m-nav-header",class:[e.isFixed?"fixed":"","white"==e.background?"white":null],style:[e.styleName,e.headStyle]},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:e.goBack}},[r("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),r("div",{staticClass:"m-nav-bar__title"},[e._t("default",(function(){return[e._v(e._s(e.name?e.name:e.$route.meta.descrition))]}))],2),r("div",{staticClass:"m-nav-bar__right"},[e._t("right")],2)])]):e._e()},i=[],o=r("ddf4"),a=r("ff51");function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(S){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),a=new E(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return M()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var l=x(a,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=d(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(e,r,a),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(S){return{type:"throw",arg:S}}}e.wrap=s;var f={};function h(){}function p(){}function v(){}var m={};c(m,i,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(O([])));w&&w!==t&&r.call(w,i)&&(m=w);var y=v.prototype=h.prototype=Object.create(m);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,o,a,u){var c=d(e[i],e,o);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==l(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,u)}))}u(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function x(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function O(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:M}}function M(){return{value:void 0,done:!0}}return p.prototype=v,c(y,"constructor",v),c(v,"constructor",p),p.displayName=c(v,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(b.prototype),c(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(s(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),c(y,a,"Generator"),c(y,i,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function c(e,t,r,n,i,o,a){try{var l=e[o](a),u=l.value}catch(c){return void r(c)}l.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){c(o,n,i,a,l,"next",e)}function l(e){c(o,n,i,a,l,"throw",e)}a(void 0)}))}}var d=!Object(a["b"])().isApp,f={name:"mheader",props:{appHide:{name:Boolean,default:function(){return!d}},name:String,isBack:{type:Boolean,default:d},isFixed:{type:Boolean,default:!0},styleName:{type:Object,default:function(){return{}}},background:String,titleClass:String,backUrl:{type:Object,default:function(){return{callBack:null,status:!1,path:"",params:{}}}}},data:function(){return{title:this.name,backUrlParams:this.backUrl,navBarHeight:0,headStyle:{},titleHeight:44}},created:function(){var e=s(u().mark((function e(){var t,r,n=this;return u().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["b"])({api:"setBarStatus",content:{status:0}});case 2:return e.next=4,Object(o["b"])({api:"backIconChange",content:{iconStyle:"black"}});case 4:if(t=sessionStorage.getItem("navHeight"),r=sessionStorage.getItem("titleHeight"),!t||!r){e.next=11;break}this.navBarHeight=t,this.headStyle={paddingTop:t+"px",height:r+"px",lineHeight:r+"px"},e.next=13;break;case 11:return e.next=13,Object(o["b"])({api:"getNavHeight"},(function(e){var t=e.content,r={},i=t.dpi||2;if(t.navHeight){var o=t.navHeight/i;sessionStorage.setItem("navHeight",o),n.navBarHeight=o,r={paddingTop:o+"px"}}if(t.titleHeight){var a=t.titleHeight/i;sessionStorage.setItem("titleHeight",a),n.titleHeight=a,r.height=a+"px",r.lineHeight=a+"px"}n.headStyle=r}));case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{goBack:function(){var e=this.backUrlParams;"function"==typeof e.callBack?e.callBack():e.status?this.$router.push({path:e.path,query:e.params}):history.go(-1)}}},h=f,p=(r("8017"),r("2877")),v=Object(p["a"])(h,n,i,!1,null,"695ab781",null);t["a"]=v.exports},7688:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]={name:"oCascader",props:["widget","preview","value","fileCheck"],data:function(){var e,t;return{dataModel:(null===(e=this.widget.options)||void 0===e?void 0:e.defaultValue)||[],values:null,showCascader:!1,columns:(null===(t=this.widget.options)||void 0===t?void 0:t.options)||[],previewValue:null}},mounted:function(){var e,t=(null===(e=this.widget.options)||void 0===e?void 0:e.options)||[];if(this.columns=this.filterOptions(t),this.value){var r=this.widget,n=r.originModel||r.model;for(var i in this.value)i==n&&(this.previewValue=this.value[i])}},methods:{filterOptions:function(e){var t=this,r=[];return e.forEach((function(e){e.children&&e.children.length>0?r.push({text:e.label,value:e.value,children:t.filterOptions(e.children)}):r.push({text:e.label,value:e.value})})),r},onClick:function(){this.showCascader=!0},onConfirm:function(e){var t=e.selectedOptions;this.dataModel=t.map((function(e){return e.text})).join("/"),this.values=t.map((function(e){return e.text})).join("/"),this.showCascader=!1}},computed:{options:function(){return this.widget.options||{}},rule:function rule(){var _this2=this,rules=this.widget.rules||[];return rules&&rules.length>0&&rules.forEach((function(item){item.pattern&&(item.pattern=eval(item.pattern)),_this2.fileCheck&&(item.required=!1)})),rules}},watch:{}}},"7d0e":function(e,t,r){"use strict";r("bfc9")},8017:function(e,t,r){"use strict";r("a89a")},"852e":function(e,t,r){},"870b":function(e,t,r){},a5ee:function(e,t,r){},a89a:function(e,t,r){},ab06:function(e,t,r){"use strict";r("675c")},adbc:function(e,t,r){"use strict";r("dc1b")},bad8:function(e,t,r){"use strict";r("852e")},bfc9:function(e,t,r){},c054:function(e,t,r){"use strict";r("f539")},c070:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]={name:"oNumber",props:["widget","preview","value","fileCheck"],data:function(){var e;return{dataModel:(null===(e=this.widget.options)||void 0===e?void 0:e.defaultValue)||null}},mounted:function(){if(this.value){var e=this.widget,t=e.originModel||e.model;for(var r in this.value)r==t&&(this.dataModel=this.value[r])}},methods:{},computed:{options:function(){return this.widget.options||{}},rule:function rule(){var _this=this,rules=this.widget.rules||[];return rules&&rules.length>0&&rules.forEach((function(item){item.pattern&&(item.pattern=eval(item.pattern)),_this.fileCheck&&(item.required=!1)})),rules}},watch:{}}},c0e0:function(e,t,r){"use strict";r("5192")},c106:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"search"},[e._t("left"),r("van-search",{attrs:{placeholder:e.placeholder,"left-icon":e.leftIcon,"show-action":""},on:{search:e.onSearch},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[r("template",{slot:"action"},[r("span",{staticClass:"search_btn",on:{click:e.onSearch}},[e._v("搜索")])])],2)],2)},i=[],o={props:{placeholder:{type:String,default:"请输入搜索关键词"}},data:function(){return{leftIcon:r("0781"),searchValue:""}},methods:{onSearch:function(){this.$emit("onSearch",this.searchValue)}}},a=o,l=(r("ab06"),r("2877")),u=Object(l["a"])(a,n,i,!1,null,"50731f0e",null);t["a"]=u.exports},c905:function(e,t,r){},d3d9:function(e,t,r){},d678:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"mempty",class:e.full?"full":null},[r("div",{class:[e.icon?e.icon:"icon_nodata","icon"]}),r("div",{staticClass:"msg"},[e._v(e._s(e.msg?e.msg:"暂无内容"))])])},i=[],o={name:"mempty",props:{icon:String,msg:String,full:Boolean}},a=o,l=(r("bad8"),r("2877")),u=Object(l["a"])(a,n,i,!1,null,"31cc2a9d",null);t["a"]=u.exports},dbbb:function(e,t,r){"use strict";r("0873")},dc1b:function(e,t,r){},e7d9:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__["a"]={name:"oTextarea",props:["widget","preview","value","fileCheck"],data:function(){var e;return{dataModel:(null===(e=this.widget.options)||void 0===e?void 0:e.defaultValue)||null}},mounted:function(){if(this.value){var e=this.widget,t=e.originModel||e.model;for(var r in this.value)r==t&&(this.dataModel=this.value[r])}},methods:{dataModelFormatBr:function(e){return e?e.replace(/\n/g,"<br />"):e}},computed:{options:function(){return this.widget.options||{}},rule:function rule(){var _this=this,rules=this.widget.rules||[];return rules&&rules.length>0&&rules.forEach((function(item){item.pattern&&(item.pattern=eval(item.pattern)),_this.fileCheck&&(item.required=!1)})),rules}},watch:{}}},eb17:function(e,t,r){},f522:function(e,t,r){"use strict";r("1558")},f539:function(e,t,r){}}]);