mirror of
https://github.com/shawncai/ERP.git
synced 2024-11-14 20:56:32 +08:00
1 line
No EOL
4.7 KiB
JavaScript
1 line
No EOL
4.7 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0ce4"],{Degp:function(e,t,r){"use strict";r.r(t);var s=r("7x33"),n=r("Uj27"),o=r("obv8"),a=r("GAWx"),i={name:"Addreturncar",components:{MyDriver:s.a,MyOut:n.a,MyCreate:o.a},data:function(){return{outperson:!1,returnpersonid:"",personalForm:{},personalrules:{outnumber:[{required:!0,message:"请输入派车单编号",trigger:"blur"}],returntime:[{required:!0,message:"请选择回车时间",trigger:"change"}],returnaddress:[{required:!0,message:"请输入回车地址",trigger:"blur"}],returnpersonid:[{required:!0,message:"请选择回车人",trigger:"blue"}]}}},methods:{handlesave:function(){var e=this;console.log(this.personalForm),this.$refs.personalForm.validate(function(t){if(!t)return e.$notify.error({title:"错误",message:"信息未填完整",offset:100}),!1;Object(a.b)(e.personalForm).then(function(t){console.log(t),200===t.data.ret?(e.$notify({title:"成功",message:"保存成功",type:"success",offset:100}),e.restAllForm(),e.$refs.personalForm.clearValidate(),e.$refs.personalForm.resetFields()):e.$notify.error({title:"错误",message:t.data.msg,offset:100})})})},restAllForm:function(){this.personalForm={},this.returnpersonid=""},handleentry:function(){var e=this;this.$refs.personalForm.validate(function(t){if(!t)return e.$notify.error({title:"错误",message:"信息未填完整",offset:100}),!1;Object(a.b)(e.personalForm).then(function(t){console.log(t),200===t.data.ret?(e.$notify({title:"成功",message:"保存成功",type:"success",offset:100}),e.restAllForm(),e.$refs.personalForm.clearValidate(),e.$refs.personalForm.resetFields()):e.$notify.error({title:"错误",message:t.data.msg,offset:100})})})},handlecancel:function(){this.$router.go(-1);this.$store.dispatch("delView",{path:"/LogisticsCar/Addreturncar",name:"Addreturncar",fullPath:"/LogisticsCar/Addreturncar",title:"Addreturncar"}).then(function(e){e.visitedViews})},handleoutperson:function(){this.outperson=!0},outpersonname:function(e){console.log(e),this.returnpersonid=e.personName,this.personalForm.returnpersonid=e.id}}},l=(r("mlOS"),r("KHd+")),u=Object(l.a)(i,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ERP-container"},[r("div",{staticClass:"app-container"},[r("h2",{ref:"geren",staticClass:"form-name"},[e._v("基本信息")]),e._v(" "),r("div",{staticClass:"container"},[r("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"}},[r("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("LogisticsCar.outnumber"),prop:"outnumber"}},[r("el-input",{attrs:{placeholder:"请输入派车单编号",clearable:""},model:{value:e.personalForm.outnumber,callback:function(t){e.$set(e.personalForm,"outnumber",t)},expression:"personalForm.outnumber"}})],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("LogisticsCar.returntime"),prop:"returntime"}},[r("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"选择回车时间","value-format":"yyyy-MM-dd HH:mm:ss",clearable:""},model:{value:e.personalForm.returntime,callback:function(t){e.$set(e.personalForm,"returntime",t)},expression:"personalForm.returntime"}})],1),e._v(" "),r("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("LogisticsCar.returnpersonid"),prop:"returnpersonid"}},[r("el-input",{attrs:{placeholder:"请选择回车人"},on:{focus:e.handleoutperson},model:{value:e.returnpersonid,callback:function(t){e.returnpersonid=t},expression:"returnpersonid"}})],1),e._v(" "),r("my-out",{attrs:{outperson:e.outperson},on:{"update:outperson":function(t){e.outperson=t},outpersonname:e.outpersonname}}),e._v(" "),r("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("LogisticsCar.returnaddress"),prop:"returnaddress"}},[r("el-input",{attrs:{placeholder:"请输入回车地址",clearable:""},model:{value:e.personalForm.returnaddress,callback:function(t){e.$set(e.personalForm,"returnaddress",t)},expression:"personalForm.returnaddress"}})],1)],1)],1),e._v(" "),r("div",{staticClass:"buttons",staticStyle:{"margin-top":"20px"}},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handlesave()}}},[e._v("保存")]),e._v(" "),r("el-button",{attrs:{type:"success"},on:{click:function(t){e.handleentry()}}},[e._v("继续录入")]),e._v(" "),r("el-button",{attrs:{type:"danger"},on:{click:function(t){e.handlecancel()}}},[e._v("取消")])],1)])])},[],!1,null,"6cf4ef38",null);u.options.__file="Addreturncar.vue";t.default=u.exports},jFLj:function(e,t,r){},mlOS:function(e,t,r){"use strict";var s=r("jFLj");r.n(s).a}}]); |