1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-todo-applyExamine1-applyExamine1Detail-applyExamine1Detail"],{"01b7":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i}));var o=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.orderNumber))])],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.pastureName))])],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.inputTime))])],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))])],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),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("库管审核:")]),a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.status1))])],1),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("技术助理审核:")]),a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.status2))])],1),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("采购审核:")]),a("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.status3))])],1)],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)},s=[]},"3ade":function(t,e,a){"use strict";a.r(e);var i=a("a242"),o=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=o.a},"5cb6":function(t,e,a){var i=a("60d4");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("4f06").default;o("2d4fa4d4",i,!0,{sourceMap:!1,shadowMode:!1})},"60d4":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".input-bx[data-v-b5ec84be]{height:auto;background:#fff;padding:0 %?30?%}.input-item[data-v-b5ec84be]{margin-bottom:%?20?%;padding:%?0?% %?30?%}.ipt-title[data-v-b5ec84be]{font-size:%?32?%;color:#333;margin-bottom:%?20?%}.ipt-textarea[data-v-b5ec84be]{width:100%;height:%?200?%;border:1px solid #acacac;font-size:%?32?%;color:#333}.img-bx[data-v-b5ec84be]{width:100%;height:%?400?%;border:1px solid #acacac;margin-bottom:%?10?%}.img[data-v-b5ec84be]{width:100%;height:%?400?%}.btn-choose[data-v-b5ec84be]{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-b5ec84be]{height:%?90?%;background:#f2f2f2;padding-left:%?40?%;line-height:2}.title[data-v-b5ec84be]{font-size:%?32?%;color:#333;font-weight:700}.radio-bx[data-v-b5ec84be]{padding:%?0?% %?20?%}.radio-bx uni-label[data-v-b5ec84be]{font-size:%?32?%;color:#333;margin-right:%?20?%}.choose-title[data-v-b5ec84be]{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-b5ec84be]{font-size:%?32?%;color:#333;font-weight:700;display:block;margin-bottom:%?10?%}.choose-title uni-input[data-v-b5ec84be]{width:%?410?%;height:%?50?%;border:1px solid #acacac;font-size:%?32?%;color:#333}.choose-bx[data-v-b5ec84be]{height:%?400?%;width:100%}.detail-bx[data-v-b5ec84be]{padding:%?0?% %?20?%;border:1px solid #acacac}.li-item[data-v-b5ec84be]{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-b5ec84be]{font-size:%?30?%;color:#666;width:%?440?%}.li-date[data-v-b5ec84be]{font-size:%?30?%;color:#666}.detail-li1[data-v-b5ec84be]{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-b5ec84be]{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-b5ec84be]{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-b5ec84be]{font-size:%?30?%;color:#666;margin-left:%?20?%;display:block;width:100%;height:%?60?%}.ipt-input[data-v-b5ec84be]{width:%?200?%;height:%?50?%;border:1px solid #acacac;font-size:%?30?%;color:#666;margin-top:%?20?%;display:inline-block}.btn-del[data-v-b5ec84be]{width:%?120?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff;position:absolute;right:0;bottom:%?10?%}.btn-bx[data-v-b5ec84be]{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-b5ec84be]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff}.btn-res[data-v-b5ec84be]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}.demo-msg[data-v-b5ec84be]{width:100%;padding:%?40?%;background:#fff}.close-btn[data-v-b5ec84be]{width:%?80?%;height:%?80?%;line-height:%?80?%;text-align:center;font-size:%?40?%;z-index:7}",""]),t.exports=e},a242:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(a("ade3")),s=i(a("3423")),n=i(a("3fe5")),c=i(a("2e9e")),r=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:"",orderNumber:""},(0,o.default)(t,"isbtn","yes"),(0,o.default)(t,"isShowChooseBx",!1),(0,o.default)(t,"isRes",!1),(0,o.default)(t,"dataValue",{}),(0,o.default)(t,"detailList",[]),(0,o.default)(t,"status1",""),(0,o.default)(t,"status2",""),(0,o.default)(t,"status3",""),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.orderNumber=i,console.log(t);var o=t.id;this.id=o;var s=JSON.parse(t.all);this.all=s,this.dataValue=s;var n=uni.getStorageSync("g_pastureId");console.log(s);var c={name:"getpartpurchaseBybig",parammaps:{id:o}};e.ajax("/authdata/GetDataByName",c,"POST",e.get_detailList_data1);var r={name:"getSHstatueSG",parammaps:{id:o,pastureId:n}};e.ajax("/authdata/GetDataByName",r,"POST",e.get_examstatus_data),e.road_name_id_time_data()},onBackPress:function(){return uni.reLaunch({url:"/pages/todo/applyExamine1/applyExamine1"}),!0},methods:{road_name_id_time_data:function(t){var e=this,a=e.get_today_now(),i=uni.getStorageSync("g_username"),o=uni.getStorageSync("g_employeId");e.dataValue.g_username=i,e.g_username=i,e.g_employeId=o,e.today_now=a},formSubmit:function(t){var e=this,a=(e.dataValue,e.detailList,uni.getStorageSync("g_employeId")),i={name:"partpurchaseCharge",parammaps:{id:e.id,statue:3,empId:a,workflowNote:""}};e.ajax("/authdata/GetDataByName",i,"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 o={name:"partpurchaseCharge",parammaps:{id:e.id,statue:4,empId:i,workflowNote:a.workflowNote}};console.log("保存原始数据:"+JSON.stringify(a)),console.log("需要发送的数据:"+JSON.stringify(o)),e.isRes=!1,e.ajax("/authdata/GetDataByName",o,"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/applyExamine1/applyExamine1"})}),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]["采购审核"]}},components:{gracePage:n.default,graceFlex:c.default,graceSelectImgAndUpload:l.default,graceNumberBox:s.default,graceShade:r.default}};e.default=d},ad46:function(t,e,a){"use strict";a.r(e);var i=a("01b7"),o=a("3ade");for(var s in o)"default"!==s&&function(t){a.d(e,t,(function(){return o[t]}))}(s);a("cd25");var n,c=a("f0c5"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"b5ec84be",null,!1,i["a"],n);e["default"]=r.exports},cd25:function(t,e,a){"use strict";var i=a("5cb6"),o=a.n(i);o.a}}]);
|