pages-index-assessmentVerify-assessmentVerifyDetailAdd-assessmentVerifyDetailAdd.7212297e.js 33 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-assessmentVerify-assessmentVerifyDetailAdd-assessmentVerifyDetailAdd"],{"0f6b":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".gui-flex[data-v-02c438ce]{display:-webkit-box;display:-webkit-flex;display:flex}.row[data-v-02c438ce]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.column[data-v-02c438ce]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.wrap[data-v-02c438ce]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;flex-wrap:wrap}.nowrap[data-v-02c438ce]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;flex-wrap:nowrap}.space-between[data-v-02c438ce]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.left[data-v-02c438ce]{-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.right[data-v-02c438ce]{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.xcenter[data-v-02c438ce]{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.xreverse[data-v-02c438ce]{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;flex-direction:row-reverse}.top[data-v-02c438ce]{-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.ycenter[data-v-02c438ce]{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.bottom[data-v-02c438ce]{-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end}",""]),t.exports=e},"10de":function(t,e,i){"use strict";i("99af"),i("a434"),i("a9e3"),i("ac1f"),i("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{maxFileNumber:{type:Number,default:3},btnName:{type:String,default:"添加照片"},items:{type:Array,default:function(){return[]}}},data:function(){return{imgLists:[]}},created:function(){this.imgLists=this.items},watch:{imgLists:function(t,e){this.$emit("change",t)}},methods:{addImg:function(){var t=this,e=this.maxFileNumber-t.imgLists.length;if(e<1)return!1;console.log("num",e),uni.chooseImage({count:1,sizeType:["compressed"],success:function(e){t.imgLists=t.imgLists.concat(e.tempFilePaths),uni.hideLoading()},fail:function(){uni.hideLoading()}})},removeImg:function(t){var e=t.currentTarget.id.replace("grace-items-img-","");this.imgLists.splice(e,1),console.log(this.isDel)},showImgs:function(t){var e=t.currentTarget.dataset.imgurl;uni.previewImage({urls:this.imgLists,current:e})}}};e.default=a},1575:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"input-bx",staticStyle:{"padding-bottom":"120upx"}},[i("v-uni-form",{staticClass:"grace-form grace-margin-top",on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.formSubmit.apply(void 0,arguments)}}},[i("v-uni-view",{staticStyle:{padding:"0 20upx"}},[i("v-uni-view",{staticClass:"grace-items"},[i("v-uni-view",{staticClass:"grace-label grace-bold"},[t._v("牧场:")]),i("v-uni-view",{staticClass:"other"},[i("v-uni-picker",{attrs:{value:t.index3,range:t.pickerArr3,"range-key":"name",name:"picker"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange3.apply(void 0,arguments)}}},[i("v-uni-text",[t._v(t._s(t.pickerArr3[t.index3].name))])],1)],1)],1),i("v-uni-view",{staticClass:"grace-items"},[i("v-uni-view",{staticClass:"grace-label grace-bold",staticStyle:{width:"160upx"}},[t._v("检查类别:")]),i("v-uni-view",{staticClass:"other"},[i("v-uni-picker",{attrs:{value:t.index4,range:t.pickerArr4,"range-key":"statue",name:"picker"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindPickerChange4.apply(void 0,arguments)}}},[i("v-uni-text",[t._v(t._s(t.pickerArr4[t.index4].statue))])],1)],1)],1)],1),i("v-uni-view",{staticClass:"g-line"}),t._l(t.dataList,(function(e,a){return[i("v-uni-view",{staticClass:"grace-list-items",staticStyle:{background:"#fff","margin-bottom":"16upx",height:"auto",padding:"0 20upx"}},[i("v-uni-view",{staticClass:"g-title-bx-row2"},[i("v-uni-text",{staticClass:"grace-black g-card-w2"},[t._v("检查标准:")]),i("v-uni-text",{staticClass:"grace-black6 g-list-w2"},[t._v(t._s(e.statue))])],1),i("v-uni-view",{staticClass:"g-title-bx-row2"},[i("v-uni-view",{staticClass:"grace-black g-card-w2"},[t._v("检查结果:")]),i("v-uni-view",{staticClass:"grace-black6 g-list-w2"},[i("v-uni-radio-group",{attrs:{name:"danxuan","data-index":a},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.radioChange.apply(void 0,arguments)}}},[i("v-uni-label",{staticClass:"grace-check-item-v",staticStyle:{"padding-left":"10upx"}},[i("v-uni-radio",{attrs:{value:"1"}}),t._v("1")],1),i("v-uni-label",{staticClass:"grace-check-item-v",staticStyle:{"padding-left":"10upx"}},[i("v-uni-radio",{attrs:{value:"2"}}),t._v("2")],1),i("v-uni-label",{staticClass:"grace-check-item-v",staticStyle:{"padding-left":"10upx"}},[i("v-uni-radio",{attrs:{value:"3"}}),t._v("3")],1),i("v-uni-label",{staticClass:"grace-check-item-v",staticStyle:{"padding-left":"10upx"}},[i("v-uni-radio",{attrs:{value:"4"}}),t._v("4")],1),i("v-uni-label",{staticClass:"grace-check-item-v",staticStyle:{"padding-left":"10upx"}},[i("v-uni-radio",{attrs:{value:"5"}}),t._v("5")],1)],1)],1)],1),i("v-uni-view",{staticClass:"g-title-bx-row2"},[i("v-uni-text",{staticClass:"grace-black g-card-w2"},[t._v("问题描述:")]),i("v-uni-view",{staticClass:"grace-black6 g-list-w2"},[i("v-uni-textarea",{staticStyle:{"padding-top":"18upx"},attrs:{placeholder:"请输入.....",name:"details","data-index":a},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.textChange.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"g-title-bx-row2"},[i("v-uni-text",{staticClass:"grace-black g-card-w2"},[t._v("问题图片:")])],1),i("v-uni-view",{staticStyle:{"margin-top":"5rpx"},attrs:{"data-index":a},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.imgsTap.apply(void 0,arguments)}}},[i("gracePage",{attrs:{customHeader:!1}},[i("v-uni-view",{staticClass:"grace-body",attrs:{slot:"gBody"},slot:"gBody"},[i("graceSelectImg",{attrs:{maxFileNumber:3,items:e.defaultItems},on:{removeImg:function(e){arguments[0]=e=t.$handleEvent(e),t.removeImg.apply(void 0,arguments)},change:function(e){arguments[0]=e=t.$handleEvent(e),t.imgsChange.apply(void 0,arguments)}}})],1)],1)],1)],1),i("v-uni-view",{staticClass:"g-line"})]})),i("v-uni-view",{staticClass:"btn-bx"},[i("v-uni-button",{staticClass:"btn-sub",attrs:{formType:"submit"}},[t._v("保存")]),i("v-uni-button",{staticClass:"btn-res",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.formCancel.apply(void 0,arguments)}}},[t._v("取消")])],1)],2)],1)],1)},r=[]},"2d69":function(t,e,i){"use strict";var a=i("4ea4");i("4de4"),i("4160"),i("d81d"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("3fe5")),r=a(i("2e9e")),s=a(i("ed72")),o=a(i("c5f7")),c={data:function(){return{g_username:"epans",g_employeName:"Epans",g_employeId:"2",departmenId:"",assTypeId:"",orderCode:"",today_now:"2019-12-06",dataValue:{},pickerArr1:[{partName:"",id:""}],index1:0,pickerId1:"",pickerArr2:[{appearanceName:"",id:""}],index2:0,pickerId2:"0",pickerArr3:[{name:"",id:""}],index3:0,pickerId3:"",pickerArr4:[{empname:"",id:""}],index4:0,pickerId4:"",pickerName4:"",dataList:[],oldScoreList:[],imageIndex:0}},onBackPress:function(){return uni.redirectTo({url:"/pages/index/assessmentVerify/assessmentVerify"}),!0},onLoad:function(t){var e=this,i=(e.g_url,uni.getStorageSync("g_employeName"));e.g_employeName=i;var a=uni.getStorageSync("g_username");e.g_username=a,console.log("前一个页面数据:",t);var n=uni.getStorageSync("g_pastureId"),r="/authdata/GetDataByName",s={name:"findAllPasture",parammaps:{id:n}};e.ajax(r,s,"POST",e.get_selectlist_data3);var o={name:"getAssessmentList",parammaps:{}};e.ajax(r,o,"POST",e.get_selectlist_data4)},components:{gracePage:n.default,graceFlex:r.default,graceSelectImgAndUpload:s.default,graceSelectImg:o.default},methods:{imgsChange:function(t){console.log("选择图片",t);var e=this,i=e.g_url,a=this.imageIndex;console.log("列表listIndex",a),t.length>0&&(e.dataList[a]["defaultItems"]=t,e.dataList[a]["pic1"]=-1,e.dataList[a]["pic2"]=-1,e.dataList[a]["pic3"]=-1,t.forEach((function(t,n){var r=n+1;wx.uploadFile({url:i+"/authdata/uploaderimage",filePath:t,name:"file",header:{optname:"insertcustompic",token:uni.getStorageSync("g_token")},formData:{},success:function(t){console.log(t);var i=JSON.parse(t.data),n=i.execresult.LastInsertId;e.dataList[a]["pic"+r]=n,console.log(e.dataList)}})})))},removeImg:function(t){console.log("被删除的图片信息",t)},imgsTap:function(t){var e=t.currentTarget.dataset.index;this.imageIndex=e},road_name_id_time_data:function(t){var e=this,i=e.get_today_now(),a=uni.getStorageSync("g_username"),n=uni.getStorageSync("g_employeId");e.dataValue.g_username=a,e.g_username=a,e.g_employeId=n,e.today_now=i},radioChange:function(t){var e=t.currentTarget.dataset.index,i=t.detail.value;this.dataList[e]["score"]=i,this.oldScoreList[e]=i,console.log(this.dataList),console.log(this.oldScoreList)},textChange:function(t){var e=t.currentTarget.dataset.index,i=t.detail.value;this.dataList[e]["note"]=i,console.log(this.dataList)},bindPickerChange4:function(t){var e=this,i=t.target.value;this.index4=i,console.log("检查类别下拉框改变,携带值为:"+i);var a=this.pickerArr4[i]["id"];console.log("检查类别下拉框选中的ID值:"+a),this.pickerId4=a,this.pickerName4=this.pickerArr4[i]["statue"];var n="/authdata/GetDataByName",r={name:"getAssessmentListBybigid",parammaps:{id:a}};e.ajax(n,r,"POST",e.get_list_data)},bindPickerChange3:function(t){var e=t.target.value;this.index3=e,console.log("牧场下拉框改变,携带值为:"+e);var i=this.pickerArr3[e]["id"];console.log("牧场下拉框选中的ID值:"+i),this.pickerId3=i},get_orderCode_data:function(t){console.log("领用单号数据:",t),this.orderCode=t.data.list[0].orderCode},formSubmit:function(t){var e=this;console.log("需要发送的数据dataList:"+JSON.stringify(e.dataList));uni.getStorageSync("g_dempmId");var i=uni.getStorageSync("g_employeId"),a=(uni.getStorageSync("g_pastureId"),t.detail.value),n=(this.dataValue,{common:{returnmap:"0"},data:[{name:"insertBigjudge",type:"e",parammaps:{pastureId:e.pickerId3,batime:e.today_now,empId:i}},{name:"insertSpotList",resultmaps:{list:e.dataList},children:[{name:"insertjudge",type:"e",parammaps:{bigId:"@insertBigjudge.LastInsertId",judgetype:"@insertSpotList.judgetype",statue:"@insertSpotList.statue",score:"@insertSpotList.score",note:"@insertSpotList.note",pic1:"@insertSpotList.pic1",pic2:"@insertSpotList.pic2",pic3:"@insertSpotList.pic3"}}]}]});console.log("保存原始数据:"+JSON.stringify(a));var r=[];e.dataList.forEach((function(t){"t1"==t.isImg&&r.push(t)}));var s=e.dataList.filter((function(t){return void 0==t.score}));console.log("rest:是否有图片选择了但没上传:",r),console.log("有没选择的分数",s),console.log("需要发送的数据:"+JSON.stringify(n)),s.length>0?uni.showModal({title:"提示",content:"请选择检查结果!",showCancel:!1,success:function(t){t.confirm&&console.log("用户点击确定")}}):uni.showModal({title:"提示",content:"正在保存中!",showCancel:!1,success:function(t){if(t.confirm){console.log("用户点击确定");var i="/authdata/ExecDataByConfig";e.ajax(i,n,"POST",e.get_add_status)}}})},formCancel:function(t){uni.redirectTo({url:"/pages/index/assessmentVerify/assessmentVerify"})},get_list_data:function(t){console.log("列表数据:",t);var e=t.data.list,i=this.pickerName4;this.dataList=[],e.map((function(t){return t.uploading=!1})),e.map((function(t){return t.selectedimgs=[]})),e.map((function(t){return t.isImg="f0"})),e.map((function(t){return t.judgetype=i})),e.map((function(t){return t.count=0}));var a=this.oldScoreList;e.map((function(t,e){return t.score=a[e]})),this.dataList=e,console.log(this.dataList),this.road_name_id_time_data()},get_list_data11:function(t){console.log("列表数据:",t);var e=t.data.list,i=this.pickerName4;this.dataList=[],e.map((function(t){return t.uploading=!1})),e.map((function(t){return t.selectedimgs=[]})),e.map((function(t){return t.isImg="f0"})),e.map((function(t){return t.judgetype=i})),e.map((function(t){return t.count=0}));var a=[];e.forEach((function(t){a.push("")})),this.oldScoreList=a,this.dataList=e,console.log(this.dataList),console.log(this.oldScoreList),this.road_name_id_time_data()},get_selectlist_data3:function(t){var e=this;if(console.log("牧场下拉框列表数据:",t),null===t.data.list)uni.showToast({title:"牧场下拉框获取数据为空",duration:2e3,icon:"none"});else{this.pickerArr3=t.data.list;var i=t.data.list[0].id;uni.getStorageSync("g_pastureId");e.pickerId3=i}},get_selectlist_data4:function(t){var e=this;if(console.log("部位详情下拉框列表数据:",t),null===t.data.list)uni.showToast({title:"检查类别获取数据为空",duration:2e3,icon:"none"});else{this.pickerArr4=t.data.list,this.pickerId4=t.data.list[0].id,this.pickerName4=t.data.list[0].statue;var i="/authdata/GetDataByName",a={name:"getAssessmentListBybigid",parammaps:{id:t.data.list[0].id}};e.ajax(i,a,"POST",e.get_list_data11)}},get_add_status:function(t){if(console.log("保存状态:",t),"ok"==t.msg)uni.showToast({title:"保存成功",duration:500,icon:"none",success:function(t){setTimeout((function(){uni.redirectTo({url:"/pages/index/assessmentVerify/assessmentVerify"})}),1e3)}});else{var e=t.data;uni.showModal({title:"保存失败",content:e,showCancel:!1,success:function(t){t.confirm&&console.log("用户点击确定")}})}},bindPickerChange1:function(t){var e=t.target.value;this.index1=e,console.log("故障部位下拉框改变,携带值为:"+e);var i=this.pickerArr1[e]["id"];console.log("故障部位下拉框选中的ID值:"+i),this.pickerId1=i;var a=this,n={name:"findAllAppearance",parammaps:{assTypeId:a.assTypeId,partId:i}},r="/authdata/GetDataByName";a.ajax(r,n,"POST",a.get_selectlist_data2)},bindPickerChange2:function(t){var e=t.target.value;this.index2=e,console.log("故障现象下拉框改变,携带值为:"+e);var i=this.pickerArr2[e]["id"];console.log("故障现象下拉框选中的ID值:"+i),this.pickerId2=i}}};e.default=c},"2dfb":function(t,e,i){"use strict";var a=i("62c0"),n=i.n(a);n.a},"2e9e":function(t,e,i){"use strict";i.r(e);var a=i("fbdf"),n=i("8080");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("b722");var s,o=i("f0c5"),c=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"02c438ce",null,!1,a["a"],s);e["default"]=c.exports},3232:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{classes:{type:Array,default:function(){return new Array}}}};e.default=a},"34d8":function(t,e,i){"use strict";i.r(e);var a=i("57ee"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},3900:function(t,e,i){var a=i("aabb");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("035303f2",a,!0,{sourceMap:!1,shadowMode:!1})},"3f90":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@font-face{font-family:gFont;src:url(https://at.alicdn.com/t/font_1350431_mx2yuzh35rh.ttf) format("truetype")}.grace-add-list[data-v-035cc30e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.grace-add-list .add-btn[data-v-035cc30e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.grace-add-list .add-btn-text[data-v-035cc30e]{font-size:%?26?%;line-height:%?36?%;text-align:center;color:#999;width:100%}.grace-add-list .add-btn-add[data-v-035cc30e]{font-size:%?100?%!important;height:%?80?%;line-height:%?80?%;margin-bottom:%?20?%;color:#999}.grace-add-list > .items[data-v-035cc30e]{width:%?220?%;height:%?220?%;overflow:hidden;margin:5px 0;background:#f3f4f5;font-size:0;position:relative;border-radius:%?10?%;margin-right:%?13?%}.grace-add-list > .items uni-image[data-v-035cc30e]{width:%?220?%}.grace-add-list > .items .remove[data-v-035cc30e]{font-family:gFont;width:%?50?%;height:%?50?%;line-height:%?50?%;text-align:center;font-size:%?40?%;position:absolute;z-index:1;right:0;bottom:0;background:rgba(0,0,0,.5);color:#fff}.grace-add-list > .items .remove[data-v-035cc30e]:after{content:"\\e600"}',""]),t.exports=e},"3fe5":function(t,e,i){"use strict";i.r(e);var a=i("f19a"),n=i("84c7");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("2dfb");var s,o=i("f0c5"),c=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"68be4825",null,!1,a["a"],s);e["default"]=c.exports},"451a":function(t,e,i){"use strict";i("c975"),i("a9e3"),i("ac1f"),i("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{customHeader:{type:Boolean,default:!0},headerHeight:{type:Number,default:44},headerIndex:{type:Number,default:999},headerBG:{type:String,default:"none"},statusBarBG:{type:String,default:"none"},footerIndex:{type:Number,default:999},footerBg:{type:String,default:""},isSwitchPage:{type:Boolean,default:!1},rbWidth:{type:Number,default:100},rbBottom:{type:Number,default:100},rbRight:{type:Number,default:20}},data:function(){return{statusBarHeight:0,iphoneXButtomHeight:0,BoundingWidth:"0px"}},created:function(){try{var t=uni.getSystemInfoSync();t.model=t.model.replace(" ",""),-1!=t.model.indexOf("iPhoneX")&&(this.iphoneXButtomHeight=uni.upx2px(50))}catch(e){return null}this.customHeader&&(this.statusBarHeight=t.statusBarHeight)}};e.default=a},"50a5":function(t,e,i){"use strict";var a=i("e2ab"),n=i.n(a);n.a},"57ee":function(t,e,i){"use strict";i("a434"),i("a9e3"),i("ac1f"),i("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{maxFileNumber:{type:Number,default:9},btnName:{type:String,default:"添加照片"},items:{type:Array,default:function(){return[]}},closeBtnColor:{type:String,default:"#666666"},uploadServerUrl:{type:String,default:""},progressSize:{type:Number,default:1},progressColor:{type:String,default:"#27BD81"},progressBGColor:{type:String,default:"#F8F8F8"},fileName:{type:String,default:"file"},formData:{type:Object,default:function(){return{}}},imgMode:{type:String,default:"widthFix"},header:{type:Object,default:function(){return{optname:"insertcustompic",token:uni.getStorageSync("g_token")}}}},data:function(){return{imgLists:[],updatting:!1,resArr:[],isDel:!1,isDelIndex:0}},watch:{imgLists:function(t,e){this.updatting||this.$emit("change",t,this.isDel,this.isDelIndex)}},methods:{clearAllImgs:function(){this.imgLists=[]},addImg:function(){var t=this,e=this.maxFileNumber-this.imgLists.length;if(e<1)return!1;uni.chooseImage({count:e,sizeType:["compressed"],success:function(e){for(var i=0;i<e.tempFilePaths.length;i++)t.imgLists.push({url:e.tempFilePaths[i],progress:0,error:!1})},complete:function(){},fail:function(){}}),this.isDel=!1,this.isDelIndex=0},removeImg:function(t){var e=t.currentTarget.id.replace("grace-items-img-",""),i=this.imgLists.splice(e,1);this.$emit("removeImg",i[0]),this.isDel=!0,this.isDelIndex=e},showImgs:function(t){for(var e=t.currentTarget.dataset.imgurl,i=[],a=0;a<this.imgLists.length;a++)i.push(this.imgLists[a].url);uni.previewImage({urls:i,current:e})},upload:function(t){this.updatting||(this.updatting=!0,t||(t=0),uni.showLoading({title:"图片上传中"}),this.uploadBase(t))},retry:function(t){var e=t.currentTarget.dataset.index;this.upload(e)},uploadBase:function(t,e){var i=this;if(void 0!=e&&this.resArr.push(e.LastInsertId),t>this.imgLists.length-1)return console.log("res",e),uni.hideLoading(),this.updatting=!1,this.$emit("uploaded",this.resArr),void this.resArr.splice(0);if(""!=this.uploadServerUrl)if(this.imgLists[t].progress>=1)this.uploadBase(t+1,e);else{this.imgLists[t].error=!1;var a=uni.uploadFile({url:this.uploadServerUrl,filePath:this.imgLists[t].url,name:this.fileName,formData:this.formData,header:this.header,success:function(e){e=JSON.parse(e.data);var a=e.execresult;console.log(e),i.imgLists[t].result=e,i.uploadBase(t+1,a)},fail:function(e){uni.showToast({title:"上传失败,请点击图片重试",icon:"none"}),i.error(t)}});a.onProgressUpdate((function(e){e.progress>0&&(i.imgLists[t].progress=e.progress,i.imgLists.splice(t,1,i.imgLists[t]))}))}else uni.showToast({title:"请设置上传服务器地址",icon:"none"})},error:function(t){var e=this;this.updatting=!1,setTimeout((function(){e.imgLists[t].progress=0,e.imgLists[t].error=!0,e.$emit("uploaderror")}),500)},setItems:function(t){this.imgLists=[];for(var e=0;e<t.length;e++)this.imgLists.push({url:t[e],progress:100})}}};e.default=a},"5ade":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"uni-page-body[data-v-68be4825]{width:100%;height:100vh;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.grace-sbody[data-v-68be4825]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;width:100%;-webkit-box-flex:1;-webkit-flex:1;flex:1;\n}.grace-page-header[data-v-68be4825]{width:100%;position:fixed;left:0;top:0;z-index:99}.grace-page-status-bar[data-v-68be4825]{width:100%;height:0}.grace-page-header-nav[data-v-68be4825]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;height:44px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.grace-header-main[data-v-68be4825]{width:%?300?%;-webkit-box-flex:1;-webkit-flex:auto;flex:auto;overflow:hidden}.grace-page-body[data-v-68be4825]{width:100%;-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.grace-page-footer[data-v-68be4825]{width:100%;position:fixed;left:0;bottom:0;z-index:99}.gui-page-rb-area[data-v-68be4825]{width:%?100?%;position:fixed;right:%?20?%;bottom:%?100?%;z-index:100}",""]),t.exports=e},"62c0":function(t,e,i){var a=i("5ade");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("0f67b36b",a,!0,{sourceMap:!1,shadowMode:!1})},8080:function(t,e,i){"use strict";i.r(e);var a=i("3232"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},"84c7":function(t,e,i){"use strict";i.r(e);var a=i("451a"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},"893a":function(t,e,i){var a=i("3f90");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("701147ce",a,!0,{sourceMap:!1,shadowMode:!1})},"8f58":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".input-bx[data-v-f30f32d0]{height:auto;background:#fff;padding:%?0?%}.btn-bx[data-v-f30f32d0]{position:fixed;left:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;bottom:%?0?%;background:#fff;width:100%;padding:%?20?% %?0?%}.btn-sub[data-v-f30f32d0]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff;margin-right:%?20?%}.btn-res[data-v-f30f32d0]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}.release-content[data-v-f30f32d0]{margin-top:%?40?%;background-color:#f7f7f7;border-radius:%?10?%}.release-button[data-v-f30f32d0]{background:#3688ff;height:%?50?%;padding:0 %?25?%;line-height:%?50?%;border-radius:%?50?%;color:#fff;font-size:%?22?%}.release-text-white[data-v-f30f32d0]{color:#fff}.release-content-input[data-v-f30f32d0]{height:%?180?%;font-size:%?28?%;width:650;color:#8e8080;padding:%?25?%;line-height:%?46?%}",""]),t.exports=e},9049:function(t,e,i){"use strict";i.r(e);var a=i("2d69"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},"9e13":function(t,e,i){var a=i("0f6b");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("061c5d19",a,!0,{sourceMap:!1,shadowMode:!1})},"9e72":function(t,e,i){"use strict";i.r(e);var a=i("10de"),n=i.n(a);for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},a2e8:function(t,e,i){"use strict";i.r(e);var a=i("1575"),n=i("9049");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("50a5");var s,o=i("f0c5"),c=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"f30f32d0",null,!1,a["a"],s);e["default"]=c.exports},aabb:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".grace-add-list[data-v-e2f5bce0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.grace-add-list-btn[data-v-e2f5bce0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.grace-add-list-btn-text[data-v-e2f5bce0]{font-size:%?26?%;line-height:%?36?%;text-align:center;color:#999;width:100%}.grace-add-list-btn-icon[data-v-e2f5bce0]{font-size:%?80?%;height:%?80?%;line-height:%?80?%;margin-bottom:%?20?%;color:#999}.grace-add-list-items[data-v-e2f5bce0]{width:%?222?%;height:%?222?%;overflow:hidden;margin-bottom:%?10?%;margin-right:%?11?%;background:#f6f7f8;font-size:0;position:relative;border-radius:%?10?%}.grace-add-list-image[data-v-e2f5bce0]{width:%?222?%}.grace-add-list-remove[data-v-e2f5bce0]{width:%?50?%;height:%?50?%;line-height:%?50?%;text-align:center;font-size:%?40?%;position:absolute;z-index:5;right:%?10?%;top:%?10?%;color:#888}.upload-progress[data-v-e2f5bce0]{position:absolute;z-index:2;left:0;bottom:%?10?%;width:%?180?%;padding:0 %?21?%}.grace-add-list-reup[data-v-e2f5bce0]{position:absolute;z-index:3;left:0;top:%?0?%;width:%?222?%;height:%?222?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;background-color:rgba(0,0,0,.3);-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.grace-add-list-reup-icon[data-v-e2f5bce0]{text-align:center;width:100%;color:#fff;display:block;font-size:%?80?%;line-height:%?100?%}.grace-add-list-reup-text[data-v-e2f5bce0]{text-align:center;width:100%;color:#fff;display:block;font-size:%?20?%;line-height:%?30?%}.grace-add-list-img[data-v-e2f5bce0]{width:%?222?%}",""]),t.exports=e},b4ba:function(t,e,i){"use strict";var a=i("893a"),n=i.n(a);n.a},b722:function(t,e,i){"use strict";var a=i("9e13"),n=i.n(a);n.a},bc50:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"grace-add-list"},[t._l(t.imgLists,(function(e,a){return i("v-uni-view",{key:a,staticClass:"grace-add-list-items"},[i("v-uni-image",{staticClass:"grace-add-list-img",attrs:{src:e.url,"data-imgurl":e.url,mode:t.imgMode},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showImgs.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"grace-add-list-remove grace-icons icon-close",style:{color:t.closeBtnColor},attrs:{id:"grace-items-img-"+a},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.removeImg.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"upload-progress"},[i("v-uni-progress",{attrs:{percent:e.progress,"stroke-width":t.progressSize,activeColor:t.progressColor,backgroundColor:t.progressBGColor}})],1),e.error?i("v-uni-view",{staticClass:"grace-add-list-reup",attrs:{"data-index":a},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.retry.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"grace-add-list-reup-icon grace-icons icon-retry"}),i("v-uni-text",{staticClass:"grace-add-list-reup-text"},[t._v("失败重试")])],1):t._e()],1)})),t.imgLists.length<t.maxFileNumber?i("v-uni-view",{staticClass:"grace-add-list-items grace-add-list-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addImg.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"grace-add-list-btn-icon"},[t._v("+")]),i("v-uni-view",{staticClass:"grace-add-list-btn-text"},[t._v(t._s(t.btnName))])],1):t._e()],2)},r=[]},c5f7:function(t,e,i){"use strict";i.r(e);var a=i("d411"),n=i("9e72");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("b4ba");var s,o=i("f0c5"),c=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"035cc30e",null,!1,a["a"],s);e["default"]=c.exports},d411:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"grace-add-list"},[t._l(t.imgLists,(function(e,a){return i("v-uni-view",{key:a,staticClass:"items"},[i("v-uni-image",{attrs:{src:e,mode:"widthFix","data-imgurl":e},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showImgs.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"remove",attrs:{id:"grace-items-img-"+a},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.removeImg.apply(void 0,arguments)}}})],1)})),t.imgLists.length<t.maxFileNumber?i("v-uni-view",{staticClass:"items add-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addImg.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"add-btn-add"},[t._v("+")]),i("v-uni-view",{staticClass:"add-btn-text"},[t._v(t._s(t.btnName))])],1):t._e(),i("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.removeAllImg.apply(void 0,arguments)}}})],2)},r=[]},e2ab:function(t,e,i){var a=i("8f58");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("866abbc6",a,!0,{sourceMap:!1,shadowMode:!1})},ed72:function(t,e,i){"use strict";i.r(e);var a=i("bc50"),n=i("34d8");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("f1b4");var s,o=i("f0c5"),c=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"e2f5bce0",null,!1,a["a"],s);e["default"]=c.exports},f19a:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"grace-sbody"},[t.customHeader?i("v-uni-view",[i("v-uni-view",{staticClass:"grace-page-header",style:{"z-index":t.headerIndex,background:t.headerBG}},[i("v-uni-view",{staticClass:"grace-page-status-bar",style:{height:t.statusBarHeight+"px",background:t.statusBarBG}}),i("v-uni-view",{staticClass:"grace-page-header-nav",style:{height:t.headerHeight+"px"}},[i("v-uni-view",{staticClass:"grace-header-main"},[t._t("gHeader")],2),i("v-uni-view",{style:{width:t.BoundingWidth,height:"10px"}})],1)],1),i("v-uni-view",{style:{width:"100%",height:t.statusBarHeight+t.headerHeight+"px"}})],1):t._e(),i("v-uni-view",{staticClass:"grace-page-body"},[t._t("gBody")],2),t.isSwitchPage?t._e():i("v-uni-view",{style:{width:"100%",height:t.iphoneXButtomHeight+"px"}}),i("v-uni-view",{staticClass:"grace-page-footer",style:{"z-index":t.footerIndex,background:t.footerBg}},[t._t("gFooter"),t.isSwitchPage?t._e():i("v-uni-view",{style:{width:"100%",height:t.iphoneXButtomHeight+"px"}})],2),i("v-uni-view",{staticClass:"gui-page-rb-area",style:{right:t.rbRight+"rpx",bottom:t.rbBottom+"rpx",width:t.rbWidth+"rpx"}},[t._t("gRTArea")],2)],1)},r=[]},f1b4:function(t,e,i){"use strict";var a=i("3900"),n=i.n(a);n.a},fbdf:function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"gui-flex",class:t.classes},[t._t("default")],2)},r=[]}}]);