(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-applyForBuy-applyForBuy"],{"14fb":function(t,e,a){"use strict";var i=a("9105"),n=a.n(i);n.a},"1be3":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),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:"./applyForBuyDetail/applyForBuyDetail?name="+e.orderNumber+"&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.orderNumber))]),a("v-uni-text",{staticClass:"grace-more"},[t._v(t._s(e.inputTime))])],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("审核状态:")]),4==e.statue||6==e.statue||8==e.statue?a("v-uni-text",{staticClass:"grace-black6"},[t._v("未通过")]):t._e(),2==e.statue||3==e.statue||5==e.statue?a("v-uni-text",{staticClass:"grace-black6"},[t._v("审核中")]):t._e(),7==e.statue?a("v-uni-text",{staticClass:"grace-black6"},[t._v("已通过")]):t._e()],1)],1),4==e.statue||6==e.statue||8==e.statue?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.orderNumber,"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)},r=[]},"2fbd":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),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)},r=[]},"3d6b":function(t,e,a){"use strict";a.r(e);var i=a("e481"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"785f":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".btn-bx[data-v-4d2f83ee]{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-4d2f83ee]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff}.btn-res[data-v-4d2f83ee]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}.btn-edit[data-v-4d2f83ee]{width:%?100?%;height:%?76?%;border-radius:%?10?%;color:#169bd5;font-size:%?30?%;text-align:center}.btn-del[data-v-4d2f83ee]{width:%?100?%;height:%?76?%;border-radius:%?10?%;color:#f60;font-size:%?30?%;text-align:center}.g-title-bx-row[data-v-4d2f83ee]{height:auto;line-height:2}.demo-msg[data-v-4d2f83ee]{width:100%;padding:%?40?%;background:#fff}.btn-bx2[data-v-4d2f83ee]{position:fixed;bottom:%?0?%;background:#fff;width:100%;padding:%?20?% %?0?%}",""]),t.exports=e},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})},"97e9":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")),r=i(a("3fe5")),s=i(a("2e9e")),o=i(a("d7c4")),c={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"),r="/authdata/GetDataByName",s=(t.get_today(),{name:"getpartpurchaseList",offset:1,pagecount:10,parammaps:{pastureName:i,menu:"Subscribe",loginId:e,loginpastureId:a,logindeptId:n}});t.ajax(r,s,"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"),r=uni.getStorageSync("g_pastureName"),s=uni.getStorageSync("g_dempmId"),o="/authdata/GetDataByName",c=(a.get_today(),{name:"getpartpurchaseList",offset:t,pagecount:e,parammaps:{pastureName:r,menu:"Subscribe",loginId:i,loginpastureId:n,logindeptId:s}});a.ajax(o,c,"POST",a.get_list_data)},formAdd:function(t){uni.navigateTo({url:"./applyForBuyDetailAdd/applyForBuyDetailAdd"})},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:"./applyForBuyDetailEdit/applyForBuyDetailEdit?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:"deleteBigPartpurchase",type:"e",parammaps:{id:e.delId}},{name:"deletePartpurchase",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/applyForBuy/applyForBuy"})}});else{var a=t.data;uni.showToast({title:"删除失败"+a,duration:2e3,icon:"none"})}}},components:{gracePage:r.default,graceFlex:s.default,graceNavBar:o.default,graceShade:n.default}};e.default=c},aee9:function(t,e,a){"use strict";a.r(e);var i=a("97e9"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},af60:function(t,e,a){"use strict";a.r(e);var i=a("1be3"),n=a("aee9");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("d585");var s,o=a("f0c5"),c=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"4d2f83ee",null,!1,i["a"],s);e["default"]=c.exports},b24a:function(t,e,a){var i=a("785f");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("72295834",i,!0,{sourceMap:!1,shadowMode:!1})},d585:function(t,e,a){"use strict";var i=a("b24a"),n=a.n(i);n.a},d7c4:function(t,e,a){"use strict";a.r(e);var i=a("2fbd"),n=a("3d6b");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("14fb");var s,o=a("f0c5"),c=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"647bb7bc",null,!1,i["a"],s);e["default"]=c.exports},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}}]);