iedc-go/tpt/wx/js/chunk-6205d240.512e7069.js

2 lines
4.7 KiB
JavaScript
Raw Permalink Normal View History

2022-10-30 15:44:05 +00:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6205d240"],{"14dc":function(t,e,n){"use strict";n("f4b6")},"18e9":function(t,e,n){"use strict";n.r(e);var i=n("f2bf"),u=function(t){return Object(i["C"])("data-v-0cccef1c"),t=t(),Object(i["A"])(),t},c={class:"Matters"},s={class:"matterCon"},a=u((function(){return Object(i["i"])("div",{class:"navslist"},[Object(i["i"])("div",{class:"navli",style:{color:"#fff"}},"基础填报"),Object(i["i"])("div",{class:"navli",style:{color:"#fff"}},"文件上传"),Object(i["i"])("div",{class:"navli"},"填报完成")],-1)})),o={class:"mmhead"},l=u((function(){return Object(i["i"])("div",{class:"nng"},"根据你填报的内容需要准备以下证明文件进行上传",-1)})),r={key:0},f={key:0,class:"upgroup"},b={class:"upname"},d={class:"nextbtn"},O=Object(i["j"])("下一步");function j(t,e,n,u,j,m){var h=Object(i["G"])("van-nav-bar"),p=Object(i["G"])("van-uploader"),q=Object(i["G"])("van-cell-group"),v=Object(i["G"])("van-button"),k=Object(i["G"])("van-sticky");return Object(i["z"])(),Object(i["h"])("div",c,[Object(i["k"])(h,{title:"调研填报","left-arrow":"",onClickLeft:m.onClickLeft},null,8,["onClickLeft"]),Object(i["i"])("div",s,[a,Object(i["i"])("div",o,[l,(Object(i["z"])(!0),Object(i["h"])(i["a"],null,Object(i["F"])(j.questionUpload.question_data,(function(t,e){return Object(i["z"])(),Object(i["h"])(i["a"],{key:e},[null!=t.fileNum&&t.fileNum>0?(Object(i["z"])(),Object(i["h"])("p",r,Object(i["K"])(m.getNum(t))+"."+Object(i["K"])(t.fileRemarks),1)):Object(i["g"])("",!0)],64)})),128))]),Object(i["k"])(q,{ontset:""},{default:Object(i["O"])((function(){return[(Object(i["z"])(!0),Object(i["h"])(i["a"],null,Object(i["F"])(j.questionUpload.question_data,(function(t,e){return Object(i["z"])(),Object(i["h"])(i["a"],{key:e},[null!=t.fileNum&&t.fileNum>0?(Object(i["z"])(),Object(i["h"])("div",f,[Object(i["i"])("div",b,Object(i["K"])(t.fileRemarks)+"(最少"+Object(i["K"])(t.fileNum)+"张)",1),Object(i["k"])(p,{modelValue:t.files,"onUpdate:modelValue":function(e){return t.files=e},"after-read":m.afterRead,"upload-icon":"plus"},null,8,["modelValue","onUpdate:modelValue","after-read"])])):Object(i["g"])("",!0)],64)})),128))]})),_:1}),Object(i["k"])(k,{"offset-bottom":0,position:"bottom"},{default:Object(i["O"])((function(){return[Object(i["i"])("div",d,[Object(i["k"])(v,{type:"primary",onClick:m.clickNext,block:"",round:"",size:"large",color:"#2f58e4"},{default:Object(i["O"])((function(){return[O]})),_:1},8,["onClick"])])]})),_:1})])])}n("e17f");var m=n("2241"),h=(n("e9c4"),n("c1fb")),p=n("c1df"),q=n.n(p),v={name:"MattersCon",setup:function(){var t=Object(i["E"])(""),e=Object(i["E"])(!1),n=["装备制造1","装备制造2","装备制造3","装备制造4","装备制造5"],u=Object(i["E"])("1");return{result:t,columns:n,showPicker:e,checked:u}},data:function(){return{loading:!1,finished:!1,refreshing:!1,num:0,question:{question_data:[]},questionUpload:{question_data:[]}}},mounted:function(){this.num=0,this.question=Object(h["b"])("question");var t=Object(h["b"])("questionData");null==t&&(t=Object(h["b"])("question")),this.questionUpload=t},watch:{questionData:{handler:function(){Object(h["b"])("questionData",this.questionData)},deep:!0}},methods:{afterRead:function(t){Object(h["e"])("app/user/upload",{file:t.content}).then((function(e){t.url=e.result}))},getNum:function(t){return null!=t.fileNum&&t.fileNum>0&&null==t.num&&(console.log(t),this.num++,t.num=this.num),t.num},clickNext:function(){for(var t=0;t<this.questionUpload.question_data.length;t++){var e=this.questionUpload.question_data[t];if(null!=e.fileNum&&0!=e.fileNum){if(null==e.files)return void Object(m["a"])({message:"你还没有上传“"+e.fileRemarks+"”项文件内容"});if(e.files.length<e.fileNum)return void Object(m["a"])({message:"“"+e.fileRemarks+"”项文件内容,上传文件数量不够"});this.question.question_data[t].files=[];for(var n=0;n<e.files.length;n++)this.question.question_data[t].files.push({url:e.files[n].url})}}Object(h["b"])("question",this.question);var i=this;Object(h["e"])("app/q
//# sourceMappingURL=chunk-6205d240.512e7069.js.map