pages-index-collect-collectDetail-collectDetail.524c0cf9.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-collect-collectDetail-collectDetail"],{"13d54":function(t,a,e){"use strict";var i=e("f1f3"),s=e.n(i);s.a},"35e7":function(t,a,e){"use strict";var i=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var s=i(e("3423")),c=i(e("3fe5")),l=i(e("2e9e")),r=i(e("3bab")),n=i(e("ed72")),o={data:function(){return{searchValue:"",g_username:"epans",g_employeName:"Epans",g_employeId:"2",today_now:"2019-12-01",id:"",applyCode:"",dataValue:{},detailList:[],status1:"",status2:"",status3:"",status4:"",sumPrices:""}},onLoad:function(t){var a=this;console.log(t);var e=t.name;a.applyCode=e;var i=t.id;this.id=i;var s=JSON.parse(t.all);this.all=s,this.dataValue=s,console.log(s);var c=uni.getStorageSync("g_employeName");a.g_employeName=c;uni.getStorageSync("g_pastureId");var l=a.get_today_now(),r=uni.getStorageSync("g_username"),n=uni.getStorageSync("g_employeId");a.dataValue.g_username=r,a.g_username=r,a.g_employeId=n,a.today_now=l;var o={name:"getpartapplyListBybig",parammaps:{id:i}};a.ajax("/authdata/GetDataByName",o,"POST",a.get_detailList_data1);var d={name:"getSHstatueLY",parammaps:{id:i}};a.ajax("/authdata/GetDataByName",d,"POST",a.get_examstatus_data)},onBackPress:function(){return uni.navigateTo({url:"/pages/index/collect/collect"}),!0},methods:{get_detailList_data1:function(t){console.log("详情列表数据:",t);var a=t.data.list;this.detailList=null==a?[]:a},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]["部门审核"]},formCancel:function(t){uni.navigateTo({url:"/pages/index/collect/collect"})}},components:{gracePage:c.default,graceFlex:l.default,graceSelectImgAndUpload:n.default,graceNumberBox:s.default,graceShade:r.default}};a.default=o},"6a49":function(t,a,e){"use strict";e.r(a);var i=e("c04a"),s=e("cfe8");for(var c in s)"default"!==c&&function(t){e.d(a,t,(function(){return s[t]}))}(c);e("13d54");var l,r=e("f0c5"),n=Object(r["a"])(s["default"],i["b"],i["c"],!1,null,"90011176",null,!1,i["a"],l);a["default"]=n.exports},c04a:function(t,a,e){"use strict";var i;e.d(a,"b",(function(){return s})),e.d(a,"c",(function(){return c})),e.d(a,"a",(function(){return i}));var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"page"},[e("v-uni-view",{staticClass:"grace-list-items",staticStyle:{background:"#fff","margin-bottom":"16upx"}},[e("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[e("v-uni-text",{staticClass:"grace-icons icon-comments icon grace-blue"}),e("v-uni-text",{staticClass:"title grace-black"},[t._v("领用单号:"+t._s(t.dataValue.applyCode))])],1),e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("牧场:")]),e("v-uni-text",{staticClass:" grace-black5 "},[t._v(t._s(t.dataValue.pastureName))])],1),e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("领用部门:")]),e("v-uni-text",{staticClass:" grace-black5 "},[t._v(t._s(t.dataValue.departmentName))])],1),e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("领用人:")]),e("v-uni-text",{staticClass:" grace-black5 "},[t._v(t._s(t.dataValue.empname))])],1),e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("领用日期:")]),e("v-uni-text",{staticClass:" grace-black5 "},[t._v(t._s(t.dataValue.createDate))])],1),e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("领用类型:")]),0==t.dataValue.applyType?e("v-uni-text",{staticClass:" grace-black5 "},[t._v("非维保")]):t._e(),1==t.dataValue.applyType?e("v-uni-text",{staticClass:" grace-black5 "},[t._v("维修")]):t._e(),2==t.dataValue.applyType?e("v-uni-text",{staticClass:" grace-black5 "},[t._v("保养")]):t._e()],1),1==t.dataValue.applyType?e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("报修单号:")]),e("v-uni-text",{staticClass:" grace-black5 "},[t._v(t._s(t.dataValue.RUCode))])],1):t._e(),2==t.dataValue.applyType?e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("保养单号:")]),e("v-uni-text",{staticClass:" grace-black5 "},[t._v(t._s(t.dataValue.RUCode))])],1):t._e(),1==t.dataValue.applyType?e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("故障情况:")]),e("v-uni-text",{staticClass:" grace-black5 "},[t._v(t._s(t.dataValue.detail))])],1):t._e(),e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row",staticStyle:{padding:"0 20upx"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("审核状态:")]),4==t.dataValue.SHStatus||6==t.dataValue.SHStatus||8==t.dataValue.SHStatus||10==t.dataValue.SHStatus?e("v-uni-text",{staticClass:"grace-black6"},[t._v("未通过")]):t._e(),2==t.dataValue.SHStatus||3==t.dataValue.SHStatus||5==t.dataValue.SHStatus||7==t.dataValue.SHStatus?e("v-uni-text",{staticClass:"grace-black6"},[t._v("审核中")]):t._e(),9==t.dataValue.SHStatus?e("v-uni-text",{staticClass:"grace-black6"},[t._v("已通过")]):t._e()],1)],1),e("v-uni-view",{staticClass:"g-line"}),e("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[e("v-uni-text",{staticClass:"grace-icons icon-article icon grace-blue"}),e("v-uni-text",{staticClass:"title grace-black"},[t._v("备件信息")])],1),e("v-uni-view",{staticClass:"detail-bx"},[t._l(t.detailList,(function(a,i){return[e("v-uni-view",{staticClass:"detail-li"},[e("v-uni-view",{staticStyle:{width:"100%",position:"relative"}},[e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row"},[e("v-uni-text",{staticClass:" grace-black5 g-card-w"},[t._v("备件编号:")]),e("v-uni-text",{staticClass:" grace-black5"},[t._v(t._s(a.partCode))])],1),e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row"},[e("v-uni-text",{staticClass:" grace-black5 g-card-w"},[t._v("备件名称:")]),e("v-uni-text",{staticClass:" grace-black5"},[t._v(t._s(a.partName))])],1),e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row"},[e("v-uni-text",{staticClass:" grace-black5 g-card-w"},[t._v("规格:")]),e("v-uni-text",{staticClass:" grace-black5"},[t._v(t._s(a.specification))])],1),e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row"},[e("v-uni-text",{staticClass:" grace-black5 g-card-w"},[t._v("品牌:")]),e("v-uni-text",{staticClass:" grace-black5"},[t._v(t._s(a.brandName))])],1),e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row"},[e("v-uni-text",{staticClass:" grace-black5 g-card-w"},[t._v("单价:")]),e("v-uni-text",{staticClass:" grace-black5"},[t._v(t._s(a.price))])],1),e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row"},[e("v-uni-text",{staticClass:" grace-black5 g-card-w"},[t._v("现有库存:")]),e("v-uni-text",{staticClass:" grace-black5"},[t._v(t._s(a.reportery))])],1),e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row"},[e("v-uni-text",{staticClass:" grace-black5 g-card-w"},[t._v("领用数量:")]),e("v-uni-text",{staticClass:" grace-black5"},[t._v(t._s(a.amount))])],1),e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row"},[e("v-uni-text",{staticClass:" grace-black5 g-card-w"},[t._v("总价:")]),e("v-uni-text",{staticClass:" grace-black5"},[t._v(t._s(a.sumPrice))])],1),1==t.dataValue.applyType||2==t.dataValue.applyType?e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row"},[e("v-uni-text",{staticClass:" grace-black5 g-card-w"},[t._v("设备名称:")]),e("v-uni-text",{staticClass:" grace-black5"},[t._v(t._s(a.eqName))])],1):t._e(),1==t.dataValue.applyType||2==t.dataValue.applyType?e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row"},[e("v-uni-text",{staticClass:" grace-black5 g-card-w"},[t._v("设备内部编号:")]),e("v-uni-text",{staticClass:" grace-black5"},[t._v(t._s(a.eqCode))])],1):t._e(),e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row"},[e("v-uni-text",{staticClass:" grace-black5 g-card-w"},[t._v("用途:")]),e("v-uni-text",{staticClass:" grace-black5"},[t._v(t._s(a.note))])],1)],1)],1)]})),e("v-uni-view",{staticClass:"grace-nowrap g-title-bx-row"},[e("v-uni-text",{staticClass:" grace-black5 g-card-w"},[t._v("合计总价:")]),e("v-uni-text",{staticClass:" grace-black5"},[t._v(t._s(t.dataValue.sumPrices))])],1)],2),e("v-uni-view",{staticClass:"g-line"}),e("v-uni-view",{staticClass:"grace-list-items",staticStyle:{background:"#fff","margin-bottom":"16upx"}},[e("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[e("v-uni-text",{staticClass:"grace-icons icon-article icon grace-blue"}),e("v-uni-text",{staticClass:"title grace-black"},[t._v("审核情况")])],1),t.dataValue.sumPrices>500?e("v-uni-view",{staticClass:" g-title-bx-row",staticStyle:{padding:"0 20upx","word-wrap":"break-word",height:"auto"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("部门审核:")]),void 0!=t.status4?e("v-uni-text",{staticClass:" grace-black5 "},[t._v(t._s(t.status4))]):t._e()],1):t._e(),t.dataValue.sumPrices>500?e("v-uni-view",{staticClass:" g-title-bx-row",staticStyle:{padding:"0 20upx","word-wrap":"break-word",height:"auto"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("设备处长审核:")]),void 0!=t.status3?e("v-uni-text",{staticClass:" grace-black5 "},[t._v(t._s(t.status3))]):t._e()],1):t._e(),t.dataValue.sumPrices>3e3?e("v-uni-view",{staticClass:" g-title-bx-row",staticStyle:{padding:"0 20upx","word-wrap":"break-word",height:"auto"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("设备助理审核:")]),void 0!=t.status1?e("v-uni-text",{staticClass:" grace-black5 "},[t._v(t._s(t.status1))]):t._e()],1):t._e(),t.dataValue.sumPrices>1e4?e("v-uni-view",{staticClass:" g-title-bx-row",staticStyle:{padding:"0 20upx","word-wrap":"break-word",height:"auto"}},[e("v-uni-text",{staticClass:" grace-black9 g-card-w"},[t._v("场长审核:")]),void 0!=t.status2?e("v-uni-text",{staticClass:" grace-black5 "},[t._v(t._s(t.status2))]):t._e()],1):t._e()],1),e("v-uni-view",{staticClass:"btn-bx"},[e("v-uni-button",{staticClass:"btn-res",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.formCancel.apply(void 0,arguments)}}},[t._v("返回")])],1)],1)},c=[]},cfe8:function(t,a,e){"use strict";e.r(a);var i=e("35e7"),s=e.n(i);for(var c in i)"default"!==c&&function(t){e.d(a,t,(function(){return i[t]}))}(c);a["default"]=s.a},d344:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".input-bx[data-v-90011176]{height:auto;background:#fff;padding:0 %?30?%}.input-item[data-v-90011176]{margin-bottom:%?20?%;padding:%?0?% %?30?%}.ipt-title[data-v-90011176]{font-size:%?32?%;color:#333;margin-bottom:%?20?%}.ipt-textarea[data-v-90011176]{width:100%;height:%?200?%;border:1px solid #acacac;font-size:%?32?%;color:#333}.img-bx[data-v-90011176]{width:100%;height:%?400?%;border:1px solid #acacac;margin-bottom:%?10?%}.img[data-v-90011176]{width:100%;height:%?400?%}.btn-choose[data-v-90011176]{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-90011176]{height:%?90?%;background:#f2f2f2;padding-left:%?40?%;line-height:2}.title[data-v-90011176]{font-size:%?32?%;color:#333;font-weight:700}.radio-bx[data-v-90011176]{padding:%?0?% %?20?%}.radio-bx uni-label[data-v-90011176]{font-size:%?32?%;color:#333;margin-right:%?20?%}.choose-title[data-v-90011176]{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-90011176]{font-size:%?32?%;color:#333;font-weight:700;display:block;margin-bottom:%?10?%}.choose-title uni-input[data-v-90011176]{width:%?410?%;height:%?50?%;border:1px solid #acacac;font-size:%?32?%;color:#333}.choose-bx[data-v-90011176]{height:%?400?%;width:100%}.detail-bx[data-v-90011176]{padding:%?0?% %?20?%;border:1px solid #acacac}.li-item[data-v-90011176]{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-90011176]{font-size:%?30?%;color:#666;width:%?440?%}.li-date[data-v-90011176]{font-size:%?30?%;color:#666}.detail-li1[data-v-90011176]{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;box-sizing:border-box}.detail-li2[data-v-90011176]{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;box-sizing:border-box}.detail-li[data-v-90011176]{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;box-sizing:border-box}.detli-tt[data-v-90011176]{font-size:%?30?%;color:#666;margin-left:%?20?%;display:block;width:100%;height:%?60?%}.ipt-input[data-v-90011176]{width:%?200?%;height:%?50?%;border:1px solid #acacac;font-size:%?30?%;color:#666;margin-top:%?20?%;display:inline-block}.btn-del[data-v-90011176]{width:%?120?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff;position:absolute;right:0;bottom:%?10?%}.btn-bx[data-v-90011176]{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-90011176]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff}.btn-res[data-v-90011176]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}.demo-msg[data-v-90011176]{width:100%;padding:%?40?%;background:#fff}.close-btn[data-v-90011176]{width:%?80?%;height:%?80?%;line-height:%?80?%;text-align:center;font-size:%?40?%;z-index:7}",""]),t.exports=a},f1f3:function(t,a,e){var i=e("d344");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=e("4f06").default;s("4b4ede59",i,!0,{sourceMap:!1,shadowMode:!1})}}]);