pages-todo-appointmentApproval-appointmentApprovalDetail-appointmentApprovalDetail.882e3fd6.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-todo-appointmentApproval-appointmentApprovalDetail-appointmentApprovalDetail"],{"00d7":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page"},[i("v-uni-form",{on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.formSubmit.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"input-bx"},[i("v-uni-view",{staticClass:"input-item g-fx-sb"},[i("v-uni-text",{staticClass:"ipt-title"},[t._v("资产编号:")]),i("v-uni-text",{staticClass:"ipt-title"},[t._v(t._s(t.dataValue.assetNumber))])],1),i("v-uni-view",{staticClass:"input-item g-fx-sb"},[i("v-uni-text",{staticClass:"ipt-title"},[t._v("资产名称:")]),i("v-uni-text",{staticClass:"ipt-title"},[t._v(t._s(t.dataValue.assetName))])],1),i("v-uni-view",{staticClass:"input-item g-fx-sb"},[i("v-uni-text",{staticClass:"ipt-title"},[t._v("牧场设备编号:")]),i("v-uni-text",{staticClass:"ipt-title"},[t._v(t._s(t.dataValue.equipmentNumber))])],1),i("v-uni-view",{staticClass:"input-item g-fx-sb"},[i("v-uni-text",{staticClass:"ipt-title"},[t._v("牧场名称:")]),i("v-uni-text",{staticClass:"ipt-title"},[t._v(t._s(t.dataValue.pastureName))])],1),i("v-uni-view",{staticClass:"input-item g-fx-sb"},[i("v-uni-text",{staticClass:"ipt-title"},[t._v("部门:")]),i("v-uni-text",{staticClass:"ipt-title"},[t._v(t._s(t.dataValue.departmentName))])],1),i("v-uni-view",{staticClass:"input-item g-fx-sb"},[i("v-uni-text",{staticClass:"ipt-title"},[t._v("故障部位:")]),i("v-uni-text",{staticClass:"ipt-title"},[t._v(t._s(t.dataValue.partName))])],1),i("v-uni-view",{staticClass:"input-item g-fx-sb"},[i("v-uni-text",{staticClass:"ipt-title"},[t._v("故障详情:")]),i("v-uni-text",{staticClass:"ipt-title"},[t._v(t._s(t.dataValue.details))])],1),i("v-uni-view",{staticClass:"input-item g-fx-sb"},[i("v-uni-text",{staticClass:"ipt-title"},[t._v("责任人:")]),i("v-uni-text",{staticClass:"ipt-title"},[t._v(t._s(t.g_employeName))])],1),i("v-uni-view",{staticClass:"input-item g-fx-sb"},[i("v-uni-text",{staticClass:"ipt-title"},[t._v("日期:")]),i("v-uni-text",{staticClass:"ipt-title"},[t._v(t._s(t.today_now))])],1),i("v-uni-view",{staticClass:"show-title"},[i("v-uni-text",{staticClass:"title"},[t._v("处理结果")])],1),i("v-uni-view",{staticClass:"detail-bx"},[t._l(t.detailList,(function(e,a){return[i("v-uni-view",{staticClass:"detail-li"},[i("v-uni-view",{staticStyle:{width:"100%",position:"relative"}},[i("v-uni-text",{staticClass:"detli-tt"},[t._v("备件名称: "+t._s(e.stockName))]),i("v-uni-text",{staticClass:"detli-tt"},[t._v("规格: "+t._s(e.specification))]),i("v-uni-text",{staticClass:"detli-tt"},[t._v("领用数量: "+t._s(e.refuseNumber))]),i("v-uni-text",{staticClass:"detli-tt"},[t._v("单位: "+t._s(e.unit))]),i("v-uni-text",{staticClass:"detli-tt"},[t._v("单价: "+t._s(e.price))]),i("v-uni-text",{staticClass:"detli-tt"},[t._v("总价: "+t._s(e.sumPrice))]),i("v-uni-text",{staticClass:"detli-tt",attrs:{"data-index":a},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onDetailListTap.apply(void 0,arguments)}}},[t._v("是否驳回: "+t._s(1==e.isOver?"是":" 否"))]),1==e.isOver?i("v-uni-view",{staticClass:"detli-tt",staticStyle:{"margin-bottom":"30upx"}},[t._v("驳回原因:"),i("v-uni-input",{staticClass:"ipt-input",attrs:{"data-index":a},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.onKeyInput.apply(void 0,arguments)}}})],1):t._e()],1)],1)]}))],2),"yes"==t.isbtn?i("v-uni-view",{staticClass:"btn-bx"},[i("v-uni-button",{staticClass:"btn-sub",attrs:{formType:"submit"}},[t._v("确定")])],1):t._e()],1)],1)],1)},n=[]},"0970":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{isbtn:"no",imgSuccess:"../../../../static/index/success.png",imgFalse:"../../../../static/index/false.png",g_employeName:"Epans",g_username:"epans",g_employeId:"2",today_now:"",dataValue:{assetName:"小型装载机",equipmentNumber:"08.ZZJ011",pastureName:"宝鸡牧场",assetNumber:"01.01.01.01.00015",partName:"轮胎",appearanceName:"车轮没气",aaDate:"2019-10-28 15:04",appearanceId:1,applyImg:"",applyName:"张江文",applyTime:"2019-10-28",assTypeId:"115",assetA:"小型装载机/08.ZZJ011",auditStatue:"未审核",auditStatue1:0,bigId:361,checkResult:"需要备件",checkStatue:"已审核",dealTime:"2019-10-28 14:33",departmentId:6,departmentName:"兽医处",deptId:23,details:"测试",dispose:"张勃萌",disposeId:331,employeId:342,employeeId:342,empname:"柳张航",id:168,orderTime:"2019-10-28 14:26",partId:27,pastureId:1,receiveStatue:"已审核",repairNumber:"WX08201910280021",specification:"SEM616B",statue:"未处理",statue1:0,useStatus:"未领用",useStatus1:0},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}]}},onLoad:function(t){var e=this,i=uni.getStorageSync("g_employeName");e.g_employeName=i,console.log(t);t.id,JSON.parse(t.all),t.isbtn;e.isbtn=t.isbtn;e.road_name_id_time_data()},onBackPress:function(){return uni.navigateTo({url:"/pages/todo/appointmentApproval/appointmentApproval"}),!0},methods:{road_name_id_time_data:function(t){var e=this,i=e.get_today_now(),a=uni.getStorageSync("g_username"),s=uni.getStorageSync("g_employeId");e.dataValue.g_username=a,e.g_username=a,e.g_employeId=s,e.today_now=i},onKeyInput:function(t){var e=this,i=t.target.value,a=t.currentTarget.dataset.index;console.log("索引",a,"内容",i);var s=e.detailList;s[a]["auditNote"]=i,s[a]["auditorNote"]=i,e.detailList=s},onDetailListTap:function(t){var e=this,i=t.currentTarget.dataset.index,a=e.detailList,s=a[i]["isOver"],n=a[i];console.log("当前点击的数据",JSON.stringify(n)),0==s?(a[i]["isOver"]="1",e.detailList=a,n["isOver"]="1"):(a[i]["isOver"]="0",e.detailList=a,n["isOver"]="0")},formSubmit:function(t){var e=this,i=(e.dataValue,e.detailList),a="/authdata/ExecDataByConfig",s={common:{returnmap:"0"},data:[{name:"insertSpotList",resultmaps:{list:i},children:[{name:"verifyStockUse_Audit",type:"e",parammaps:{isOver:"@insertSpotList.isOver",auditNote:"@insertSpotList.auditNote",id:"@insertSpotList.stockUseId",bigId:"@insertSpotList.bigId"}},{name:"updateBigStockUse_Audit",type:"e",parammaps:{bigId:"@insertSpotList.bigId",jwt_username:"@common.jwt_username"}}]}]};e.ajax(a,s,"POST",e.get_edit_status)},get_list_data:function(t){console.log("列表数据:",t);var e=t.data.list[0];this.dataValue=e},get_detailList_data:function(t){console.log("详情列表数据:",t),this.detailList=t.data.list},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/appointmentApproval/appointmentApproval"})}),1e3)}});else{var e=t.data;uni.showModal({title:"保存失败",content:e,showCancel:!1,success:function(t){t.confirm&&console.log("用户点击确定")}})}}}};e.default=a},2535:function(t,e,i){"use strict";var a=i("313d"),s=i.n(a);s.a},"313d":function(t,e,i){var a=i("d60a");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("4f06").default;s("cea6fa2c",a,!0,{sourceMap:!1,shadowMode:!1})},a2f4:function(t,e,i){"use strict";i.r(e);var a=i("00d7"),s=i("f2c3");for(var n in s)"default"!==n&&function(t){i.d(e,t,(function(){return s[t]}))}(n);i("2535");var o,d=i("f0c5"),r=Object(d["a"])(s["default"],a["b"],a["c"],!1,null,"7fe594ce",null,!1,a["a"],o);e["default"]=r.exports},d60a:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".title-bx[data-v-7fe594ce]{height:%?110?%;background:#f2f2f2;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?%}.tt-hd[data-v-7fe594ce]{font-size:%?32?%;color:#333;font-weight:700;display:block;margin-bottom:%?10?%}.tt-bd[data-v-7fe594ce]{font-size:%?32?%;color:#333;display:block}.input-bx[data-v-7fe594ce]{height:auto;background:#fff;padding:%?30?% %?0?%}.input-item[data-v-7fe594ce]{margin-bottom:%?20?%;padding:%?0?% %?30?%}.ipt-title[data-v-7fe594ce]{font-size:%?32?%;color:#333;margin-bottom:%?20?%}.ipt-textarea[data-v-7fe594ce]{width:100%;height:%?200?%;border:1px solid #acacac;font-size:%?32?%;color:#333}.img-bx[data-v-7fe594ce]{width:100%;height:%?400?%;border:1px solid #acacac;margin-bottom:%?10?%}.img[data-v-7fe594ce]{width:100%;height:%?400?%}.btn-choose[data-v-7fe594ce]{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-7fe594ce]{height:%?90?%;background:#f2f2f2;padding-left:%?40?%;line-height:2}.title[data-v-7fe594ce]{font-size:%?32?%;color:#333;font-weight:700}.detail-bx[data-v-7fe594ce]{padding:%?0?% %?20?%;border:1px solid #acacac}.li-item[data-v-7fe594ce]{height:%?90?%;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:%?0?% %?30?%;line-height:3;vertical-align:bottom}.li-title[data-v-7fe594ce]{font-size:%?30?%;color:#666}.li-date[data-v-7fe594ce]{font-size:%?30?%;color:#666}.detail-li[data-v-7fe594ce]{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-7fe594ce]{font-size:%?30?%;color:#666;margin-left:%?20?%;display:block;width:100%;height:%?60?%}.ipt-input[data-v-7fe594ce]{width:%?200?%;height:%?50?%;border:1px solid #acacac;font-size:%?30?%;color:#666;margin-top:%?20?%;display:inline-block}.li-img[data-v-7fe594ce]{width:%?50?%;height:%?50?%;margin-top:%?20?%}.btn-bx[data-v-7fe594ce]{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-7fe594ce]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#169bd5;font-size:%?32?%;color:#fff}.btn-res[data-v-7fe594ce]{width:%?290?%;height:%?86?%;border-radius:%?10?%;background:#f60;font-size:%?32?%;color:#fff}",""]),t.exports=e},f2c3:function(t,e,i){"use strict";i.r(e);var a=i("0970"),s=i.n(a);for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=s.a}}]);