mirror of
https://github.com/shawncai/ERP.git
synced 2025-01-06 07:22:06 +08:00
1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-aa07"],{"1jFp":function(e,t,a){},"8D7Q":function(e,t,a){"use strict";var i=a("Q7sT");a.n(i).a},Q7sT:function(e,t,a){},Wi4F:function(e,t,a){"use strict";var i=a("1jFp");a.n(i).a},pfL7:function(e,t,a){"use strict";a.r(t);var i=a("P2sY"),r=a.n(i),n=a("GAWx"),s=a("ZySA"),o=a("Mz3J"),l=a("7x33"),c=a("Uj27"),d=a("obv8"),u={components:{MyDriver:l.a,MyOut:c.a,MyCreate:d.a},props:{control:{type:Boolean,default:!1},editdata:{type:Object,default:null}},data:function(){return{editVisible:this.control,outperson:!1,drivercontrol:!1,createcontrol:!1,outpersonid:"",driver:"",createid:"",personalForm:this.editdata,personalrules:{sourceNumber:[{required:!0,message:"请输入源单编号",trigger:"blur"}],carNumber:[{required:!0,message:"请输入车辆编号",trigger:"blur"}],outpersonid:[{required:!0,message:"请选择出车人",trigger:"blue"}],outPhone:[{required:!0,message:"请输入出车人电话",trigger:"blur"}],driver:[{required:!0,message:"请选择驾驶员",trigger:"blue"}]}}},watch:{control:function(){this.editVisible=this.control},editdata:function(){this.personalForm=this.editdata,this.outpersonid=this.personalForm.outPersonName,this.driver=this.personalForm.driverName}},methods:{handleEditok:function(){var e=this;console.log(this.personalForm),Object(n.l)(this.personalForm).then(function(t){200===t.data.ret?(e.$notify({title:"操作成功",message:"操作成功",type:"success",duration:1e3,offset:100}),e.$emit("rest",!0),e.$refs.personalForm.clearValidate(),e.$refs.personalForm.resetFields(),e.editVisible=!1):e.$notify.error({title:"错误",message:"出错了",offset:100})})},handlecancel:function(){this.$refs.personalForm.clearValidate(),this.$refs.personalForm.resetFields(),this.editVisible=!1},handleoutperson:function(){this.outperson=!0},outpersonname:function(e){console.log(e),this.outpersonid=e.personName,this.personalForm.outpersonid=e.id},handlechoose:function(){this.drivercontrol=!0},drivername:function(e){this.driver=e.personName,this.personalForm.driver=e.id},handlechoosecreateman:function(){this.createcontrol=!0},createname:function(e){this.createid=e.personName,this.personalForm.createid=e.id}}},p=(a("Wi4F"),a("KHd+")),m=Object(p.a)(u,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{visible:e.editVisible,control:e.control,editdata:e.editdata,"close-on-press-escape":!1,top:"10px",title:"修改物流车辆"},on:{"update:visible":function(t){e.editVisible=t},close:function(t){e.$emit("update:control",!1)}}},[a("h2",{ref:"geren",staticClass:"form-name"},[e._v("基本信息")]),e._v(" "),a("div",{staticClass:"container"},[a("el-form",{ref:"personalForm",staticClass:"demo-ruleForm",staticStyle:{"margin-left":"30px"},attrs:{model:e.personalForm,rules:e.personalrules,inline:!0,"status-icon":"","label-position":"top","label-width":"300px"}},[a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("LogisticsCar.sourcenumber")}},[a("el-input",{attrs:{placeholder:"请输入源单编号",disabled:""},model:{value:e.personalForm.sourceNumber,callback:function(t){e.$set(e.personalForm,"sourceNumber",t)},expression:"personalForm.sourceNumber"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("LogisticsCar.carnumber"),prop:"carNumber"}},[a("el-input",{attrs:{placeholder:"请输入车辆编号",clearable:""},model:{value:e.personalForm.carNumber,callback:function(t){e.$set(e.personalForm,"carNumber",t)},expression:"personalForm.carNumber"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("LogisticsCar.outpersonid"),prop:"outpersonid"}},[a("el-input",{attrs:{placeholder:"请选择出车人"},on:{focus:e.handleoutperson},model:{value:e.outpersonid,callback:function(t){e.outpersonid=t},expression:"outpersonid"}})],1),e._v(" "),a("my-out",{attrs:{outperson:e.outperson},on:{"update:outperson":function(t){e.outperson=t},outpersonname:e.outpersonname}}),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"
|