|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-84795f06"],{"098a":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"main-content"},[e._m(0),t("div",{staticClass:"content"},[t("div",{staticClass:"content-btn"},[t("el-button",{staticClass:"init-button",attrs:{icon:"el-icon-plus"},on:{click:function(t){return e.add()}}},[e._v("新增票据")])],1),t("div",{},[t("VueTable",{ref:"table",attrs:{config:e.config},on:{tableCheck:e.tableCheck},scopedSlots:e._u([{key:"goodsImgList",fn:function(a){return[a.data.goodsImgList.length?t("div",[t("el-button",{staticClass:"init-text",attrs:{type:"text"},on:{click:function(t){return e.getPhotoView(a.data.goodsImgList)}}},[t("span",[e._v("查看")])])],1):t("div",[e._v("-")])]}}])},[t("template",{slot:"footer"},[t("div",{staticClass:"table-footer"},[t("button",{on:{click:function(t){return e.get(e.table_row)}}},[e._v("领用")]),t("button",{on:{click:function(t){return e.del(e.table_row)}}},[e._v("删除")]),t("button",{on:{click:e.print}},[e._v("打印")])])])],2)],1),t("Drawer",{attrs:{drawerTitle:"新增票据",drawerVrisible:e.add_vrisible},on:{drawerClose:e.addClose}},[t("div",{staticStyle:{padding:"30px"}},[t("FromCard",[t("template",{slot:"title"},[e._v("票据信息")]),[t("VueForm",{ref:"addForm",attrs:{formObj:e.addForm},on:{ruleSuccess:e.addRuleSuccess},scopedSlots:e._u([{key:"hours",fn:function(){return[t("el-select",{staticStyle:{width:"30%","margin-right":"16px"},attrs:{filterable:"",placeholder:"幢"},model:{value:e.buildValue,callback:function(t){e.buildValue=t},expression:"buildValue"}},e._l(e.buildOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("el-select",{staticStyle:{width:"30%","margin-right":"16px"},attrs:{filterable:"",placeholder:"单元"},model:{value:e.unitValue,callback:function(t){e.unitValue=t},expression:"unitValue"}},e._l(e.unitOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("el-select",{staticStyle:{width:"30%"},attrs:{filterable:"",placeholder:"房间号"},model:{value:e.hoursValue,callback:function(t){e.hoursValue=t},expression:"hoursValue"}},e._l(e.hoursOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]},proxy:!0},{key:"rate",fn:function(){return[t("el-input",{staticStyle:{width:"240px"},attrs:{size:"small",placeholder:"请输入"},model:{value:e.addForm.ruleForm.rate,callback:function(t){e.$set(e.addForm.ruleForm,"rate",t)},expression:"addForm.ruleForm.rate"}},[t("i",{staticClass:"metre",staticStyle:{"font-style":"normal"},attrs:{slot:"suffix"},slot:"suffix"},[e._v("%")])])]},proxy:!0}])})]],2)],1),t("div",{attrs:{slot:"footer"},slot:"footer"},[t("button",{staticClass:"btn-orange",on:{click:function(t){return e.addSubmit()}}},[t("span",[t("i",{staticClass:"el-icon-circle-check"}),e._v("提交")])]),t("button",{staticClass:"btn-gray",on:{click:e.addClose}},[t("span",[e._v("取消")])])])])],1)]),t("el-dialog",{attrs:{title:"领用票据",width:"480px",top:"40vh",visible:e.getDialog},on:{close:function(t){return e.dialogclose()},"update:visible":function(t){e.getDialog=t}}},[t("div",{staticClass:"dialang-box"},[t("div",{staticStyle:{margin:"10px"}},[e._v(" 领用人姓名:"),t("el-input",{staticStyle:{width:"223px",height:"32px"},attrs:{placeholder:"请输入领用人姓名",size:"small"},model:{value:e.recipient,callback:function(t){e.recipient=t},expression:"recipient"}})],1),t("div",{staticStyle:{margin:"10px"}},[e._v(" 领用人手机号:"),t("el-input",{staticStyle:{width:"223px",height:"32px"},attrs:{placeholder:"请输入领用人手机号",size:"small",maxlength:"11"},on:{change:e.confirmTelephone},model:{value:e.recipientsTel,callback:function(t){e.recipientsTel=t},expression:"recipientsTel"}})],1)]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"mini"},on:{click:function(t){e.getDialog=!1}}},[e._v("取 消")]),t("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.getOk()}}},[e._v("确 定")])],1)]),t("Preview",{attrs:{dialogVisible:e.paymentPreview},on:{dialogPreview:e.dialogPreview}})],1)},r=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-titel"},[t("span",[e._v("票据管理")])])}],i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"preview"},[t("el-dialog",{attrs:{visible:e.dialogVisible,fullscreen:!0,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"preview-header"},[t("div",{staticClass:"esc-preview",on:{click:function(t){return e.dialogPreview()}}},[t("i",{staticClass:"el-icon-s-marketing",staticStyle:{"font-size":"24px","margin-left":"33px","margin-right":"9px"}}),t("span",[e._v("退出预览")])])]),t("div",{staticClass:"preview_body"},[t("div",{staticClass:"preview_content"},[t("div",{staticClass:"preview_title"},[t("span",[e._v("新城悦物业服务有限公司")])]),t("div",{staticClass:"preview_box"},[t("div",{staticClass:"preview_item"},[t("span",[e._v("姓名:王倩")])]),t("div",{staticClass:"preview_item"},[t("span",[e._v("房间号:2-2-303")])]),t("div",{staticClass:"preview_item"},[t("span",[e._v("项目名称:测试")])]),t("div",{staticClass:"preview_item"},[t("span",[e._v("付款时间:2020-09-01 10:22")])])]),t("div",{staticClass:"preview_table"},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""}},[t("el-table-column",{attrs:{prop:"table1",label:"开票编号"}}),t("el-table-column",{attrs:{prop:"table2",label:"开票类型"}}),t("el-table-column",{attrs:{prop:"table3",label:"购方税号"}}),t("el-table-column",{attrs:{prop:"table4",label:"总金额"}}),t("el-table-column",{attrs:{prop:"table5",label:"税率"}}),t("el-table-column",{attrs:{prop:"table6",label:"抬头名称"}})],1)],1),t("div",[t("div",{staticClass:"preview_box"},[t("div",{staticClass:"preview_item"},[t("span",[e._v("开票类型:增值税专用发票")])]),t("div",{staticClass:"preview_item"},[t("span",[e._v("实收金额人民币(大写):壹仟贰佰圆整")])]),t("div",{staticClass:"preview_item"},[t("span",[e._v("抬头类型:个人")])])]),t("div",{staticClass:"preview_box"},[t("div",{staticClass:"preview_item"},[t("span",[e._v("本收据不作为报销凭证,盖章有效,妥善保存,遗失不补。(白-客户,红-记账,黄-存根)")])])])])])])])],1)},n=[],o={props:{dialogVisible:{type:Boolean,default:!1}},data(){return{tableData:[{table1:"3y67868d132",table2:"增值税专用发票",table3:"FEWAZWD89E",table4:"¥1200",table5:"13%",table6:"王倩"}]}},methods:{handleClose(e){},dialogPreview(){this.$emit("dialogPreview",!1)}},dialogVisible:{handler(e){this.isVisibleDialog=e,console.log(e+"----newValue")},immediate:!0}},s=o,u=(a("b6ea"),a("2877")),d=Object(u["a"])(s,i,n,!1,null,null,null),c=d.exports,p=a("1615"),h=a("2b74"),m={components:{Preview:c},data(){return{paymentPreview:!1,recipient:null,recipientsTel:null,thatId:null,getDialog:!1,buildValue:null,buildOptions:[],unitValue:null,unitOptions:[],hoursValue:null,hoursOptions:[],photos_Visible:!1,add_vrisible:!1,addDate:null,options:[],sysOptions:[],loading:!1,addForm:{ruleForm:{rate:null,estateId:null},rules:{estateId:[{required:!0,message:"请输入",trigger:"change"}],code:[{required:!0,message:"请输入",trigger:"change"}],type:[{required:!0,message:"请选择",trigger:"change"}],name:[{required:!0,message:"请选择",trigger:"change"}],totalPrice:[{required:!0,message:"请选择",trigger:"change"}],rate:[{required:!0,message:"请输入",trigger:"change"}],remake:[{required:!0,message:"请选择",trigger:"change"}],invoiceTitleType:[{required:!0,message:"请选择",trigger:"change"}],invoiceTitleName:[{required:!0,message:"请选择",trigger:"change"}],tel:[{required:!0,message:"请输入",trigger:"change"}],acquiringEin:[{required:!0,message:"请输入",trigger:"change"}],bank:[{required:!0,message:"请选择",trigger:"change"}],account:[{required:!0,message:"请选择",trigger:"change"}],drawer:[{required:!0,message:"请选择",trigger:"change"}],invoiceDate:[{required:!0,message:"请输入",trigger:"change"}]},form_item:[{type:"Slot",label:"房屋信息",placeholder:"请输入",width:"70%",slotName:"hours",prop:"estateId"},{type:"Input",label:"开票编号",placeholder:"请输入",width:"50%",prop:"code"},{type:"Select",label:"开票类型",placeholder:"请输入",width:"50%",prop:"type",options:[{label:"增值税专用发票",value:1},{label:"增值税普通发票",value:2},{label:"国税通用机打发票",value:3},{label:"地税通用机打发票",value:4},{label:"收据",value:5}]},{type:"Input",label:"项目名称",placeholder:"请输入",width:"50%",prop:"name"},{type:"Input",label:"总金额",placeholder:"请输入",width:"50%",prop:"totalPrice"},{type:"Slot",label:"税率",width:"50%",prop:"rate",slotName:"rate"},{type:"Input",label:"税额",placeholder:"请输入",width:"50%",prop:"taxation",disabled:!0},{type:"textarea",label:"备注",placeholder:"请输入",width:"100%",prop:"remake"},{type:"Select",label:"抬头类型",placeholder:"请输入",width:"50%",prop:"invoiceTitleType",options:[{label:"企业单位",value:1},{label:"个人",value:2}]},{type:"Input",label:"抬头名称",placeholder:"请输入",width:"50%",prop:"invoiceTitleName"},{type:"Input",label:"联系电话",placeholder:"请输入",width:"50%",prop:"tel"},{type:"Input",label:"购方税号",placeholder:"请输入",width:"50%",prop:"acquiringEin"},{type:"Input",label:"开户银行",placeholder:"请输入",width:"50%",prop:"bank"},{type:"Input",label:"开户账号",placeholder:"请输入",width:"50%",prop:"account"},{type:"Input",label:"开票人姓名",placeholder:"请输入",width:"50%",prop:"drawer"},{type:"DateTime",label:"开票时间",placeholder:"请输入",width:"50%",prop:"invoiceDate"}]},table_row:[],activeName:"0",config:{thead:[{label:"序号",type:"index",width:"80"},{label:"开票编号",prop:"code",width:"200"},{label:"开票类型",prop:"type",width:"200",type:"function",callback:(e,t)=>{switch(e.type){case 1:return"增值税专用发票";case 2:return"增值税普通发票";case 3:return"国税通用机打发票";case 4:return"地税通用机打发票";case 5:return"收据";default:break}}},{label:"项目名称",prop:"name",width:"auto"},{label:"总金额",prop:"totalPrice",width:"auto"},{label:"税率",prop:"rate",width:"80"},{label:"税额",prop:"taxation",width:"150"},{label:"开票房产名称",prop:"roomName",width:"auto"},{label:"抬头类型",prop:"invoiceTitleType",width:"120",type:"function",callback:(e,t)=>{switch(e.invoiceTitleType){case 1:return"企业单位";case 2:return"个人";default:break}}},{label:"抬头名称",prop:"invoiceTitleName",width:"150"},{label:"购方税号",prop:"acquiringEin",width:"150"},{label:"联系电话",prop:"tel",width:"150"},{label:"开户银行",prop:"bank",width:"150"},{label:"开户账号",prop:"account",width:"150"},{label:"开票人姓名",prop:"drawer",width:"100"},{label:"开票时间",prop:"invoiceDate",width:"150"},{label:"备注",prop:"remake",width:"150"},{label:"领用状态",prop:"status",width:"120",type:"function",callback:(e,t)=>{switch(e.status){case 1:return"未领用";case 2:return"已领用";default:break}}},{label:"领用人姓名",prop:"recipient",width:"120"},{label:"领用时间",prop:"recipientsDate",width:"150"},{label:"录入人名称",prop:"createName",width:"120"},{label:"录入时间",prop:"createDate",width:"150"}],table_data:[],url:"paperList",search_item:[{type:"Input",label:"开票编号",placeholder:"请输入",prop:"code"},{type:"select",label:"类型",placeholder:"请选择",prop:"type",options:[{label:"增值税专用发票",value:1},{label:"增值税普通发票",value:2},{label:"国税通用机打发票",value:3},{label:"地税通用机打发票",value:4},{label:"收据",value:5}]},{type:"select",label:"抬头类型",placeholder:"请选择",prop:"invoiceTitleType",options:[{value:1,label:"企业单位"},{value:2,label:"个人"}]},{type:"Input",label:"抬头名称",placeholder:"请选择",prop:"invoiceTitleName"},{type:"Int",label:"联系电话",placeholder:"请选择日期",prop:"tel"},{type:"select",label:"领用情况",placeholder:"请输入",prop:"status",options:[{value:1,label:"未领用"},{value:2,label:"已领用"}]},{type:"Input",label:"领用人姓名",placeholder:"请输入",prop:"recipient"}],data:{pageNum:1,size:10}}}},mounted(){Object(h["m"])().then(e=>{this.buildOptions=e})},methods:{print(){this.paymentPreview=!0},dialogPreview(){this.paymentPreview=!1},async fetchData(){let e={url:"paperList",data:{pageNum:1,size:100}};const t=await DownloadExcel(e,this);return t},ExcelLoading(e,t){const a=this.$loading({lock:!0,text:"正在导出Excel"+e,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});a.text=`正在导出Excel ${e}/${t}`,console.log(a.text)},finishDownload(){const e=this.$loading();e.close()},add(){this.add_vrisible=!0},addClose(){this.$refs.addForm.reset(),this.add_vrisible=!1,this.buildValue=null,this.wordList=[]},addRuleSuccess(){let e={...this.addForm.ruleForm};Object(p["y"])(e).then(e=>{e.status&&(this.$message({message:e.message,type:"success"}),this.$refs.table.loadData(),this.addClose())})},addSubmit(){this.$refs.addForm.submitForm()},unitData(e){let t={id:e};Object(h["v"])(t).then(e=>{this.unitOptions=e})},hoursData(e){let t={id:e};Object(h["w"])(t).then(e=>{console.log(e),this.hoursOptions=e})},tableCheck(e){this.table_row=e},get(e){1==e.length?1==e[0].status?(this.getDialog=!0,console.log(e),this.thatId=e[0].id):this.$message({type:"error",message:"该票据不可领用"}):this.$message({type:"error",message:"请选择一条票据领用"})},confirmTelephone(){/^1[0-9]{10}$/.test(this.recipientsTel)||this.$message({type:"error",message:"请输入正确的手机号"})},getOk(){let e={id:this.thatId,recipient:this.recipient,recipientsTel:this.recipientsTel};console.log(e),Object(p["z"])(e).then(e=>{e.status&&(this.$message({type:"success",message:e.message}),this.$refs.table.loadData())}),this.getDialog=!1,this.thatId=null,this.recipient=null,this.recipientsTel=null},dialogclose(){},del(e){if(e.length){let e=[];for(let t=0;t<this.table_row.length;t++)e.push(this.table_row[t].id);this.$confirm("是否确认删除?删除不可恢复","删除",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"confirmButton",cancelButtonClass:"cancelButton"}).then(()=>{this.$refs.table.tableDelete(e)}).catch(e=>{})}else this.$message.error("请选中需要删除的数据")}},watch:{buildValue:{handler(e){this.unitData(e),this.unitValue=null},deep:!0},unitValue:{handler(e){this.hoursData(e),this.hoursValue=null},deep:!0},hoursValue:{handler(e){this.addForm.ruleForm.estateId=e,console.log(this.addForm.ruleForm.estateId)},deep:!0},"addForm.ruleForm.rate":{handler(e){console.log(this.addForm.ruleForm.rate),console.log(this.addForm.ruleForm.totalPrice),this.addForm.ruleForm.taxation=this.addForm.ruleForm.rate*this.addForm.ruleForm.totalPrice/100}},"addForm.ruleForm.totalPrice":{handler(e){console.log(this.addForm.ruleForm.rate),console.log(this.addForm.ruleForm.totalPrice),this.addForm.ruleForm.taxation=this.addForm.ruleForm.rate*this.addForm.ruleForm.totalPrice/100}},"addForm.ruleForm.invoiceTitleType":{handler(e){2==e?(this.addForm.form_item[11].disabled=!0,this.addForm.form_item[12].disabled=!0,this.addForm.form_item[13].disabled=!0):(this.addForm.form_item[11].disabled=!1,this.addForm.form_item[12].disabled=!1,this.addForm.form_item[13].disabled=!1)}}},filters:{capitalize:function(e){return e?(e=e.toString(),e.substring(0,10)):""}}},b=m,g=Object(u["a"])(b,l,r,!1,null,null,null);t["default"]=g.exports},"149d":function(e,t,a){},1615:function(e,t,a){"use strict";a.d(t,"l",(function(){return r})),a.d(t,"t",(function(){return i})),a.d(t,"n",(function(){return n})),a.d(t,"a",(function(){return o})),a.d(t,"q",(function(){return s})),a.d(t,"r",(function(){return u})),a.d(t,"o",(function(){return d})),a.d(t,"p",(function(){return c})),a.d(t,"s",(function(){return p})),a.d(t,"c",(function(){return h})),a.d(t,"b",(function(){return m})),a.d(t,"k",(function(){return b})),a.d(t,"m",(function(){return g})),a.d(t,"j",(function(){return f})),a.d(t,"d",(function(){return v})),a.d(t,"g",(function(){return w})),a.d(t,"f",(function(){return y})),a.d(t,"h",(function(){return _})),a.d(t,"i",(function(){return T})),a.d(t,"e",(function(){return F})),a.d(t,"y",(function(){return P})),a.d(t,"z",(function(){return x})),a.d(t,"x",(function(){return k})),a.d(t,"u",(function(){return S})),a.d(t,"w",(function(){return q})),a.d(t,"v",(function(){return C}));var l=a("b775");a("2c37");function r(e){return l["a"].request({method:"GET",url:"/chargesTemplate/list",params:e})}function i(e){return l["a"].request({method:"POST",url:"/expenseBill/refund",data:e})}function n(e){return l["a"].request({method:"GET",url:"/dailyPayment/findEnableTempleDetail",params:e})}function o(e){return l["a"].request({method:"GET",url:"/activityManagement/findEnableTempleDetail",params:e})}function s(e){return l["a"].request({method:"POST",url:"/dailyPaymentPlan/insert",data:e})}function u(e){return l["a"].request({method:"POST",url:"/dailyPaymentPlan/update",data:e})}function d(e){return l["a"].request({method:"POST",url:"/dailyPayment/insert",data:e})}function c(e){return l["a"].request({method:"POST",url:"/dailyPayment/insertOrder",data:e})}function p(e){return l["a"].request({method:"POST",url:"/dailyPayment/push",data:e})}function h(e){return l["a"].request({method:"POST",url:"/advancePayment/refund",data:e})}function m(e){return l["a"].request({method:"POST",url:"/advancePayment/recharge",data:e})}function b(e){return l["a"].request({method:"GET",url:"/chargesTemplate/isEnable",params:e})}function g(e){return l["a"].request({method:"POST",url:"/chargesTemplate/update",data:e})}function f(e){return l["a"].request({method:"POST",url:"/chargesTemplate/insert",data:e})}function v(e){return l["a"].request({method:"POST",url:"/chargesTemplate/delete",data:e})}function w(e){return l["a"].request({method:"POST",url:"/chargesTemplateDetail/insert",data:e})}function y(e){return l["a"].request({method:"GET",url:"/chargesTemplateDetail/findById",params:e})}function _(e){return l["a"].request({method:"GET",url:"/chargesTemplateDetail/isEnable",params:e})}function T(e){return l["a"].request({method:"POST",url:"/chargesTemplateDetail/update",data:e})}function F(e){return l["a"].request({method:"POST",url:"/chargesTemplateDetail/delete",data:e})}function P(e){return l["a"].request({method:"POST",url:"/paper/insert",data:e})}function x(e){return l["a"].request({method:"POST",url:"/paper/recipients",data:e})}function k(e){return l["a"].request({method:"POST",url:"/meterReadingRecord/updateRemakes",data:e})}function S(e){return l["a"].request({method:"POST",url:"/meterReadingRecord/createShareBill",data:e})}function q(e){return l["a"].request({method:"POST",url:"/meterReadingRecord/ShareBillPushDetails",data:e})}function C(e){return l["a"].request({method:"POST",url:"/meterReadingRecord/ShareBillPush",data:e})}},b6ea:function(e,t,a){"use strict";a("149d")}}]);
|