pages-todo-appointmentExamine2-appointmentExamine2Detail-appointmentExamine2Detail.d6ee414a.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-todo-appointmentExamine2-appointmentExamine2Detail-appointmentExamine2Detail"],{"1c5d":function(t,e,a){"use strict";a.r(e);var i=a("fe90"),s=a("97d5");for(var o in s)"default"!==o&&function(t){a.d(e,t,(function(){return s[t]}))}(o);a("ad7c");var n,r=a("f0c5"),c=Object(r["a"])(s["default"],i["b"],i["c"],!1,null,"b2047be8",null,!1,i["a"],n);e["default"]=c.exports},"347d":function(t,e,a){"use strict";var i=a("4ea4");a("acd8"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=i(a("ade3")),o=i(a("3423")),n=i(a("3fe5")),r=i(a("2e9e")),c=i(a("3bab")),l=i(a("ed72")),d={data:function(){var t;return t={searchValue:"",isbtn:"no",g_username:"epans",g_employeName:"Epans",g_employeId:"2",today_now:"2019-12-01",id:"",applyCode:""},(0,s.default)(t,"isbtn","yes"),(0,s.default)(t,"isShowChooseBx",!1),(0,s.default)(t,"isRes",!1),(0,s.default)(t,"dataValue",{}),(0,s.default)(t,"detailList",[{auditNote:"",auditorNote:"",bigId:361,departmentId:6,departmentName:"兽医处",isOver:0,isRefuse:1,isReject:1,listType:"维修",note:"",pastureId:1,pastureName:"宝鸡牧场",price:"3",providerId:6,providerName:"成都市浩祥晟机电有限公司",refuseNumber:1,specification:"2*1.5mm2",stockId:52,stockName:"RVV电缆线",stockNumber:"04.03.01.03.000046",stockUseId:797,sumPrice:"3",unit:"米",useForm:"082019102814330108",useNumber:1},{auditNote:"",auditorNote:"",bigId:361,departmentId:6,departmentName:"兽医处",isOver:0,isRefuse:1,isReject:1,listType:"维修",note:"",pastureId:1,pastureName:"宝鸡牧场",price:"580",providerId:28,providerName:"呼和浩特市赛娜牧业服务有限公司",refuseNumber:2,specification:"FBD-40",stockId:115,stockName:"60T奶仓机封",stockNumber:"04.05.13.02.002273",stockUseId:798,sumPrice:"1160",unit:"个",useForm:"082019102814330108",useNumber:2},{auditNote:"",auditorNote:"",bigId:361,departmentId:6,departmentName:"兽医处",isOver:1,isRefuse:1,isReject:1,listType:"维修",note:"",pastureId:1,pastureName:"宝鸡牧场",price:"108",providerId:10,providerName:"陕西博诚盛凯工程机械有限公司",refuseNumber:2,specification:"Z320470910",stockId:217,stockName:"滤芯WL-100x100-J",stockNumber:"04.04.13.04.000190",stockUseId:799,sumPrice:"216",unit:"个",useForm:"082019102814330108",useNumber:2}]),(0,s.default)(t,"status1",""),(0,s.default)(t,"status2",""),(0,s.default)(t,"status3",""),(0,s.default)(t,"status4",""),t},onLoad:function(t){var e=this,a=uni.getStorageSync("g_employeName");e.g_employeName=a;t.isbtn;e.isbtn=t.isbtn;var i=t.name;e.applyCode=i,console.log(t);var s=t.id;this.id=s;var o=JSON.parse(t.all);this.all=o,this.dataValue=o;var n=uni.getStorageSync("g_pastureId");console.log(o);var r={name:"getpartapplyListBybig",parammaps:{id:s}};e.ajax("/authdata/GetDataByName",r,"POST",e.get_detailList_data1);var c={name:"getSHstatueLY",parammaps:{id:s,pastureId:n}};e.ajax("/authdata/GetDataByName",c,"POST",e.get_examstatus_data),e.road_name_id_time_data()},onBackPress:function(){return uni.reLaunch({url:"/pages/todo/appointmentExamine2/appointmentExamine2"}),!0},methods:{road_name_id_time_data:function(t){var e=this,a=e.get_today_now(),i=uni.getStorageSync("g_username"),s=uni.getStorageSync("g_employeId");e.dataValue.g_username=i,e.g_username=i,e.g_employeId=s,e.today_now=a},formSubmit:function(t){var e=this,a=e.dataValue,i=(e.detailList,uni.getStorageSync("g_employeId")),s=parseFloat(a.sumPrices);console.log(s);var o={name:"partapplyCharge3",parammaps:{id:e.id,statue:9,empId:i,workflowNote:""}};o.parammaps.statue=s>3e3?5:9,e.ajax("/authdata/GetDataByName",o,"POST",e.get_edit_status1)},btn_out:function(t){this.isShowChooseBx=!0},closeShade:function(){this.isShowChooseBx=!1},formCancel2:function(t){this.isShowChooseBx=!1,this.isRes=!1},formSubmit2:function(t){var e=this,a=t.detail.value;console.log(a);var i=uni.getStorageSync("g_employeId");if(""!==a.workflowNote){var s={name:"partapplyCharge3",parammaps:{id:e.id,statue:6,empId:i,workflowNote:a.workflowNote}};console.log("保存原始数据:"+JSON.stringify(a)),console.log("需要发送的数据:"+JSON.stringify(s)),e.isRes=!1,e.ajax("/authdata/GetDataByName",s,"POST",e.get_edit_status1)}else e.isRes=!0},get_detailList_data1:function(t){console.log("详情列表数据:",t);var e=t.data.list;this.detailList=null==e?[]:e},get_edit_status1: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/appointmentExamine2/appointmentExamine2"})}),1e3)}});else{var e=t.data;uni.showModal({title:"保存失败",content:e,showCancel:!1,success:function(t){t.confirm&&console.log("用户点击确定")}})}},get_examstatus_data:function(t){console.log("审核状态:",t),this.status1=t.data.list[0]["部门审核"],this.status2=t.data.list[0]["设备处长审核"],this.status3=t.data.list[0]["设备助理审核"],this.status4=t.data.list[0]["场长审核"]}},components:{gracePage:n.default,graceFlex:r.default,graceSelectImgAndUpload:l.default,graceNumberBox:o.default,graceShade:c.default}};e.default=d},"6edd":function(t,e,a){var i=a("a42e");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("4f06").default;s("488a7348",i,!0,{sourceMap:!1,shadowMode:!1})},"97d5":function(t,e,a){"use strict";a.r(e);var i=a("347d"),s=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=s.a},a42e:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".input-bx[data-v-b2047be8]{height:auto;background:#fff;padding:0 %?30?%}.input-item[data-v-b2047be8]{margin-bottom:%?20?%;padding:%?0?% %?30?%}.ipt-title[data-v-b2047be8]{font-size:%?32?%;color:#333;margin-bottom:%?20?%}.ipt-textarea[data-v-b2047be8]{width:100%;height:%?200?%;border:1px solid #acacac;font-size:%?32?%;color:#333}.img-bx[data-v-b2047be8]{width:100%;height:%?400?%;border:1px solid #acacac;margin-bottom:%?10?%}.img[data-v-b2047be8]{width:100%;height:%?400?%}.btn-choose[data-v-b2047be8]{width:%?200?%;height:%?60?%;border-radius:%?10?%;background:#fff;font-size:%?30?%;line-height:2;color:#333;border:1px solid #acacac}.show-title[data-v-b2047be8]{height:%?90?%;background:#f2f2f2;padding-left:%?40?%;line-height:2}.title[data-v-b2047be8]{font-size:%?32?%;color:#333;font-weight:700}.radio-bx[data-v-b2047be8]{padding:%?0?% %?20?%}.radio-bx uni-label[data-v-b2047be8]{font-size:%?32?%;color:#333;margin-right:%?20?%}.choose-title[data-v-b2047be8]{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;padding:%?30?%}.choose-title uni-text[data-v-b2047be8]{font-size:%?32?%;color:#333;font-weight:700;display:block;margin-bottom:%?10?%}.choose-title uni-input[data-v-b2047be8]{width:%?410?%;height:%?50?%;border:1px solid #acacac;font-size:%?32?%;color:#333}.choose-bx[data-v-b2047be8]{height:%?400?%;width:100%}.detail-bx[data-v-b2047be8]{padding:%?0?% %?20?%;border:1px solid #acacac}.li-item[data-v-b2047be8]{height:auto;border-bottom:%?1?% solid #ccc;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:%?10?% %?30?%;line-height:1.8;vertical-align:bottom}.li-title[data-v-b2047be8]{font-size:%?30?%;color:#666;width:%?440?%}.li-date[data-v-b2047be8]{font-size:%?30?%;color:#666}.detail-li1[data-v-b2047be8]{width:100%;height:auto;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;border-bottom:%?1?% solid #d3d3d3;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-sizing:border-box;box-sizing:border-box}.detail-li2[data-v-b2047be8]{width:100%;height:%?380?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;border-bottom:%?1?% solid #d3d3d3;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-sizing:border-box;box-sizing:border-box}.detail-li[data-v-b2047be8]{width:100%;height:auto;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;border-bottom:%?1?% solid #d3d3d3;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-sizing:border-box;box-sizing:border-box}.detli-tt[data-v-b2047be8]{font-size:%?30?%;color:#666;margin-left:%?20?%;display:block;width:100%;height:%?60?%}.ipt-input[data-v-b2047be8]{width:%?200?%;height:%?50?%;border:1px solid #acacac;font-size:%?30?%;color:#666;margin-top:%?20?%;display:inline-block}.btn-del[data-v-b2047be8]{width:%?120?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff;position:absolute;right:0;bottom:%?10?%}.btn-bx[data-v-b2047be8]{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;width:100%;margin-top:%?80?%}.btn-sub[data-v-b2047be8]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff}.btn-res[data-v-b2047be8]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}.demo-msg[data-v-b2047be8]{width:100%;padding:%?40?%;background:#fff}.close-btn[data-v-b2047be8]{width:%?80?%;height:%?80?%;line-height:%?80?%;text-align:center;font-size:%?40?%;z-index:7}",""]),t.exports=e},ad7c:function(t,e,a){"use strict";var i=a("6edd"),s=a.n(i);s.a},fe90:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"page"},[a("v-uni-view",{staticClass:"grace-list-items",staticStyle:{background:"#fff","margin-bottom":"16upx"}},[a("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-icons icon-comments icon grace-blue"}),a("v-uni-text",{staticClass:"title grace-black"},[t._v("领用单号:"+t._s(t.applyCode))])],1),a("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("牧场:")]),a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.dataValue.pasturName))])],1),a("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("部门:")]),a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.dataValue.departmentName))])],1),a("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("领用人:")]),a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.dataValue.empname))])],1),a("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("领用时间:")]),a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.dataValue.applyDate))])],1),a("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("领用类型:")]),0==t.dataValue.applyType?a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v("非维保")]):t._e(),1==t.dataValue.applyType?a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v("维修")]):t._e(),2==t.dataValue.applyType?a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v("保养")]):t._e()],1),a("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("设备名称:")]),a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.dataValue.eqName))])],1),a("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("设备内部编号:")]),a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.dataValue.eqCode))])],1)],1),a("v-uni-view",{staticClass:"detail-bx"},[t._l(t.detailList,(function(e,i){return[a("v-uni-view",{staticClass:"detail-li"},[a("v-uni-view",{staticStyle:{width:"100%",position:"relative"}},[a("v-uni-text",{staticClass:"detli-tt"},[t._v("备件名称: "+t._s(e.partName))]),a("v-uni-text",{staticClass:"detli-tt"},[t._v("规格: "+t._s(e.specification))]),a("v-uni-text",{staticClass:"detli-tt"},[t._v("品牌: "+t._s(e.brandName))]),a("v-uni-text",{staticClass:"detli-tt"},[t._v("数量: "+t._s(e.amount))]),a("v-uni-text",{staticClass:"detli-tt"},[t._v("总价: "+t._s(e.sumPrice))])],1)],1)]}))],2),a("v-uni-view",{staticClass:"grace-list-items",staticStyle:{background:"#fff","margin-bottom":"16upx"}},[a("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[a("v-uni-text",{staticClass:"grace-icons icon-article icon grace-blue"}),a("v-uni-text",{staticClass:"title grace-black"},[t._v("审核情况")])],1),t.dataValue.sumPrices>500?a("v-uni-view",{staticClass:" g-title-bx-row",staticStyle:{padding:"0 20upx","word-wrap":"break-word",height:"auto"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("部门审核:")]),void 0!=t.status1?a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.status1))]):t._e()],1):t._e(),t.dataValue.sumPrices>500?a("v-uni-view",{staticClass:" g-title-bx-row",staticStyle:{padding:"0 20upx","word-wrap":"break-word",height:"auto"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("设备处长审核:")]),void 0!=t.status2?a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.status2))]):t._e()],1):t._e(),t.dataValue.sumPrices>3e3?a("v-uni-view",{staticClass:" g-title-bx-row",staticStyle:{padding:"0 20upx","word-wrap":"break-word",height:"auto"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("设备助理审核:")]),void 0!=t.status3?a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.status3))]):t._e()],1):t._e(),t.dataValue.sumPrices>1e4?a("v-uni-view",{staticClass:" g-title-bx-row",staticStyle:{padding:"0 20upx","word-wrap":"break-word",height:"auto"}},[a("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("场长审核:")]),void 0!=t.status4?a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.status4))]):t._e()],1):t._e()],1),a("v-uni-view",{staticClass:"input-bx"},[a("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)}}},["yes"==t.isbtn?a("v-uni-view",{staticClass:"btn-bx"},[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.btn_out.apply(void 0,arguments)}}},[t._v("审核驳回")])],1):t._e()],1)],1),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 chat-filled 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 grace-noborder"},[a("v-uni-view",{staticClass:"grace-label grace-bold",staticStyle:{width:"600rpx"}},[t._v("请输入不通过原因:")])],1),a("v-uni-view",{staticClass:"grace-items grace-noborder"},[a("v-uni-view",{staticClass:"other"},[a("v-uni-textarea",{attrs:{placeholder:"请输入.....",name:"workflowNote"}})],1)],1),a("v-uni-view",{staticClass:"other"},[a("v-uni-text",{directives:[{name:"show",rawName:"v-show",value:t.isRes,expression:"isRes"}],staticStyle:{color:"#f00"}},[t._v("驳回原因必填")])],1),a("v-uni-view",{staticClass:"btn-bx"},[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)],1)},o=[]}}]);