(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-collect-collect"],{"14fb":function(t,e,a){"use strict";var i=a("9105"),n=a.n(i);n.a},"18f0":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".btn-bx[data-v-2a4b8f56]{width:50%;position:absolute;bottom:%?-20?%;right:%?10?%;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}\r\n/* .btn-edit{width:120upx;height:76upx;border-radius:10upx;background-color:#169bd5;font-size:30upx;color:#fff;}\r\n.btn-del{width:120upx;height:76upx;border-radius:10upx;background-color:#ff6600;font-size:30upx;color:#fff;} */.btn-sub[data-v-2a4b8f56]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff}.btn-res[data-v-2a4b8f56]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}.btn-edit[data-v-2a4b8f56]{width:%?100?%;height:%?76?%;border-radius:%?10?%;color:#169bd5;font-size:%?30?%;text-align:center}.btn-del[data-v-2a4b8f56]{width:%?100?%;height:%?76?%;border-radius:%?10?%;color:#f60;font-size:%?30?%;text-align:center}.g-title-bx-row[data-v-2a4b8f56]{height:auto;line-height:2}.demo-msg[data-v-2a4b8f56]{width:100%;padding:%?40?%;background:#fff}.btn-bx2[data-v-2a4b8f56]{position:fixed;bottom:%?0?%;background:#fff;width:100%;padding:%?20?% %?0?%}",""]),t.exports=e},"2fbd":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-scroll-view",{class:["grace-nav-bar",t.isCenter?"grace-nav-center":""],attrs:{"scroll-x":!0,"show-scrollbar":!1,"scroll-into-view":"tab-"+t.currentIndex}},t._l(t.items,(function(e,i){return a("v-uni-view",{key:i,staticClass:"nav-item",style:{width:t.size<1?"auto":t.size+"rpx",marginRight:t.margin+"rpx",padding:"0rpx "+t.padding},attrs:{id:"tab-"+i,"data-index":i},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navchang.apply(void 0,arguments)}}},[a("v-uni-view",{class:["nav-item-title",t.currentIndex==i?"nav-active":""],style:{color:t.currentIndex==i?t.activeColor:t.color,textAlign:t.textAlign,lineHeight:t.lineHeight,fontSize:t.fontSize}},[t._v(t._s(e))]),a("v-uni-view",{staticClass:"nav-active-line-wrap",style:{justifyContent:t.activeDirection}},[t.currentIndex==i?a("v-uni-view",{staticClass:"nav-active-line",style:{background:t.activeLineBg,width:t.activeLineWidth,height:t.activeLineHeight}}):t._e()],1)],1)})),1)},s=[]},"3d6b":function(t,e,a){"use strict";a.r(e);var i=a("e481"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},"4be9":function(t,e,a){"use strict";a.r(e);var i=a("b80f"),n=a("8ebc");for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("e1ed");var c,r=a("f0c5"),o=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"2a4b8f56",null,!1,i["a"],c);e["default"]=o.exports},"4dd1":function(t,e,a){var i=a("18f0");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("39896394",i,!0,{sourceMap:!1,shadowMode:!1})},"8c2c":function(t,e,a){"use strict";var i=a("4ea4");a("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("3bab")),s=i(a("3fe5")),c=i(a("2e9e")),r=i(a("d7c4")),o={data:function(){return{dataList:[],isShow:!0,isShowChooseBx:!1,delId:"",page:1,totalPages:1,page2:1,totalPages2:1}},onLoad:function(){var t=this,e=(t.g_url,uni.getStorageSync("g_token"),uni.getStorageSync("g_employeId")),a=uni.getStorageSync("g_pastureId"),i=uni.getStorageSync("g_pastureName"),n=uni.getStorageSync("g_dempmId"),s="/authdata/GetDataByName",c=(t.get_today(),{name:"getBigpartapplyList",offset:1,pagecount:10,parammaps:{pastureName:i,menu:"Receive",loginId:e,loginpastureId:a,logindeptId:n}});t.ajax(s,c,"POST",t.get_list_data)},onReachBottom:function(){var t=this,e=t.page+1,a=t.totalPages;console.log("page",e+"totalPages",a),e>a||t.pagedTrailerList(e,10)},onBackPress:function(){return uni.switchTab({url:"/pages/index/index"}),!0},methods:{pagedTrailerList:function(t,e){var a=this,i=(a.g_url,uni.getStorageSync("g_token"),uni.getStorageSync("g_employeId")),n=uni.getStorageSync("g_pastureId"),s=uni.getStorageSync("g_pastureName"),c=uni.getStorageSync("g_dempmId"),r="/authdata/GetDataByName",o=(a.get_today(),{name:"getBigpartapplyList",offset:t,pagecount:e,parammaps:{pastureName:s,menu:"Receive",loginId:i,loginpastureId:n,logindeptId:c}});a.ajax(r,o,"POST",a.get_list_data)},formAdd:function(t){uni.navigateTo({url:"./collectDetailAdd/collectDetailAdd"})},get_list_data:function(t){var e=this;if(console.log("列表数据:",t),"fail"==t.data.msg)uni.showToast({title:"暂无数据"+t.data,icon:"none"}),this.isShow=!1;else if(null==t.data.list)uni.showToast({title:"暂无数据",icon:"none"}),this.isShow=!1;else{this.isShow=!0;var a=t.data.list;e.dataList=e.dataList.concat(a),e.totalPages=t.data.pages,e.page=t.data.pageNum}},btn_edit:function(t){var e=t.currentTarget.dataset.id,a=t.currentTarget.dataset.order,i=t.currentTarget.dataset.all;uni.navigateTo({url:"./collectDetailEdit/collectDetailEdit?name="+a+"&id="+e+"&all="+i})},btn_del:function(t){var e=t.currentTarget.dataset.id;this.delId=e,this.isShowChooseBx=!0,console.log(this.delId)},closeShade:function(){this.isShowChooseBx=!1},formCancel2:function(t){this.isShowChooseBx=!1},formSubmit2:function(t){var e=this,a=(uni.getStorageSync("g_employeId"),{common:{returnmap:"0"},data:[{name:"deleteBigpartapply",type:"e",parammaps:{id:e.delId}},{name:"deletepartapply",type:"e",parammaps:{bigId:e.delId}}]});console.log("需要发送的数据:"+JSON.stringify(a)),e.ajax("/authdata/ExecDataByConfig",a,"POST",e.get_del_status1)},get_del_status1:function(t){console.log("删除状态:",t);var e=this;if("ok"==t.msg)e.isShowChooseBx=!1,uni.showToast({title:"删除成功",duration:500,icon:"none",success:function(t){uni.redirectTo({url:"/pages/index/collect/collect"})}});else{var a=t.data;uni.showToast({title:"删除失败"+a,duration:2e3,icon:"none"})}}},components:{gracePage:s.default,graceFlex:c.default,graceNavBar:r.default,graceShade:n.default}};e.default=o},"8ebc":function(t,e,a){"use strict";a.r(e);var i=a("8c2c"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},9105:function(t,e,a){var i=a("fc35");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("1ab0d544",i,!0,{sourceMap:!1,shadowMode:!1})},b80f:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"page",attrs:{slot:"gBody"},slot:"gBody"},[a("v-uni-view",{staticClass:"list-bx"},[t._l(t.dataList,(function(e,i){return[a("v-uni-view",{staticClass:"grace-list-items",staticStyle:{background:"#fff","margin-bottom":"16upx",position:"relative"}},[a("v-uni-navigator",{attrs:{"open-type":"navigate",url:"./collectDetail/collectDetail?name="+e.applyCode+"&id="+e.id+"&all="+JSON.stringify(e),"hover-class":"navigator-hover"}},[a("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-icons icon-eye icon grace-blue"}),a("v-uni-text",{staticClass:"title grace-black"},[t._v("领用单号:"+t._s(e.applyCode))]),a("v-uni-text",{staticClass:"grace-more"},[t._v(t._s(e.createDate))])],1),a("v-uni-view",{staticClass:"g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-black9 g-list-w"},[t._v("牧场:")]),a("v-uni-text",{staticClass:"grace-black6"},[t._v(t._s(e.pastureName))])],1),a("v-uni-view",{staticClass:"g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-black9 g-list-w"},[t._v("领用部门:")]),a("v-uni-text",{staticClass:"grace-black6"},[t._v(t._s(e.departmentName))])],1),a("v-uni-view",{staticClass:"g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-black9 g-list-w"},[t._v("领用人:")]),a("v-uni-text",{staticClass:"grace-black6"},[t._v(t._s(e.empname))])],1),a("v-uni-view",{staticClass:"g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-black9 g-list-w"},[t._v("领用类型:")]),0==e.applyType?a("v-uni-text",{staticClass:"grace-black6"},[t._v("非维保")]):t._e(),1==e.applyType?a("v-uni-text",{staticClass:"grace-black6"},[t._v("维修")]):t._e(),2==e.applyType?a("v-uni-text",{staticClass:"grace-black6"},[t._v("保养")]):t._e()],1),a("v-uni-view",{staticClass:"g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-black9 g-list-w"},[t._v("单据状态:")]),0==e.applystatue?a("v-uni-text",{staticClass:"grace-black6"},[t._v("正常")]):t._e(),1==e.applystatue?a("v-uni-text",{staticClass:"grace-black6"},[t._v("关闭")]):t._e()],1),a("v-uni-view",{staticClass:"g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-black9 g-list-w"},[t._v("审核状态:")]),4==e.SHStatus||6==e.SHStatus||8==e.SHStatus||10==e.SHStatus?a("v-uni-text",{staticClass:"grace-black6"},[t._v("未通过")]):t._e(),2==e.SHStatus||3==e.SHStatus||5==e.SHStatus||7==e.SHStatus?a("v-uni-text",{staticClass:"grace-black6"},[t._v("审核中")]):t._e(),9==e.SHStatus?a("v-uni-text",{staticClass:"grace-black6"},[t._v("已通过")]):t._e()],1)],1),4==e.SHStatus||6==e.SHStatus||8==e.SHStatus||10==e.SHStatus?a("v-uni-view",{staticClass:"btn-bx"},[a("v-uni-text",{staticClass:"btn-tt"},[t._v("操作:")]),a("v-uni-text",{staticClass:"btn-edit",attrs:{"data-id":e.id,"data-order":e.applyCode,"data-all":JSON.stringify(e)},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.btn_edit.apply(void 0,arguments)}}},[t._v("编辑")]),a("v-uni-text",{staticClass:"btn-del",attrs:{"data-id":e.id},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.btn_del.apply(void 0,arguments)}}},[t._v("删除")])],1):t._e()],1),a("v-uni-view",{staticClass:"g-line"})]}))],2),a("graceShade",{attrs:{show:t.isShowChooseBx}},[a("v-uni-view",{staticClass:"demo-msg grace-relative"},[a("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-icons icon-shoucang icon grace-red"}),a("v-uni-text",{staticClass:"title grace-black"},[t._v("确认是否删除?")])],1),a("v-uni-form",{staticClass:"grace-form grace-margin-top",on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.formSubmit2.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"grace-items"},[a("v-uni-button",{staticClass:"btn-sub",attrs:{formType:"submit"}},[t._v("确定")]),a("v-uni-button",{staticClass:"btn-res",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.formCancel2.apply(void 0,arguments)}}},[t._v("取消")])],1)],1),a("v-uni-view",{staticClass:"close-btn grace-icons icon-close3 grace-black grace-absolute-rt",on:{click:function(e){if(e.target!==e.currentTarget)return null;arguments[0]=e=t.$handleEvent(e),t.closeShade.apply(void 0,arguments)}}})],1)],1),a("v-uni-view",{staticClass:"btn-bx2"},[a("v-uni-button",{staticClass:"btn-sub",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.formAdd.apply(void 0,arguments)}}},[t._v("领用")])],1)],1)},s=[]},d7c4:function(t,e,a){"use strict";a.r(e);var i=a("2fbd"),n=a("3d6b");for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("14fb");var c,r=a("f0c5"),o=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"647bb7bc",null,!1,i["a"],c);e["default"]=o.exports},e1ed:function(t,e,a){"use strict";var i=a("4dd1"),n=a.n(i);n.a},e481:function(t,e,a){"use strict";a("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{isCenter:{type:Boolean,default:!1},currentIndex:{type:Number,default:0},size:{type:Number,default:120},fontSize:{type:String,default:"28rpx"},items:{type:Array,default:function(){return[]}},activeLineBg:{type:String,default:"linear-gradient(to right, #66BFFF,#3388FF)"},color:{type:String,default:"#333333"},activeColor:{type:String,default:"#333333"},activeLineHeight:{type:String,default:"6rpx"},activeLineWidth:{type:String,default:"36rpx"},activeDirection:{type:String,default:""},margin:{type:Number,default:0},textAlign:{type:String,default:""},lineHeight:{type:String,default:"50rpx"},padding:{type:String,default:"0rpx"}},methods:{navchang:function(t){this.$emit("change",Number(t.currentTarget.dataset.index))}}};e.default=i},fc35:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".grace-nav-bar[data-v-647bb7bc]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;white-space:nowrap}.nav-item[data-v-647bb7bc]{width:%?100?%;display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.nav-item-title[data-v-647bb7bc]{font-size:%?28?%;line-height:%?50?%;width:100%;color:#333}.nav-active[data-v-647bb7bc]{font-size:%?30?%;font-weight:700}.nav-active-line-wrap[data-v-647bb7bc]{display:-webkit-box;display:-webkit-flex;display:flex}.nav-active-line[data-v-647bb7bc]{width:%?36?%;height:%?6?%;margin-top:%?5?%}.grace-nav-center[data-v-647bb7bc]{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;text-align:center}",""]),t.exports=e}}]);