| 1 |
- "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[7719],{17719:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){e.dialogTableVisible=!0}}},[e._v("新 建")]),a("el-dialog",{attrs:{title:"新建项目目标年度",visible:e.dialogTableVisible,width:"20%","append-to-body":""},on:{"update:visible":function(t){e.dialogTableVisible=t},close:e.onCancel}},[a("div",{staticClass:"panel_Target"},[a("el-row",{staticStyle:{"margin-top":"3%"}},[a("el-col",{attrs:{span:4,offset:1}},[a("div",{staticStyle:{width:"100%","text-align":"right"}},[a("label",{staticClass:"normal-margin inline-16",staticStyle:{"margin-top":"8%"}},[e._v("年度:")])])]),a("el-col",{attrs:{span:18}},[a("el-date-picker",{staticClass:"normal-margin inline",staticStyle:{width:"100%"},attrs:{type:"year","value-format":"yyyy",placeholder:"选择要创建的年度",clearable:!1,size:"small","picker-options":e.pickerOptions},model:{value:e.form.year,callback:function(t){e.$set(e.form,"year",t)},expression:"form.year"}})],1)],1)],1),a("div",{staticClass:"dialog-footer "},[a("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:e.onCancel}},[e._v("取 消")]),a("el-button",{staticClass:"normal-btn-width",attrs:{size:"small",type:"primary"},on:{click:e.onSubmit}},[e._v("确 定")])],1)])],1)},n=[],i=a(48534),o=(a(68309),a(35666),a(79336)),s={components:{tablelayout:o.Z},data:function(){return{pickerOptions:{disabledDate:function(e){return e.getFullYear()<(new Date).getFullYear()}},dialogTableVisible:!1,form:{year:"",sa_salestargetbillid:0,sales:[]},tablecols:[],list:[],selection:[],condition:""}},methods:{onSubmit:function(){var e=this;return(0,i.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.requested({id:20220903162902,content:{year:e.form.year,sa_salestargetbillid:0,sales:e.selection}});case 2:a=t.sent,e.tool.showMessage(a,(function(){e.dialogTableVisible=!1,e.form={year:"",sa_salestargetbillid:0,sales:[]},e.yearData(),e.$emit("onSuccess")}));case 4:case"end":return t.stop()}}),t)})))()},onCancel:function(){this.form={year:"",sa_salestargetbillid:0,sales:[]},this.yearData(),this.dialogTableVisible=!1},yearData:function(){var e=new Date;console.log(e.getFullYear()),this.form.year=String(e.getFullYear()+1)}},mounted:function(){this.yearData()},created:function(){this.tablecols=this.tool.tabelCol(this.$route.name)["personalTable"].tablecols}},r=s,c=a(43736),u=(0,c.Z)(r,l,n,!1,null,"0bfe0ba5",null),d=u.exports},79336:function(e,t,a){a.d(t,{Z:function(){return d}});var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tables",staticStyle:{width:"100%"},attrs:{"row-class-name":e.tableClassName,"highlight-current-row":"",data:e.data,"header-cell-style":{background:"#EEEEEE",color:"#333"},size:"mini",height:e.height,border:""},on:{"row-click":e.rowClick,"selection-change":e.handleSelectionChange}},[e.checkbox?a("el-table-column",{attrs:{type:"selection",width:"55",selectable:e.isCheck},on:{handleSelectionChange:e.handleSelectionChange}}):e._e(),e._l(e.layout,(function(t){return a("el-table-column",{key:t.tablecolid,attrs:{"show-overflow-tooltip":"来源"==t.title||"地址"==t.title||"备注"==t.title,prop:t.columnname,label:t.title,width:t.width},scopedSlots:e._u([{key:"default",fn:function(l){return[e.custom?e._t("customcol",null,{column:{data:l.row,columnname:t.columnname}}):a("span",[e._v(e._s(l.row[t.columnname]))]),"operation"===t.columnname?e._t("opreation",null,{data:l.row}):e._e()]}}],null,!0)})}))],2)],1)},n=[],i=a(95082),o=a(20629),s={props:["layout","data","custom","height","checkbox"],data:function(){return{list:[]}},computed:(0,i.Z)({},(0,o.Se)({loading:"loading"})),methods:{rowClick:function(e){this.$emit("rowClick",e)},tableClassName:function(e){var t=e.row,a=e.rowIndex;t.index=a},handleSelectionChange:function(e){this.$emit("checkboxCallBack",e)},isCheck:function(e,t){return!e.status||!("待跟进"!=e.status&&"跟进中"!=e.status&&!e.projectnum)}},mounted:function(){}},r=s,c=a(43736),u=(0,c.Z)(r,l,n,!1,null,null,null),d=u.exports}}]);
|