1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-todo-applyExamine3-applyExamine3Detail-applyExamine3Detail"],{6938:function(t,a,e){"use strict";e.r(a);var i=e("932d"),o=e.n(i);for(var s in i)"default"!==s&&function(t){e.d(a,t,(function(){return i[t]}))}(s);a["default"]=o.a},"932d":function(t,a,e){"use strict";var i=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=i(e("ade3")),s=i(e("3423")),n=i(e("3fe5")),c=i(e("2e9e")),r=i(e("3bab")),l=i(e("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 a=this,e=uni.getStorageSync("g_employeName");a.g_employeName=e;t.isbtn;a.isbtn=t.isbtn;var i=t.name;a.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}};a.ajax("/authdata/GetDataByName",c,"POST",a.get_detailList_data1);var r={name:"getSHstatueSG",parammaps:{id:o,pastureId:n}};a.ajax("/authdata/GetDataByName",r,"POST",a.get_examstatus_data),a.road_name_id_time_data()},onBackPress:function(){return uni.reLaunch({url:"/pages/todo/applyExamine3/applyExamine3"}),!0},methods:{road_name_id_time_data:function(t){var a=this,e=a.get_today_now(),i=uni.getStorageSync("g_username"),o=uni.getStorageSync("g_employeId");a.dataValue.g_username=i,a.g_username=i,a.g_employeId=o,a.today_now=e},formSubmit:function(t){var a=this,e=(a.dataValue,a.detailList,uni.getStorageSync("g_employeId")),i={name:"partpurchaseCharge1",parammaps:{id:a.id,statue:7,empId:e,workflowNote:""}};a.ajax("/authdata/GetDataByName",i,"POST",a.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 a=this,e=t.detail.value;console.log(e);var i=uni.getStorageSync("g_employeId");if(""!==e.workflowNote){var o={name:"partpurchaseCharge1",parammaps:{id:a.id,statue:8,empId:i,workflowNote:e.workflowNote}};console.log("保存原始数据:"+JSON.stringify(e)),console.log("需要发送的数据:"+JSON.stringify(o)),a.isRes=!1,a.ajax("/authdata/GetDataByName",o,"POST",a.get_edit_status1)}else a.isRes=!0},get_detailList_data1:function(t){console.log("详情列表数据:",t);var a=t.data.list;this.detailList=null==a?[]:a},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/applyExamine3/applyExamine3"})}),1e3)}});else{var a=t.data;uni.showModal({title:"保存失败",content:a,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}};a.default=d},"944c":function(t,a,e){"use strict";e.r(a);var i=e("f065"),o=e("6938");for(var s in o)"default"!==s&&function(t){e.d(a,t,(function(){return o[t]}))}(s);e("eac1");var n,c=e("f0c5"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"4b9309ca",null,!1,i["a"],n);a["default"]=r.exports},d8ed:function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,".input-bx[data-v-4b9309ca]{height:auto;background:#fff;padding:0 %?30?%}.input-item[data-v-4b9309ca]{margin-bottom:%?20?%;padding:%?0?% %?30?%}.ipt-title[data-v-4b9309ca]{font-size:%?32?%;color:#333;margin-bottom:%?20?%}.ipt-textarea[data-v-4b9309ca]{width:100%;height:%?200?%;border:1px solid #acacac;font-size:%?32?%;color:#333}.img-bx[data-v-4b9309ca]{width:100%;height:%?400?%;border:1px solid #acacac;margin-bottom:%?10?%}.img[data-v-4b9309ca]{width:100%;height:%?400?%}.btn-choose[data-v-4b9309ca]{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-4b9309ca]{height:%?90?%;background:#f2f2f2;padding-left:%?40?%;line-height:2}.title[data-v-4b9309ca]{font-size:%?32?%;color:#333;font-weight:700}.radio-bx[data-v-4b9309ca]{padding:%?0?% %?20?%}.radio-bx uni-label[data-v-4b9309ca]{font-size:%?32?%;color:#333;margin-right:%?20?%}.choose-title[data-v-4b9309ca]{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-4b9309ca]{font-size:%?32?%;color:#333;font-weight:700;display:block;margin-bottom:%?10?%}.choose-title uni-input[data-v-4b9309ca]{width:%?410?%;height:%?50?%;border:1px solid #acacac;font-size:%?32?%;color:#333}.choose-bx[data-v-4b9309ca]{height:%?400?%;width:100%}.detail-bx[data-v-4b9309ca]{padding:%?0?% %?20?%;border:1px solid #acacac}.li-item[data-v-4b9309ca]{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-4b9309ca]{font-size:%?30?%;color:#666;width:%?440?%}.li-date[data-v-4b9309ca]{font-size:%?30?%;color:#666}.detail-li1[data-v-4b9309ca]{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-4b9309ca]{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-4b9309ca]{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-4b9309ca]{font-size:%?30?%;color:#666;margin-left:%?20?%;display:block;width:100%;height:%?60?%}.ipt-input[data-v-4b9309ca]{width:%?200?%;height:%?50?%;border:1px solid #acacac;font-size:%?30?%;color:#666;margin-top:%?20?%;display:inline-block}.btn-del[data-v-4b9309ca]{width:%?120?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff;position:absolute;right:0;bottom:%?10?%}.btn-bx[data-v-4b9309ca]{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-4b9309ca]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff}.btn-res[data-v-4b9309ca]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}.demo-msg[data-v-4b9309ca]{width:100%;padding:%?40?%;background:#fff}.close-btn[data-v-4b9309ca]{width:%?80?%;height:%?80?%;line-height:%?80?%;text-align:center;font-size:%?40?%;z-index:7}",""]),t.exports=a},df8b:function(t,a,e){var i=e("d8ed");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=e("4f06").default;o("28116e19",i,!0,{sourceMap:!1,shadowMode:!1})},eac1:function(t,a,e){"use strict";var i=e("df8b"),o=e.n(i);o.a},f065:function(t,a,e){"use strict";var i;e.d(a,"b",(function(){return o})),e.d(a,"c",(function(){return s})),e.d(a,"a",(function(){return i}));var o=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.orderNumber))])],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 grace-bold"},[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 grace-bold"},[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 grace-bold"},[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 grace-bold"},[t._v(t._s(t.dataValue.inputTime))])],1)],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-text",{staticClass:"detli-tt"},[t._v("备件名称: "+t._s(a.partName))]),e("v-uni-text",{staticClass:"detli-tt"},[t._v("规格: "+t._s(a.specification))]),e("v-uni-text",{staticClass:"detli-tt"},[t._v("品牌: "+t._s(a.brandName))]),e("v-uni-text",{staticClass:"detli-tt"},[t._v("数量: "+t._s(a.amount))])],1)],1)]}))],2),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),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("库管审核:")]),e("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.status1))])],1),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("技术助理审核:")]),e("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.status2))])],1),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("采购审核:")]),e("v-uni-text",{staticClass:" grace-black5 grace-bold"},[t._v(t._s(t.status3))])],1)],1),e("v-uni-view",{staticClass:"input-bx"},[e("v-uni-form",{staticClass:"grace-form grace-margin-top",on:{submit:function(a){arguments[0]=a=t.$handleEvent(a),t.formSubmit.apply(void 0,arguments)}}},["yes"==t.isbtn?e("v-uni-view",{staticClass:"btn-bx"},[e("v-uni-button",{staticClass:"btn-sub",attrs:{formType:"submit"}},[t._v("审核通过")]),e("v-uni-button",{staticClass:"btn-res",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.btn_out.apply(void 0,arguments)}}},[t._v("审核驳回")])],1):t._e()],1)],1),e("graceShade",{attrs:{show:t.isShowChooseBx}},[e("v-uni-view",{staticClass:"demo-msg grace-relative"},[e("v-uni-view",{staticClass:"grace-title grace-border-b",staticStyle:{margin:"0 20upx"}},[e("v-uni-text",{staticClass:"grace-icons icon-shoucang chat-filled icon grace-red"}),e("v-uni-text",{staticClass:"title grace-black"},[t._v("驳回")])],1),e("v-uni-form",{staticClass:"grace-form grace-margin-top",on:{submit:function(a){arguments[0]=a=t.$handleEvent(a),t.formSubmit2.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"grace-items grace-noborder"},[e("v-uni-view",{staticClass:"grace-label grace-bold",staticStyle:{width:"600rpx"}},[t._v("请输入不通过原因:")])],1),e("v-uni-view",{staticClass:"grace-items grace-noborder"},[e("v-uni-view",{staticClass:"other"},[e("v-uni-textarea",{attrs:{placeholder:"请输入.....",name:"workflowNote"}})],1)],1),e("v-uni-view",{staticClass:"other"},[e("v-uni-text",{directives:[{name:"show",rawName:"v-show",value:t.isRes,expression:"isRes"}],staticStyle:{color:"#f00"}},[t._v("驳回原因必填")])],1),e("v-uni-view",{staticClass:"btn-bx"},[e("v-uni-button",{staticClass:"btn-sub",attrs:{formType:"submit"}},[t._v("保存")]),e("v-uni-button",{staticClass:"btn-res",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.formCancel2.apply(void 0,arguments)}}},[t._v("取消")])],1)],1),e("v-uni-view",{staticClass:"close-btn grace-icons icon-close3 grace-black grace-absolute-rt",on:{click:function(a){if(a.target!==a.currentTarget)return null;arguments[0]=a=t.$handleEvent(a),t.closeShade.apply(void 0,arguments)}}})],1)],1)],1)},s=[]}}]);
|