7719.eacf67ad.js 4.0 KB

1
  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 u}});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)},i=[],s=a(79336),o={components:{tablelayout:s.Z},data(){return{pickerOptions:{disabledDate(e){return e.getFullYear()<(new Date).getFullYear()}},dialogTableVisible:!1,form:{year:"",sa_salestargetbillid:0,sales:[]},tablecols:[],list:[],selection:[],condition:""}},methods:{async onSubmit(){const e=await this.$api.requested({id:20220903162902,content:{year:this.form.year,sa_salestargetbillid:0,sales:this.selection}});this.tool.showMessage(e,(()=>{this.dialogTableVisible=!1,this.form={year:"",sa_salestargetbillid:0,sales:[]},this.yearData(),this.$emit("onSuccess")}))},onCancel(){this.form={year:"",sa_salestargetbillid:0,sales:[]},this.yearData(),this.dialogTableVisible=!1},yearData(){const e=new Date;console.log(e.getFullYear()),this.form.year=String(e.getFullYear()+1)}},mounted(){this.yearData()},created(){this.tablecols=this.tool.tabelCol(this.$route.name)["personalTable"].tablecols}},n=o,r=a(43736),c=(0,r.Z)(n,l,i,!1,null,"0bfe0ba5",null),u=c.exports},79336:function(e,t,a){a.d(t,{Z:function(){return u}});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)},i=[],s=a(20629),o={props:["layout","data","custom","height","checkbox"],data(){return{list:[]}},computed:{...(0,s.Se)({loading:"loading"})},methods:{rowClick(e){this.$emit("rowClick",e)},tableClassName({row:e,rowIndex:t}){e.index=t},handleSelectionChange(e){this.$emit("checkboxCallBack",e)},isCheck(e,t){return!e.status||!("待跟进"!=e.status&&"跟进中"!=e.status&&!e.projectnum)}},mounted(){}},n=o,r=a(43736),c=(0,r.Z)(n,l,i,!1,null,null,null),u=c.exports}}]);