(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-todo-applyForApproval1-applyForApprovalDetail1-applyForApprovalDetail1"],{"0075":function(t,i,a){"use strict";var e=a("4ea4");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=e(a("ade3")),n={data:function(){var t;return{isbtn:"no",dataValue:(t={orderNumber:"DD08201910140004",isUrgent:1,departmentName:"兽医处",employeName:"杨继超",pastureName:"宝鸡牧场",createTime:"2019-10-14",assistantName:"李骁勇",assistantTime:"2019-11-01 09:54",departmentId:6,directorStatue:"未审核",directorTime:"",employeId:7,id:16},(0,s.default)(t,"isUrgent",1),(0,s.default)(t,"pastureId",1),(0,s.default)(t,"statue","已审核"),(0,s.default)(t,"warehouseStatue","未审核"),(0,s.default)(t,"warehouseTime",""),t),dataList:[{date:"2019-10-17",empname:"王二刚",id:87,inspectionResults:"检测3项,合格2项"}],isDetailShow:!0}},onLoad:function(t){var i=this;console.log("前一个页面",t);var a=t.id,e=t.all;i.id=a;t.isbtn;i.isbtn=t.isbtn,this.dataValue=JSON.parse(e);var s="/authdata/GetDataByName",n=(i.get_today(),{name:"findByIdSubPruchases",offset:1,pagecount:300,parammaps:{id:a}});i.ajax(s,n,"POST",i.get_list_data)},onBackPress:function(){return uni.navigateTo({url:"/pages/todo/applyForApproval1/applyForApproval1"}),!0},methods:{get_list_data:function(t){console.log("列表数据:",t),null==t.data.list?(uni.showToast({title:"暂无数据",icon:"none"}),this.isDetailShow=!1):(this.dataList=t.data.list,this.isDetailShow=!0)},onPassTap:function(t){var i=this,a={common:{returnmap:"0"},data:[{name:"verifySubPruchase_Audit",type:"e",parammaps:{jwt_username:"@common.jwt_username",id:i.id}}]};console.log("需要发送的数据:"+JSON.stringify(a));var e="/authdata/ExecDataByConfig";i.ajax(e,a,"POST",i.get_edit_status)},formCancel:function(t){uni.navigateBack({delta:1})},get_edit_status:function(t){if(console.log("保存状态:",t),"ok"==t.msg)uni.showToast({title:"保存成功",duration:500,icon:"none",success:function(t){setTimeout((function(){uni.navigateTo({url:"/pages/todo/applyForApproval1/applyForApproval1"})}),1e3)}});else{var i=t.data;uni.showModal({title:"保存失败",content:i,showCancel:!1,success:function(t){t.confirm&&console.log("用户点击确定")}})}}}};i.default=n},"30ae":function(t,i,a){var e=a("24fb");i=e(!1),i.push([t.i,".title-bx[data-v-570ab5f0]{height:%?40?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;padding:%?30?%;border-bottom:%?1?% solid #d3d3d3;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.tt-code[data-v-570ab5f0]{display:inline-block;font-size:%?36?%;color:#333;font-weight:700;margin-right:%?20?%}.tt-title[data-v-570ab5f0]{display:inline-block;font-size:%?36?%;color:#333;font-weight:700}.tt-num[data-v-570ab5f0]{display:inline-block;font-size:%?36?%;color:#333;font-weight:700}.show-bx[data-v-570ab5f0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;padding:%?30?%;-webkit-flex-wrap:wrap;flex-wrap:wrap}.show-item[data-v-570ab5f0]{width:100%;height:%?70?%}.sh-hd[data-v-570ab5f0]{font-size:%?28?%;color:#333;margin-right:%?10?%;display:inline-block;width:%?200?%}.sh-bd[data-v-570ab5f0]{font-size:%?28?%;color:#333}.detail-bx[data-v-570ab5f0]{border:%?1?% solid #d3d3d3;margin-bottom:%?20?%}.li-item3[data-v-570ab5f0]{height:%?400?%;border-bottom:%?1?% solid #ccc;margin:%?0?% %?30?%;border-bottom:%?1?% solid #d3d3d3}.li-block3[data-v-570ab5f0]{height:%?60?%;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;margin:%?0?% %?30?%}.li-hd3[data-v-570ab5f0]{font-size:%?28?%;color:#666;font-weight:700}.li-bd3[data-v-570ab5f0]{font-size:%?28?%;color:#666}.btn-bx[data-v-570ab5f0]{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}.btn-sub[data-v-570ab5f0]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff}.btn-res[data-v-570ab5f0]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}",""]),t.exports=i},4935:function(t,i,a){var e=a("30ae");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var s=a("4f06").default;s("2e35c9c4",e,!0,{sourceMap:!1,shadowMode:!1})},"7cfb":function(t,i,a){"use strict";a.r(i);var e=a("0075"),s=a.n(e);for(var n in e)"default"!==n&&function(t){a.d(i,t,(function(){return e[t]}))}(n);i["default"]=s.a},"8f9f":function(t,i,a){"use strict";var e=a("4935"),s=a.n(e);s.a},"9ea7":function(t,i,a){"use strict";var e;a.d(i,"b",(function(){return s})),a.d(i,"c",(function(){return n})),a.d(i,"a",(function(){return e}));var s=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("v-uni-view",{staticClass:"page"},[a("v-uni-view",{staticClass:"title-bx"},[a("v-uni-view",{staticClass:"g-in-blk"},[a("v-uni-text",{staticClass:"tt-code"},[t._v("申购单编号:"+t._s(t.dataValue.orderNumber))])],1)],1),a("v-uni-view",{staticClass:"show-bx"},[a("v-uni-view",{staticClass:"show-item"},[a("v-uni-text",{staticClass:"sh-hd"},[t._v("是否加急:")]),a("v-uni-text",{staticClass:"sh-bd"},[t._v(t._s(1==t.dataValue.isUrgent?"加急":"不加急"))])],1),a("v-uni-view",{staticClass:"show-item"},[a("v-uni-text",{staticClass:"sh-hd"},[t._v("牧场:")]),a("v-uni-text",{staticClass:"sh-bd"},[t._v(t._s(t.dataValue.pastureName))])],1),a("v-uni-view",{staticClass:"show-item"},[a("v-uni-text",{staticClass:"sh-hd"},[t._v("部门:")]),a("v-uni-text",{staticClass:"sh-bd"},[t._v(t._s(t.dataValue.departmentName))])],1),a("v-uni-view",{staticClass:"show-item"},[a("v-uni-text",{staticClass:"sh-hd"},[t._v("责任人:")]),a("v-uni-text",{staticClass:"sh-bd"},[t._v(t._s(t.dataValue.employeName))])],1),a("v-uni-view",{staticClass:"show-item"},[a("v-uni-text",{staticClass:"sh-hd"},[t._v("录入时间:")]),a("v-uni-text",{staticClass:"sh-bd"},[t._v(t._s(t.dataValue.createTime))])],1)],1),t.isDetailShow?a("v-uni-view",{staticClass:"detail-bx"},t._l(t.dataList,(function(i,e){return a("v-uni-view",[a("v-uni-view",{staticClass:"li-item3"},[a("v-uni-view",{staticClass:"li-block3"},[a("v-uni-text",{staticClass:"li-hd3"},[t._v("供应商:")]),a("v-uni-text",{staticClass:"li-bd3"},[t._v(t._s(i.providerName))])],1),a("v-uni-view",{staticClass:"li-block3"},[a("v-uni-text",{staticClass:"li-hd3"},[t._v("名称:")]),a("v-uni-text",{staticClass:"li-bd3"},[t._v(t._s(i.enabledTime))])],1),a("v-uni-view",{staticClass:"li-block3"},[a("v-uni-text",{staticClass:"li-hd3"},[t._v("规格:")]),a("v-uni-text",{staticClass:"li-bd3"},[t._v(t._s(i.specification))])],1),a("v-uni-view",{staticClass:"li-block3"},[a("v-uni-text",{staticClass:"li-hd3"},[t._v("用途:")]),a("v-uni-text",{staticClass:"li-bd3"},[t._v(t._s(i.purpose))])],1),a("v-uni-view",{staticClass:"li-block3"},[a("v-uni-text",{staticClass:"li-hd3"},[t._v("单位:")]),a("v-uni-text",{staticClass:"li-bd3"},[t._v(t._s(i.unit))])],1),a("v-uni-view",{staticClass:"li-block3"},[a("v-uni-text",{staticClass:"li-hd3"},[t._v("数量:")]),a("v-uni-text",{staticClass:"li-bd3"},[t._v(t._s(i.amount))])],1),a("v-uni-view",{staticClass:"li-block3"},[a("v-uni-text",{staticClass:"li-hd3"},[t._v("备注:")]),a("v-uni-text",{staticClass:"li-bd3"},[t._v(t._s(i.note))])],1)],1)],1)})),1):a("v-uni-view",{staticClass:"detail-bx2"},[a("v-uni-view",{staticClass:"li-item3"},[t._v("暂无列表数据")])],1),a("v-uni-view",{staticClass:"input-bx"},["yes"==t.isbtn?a("v-uni-view",{staticClass:"btn-bx"},[a("v-uni-button",{staticClass:"btn-sub",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onPassTap.apply(void 0,arguments)}}},[t._v("通过")]),a("v-uni-button",{staticClass:"btn-res",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.formCancel.apply(void 0,arguments)}}},[t._v("取消")])],1):t._e()],1)],1)},n=[]},a576:function(t,i,a){"use strict";a.r(i);var e=a("9ea7"),s=a("7cfb");for(var n in s)"default"!==n&&function(t){a.d(i,t,(function(){return s[t]}))}(n);a("8f9f");var o,l=a("f0c5"),d=Object(l["a"])(s["default"],e["b"],e["c"],!1,null,"570ab5f0",null,!1,e["a"],o);i["default"]=d.exports}}]);