1 line
6.0 KiB
JavaScript
1 line
6.0 KiB
JavaScript
|
webpackJsonp([368],{"/iez":function(e,t){},"vnf/":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("woOf"),o=a.n(s),r=a("1+IS"),i=a("3MlD"),n={name:"approveDetail",components:{approveDetailPage:r.a,dialogChooseSingleUser:i.a},data:function(){return{drawer:!1,chooseUserVisible:!1,formData:{},approveState:"",formTableData1:[{title:"物料代码",prop_:"materielSerialNo",select:!0},{title:"物料名称",prop_:"materielName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"主计量单位",prop_:"unitUomName",select:!0},{title:"主计量数量",prop_:"count",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"换算系数",prop_:"convCoefficient",select:!0},{title:"请购数量",prop_:"subQuoteCount",select:!0},{title:"单价",prop_:"unitPrice",select:!0},{title:"金额",prop_:"amount",select:!0},{title:"源单类型",prop_:"sourceTypeName",select:!0},{title:"源单编号",prop_:"sourceCode",select:!0}],tableData1:[],formTableData2:[{title:"审批节点",prop_:"name",content:"销售订单审批",select:!0},{title:"审批人",prop_:"approveName",select:!0},{title:"审批时间",prop_:"approveTime",select:!0},{title:"审批状态",prop_:"approveState",select:!0},{title:"审批意见",prop_:"remark",select:!0,sortable:!0}],tableData2:[],formStyle:[{label:"部门",column:"deptName"},{label:"申请人",column:"createByName"},{label:"申请时间",column:"create_time"},{label:"用车事由",column:"cause"},{label:"目的地",column:"destination"},{label:"出发时间",column:"start_time"},{label:"预计返回时间",column:"back_time"},{label:"驾驶员",column:"driver"},{label:"车牌号",column:"car_no"},{label:"公里数",column:"distance"}],buttons:[{key:0,btnName:"同意",vhas:"sales:salesContract:add",click:"agree",type:"primary",disabled:!1},{key:1,btnName:"否决",vhas:"sales:salesContract:remove",click:"turnDownTask",type:"primary",disabled:!1},{key:2,btnName:"回退",vhas:"sales:salesContract:exportExcel",click:"rollbackTask",type:"primary",disabled:!1},{key:3,btnName:"转派",vhas:"sales:salesContract:close",click:"redeployTask",type:"primary",disabled:!1},{key:4,btnName:"关闭",vhas:"sales:salesContract:reverseClose",click:"close",type:"primary",disabled:!1}],submitParam:{type:5},tabType:null,approveFlow:[]}},mounted:function(){this.editId=this.$route.query.id,this.taskId=this.$route.query.taskId,this.instanceId=this.$route.query.instanceId,this.tabType=this.$route.query.tabType,this.submitParam.taskId=this.taskId,this.getDetail()},methods:{open:function(e,t){var a=this;this.$alert(e,t,{confirmButtonText:"确定",callback:function(e){a.$message({type:"info",message:"action: "+e})}})},btnClick:function(e,t){console.log("按钮调试"),console.log(e),"agree"==e?this.agree(t):"turnDownTask"==e?this.turnDownTask(t):"rollbackTask"==e?this.rollbackTask(t):"redeployTask"==e?this.redeployTask(t):(e="close")&&this.close()},back:function(){this.drawer=!1,this.$router.push({path:"/schedule/car_use",query:{t:Date.now()}})},agree:function(e){var t=this;this.submitParam.remark=e,this.$api.sendBeanApi.completeTask(this.submitParam).then(function(e){0==e.code?(t.$message({message:e.msg,type:"success"}),t.back()):t.$message({message:e.msg,type:"error"})}).catch(function(e){t.$message({message:"请求异常",type:"error"})})},turnDownTask:function(e){var t=this;this.submitParam.remark=e,this.$api.sendBeanApi.turnDownTask(this.submitParam).then(function(e){0==e.code?(t.$message({message:e.msg,type:"success"}),t.back()):t.$message({message:e.msg,type:"error"})}).catch(function(e){t.$message({message:"请求异常",type:"error"})})},rollbackTask:function(e){var t=this;this.submitParam.remark=e,this.$api.scmApproveAPI.findRollBackUser({instanceId:this.instanceId}).then(function(e){0===e.code?t.$confirm("此操作将回退到:"+e.data.applicantName+", 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.submitParam.userId=e.data.applicant,t.$api.sendBeanApi.rollbackTask(t.submitParam).then(funct
|