chunk-133a7c03.892dabae.js 15 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-133a7c03"],{"0353":function(e,t,r){"use strict";var i=r("6bf8"),n=RegExp.prototype.exec,a=String.prototype.replace,o=n,l="lastIndex",s=function(){var e=/a/,t=/b*/g;return n.call(e,"a"),n.call(t,"a"),0!==e[l]||0!==t[l]}(),c=void 0!==/()??/.exec("")[1],u=s||c;u&&(o=function(e){var t,r,o,u,p=this;return c&&(r=new RegExp("^"+p.source+"$(?!\\s)",i.call(p))),s&&(t=p[l]),o=n.call(p,e),s&&o&&(p[l]=p.global?o.index+o[0].length:t),c&&o&&o.length>1&&a.call(o[0],r,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o}),e.exports=o},1663:function(e,t,r){var i=r("212e"),n=r("3ab0");e.exports=function(e){return function(t,r){var a,o,l=String(n(t)),s=i(r),c=l.length;return s<0||s>=c?e?"":void 0:(a=l.charCodeAt(s),a<55296||a>56319||s+1===c||(o=l.charCodeAt(s+1))<56320||o>57343?e?l.charAt(s):a:e?l.slice(s,s+2):o-56320+(a-55296<<10)+65536)}}},4136:function(e,t,r){},"43ec":function(e,t,r){"use strict";var i=r("1663")(!0);e.exports=function(e,t,r){return t+(r?i(e,t).length:1)}},"6bf8":function(e,t,r){"use strict";var i=r("a86f");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"78c3":function(e,t,r){"use strict";var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("section",{staticClass:"model"},[e.show_head?e._e():i("img",{staticClass:"survey_logo",attrs:{height:"50",src:r("8278"),alt:""}}),e.show_head?e._e():i("h1",[e._v(e._s(e.name))]),i("p",{staticClass:"desc"},[e._v(e._s(e.desc))]),e.list.length>0?i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-position":"top"}},[e._l(e.list,(function(t,r){return i("el-form-item",{key:r,attrs:{prop:t.label}},[i("label",{staticClass:"el-form-item__label"},[i("span",{staticClass:"x"},[e._v("*")]),e._v(" "+e._s(r+1)+"、"+e._s(t.label)+" "+e._s(t.cntype)+"\n "),t.noteImgs?i("el-popover",{attrs:{placement:"bottom",width:"400",trigger:"hover"}},[e._v("\n "+e._s(t.noteDesc)+"\n "),t.result?i("ul",e._l(t.noteImgs,(function(e,t){return i("li",{key:t,staticStyle:{display:"inline-block",width:"100px"}},[i("img",{attrs:{width:"100%",src:e,alt:""}})])})),0):e._e(),i("i",{staticClass:"el-icon-question",attrs:{slot:"reference"},slot:"reference"})]):e._e()],1),i("br"),"input"==t.type?[i("el-input",{attrs:{disabled:e.info.post_status>0,placeholder:t.placeholder},model:{value:e.form[t.label],callback:function(r){e.$set(e.form,t.label,r)},expression:"form[item.label]"}})]:e._e(),"textarea"==t.type?[i("el-input",{attrs:{disabled:e.info.post_status>0,type:"textarea",placeholder:t.placeholder},model:{value:e.form[t.label],callback:function(r){e.$set(e.form,t.label,r)},expression:"form[item.label]"}})]:e._e(),"radio"==t.type?[i("el-radio-group",{attrs:{disabled:e.info.post_status>0},model:{value:e.form[t.label],callback:function(r){e.$set(e.form,t.label,r)},expression:"form[item.label]"}},e._l(t.items,(function(e,t){return i("el-radio",{key:r+""+t,attrs:{label:e.label}})})),1)]:e._e(),"checkbox"==t.type?[i("el-checkbox-group",{attrs:{disabled:e.info.post_status>1},model:{value:e.form[t.label],callback:function(r){e.$set(e.form,t.label,r)},expression:"form[item.label]"}},e._l(t.items,(function(e,t){return i("el-checkbox",{key:r+""+t,attrs:{label:e.label}})})),1)]:e._e(),"image"==t.type||"file"==t.type?[t.result?i("ul",{staticClass:"list_img"},e._l(t.result,(function(e,t){return i("li",{key:t},[i("img",{attrs:{width:"100%",src:e,alt:""}})])})),0):e._e(),1==e.role&&0==e.info.post_status?i("el-upload",{attrs:{action:"/api/admin/uploadfile","list-type":"picture-card","on-success":function(r){return e.imageChange(t.label,r)},"on-remove":function(r,i){return e.handleRemove(t.label,r,i)}}},[i("i",{staticClass:"el-icon-plus"})]):e._e()]:e._e(),2!=e.role&&3!=e.role||1!=e.info.post_status?e._e():i("div",{staticClass:"result"},[e._v("\n 审读结果判定:\n "),i("el-radio-group",{model:{value:e.examine_result[t.label],callback:function(r){e.$set(e.examine_result,t.label,r)},expression:"examine_result[item.label]"}},[i("el-radio",{attrs:{label:1}},[e._v("正确")]),i("el-radio",{attrs:{label:0}},[e._v("错误")])],1)],1),1!=e.role&&e.info.post_status>1&&e.info.post_status<5&&null!=t.examine_result?i("div",{staticClass:"result"},[e._v("\n 专家审读结果判定:\n "),1==t.examine_result?i("el-button",{attrs:{type:"text"}},[e._v("正确")]):e._e(),0==t.examine_result?i("el-button",{attrs:{type:"text"}},[e._v("错误")]):e._e()],1):e._e(),3==e.role&&3==e.info.post_status?i("div",{staticClass:"result"},[e._v("\n 审读结果判定:\n "),i("el-radio-group",{model:{value:e.review_result[t.label],callback:function(r){e.$set(e.review_result,t.label,r)},expression:"review_result[item.label]"}},[i("el-radio",{attrs:{label:1}},[e._v("正确")]),i("el-radio",{attrs:{label:0}},[e._v("错误")])],1)],1):e._e()],2)})),i("el-form-item",{staticStyle:{"text-align":"center"}},[1!=e.role&&(e.info.review_remark||e.info.review_attach)?i("div",{staticClass:"reresult",staticStyle:{"text-align":"left","margin-bottom":"10px"}},[e._v("\n 申请复检原因:\n "),i("p",[e._v(e._s(e.info.review_remark))]),e.info.review_attach.length>0?i("p",[i("i",{staticClass:"el-icon-link"}),e._v(" 附件:\n "),e._l(e.review_attach,(function(t,r){return i("a",{key:r,attrs:{href:t}},[e._v(e._s(t))])}))],2):e._e()]):e._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.show_record,expression:"!show_record"}]},[1==e.role?[0==e.info.post_status?i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm(1)}}},[e._v("提交")]):e._e()]:e._e(),2==e.role?[1==e.info.post_status?i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm(2)}}},[e._v("审核完成")]):e._e(),1==e.info.post_status?i("el-button",{attrs:{type:"primary"},on:{click:e.review}},[e._v("申请复检")]):e._e(),3==e.info.post_status?i("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){return e.submitForm(6)}}},[e._v("撤销申请")]):e._e()]:e._e(),3==e.role?[1==e.info.post_status?i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm(2)}}},[e._v("审核完成")]):e._e(),1==e.info.post_status?i("el-button",{attrs:{type:"primary"},on:{click:e.review}},[e._v("申请复检")]):e._e(),3==e.info.post_status?i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm(4)}}},[e._v("复检完成")]):e._e(),3==e.info.post_status?i("el-button",{attrs:{plain:"",type:"primary"},on:{click:function(t){e.title="退回原因",e.open1=!0}}},[e._v("退回")]):e._e()]:e._e()],2)])],2):e._e(),i("el-dialog",{attrs:{title:e.title,"close-on-click-modal":!1,visible:e.open,width:"600"},on:{"update:visible":function(t){e.open=t}}},[i("el-input",{attrs:{type:"textarea",rows:5,placeholder:"请输入内容"},model:{value:e.review_remark,callback:function(t){e.review_remark=t},expression:"review_remark"}}),i("br"),i("br"),i("el-upload",{attrs:{action:"/api/admin/uploadfile","list-type":"text","on-remove":e.handleRemove1,"on-success":e.imageChange1}},[i("i",{staticClass:"el-icon-link"}),e._v(" 附件:\n "),i("el-button",{attrs:{size:"small",plain:"",type:"primary"}},[e._v("点击上传")])],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small",type:"info"},on:{click:function(t){e.open=!1}}},[e._v("取 消")]),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.open=!1,e.submitForm(3)}}},[e._v("确 定")])],1)],1),i("el-dialog",{attrs:{title:e.title,"close-on-click-modal":!1,visible:e.open1,width:"600"},on:{"update:visible":function(t){e.open1=t}}},[i("el-input",{attrs:{type:"textarea",rows:5,placeholder:"请输入内容"},model:{value:e.reback_remark,callback:function(t){e.reback_remark=t},expression:"reback_remark"}}),i("br"),i("br"),i("el-upload",{attrs:{action:"/api/admin/uploadfile","list-type":"text","on-remove":e.handleRemove2,"on-success":e.imageChange2}},[i("i",{staticClass:"el-icon-link"}),e._v(" 附件:\n "),i("el-button",{attrs:{size:"small",plain:"",type:"primary"}},[e._v("点击上传")])],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small",type:"info"},on:{click:function(t){e.open=!1}}},[e._v("取 消")]),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.open=!1,e.submitForm(5)}}},[e._v("确 定")])],1)],1)],1)},n=[];function a(e){return a="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},a(e)}r("fc02"),r("a450");var o={props:{info:{},show_head:!1,show_record:!1},data:function(){return{name:"",desc:"",list:[],form:{},examine_result:{},review_result:{},rules:{},role:"",review_remark:"",review_attach:[],reback_remark:"",reback_attach:[],title:"申请复检原因",open:!1,open1:!1}},watch:{info:function(e){this.role=localStorage.getItem("role"),this.show_head?this.setData(e.widget):(this.name=e.name,this.desc=e.desc,this.setData(this.JSON.parse(e.widget)))}},methods:{setData:function(e){var t={},r=this.form,i=this.examine_result,n={};e.review_attach&&(this.review_attach=e.review_attach.split(","));for(var o=0;o<e.length;o++)this.info.post_status>1?this.$set(i,e[o].label,e[o].examine_result):this.$set(i,e[o].label,""),3==this.info.post_status&&this.$set(n,e[o].label,""),"checkbox"!=e[o].type&&"image"!=e[o].type&&"file"!=e[o].type||this.$set(r,e[o].label,[]),t[e[o].label]=[{required:!0,message:e[o].placeholder,trigger:"blur"}],e[o].result&&(this.$set(r,e[o].label,e[o].result),"radio"==e[o].type&&"object"==a(e[o].result)&&this.$set(r,e[o].label,e[o].result[0]));this.form=r,console.log(r),this.examine_result=i,this.review_result=n,this.rules=t,this.list=e},handleRemove:function(e,t,r){for(var i=[],n=0;n<r.length;n++)i.push(r[n].response.data);this.form[e]=i},imageChange:function(e,t){this.form[e].push(t.data)},handleRemove1:function(e,t){for(var r=[],i=0;i<t.length;i++)r.push(t[i].response.data);this.review_attach=r},imageChange1:function(e){this.review_attach.push(e.data)},handleRemove2:function(e,t){for(var r=[],i=0;i<t.length;i++)r.push(t[i].response.data);this.reback_attach=r},imageChange2:function(e){this.reback_attach.push(e.data)},review:function(){this.title="申请复检原因",this.open=!0},submitForm:function(e){var t=this;this.$refs["form"].validate((function(r){if(r){var i={worksheet_id:t.info.worksheet_id,workflow_id:t.info.id,result:t.form,action:e};e>=2&&(i.examine_result=t.examine_result),4==e&&(i.review_result=t.review_result),3==e&&(i.review_remark=t.review_remark,i.review_attach=t.review_attach.join(",")),t.$emit("post",i)}}))}},mounted:function(){this.role=localStorage.getItem("role"),this.show_head?this.setData(this.info.widget):(this.name=this.info.name,this.desc=this.info.desc,this.setData(JSON.parse(this.info.widget)))}},l=o,s=(r("dfe0"),r("5d22")),c=Object(s["a"])(l,i,n,!1,null,null,null);t["a"]=c.exports},"804d":function(e,t,r){var i=r("9cff"),n=r("cea2"),a=r("839a")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==n(e))}},8278:function(e,t,r){e.exports=r.p+"img/survey_logo.35b6a4b4.png"},a450:function(e,t,r){var i=r("bb8b").f,n=Function.prototype,a=/^\s*function ([^ (]*)/,o="name";o in n||r("26df")&&i(n,o,{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(e){return""}}})},bf73:function(e,t,r){"use strict";var i=r("0353");r("e99b")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},c46f:function(e,t,r){"use strict";r("bf73");var i=r("84e8"),n=r("065d"),a=r("0926"),o=r("3ab0"),l=r("839a"),s=r("0353"),c=l("species"),u=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),p=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();e.exports=function(e,t,r){var f=l(e),m=!a((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),h=m?!a((function(){var t=!1,r=/a/;return r.exec=function(){return t=!0,null},"split"===e&&(r.constructor={},r.constructor[c]=function(){return r}),r[f](""),!t})):void 0;if(!m||!h||"replace"===e&&!u||"split"===e&&!p){var v=/./[f],_=r(o,f,""[e],(function(e,t,r,i,n){return t.exec===s?m&&!n?{done:!0,value:v.call(t,r,i)}:{done:!0,value:e.call(r,t,i)}:{done:!1}})),d=_[0],b=_[1];i(String.prototype,e,d),n(RegExp.prototype,f,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},dfe0:function(e,t,r){"use strict";r("4136")},f417:function(e,t,r){"use strict";var i=r("d445"),n=RegExp.prototype.exec;e.exports=function(e,t){var r=e.exec;if("function"===typeof r){var a=r.call(e,t);if("object"!==typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return n.call(e,t)}},fc02:function(e,t,r){"use strict";var i=r("804d"),n=r("a86f"),a=r("1b0b"),o=r("43ec"),l=r("201c"),s=r("f417"),c=r("0353"),u=r("0926"),p=Math.min,f=[].push,m="split",h="length",v="lastIndex",_=4294967295,d=!u((function(){RegExp(_,"y")}));r("c46f")("split",2,(function(e,t,r,u){var b;return b="c"=="abbc"[m](/(b)*/)[1]||4!="test"[m](/(?:)/,-1)[h]||2!="ab"[m](/(?:ab)*/)[h]||4!="."[m](/(.?)(.?)/)[h]||"."[m](/()()/)[h]>1||""[m](/.?/)[h]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!i(e))return r.call(n,e,t);var a,o,l,s=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=void 0===t?_:t>>>0,d=new RegExp(e.source,u+"g");while(a=c.call(d,n)){if(o=d[v],o>p&&(s.push(n.slice(p,a.index)),a[h]>1&&a.index<n[h]&&f.apply(s,a.slice(1)),l=a[0][h],p=o,s[h]>=m))break;d[v]===a.index&&d[v]++}return p===n[h]?!l&&d.test("")||s.push(""):s.push(n.slice(p)),s[h]>m?s.slice(0,m):s}:"0"[m](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,i){var n=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,n,i):b.call(String(n),r,i)},function(e,t){var i=u(b,e,this,t,b!==r);if(i.done)return i.value;var c=n(e),f=String(this),m=a(c,RegExp),h=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(d?"y":"g"),g=new m(d?c:"^(?:"+c.source+")",v),y=void 0===t?_:t>>>0;if(0===y)return[];if(0===f.length)return null===s(g,f)?[f]:[];var x=0,w=0,k=[];while(w<f.length){g.lastIndex=d?w:0;var C,R=s(g,d?f:f.slice(w));if(null===R||(C=p(l(g.lastIndex+(d?0:w)),f.length))===x)w=o(f,w,h);else{if(k.push(f.slice(x,w)),k.length===y)return k;for(var S=1;S<=R.length-1;S++)if(k.push(R[S]),k.length===y)return k;w=x=C}}return k.push(f.slice(x)),k}]}))}}]);
  2. //# sourceMappingURL=chunk-133a7c03.892dabae.js.map