1 line
2.6 KiB
JavaScript
1 line
2.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-76fdf25b"],{b468e:function(t,a,o){"use strict";o.r(a);var r=function(){var t=this,a=t.$createElement,o=t._self._c||a;return o("div",{attrs:{id:"diyFormPage"}},[t.show?o("c-form",{attrs:{datas:t.datas,tag:1,form_data_id:t.form_data_id},on:{submitSave:t.saveInfo}}):t._e()],1)},i=[],s=o("610c"),e=null,d=null,n=null,u=null,m=null,h=null,l=null,f=null,p={data:function(){return{datas:{params:{bgcolor:"#fff"},data:{form_id:""}},form_data_id:null,show:!1,idGo:!1,onetag:!1}},activated:function(){e=this,this.datas.data.form_id=this.$route.params.id,this.form_data_id=this.$route.params.form_data_id?this.$route.params.form_data_id:null,this.show=!0,this.idGo=!1,this.onetag=!1,d=this.$route.params.tag,n=this.$route.params.goodsId,u=this.$route.params.optionsId,m=this.$route.params.total,h=this.$route.params.changeSelfCarry?this.$route.params.changeSelfCarry:"",l=this.$route.params.distributionUserName?this.$route.params.distributionUserName:"",f=this.$route.params.distributionUserMobile?this.$route.params.distributionUserMobile:""},mounted:function(){e=this,this.datas.data.form_id=this.$route.params.id,this.form_data_id=this.$route.params.form_data_id?this.$route.params.form_data_id:null,this.show=!0,this.idGo=!1,this.onetag=!1,d=this.$route.params.tag,n=this.$route.params.goodsId,u=this.$route.params.optionsId,m=this.$route.params.total,h=this.$route.params.changeSelfCarry?this.$route.params.changeSelfCarry:"",l=this.$route.params.distributionUserName?this.$route.params.distributionUserName:"",f=this.$route.params.distributionUserMobile?this.$route.params.distributionUserMobile:""},components:{cForm:s["a"]},computed:{},methods:{saveInfo:function(t){var a=this;this.idGo=!0,a.$router.push(a.fun.getUrl("goodsorder",{changeSelfCarry:h},{tag:d,goodsId:n,optionsId:u,total:m,form_data_id:t||a.form_data_id,distributionUserName:l,distributionUserMobile:f}))}},beforeRouteLeave:function(t,a,o){!e.idGo&&e.fun.isTextEmpty(e.form_data_id)?e.$dialog.confirm({message:"您还没保存信息,确认离开?"}).then((function(){e.idGo=!0,e.$router.push(e.fun.getUrl("goodsorder",{changeSelfCarry:h},{tag:d,goodsId:n,optionsId:u,total:m,form_data_id:"",distributionUserName:l,distributionUserMobile:f}))})).catch((function(){o(!1)})):e.onetag||e.fun.isTextEmpty(e.form_data_id)?o():(e.onetag=!0,e.$router.push(e.fun.getUrl("goodsorder",{changeSelfCarry:h},{tag:d,goodsId:n,optionsId:u,total:m,form_data_id:e.form_data_id,distributionUserName:l,distributionUserMobile:f})))}},_=p,c=o("2877"),g=Object(c["a"])(_,r,i,!1,null,"d4724918",null);a["default"]=g.exports}}]); |