| 1 |
- {"code":"/*!\n * build: vue-admin-beautiful \n * copyright: chuzhixin 1204505056@qq.com \n * time: 2022-12-12 09:51:32\n */\n(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[\"chunk-f7ae37fe\"],{1244:function(e,t,a){\"use strict\";a.r(t),a.d(t,\"getAllPurchaseByFields\",(function(){return i})),a.d(t,\"exportgetAllPurchaseByFields\",(function(){return o})),a.d(t,\"addSupplier\",(function(){return r})),a.d(t,\"getSupplierInfoById\",(function(){return l})),a.d(t,\"editSupplier\",(function(){return c})),a.d(t,\"supplierEnableStatus\",(function(){return u})),a.d(t,\"delSupplier\",(function(){return s})),a.d(t,\"getAllSupplier\",(function(){return d})),a.d(t,\"retMoney\",(function(){return p})),a.d(t,\"reStockIn\",(function(){return f})),a.d(t,\"addPurchase\",(function(){return h})),a.d(t,\"getPurchaseInfoById\",(function(){return m})),a.d(t,\"updatePurchaseStatus\",(function(){return g})),a.d(t,\"delPurchase\",(function(){return b})),a.d(t,\"getAllPurchase\",(function(){return y})),a.d(t,\"exportGetAllPurchase\",(function(){return _})),a.d(t,\"editPurchase\",(function(){return S})),a.d(t,\"getAllPurchaseDetails\",(function(){return v})),a.d(t,\"exportGetAllPurchaseDetails\",(function(){return P})),a.d(t,\"searchAllPurchaseDetails\",(function(){return A})),a.d(t,\"exportSearchAllPurchaseDetails\",(function(){return w})),a.d(t,\"addPurchaseOut\",(function(){return O})),a.d(t,\"getPurchaseOutInfoById\",(function(){return T})),a.d(t,\"updatePurchaseOut\",(function(){return j})),a.d(t,\"delPurchaseOut\",(function(){return k})),a.d(t,\"getAllPurchaseOut\",(function(){return F})),a.d(t,\"exportGetAllPurchaseOut\",(function(){return x})),a.d(t,\"editPurchaseOut\",(function(){return I})),a.d(t,\"getAllData\",(function(){return C})),a.d(t,\"getAllPurchaseAndDetails\",(function(){return N})),a.d(t,\"getPurchaseAndBatchInfoById\",(function(){return R})),a.d(t,\"addSupplierUserCenter\",(function(){return D})),a.d(t,\"supplierImport\",(function(){return $}));var n=a(\"b775\");function i(e){return Object(n[\"default\"])({url:\"/purchase/purchase/getAllPurchaseByFields\",method:\"post\",data:e})}function o(e){return Object(n[\"default\"])({url:\"/purchase/purchase/getAllPurchaseByFields\",method:\"post\",responseType:\"blob\",data:e})}function r(e){return Object(n[\"default\"])({url:\"/Purchase/Supplier/addSupplier\",method:\"post\",data:e})}function l(e,t){return Object(n[\"default\"])({url:\"/Purchase/Supplier/getSupplierInfoById/\"+e,method:\"get\",data:t})}function c(e,t){return Object(n[\"default\"])({url:\"/Purchase/Supplier/editSupplier/\"+e,method:\"put\",data:t})}function u(e,t){return Object(n[\"default\"])({url:\"/Purchase/Supplier/updateEnableStatus/\"+e,method:\"put\",data:t})}function s(e,t){return Object(n[\"default\"])({url:\"/Purchase/Supplier/delSupplier/\"+e,method:\"delete\",data:t})}function d(e){return Object(n[\"default\"])({url:\"/Purchase/Supplier/getAllSupplier\",method:\"post\",data:e})}function p(e,t){return Object(n[\"default\"])({url:\"/Purchase/Purchase/retMoney/\"+e,method:\"post\",data:t})}function f(e,t){return Object(n[\"default\"])({url:\"/Purchase/Purchase/reStockIn/\"+e,method:\"post\",data:t})}function h(e){return Object(n[\"default\"])({url:\"/Purchase/Purchase/addPurchase\",method:\"post\",data:e})}function m(e,t){return Object(n[\"default\"])({url:\"/Purchase/Purchase/getPurchaseInfoById/\"+e,method:\"get\",data:t})}function g(e,t){return Object(n[\"default\"])({url:\"/Purchase/Purchase/updateAuditStatus/\"+e,method:\"put\",data:t})}function b(e,t){return Object(n[\"default\"])({url:\"/Purchase/Purchase/delPurchase/\"+e,method:\"delete\",data:t})}function y(e){return Object(n[\"default\"])({url:\"/Purchase/Purchase/getAllPurchase\",method:\"post\",data:e})}function _(e){return Object(n[\"default\"])({url:\"/Purchase/Purchase/getAllPurchase\",responseType:\"blob\",method:\"post\",data:e})}function S(e,t){return Object(n[\"default\"])({url:\"/Purchase/Purchase/editPurchase/\"+e,method:\"put\",data:t})}function v(e){return Object(n[\"default\"])({url:\"/Purchase/Purchase/getAllPurchaseDetails\",method:\"post\",data:e})}function P(e){return Object(n[\"default\"])({url:\"/Purchase/Purchase/getAllPurchaseDetails\",responseType:\"blob\",method:\"post\",data:e})}function A(e){return Object(n[\"default\"])({url:\"/Purchase/Purchase/searchAllPurchaseDetails\",method:\"post\",data:e})}function w(e){return Object(n[\"default\"])({url:\"/Purchase/Purchase/searchAllPurchaseDetails\",method:\"post\",responseType:\"blob\",data:e})}function O(e){return Object(n[\"default\"])({url:\"/Purchase/PurchaseOut/addPurchaseOut\",method:\"post\",data:e})}function T(e,t){return Object(n[\"default\"])({url:\"/Purchase/PurchaseOut/getPurchaseOutInfoById/\"+e,method:\"get\",data:t})}function j(e,t){return Object(n[\"default\"])({url:\"/Purchase/PurchaseOut/updateAuditStatus/\"+e,method:\"put\",data:t})}function k(e,t){return Object(n[\"default\"])({url:\"/Purchase/PurchaseOut/delPurchaseOut/\"+e,method:\"delete\",data:t})}function F(e){return Object(n[\"default\"])({url:\"/Purchase/PurchaseOut/getAllPurchaseOut\",method:\"post\",data:e})}function x(e){return Object(n[\"default\"])({url:\"/Purchase/PurchaseOut/getAllPurchaseOut\",responseType:\"blob\",method:\"post\",data:e})}function I(e,t){return Object(n[\"default\"])({url:\"/Purchase/PurchaseOut/editPurchase/\"+e,method:\"put\",data:t})}function C(e){return Object(n[\"default\"])({url:\"/Purchase/Purchase/getAllData\",method:\"get\",data:e})}function N(e){return Object(n[\"default\"])({url:\"/Purchase/Purchase/getAllPurchaseAndDetails\",method:\"post\",data:e})}function R(e){return Object(n[\"default\"])({url:\"/Purchase/Purchase/getPurchaseAndBatchInfoById\",method:\"post\",data:e})}function D(e,t){return Object(n[\"default\"])({url:\"Purchase/Supplier/addSupplierUserCenter/\"+e,method:\"get\",data:t})}function $(e){return Object(n[\"default\"])({url:\"Purchase/Supplier/supplierImport\",method:\"post\",data:e})}},\"12b4\":function(e,t,a){},\"148d\":function(e,t,a){\"use strict\";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(\"el-dialog\",{attrs:{\"close-on-press-escape\":!1,\"close-on-click-modal\":!1,title:\"应付单\",visible:e.isShow,width:\"60%\"},on:{close:e.cancel}},[a(\"el-table\",{directives:[{name:\"loading\",rawName:\"v-loading\",value:e.loading,expression:\"loading\"}],attrs:{data:e.tableData,size:\"small\"},on:{\"row-dblclick\":e.dbSelect,\"selection-change\":e.selectionChange}},[e.isCheck?a(\"el-table-column\",{attrs:{type:\"selection\",width:\"55\"}}):e._e(),a(\"el-table-column\",{attrs:{prop:\"no\",label:\"单据编号\",align:\"center\",\"min-width\":\"180\"}}),a(\"el-table-column\",{attrs:{prop:\"supplierName\",label:\"供应商名称\",align:\"center\",\"min-width\":\"200\"}}),a(\"el-table-column\",{attrs:{prop:\"financeType\",label:\"应付类型\",align:\"center\",\"min-width\":\"200\"}}),a(\"el-table-column\",{attrs:{prop:\"payMoney\",label:\"实际应付金额\",align:\"center\",\"min-width\":\"150\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[e._v(\" \"+e._s(e.$_common.formattedNumber(t.row.payMoney))+\" \")]}}])}),a(\"el-table-column\",{attrs:{prop:\"shopName\",label:\"商铺\",align:\"center\",\"min-width\":\"150\"}}),a(\"el-table-column\",{attrs:{prop:\"receiptTypeId\",label:\"单据类型\",align:\"center\",\"min-width\":\"200\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[e._v(\" \"+e._s(2===t.row.receiptTypeId?\"采购订单\":\"采购退货单\")+\" \")]}}])}),a(\"el-table-column\",{attrs:{prop:\"auditStatus\",label:\"状态\",align:\"center\",\"min-width\":\"150\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[1===t.row.auditStatus?a(\"span\",{staticClass:\"info-status\"},[e._v(\" 待审核 \")]):a(\"span\",{staticClass:\"success-status\"},[e._v(\"已审核\")])]}}])}),a(\"el-table-column\",{attrs:{label:\"选择\",align:\"center\",fixed:\"right\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[a(\"el-button\",{attrs:{icon:\"el-icon-check\",size:\"mini\",plain:\"\",type:\"primary\"},on:{click:function(a){return e.dbSelect(t.row)}}})]}}])})],1),a(\"FooterPage\",{attrs:{\"page-size\":e.pre_page,\"total-page\":e.total,\"current-page\":e.page},on:{\"update:totalPage\":function(t){e.total=t},\"update:total-page\":function(t){e.total=t},\"update:currentPage\":function(t){e.page=t},\"update:current-page\":function(t){e.page=t},pageChange:e.pageChange,sizeChange:e.sizeChange}}),e.isCheck?a(\"div\",{staticStyle:{width:\"100%\",\"border-top\":\"1px solid #eee\",\"padding-top\":\"10px\"},attrs:{slot:\"footer\"},slot:\"footer\"},[a(\"el-button\",{attrs:{size:\"small\",type:\"primary\"},on:{click:e.confirm}},[e._v(\"确定\")]),a(\"el-button\",{attrs:{size:\"small\"},on:{click:e.cancel}},[e._v(\"取消\")])],1):e._e()],1)},i=[],o=a(\"3c48\"),r=a(\"d099\"),l={name:\"Handle\",components:{FooterPage:o[\"default\"]},props:{isShow:{type:Boolean,default:!1},isCheck:{type:Boolean,default:!0},supplier:{type:Number,default:0},shop:{type:Number,default:0}},data(){return{tableData:[],choose_data:[],searchForm:{},pre_page:10,page:1,total:0,loading:!1,pageLayout:\"total, prev, pager, next\"}},created(){this.getList()},methods:{async getList(){this.loading=!0;const{data:e,pageTotal:t}=await Object(r[\"getAllPay\"])({page:this.page,pageSize:this.pre_page,supplierId:this.supplier,auditStatus:2});this.loading=!1,this.tableData=e,this.total=t},searchClick(){this.page=1,this.getList()},selectionChange(e){this.choose_data=e},confirm(){this.cancel(),this.$emit(\"confirm\",this.choose_data)},dbSelect(e){this.choose_data=[e],this.$emit(\"confirm\",this.choose_data),this.cancel()},cancel(){this.$emit(\"cancel\")},pageChange(e){this.page=e,this.getList()},sizeChange(e){this.pre_page=e,this.pageChange(1)}}},c=l,u=(a(\"6735\"),a(\"2877\")),s=Object(u[\"a\"])(c,n,i,!1,null,\"538ec9c7\",null);t[\"default\"]=s.exports},\"24de\":function(e,t,a){\"use strict\";a(\"5e6d\")},2520:function(e,t,a){\"use strict\";a(\"2b53\")},\"2b53\":function(e,t,a){},3671:function(e,t,a){},\"384d\":function(e,t,a){\"use strict\";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(\"ContainerTit\",{staticClass:\"AddPayment\"},[a(\"div\",{staticClass:\"page-tip-div\",staticStyle:{margin:\"0\",position:\"relative\"}},[e._v(\" 温馨提示: 1、退款时在金额输入框输入负数即可! 2、付款时,在金额输入框输入正数即可! 3、商家预付货款时,在新增选择单据类型为采购预付后不用选择原单据号即可创建! \"),a(\"div\",{staticClass:\"btn-top-div\"},[e.$accessCheck(e.$Access.PaymentListGetTempPaidData)?a(\"el-button\",{attrs:{loading:e.loading,disabled:e.isEdit||e.isLook},on:{click:function(t){return e.temData(!0)}}},[e._v(\" 暂存 \")]):e._e(),e.isLook?e._e():a(\"el-button\",{attrs:{type:\"primary\",loading:e.loading},on:{click:function(t){return e.addData(!1)}}},[e._v(\" 保存并提交 \")])],1)]),a(\"el-form\",{ref:\"base_form\",attrs:{\"label-width\":\"120px\",size:\"small\",model:e.form,rules:e.rules,disabled:e.isLook}},[a(\"el-tabs\",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:\"activeName\"}},[a(\"el-tab-pane\",{staticStyle:{position:\"relative\"},attrs:{label:\"基础信息\",name:\"one\"}},[a(\"el-row\",{staticStyle:{\"padding-bottom\":\"13px\"}},[a(\"el-col\",{attrs:{span:24}},[a(\"p\",{staticClass:\"order_midden_left_text el-icon-arrow-right\",staticStyle:{\"padding-left\":\"20px\"}},[e._v(\" 付款信息 \")])]),a(\"el-col\",{staticClass:\"form\",attrs:{span:6}},[a(\"el-form-item\",{staticStyle:{\"min-width\":\"400px\"},attrs:{label:\"付款单位\",prop:\"supplierName\"}},[a(\"SelectSupplier\",{attrs:{clearable:!1,width:\"180\"},on:{change:e.selUnitSupplier},model:{value:e.form.supplierId,callback:function(t){e.$set(e.form,\"supplierId\",t)},expression:\"form.supplierId\"}}),a(\"el-button\",{attrs:{size:\"mini\",type:\"text\"},on:{click:function(t){return e.$router.push(\"/Purchase/ManageP/SupplierAdd\")}}},[e._v(\" 【新建供应商】 \")])],1)],1),a(\"el-col\",{staticClass:\"form\",attrs:{span:6}},[a(\"el-form-item\",{staticStyle:{\"min-width\":\"400px\"},attrs:{label:\"所属店铺\",prop:\"shopName\"}},[a(\"SelectShop\",{attrs:{width:\"180\",clearable:!1,placeholder:\"选择商铺\"},on:{change:e.selShop},model:{value:e.form.shopId,callback:function(t){e.$set(e.form,\"shopId\",t)},expression:\"form.shopId\"}}),a(\"el-button\",{attrs:{size:\"mini\",type:\"text\"},on:{click:function(t){return e.$router.push(\"/SystemSettings/liansuoguanli/AddShop\")}}},[e._v(\" 【新建商铺】 \")])],1)],1),a(\"el-col\",{staticClass:\"form\",attrs:{span:6}},[a(\"el-form-item\",{attrs:{label:\"应付金额\",prop:\"money\"}},[a(\"el-input\",{staticStyle:{width:\"180px\"},attrs:{disabled:\"\",placeholder:\"不可编辑\"},model:{value:e.money,callback:function(t){e.money=t},expression:\"money\"}})],1)],1),a(\"el-col\",{staticClass:\"form\",attrs:{span:6}},[a(\"el-form-item\",{attrs:{label:\"付款人\",prop:\"currentAccountName\"}},[a(\"el-input\",{staticStyle:{width:\"180px\"},attrs:{placeholder:\"当前账户\"},model:{value:e.form.currentAccountName,callback:function(t){e.$set(e.form,\"currentAccountName\",t)},expression:\"form.currentAccountName\"}})],1)],1),a(\"el-col\",{staticClass:\"form\",attrs:{span:6}},[a(\"el-form-item\",{attrs:{label:\"单据日期\",prop:\"brandId\"}},[[a(\"div\",{staticClass:\"block\"},[a(\"el-date-picker\",{staticStyle:{width:\"180px\"},attrs:{type:\"date\",placeholder:\"选择日期\",\"value-format\":\"timestamp\"},model:{value:e.form.receiptTime,callback:function(t){e.$set(e.form,\"receiptTime\",t)},expression:\"form.receiptTime\"}})],1)]],2)],1),a(\"el-col\",{staticClass:\"form\",attrs:{span:12}},[a(\"el-form-item\",{staticStyle:{\"min-width\":\"450px\"},attrs:{label:\"业务类型\",prop:\"financeTypeId\"}},[a(\"el-select\",{staticStyle:{width:\"180px\"},attrs:{clearable:\"\",placeholder:\"选择类型\"},on:{change:e.typeChange},model:{value:e.form.financeTypeId,callback:function(t){e.$set(e.form,\"financeTypeId\",t)},expression:\"form.financeTypeId\"}},e._l(e.customerTypeList,(function(e,t){return a(\"el-option\",{key:t,attrs:{label:e.name,value:e.id}})})),1),a(\"el-button\",{attrs:{size:\"mini\",type:\"text\"},on:{click:e.getAllFinanceType}},[e._v(\" 【刷新】 \")]),a(\"el-button\",{attrs:{size:\"mini\",type:\"text\"},on:{click:function(t){e.show_model=!0}}},[e._v(\" 【新建类型】 \")])],1)],1)],1)],1)],1),a(\"div\",{staticClass:\"order_bottom\"},[a(\"p\",{staticClass:\"text\"},[e._v(\"付款单明细\")]),a(\"el-table\",{attrs:{data:e.form.accountList}},[a(\"el-table-column\",{attrs:{prop:\"name\",label:\"结算账户\",\"min-width\":\"160\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[a(\"el-input\",{attrs:{readonly:\"\",size:\"small\",placeholder:\"结算账户\"},model:{value:t.row.accountName,callback:function(a){e.$set(t.row,\"accountName\",a)},expression:\"scope.row.accountName\"}},[a(\"i\",{staticClass:\"el-input__icon el-icon-search\",attrs:{slot:\"suffix\"},on:{click:function(a){return e.openAccount(t.$index)}},slot:\"suffix\"})])]}}])}),a(\"el-table-column\",{attrs:{prop:\"money\",label:\"付款金额\",\"min-width\":\"120\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[a(\"el-input-number\",{staticStyle:{width:\"100%\"},attrs:{controls:!1,placeholder:\"付款金额\",size:\"small\"},on:{blur:e.moneyBlur},model:{value:t.row.money,callback:function(a){e.$set(t.row,\"money\",a)},expression:\"scope.row.money\"}})]}}])}),a(\"el-table-column\",{attrs:{label:\"优惠金额\",\"min-width\":\"120\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[a(\"el-input-number\",{staticStyle:{width:\"100%\"},attrs:{controls:!1,placeholder:\"优惠金额\",size:\"small\"},model:{value:t.row.discountMoney,callback:function(a){e.$set(t.row,\"discountMoney\",a)},expression:\"scope.row.discountMoney\"}})]}}])}),a(\"el-table-column\",{attrs:{label:\"实际付款金额\",\"min-width\":\"120\",align:\"center\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[e._v(\" \"+e._s(e.$NP.minus(t.row.money||0,t.row.discountMoney||0))+\" \")]}}])}),a(\"el-table-column\",{attrs:{label:\"备注\",\"min-width\":\"200\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[a(\"el-input\",{attrs:{size:\"small\",placeholder:\"备注\"},model:{value:t.row.remark,callback:function(a){e.$set(t.row,\"remark\",a)},expression:\"scope.row.remark\"}})]}}])}),a(\"el-table-column\",{attrs:{prop:\"remark\",label:\"操作\",width:\"130px\",align:\"center\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[a(\"el-button\",{attrs:{disabled:1===e.form.accountList.length,size:\"mini\",type:\"text\"},on:{click:function(a){return e.delAccount(t.$index)}}},[e._v(\" 删除 \")])]}}])})],1),a(\"div\",{staticClass:\"table-b-div\"},[a(\"div\",{staticClass:\"table-b-div-cont\",on:{click:e.addAccount}},[a(\"el-button\",{attrs:{type:\"text\",size:\"mini\"},on:{click:e.addAccount}},[a(\"i\",{staticClass:\"el-icon-plus\"}),e._v(\" 新增 \")])],1)])],1),a(\"div\",{staticClass:\"order_bottom\"},[a(\"p\",{staticClass:\"text\"},[e._v(\"核销明细\")]),a(\"div\",{staticClass:\"Enunciate\"},[a(\"div\",{staticClass:\"Enunciate_cont clearfix\"},[a(\"div\",{staticClass:\"float_left\"},[a(\"span\",[e._v(\" 未核销金额:\"+e._s(e.$_common.formattedNumber(e.offSetNotTotal))+\" \")]),a(\"span\",{staticStyle:{margin:\"0 20px\"}},[e._v(\" 本次核销金额:\"+e._s(e.$_common.formattedNumber(e.offSetTotal))+\" \")]),a(\"span\",[e._v(\" 核销差额:\"+e._s(e.$_common.formattedNumber(e.offSetTotal-e.moneyTotal))+\" \")])]),a(\"div\",{staticClass:\"float_right\"},[a(\"el-button\",{attrs:{size:\"mini\"},on:{click:e.offsetGet}},[e._v(\"自动核销\")])],1)])]),a(\"el-table\",{ref:\"multipleTable\",attrs:{data:e.tableData},on:{\"selection-change\":e.selectionChange}},[a(\"el-table-column\",{attrs:{type:\"selection\",width:\"55\",align:\"center\",fixed:\"left\"}}),a(\"el-table-column\",{attrs:{prop:\"financeType\",label:\"单据类型\",\"min-width\":\"100\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[e._v(\" \"+e._s(2===t.row.receiptTypeId?\"采购订单\":\"采购退货单\")+\" \")]}}])}),a(\"el-table-column\",{attrs:{prop:\"no\",label:\"单据编号\",\"min-width\":\"140\"}}),a(\"el-table-column\",{attrs:{prop:\"address\",label:\"单据日期\",\"min-width\":\"120\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[e._v(\" \"+e._s(e.$_common.formatDate(t.row.createTime))+\" \")]}}])}),a(\"el-table-column\",{attrs:{prop:\"address\",label:\"金额\",\"min-width\":\"100\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[e._v(\" \"+e._s(e.$_common.formattedNumber(t.row.payMoney))+\" \")]}}])}),a(\"el-table-column\",{attrs:{prop:\"address\",label:\"未核销金额\",\"min-width\":\"100\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[e._v(\" \"+e._s(e.$_common.formattedNumber(t.row.notOffsetMoney))+\" \")]}}])}),a(\"el-table-column\",{attrs:{prop:\"address\",label:\"本次核销金额\",\"min-width\":\"100\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[a(\"el-input-number\",{staticStyle:{width:\"100%\"},attrs:{controls:!1,placeholder:\"本次核销金额\",max:Number(t.row.notOffsetMoney),size:\"small\"},model:{value:t.row.offsetMoney,callback:function(a){e.$set(t.row,\"offsetMoney\",a)},expression:\"scope.row.offsetMoney\"}})]}}])}),a(\"el-table-column\",{attrs:{prop:\"purchaseNo\",label:\"来源单据\",\"min-width\":\"100\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[a(\"span\",{staticClass:\"click-div\",on:{click:function(a){return e.goDetail(t.row)}}},[e._v(\" \"+e._s(t.row.purchaseNo)+\" \")])]}}])}),a(\"el-table-column\",{attrs:{prop:\"supplierName\",label:\"往来单位名称\",\"min-width\":\"140\"}})],1)],1)],1),e.account_show?a(\"AccountType\",{attrs:{\"is-check\":!1,\"is-show\":e.account_show,\"shop-id\":e.form.shopId},on:{cancel:function(t){e.account_show=!1},confirm:e.accountsel}}):e._e(),e.handle_show?a(\"Handle\",{attrs:{\"is-check\":!1,\"is-show\":e.handle_show,supplier:e.form.supplierId},on:{cancel:function(t){e.handle_show=!1},confirm:e.handlesel}}):e._e(),a(\"el-dialog\",{attrs:{name:\"新增财务类型\",visible:e.show_model,width:\"40%\",\"close-on-press-escape\":!1,\"close-on-click-modal\":!1},on:{\"update:visible\":function(t){e.show_model=t},close:function(t){e.show_model=!1}}},[a(\"el-form\",{ref:\"form\",attrs:{model:e.add_form,rules:e.add_rule,size:\"small\",\"label-width\":\"100px\"}},[a(\"el-form-item\",{attrs:{label:\"类型\",prop:\"name\"}},[a(\"el-input\",{attrs:{placeholder:\"请输入类型名称\"},model:{value:e.add_form.name,callback:function(t){e.$set(e.add_form,\"name\",t)},expression:\"add_form.name\"}})],1),a(\"el-form-item\",{attrs:{label:\"归属单据\",prop:\"link\"}},[a(\"el-select\",{attrs:{placeholder:\"请选择\"},model:{value:e.add_form.link,callback:function(t){e.$set(e.add_form,\"link\",t)},expression:\"add_form.link\"}},e._l(e.form_type,(function(e){return a(\"el-option\",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a(\"el-form-item\",{attrs:{label:\"是否默认\",prop:\"defaultStatus\"}},[a(\"el-switch\",{attrs:{\"active-value\":5,\"inactive-value\":4},model:{value:e.add_form.isDefault,callback:function(t){e.$set(e.add_form,\"isDefault\",t)},expression:\"add_form.isDefault\"}})],1),a(\"el-form-item\",{attrs:{label:\"是否禁用\",prop:\"enableStatus\"}},[a(\"el-radio-group\",{model:{value:e.add_form.enableStatus,callback:function(t){e.$set(e.add_form,\"enableStatus\",t)},expression:\"add_form.enableStatus\"}},[a(\"el-radio\",{attrs:{label:4}},[e._v(\"是\")]),a(\"el-radio\",{attrs:{label:5}},[e._v(\"否\")])],1)],1)],1),a(\"span\",{staticClass:\"dialog-footer\",attrs:{slot:\"footer\"},slot:\"footer\"},[a(\"el-button\",{attrs:{size:\"small\"},on:{click:function(t){e.show_model=!1}}},[e._v(\"取 消\")]),a(\"el-button\",{attrs:{type:\"primary\",size:\"small\"},on:{click:e.addType}},[e._v(\" 确 定 \")])],1)],1)],1)},i=[],o=a(\"148d\"),r=a(\"b314\"),l=a(\"866f\"),c=a(\"d8dd\"),u=a(\"1244\"),s=a(\"d099\"),d=a(\"55bb\"),p={name:\"AddPayment\",components:{SelectSupplier:r[\"default\"],AccountType:l[\"default\"],Handle:o[\"default\"],SelectShop:d[\"default\"]},data(){const e=(e,t,a)=>{t?a():a(new Error(\"请选择收款单位\"))},t=(e,t,a)=>{t?a():a(new Error(\"请选择原单据号\"))};return{tableData:[],form_type:[{label:\"应收单\",value:1},{label:\"应付单\",value:2}],show_model:!1,add_form:{name:\"\",link:\"\",isDefault:4,enableStatus:5},add_rule:{name:[{required:!0,message:\"请输入类型名称\"}],link:[{required:!0,message:\"请选择归属单据\"}]},loading:!1,code:\"\",customerName:\"\",customerTypeList:[],pay_index:0,pay_type_list:[],handle_show:!1,show_shop:!1,account_show:!1,money:\"\",no:\"\",form:{supplierId:\"\",supplierName:\"\",sourceNo:\"\",sourceNoMoney:\"\",currentAccountName:\"\",financeType:\"\",financeTypeId:\"\",shopId:\"\",shopName:\"\",receiptTime:\"\",createTime:\"\",tempSave:!1,accountList:[{accountId:\"\",accountNumber:\"\",accountName:\"\",money:\"\",discountMoney:\"\",finalMoney:\"\",payWay:\"\",remark:\"\"}]},rules:{supplierName:[{required:!0,validator:e}],sourceNo:[{required:!0,validator:t}],currentAccountName:[{required:!0,message:\"请输入付款人\",trigger:\"blur\"}],shopName:[{required:!0,message:\"请选择商铺\",trigger:\"blur\"}]},paid:\"\",createTime:\"\",isLook:!1,isEdit:!1,choose_data:[],check_money:0,id:\"\",purchaseId:\"\",createTime1:\"\",activeName:\"one\"}},computed:{moneyTotal(){if(this.form.accountList.length){if(1===this.form.accountList.length)return this.$NP.minus(Number(this.form.accountList[0].money),Number(this.form.accountList[0].discountMoney));{let e=0;return this.form.accountList.forEach(t=>{const a=this.$NP.minus(Number(t.money),Number(t.discountMoney));e=this.$NP.plus(e,a)}),e}}return 0},offSetTotal(){if(this.choose_data.length){if(1===this.choose_data.length)return Number(this.choose_data[0].offsetMoney);{let e=0;return this.choose_data.forEach(t=>{e=this.$NP.plus(e,Number(t.offsetMoney)||0)}),e}}return 0},offSetNotTotal(){if(this.tableData.length){if(1===this.tableData.length)return Number(this.tableData[0].notOffsetMoney);{let e=0;return this.tableData.forEach(t=>{e=this.$NP.plus(e,Number(t.notOffsetMoney)||0)}),e}}return 0}},created(){this.initial()},activated(){this.$_isInit()||this.initial()},methods:{async initial(){this.isLook=this.$route.path.indexOf(\"LookPayment\")>-1,this.isEdit=this.$route.path.indexOf(\"editPayment\")>-1,this.form.currentAccountName=this.userName,this.$route.params.createTime&&(this.form.createTime=this.$route.params.createTime),this.form.receiptTime=(new Date).getTime(),await this.getAllFinanceType(),await this.getAllPayment(),this.$route.params.id?(this.paid=this.$route.params.id,await this.getPaidInfo()):this.$route.query.id?(this.id=this.$route.query.id,this.purchaseId=this.$route.query.purchaseId,this.createTime1=this.$route.query.createTime,await this.getPayInfo()):await this.getTempPaidData(),this.$route.query.supplierId&&await this.getSupplierInfoById(this.$route.query.supplierId)},selectionChange(e){this.choose_data=e;let t=0;this.choose_data.forEach(e=>{t+=Number(e.offsetMoney)}),console.log(\"勾选余额\",t),this.check_money=t},async getPayInfo(e){const{data:t}=await Object(s[\"getPayInfo\"])({id:this.id,purchaseId:this.purchaseId,createTime:this.createTime1});this.form.supplierId=t.supplierId,this.form.supplierName=t.supplierName,this.form.sourceNo=t.no,this.form.sourceNoMoney=t.payMoney,this.form.shopName=t.shopName,this.form.shopId=t.shopId,this.form.accountList=[{accountId:\"\",accountNumber:\"\",accountName:\"\",money:t.payMoney,discountMoney:0,finalMoney:\"\",payWay:\"\",remark:\"\"}],this.tableData=[{...t,offsetMoney:Number(t.notOffsetMoney)}],await this.getSupplierInfoById(t.supplierId,1)},async getSupplierInfoById(e,t){const{data:a}=await Object(u[\"getSupplierInfoById\"])(e);this.money=a.money||0,t||(this.form.supplierName=a.title,this.form.supplierId=a.id,await this.getAllPay())},async getAllPay(){let e={page:1,pageSize:999,supplierId:this.form.supplierId,offsetStatus:[3,4]};const{data:t,pageTotal:a}=await Object(s[\"getAllPay\"])(e);this.tableData=t.map(e=>({...e,offsetMoney:Number(e.notOffsetMoney)}))},addType(){this.add_form.name.trim()?this.$refs[\"form\"].validate(async e=>{if(e){let e={};e=this.is_edit?await Object(s[\"editFinanceType\"])(this.pay_id,{...this.add_form}):await Object(s[\"addFinanceType\"])({...this.add_form});this.show_model=!1}}):this.$message.warning(\"必填项不能为空\")},openHandelShow(){this.form.supplierId?this.handle_show=!0:this.$message.warning(\"请选择供应商\")},handlesel(e){this.form.sourceNo=e[0].no,this.form.sourceNoMoney=e[0].payMoney,this.form.shopName=e[0].shopName,this.form.shopId=e[0].shopId,this.form.accountList[0].money=e[0].payMoney},selShop(e,t){this.form.shopName=t[0].name},addAccount(){this.form.accountList.push({accountId:\"\",accountNumber:\"\",accountName:\"\",money:\"\",discountMoney:\"\",finalMoney:\"\",payWay:\"\",remark:\"\"})},async temData(e){let t=this.choose_data.map(e=>({payReceiptId:e.id,offsetMoney:e.offsetMoney}));const a={...this.form,receiptTime:parseInt(this.form.receiptTime/1e3),tempSave:e,receiptOffsetData:t};this.loading=!0;await Object(s[\"addPaid\"])(a);this.loading=!1,this.$message({message:\"暂存成功\",type:\"success\"}),this.$closeCurrentGoEdit(\"/Finance/Handle/PaymentList\")},async addData(e){this.$refs[\"base_form\"].validate(async t=>{if(t){if(!e){let e=!0;for(let t in this.form.accountList){let a=this.form.accountList[t];if(!a.accountName){e=!1,this.$message.warning(\"请选择结算账户\");break}if(!a.money){e=!1,this.$message.warning(\"请输入付款金额\");break}}if(!e)return}if(this.choose_data.length){let t=this.choose_data.map(e=>({payReceiptId:e.id,offsetMoney:e.offsetMoney,payCreateTime:e.createTime}));const a={...this.form,receiptTime:parseInt(this.form.receiptTime/1e3),tempSave:e,receiptOffsetData:t};this.loading=!0;try{if(this.paid){await Object(s[\"editPaid\"])(this.paid,a)}else{await Object(s[\"addPaid\"])(a)}this.loading=!1,this.$message({type:\"success\",message:\"操作成功!\"}),this.$closeCurrentGoEdit(\"/Finance/Handle/PaymentList\")}catch{this.loading=!1}}else{const t={...this.form,receiptTime:parseInt(this.form.receiptTime/1e3),tempSave:e,financeTypeId:4,financeType:\"采购预付\"};this.$confirm(\"确定要将该单据作为采购预付款?\",\"提示\",{confirmButtonText:\"确定\",cancelButtonText:\"取消\",type:\"warning\"}).then(async()=>{this.loading=!0;try{if(this.paid){await Object(s[\"editPaid\"])(this.paid,t)}else{await Object(s[\"addPaid\"])(t)}this.loading=!1,this.$message({type:\"success\",message:\"操作成功!\"}),this.$closeCurrentGoEdit(\"/Finance/Handle/PaymentList\")}catch{this.loading=!1}}).catch(()=>{this.loading=!1})}}})},async getPaidInfo(){const{data:e}=await Object(s[\"getPaidInfo\"])({id:this.paid,createTime:this.form.createTime});this.form={...e,receiptTime:1e3*e.receiptTime,accountList:e.accountList},e.offsetDate&&(this.tableData=e.offsetDate,this.choose_data=e.offsetDate,setTimeout(()=>{this.tableData.forEach(e=>{e.offsetMoney>0&&this.$refs.multipleTable.toggleRowSelection(e)})},200))},typeChange(e){const t=this.customerTypeList.find(t=>t.id===e);this.form.financeType=t.name},selUnitSupplier(e,t){this.form.supplierName=t[0].title,this.money=t[0].money,this.getAllPay()},async getAllFinanceType(){const{data:e}=await Object(s[\"getAllFinanceTypeNoPage\"])(2);this.customerTypeList=e;const t=e.find(e=>\"采购付款\"===e.name);this.form.financeTypeId=t.id,this.form.financeType=t.name},delAccount(e){this.form.accountList.splice(e,1)},async getAllPayment(){const e=await Object(c[\"getAllPayment\"])({page:1,pageSize:9});this.pay_type_list=e.data},openAccount(e){this.account_index=e,this.form.supplierId?this.form.shopId?this.account_show=!0:this.$message.warning(\"请选择商铺\"):this.$message.warning(\"请选择供应商\")},accountsel(e){this.form.accountList[this.account_index].accountId=e[0].id,this.form.accountList[this.account_index].accountNumber=e[0].accountNumber,this.form.accountList[this.account_index].accountName=e[0].name},async getTempPaidData(){const{data:e}=await Object(s[\"getTempPaidData\"])();\"{}\"!==JSON.stringify(e)&&(this.form={...e,receiptTime:parseInt(1e3*e.receiptTime),accountList:e.accountList.map(e=>e)},e.offsetDate&&(this.tableData=e.offsetDate,this.choose_data=e.offsetDate,setTimeout(()=>{this.tableData.forEach(e=>{this.$refs.multipleTable.toggleRowSelection(e)})},200)))},offsetGet(){let e=0;for(let t=0;t<this.tableData.length;t++){let a=this.tableData[t];if(e+=Number(a.offsetMoney),this.$refs.multipleTable.toggleRowSelection(a),e>this.moneyTotal||e===this.moneyTotal){a.offsetMoney=this.moneyTotal-(e-a.offsetMoney);break}}},moneyBlur(){this.$refs.multipleTable.clearSelection(),this.tableData=this.tableData.map(e=>({...e,offsetMoney:Number(e.payMoney)}))},goDetail(e){this.$router.push(\"/Purchase/ManageP/PurchaseOrderLook/\"+e.purchaseId)}}},f=p,h=(a(\"24de\"),a(\"4c9f\"),a(\"2877\")),m=Object(h[\"a\"])(f,n,i,!1,null,\"545f88b8\",null);t[\"default\"]=m.exports},\"3e4b\":function(e,t,a){\"use strict\";a(\"8c5f\")},\"4c9f\":function(e,t,a){\"use strict\";a(\"6c6e\")},\"55bb\":function(e,t,a){\"use strict\";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(\"div\",{staticClass:\"dis-inline\"},[a(\"el-select\",{style:{width:e.width+\"px\"},attrs:{value:e.value,placeholder:e.placeholder,clearable:e.clearable,filterable:\"\",remote:\"\",size:e.size,multiple:e.multiple,disabled:e.disabled,\"remote-method\":e.remoteMethod,loading:e.loading},on:{change:e.selChange,clear:e.clearChange}},e._l(e.shop_list,(function(e,t){return a(\"el-option\",{key:t,attrs:{label:e.name,value:e.id}})})),1),a(\"span\",{staticClass:\"el-icon-arrow-down sel-icon\",staticStyle:{\"margin-right\":\"15px\"}})],1)},i=[],o=a(\"e1b7\"),r={name:\"SelectShop\",model:{prop:\"value\",event:\"change\"},props:{value:{type:[Number,String,Array],default:\"\"},width:{type:[Number,String],default:200},placeholder:{type:String,default:\"请输入店铺关键词\"},size:{type:String,default:\"\"},isDefault:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},isCheck:{type:Boolean,default:!0},enable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},action:{type:[Number,String],default:\"\"},materielId:{type:[Number,String],default:\"\"}},data(){return{shop_list:[],loading:!1,page:1,pre_page:999}},created(){this.getList()},methods:{remoteMethod(e){\"\"!==e?(this.loading=!0,this.searchList(e)):this.getList()},clearChange(){this.$emit(\"clear\")},selChange(e){if(!e)return;let t=[];t=this.multiple?this.shop_list.filter(t=>e.indexOf(t.id)>-1):this.shop_list.filter(t=>t.id===e),this.$emit(\"change\",e,t)},async getList(){const e={page:this.page,pageSize:this.pre_page,enableStatus:5,materielId:this.materielId,action:this.action},t=await Object(o[\"getAllShop\"])(e);this.loading=!1,this.shop_list=t.data,this.$emit(\"getAllShop\",t.data),this.isDefault&&this.$emit(\"default\",t.data[0].id,t.data[0])},async searchList(e){const t={page:this.page,pageSize:this.pre_page,name:e,shopPartnerId:\"\",shopType:\"\",enableStatus:5},a=await Object(o[\"search\"])(t);this.loading=!1,this.shop_list=a.data}}},l=r,c=(a(\"2520\"),a(\"2877\")),u=Object(c[\"a\"])(l,n,i,!1,null,\"b4ad8046\",null);t[\"default\"]=u.exports},\"5e6d\":function(e,t,a){},6735:function(e,t,a){\"use strict\";a(\"3671\")},\"6c6e\":function(e,t,a){},7549:function(e,t,a){\"use strict\";a(\"12b4\")},\"866f\":function(e,t,a){\"use strict\";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(\"el-dialog\",{attrs:{title:e.title,visible:e.isShow,\"close-on-press-escape\":!1,\"close-on-click-modal\":!1,width:\"60%\"},on:{close:e.cancel}},[a(\"vxe-table\",{ref:\"xTable1\",attrs:{border:\"inner\",data:e.tableData},on:{\"radio-change\":e.radioChangeEvent}},[e.isRadio?a(\"vxe-table-column\",{attrs:{type:\"radio\",width:\"60\"}}):e._e(),a(\"vxe-table-column\",{attrs:{\"min-width\":\"140\",field:\"accountCode\",title:\"账户编号\"}}),a(\"vxe-table-column\",{attrs:{\"min-width\":\"140\",field:\"name\",title:\"账户名称\"}}),a(\"vxe-table-column\",{attrs:{field:\"accountNumber\",\"min-width\":\"160\",title:\"账户号\"}}),a(\"vxe-table-column\",{attrs:{field:\"money\",title:\"当前余额\",\"min-width\":\"110\"},scopedSlots:e._u([{key:\"default\",fn:function(t){var a=t.row;return[e._v(\" \"+e._s(e.$_common.formattedNumber(a.money))+\" \")]}}])}),a(\"vxe-table-column\",{attrs:{field:\"createTime\",title:\"建账日期\",\"min-width\":\"160\"},scopedSlots:e._u([{key:\"default\",fn:function(t){var a=t.row;return[e._v(\" \"+e._s(e.$_common.formatDate(a.createTime))+\" \")]}}])}),a(\"vxe-table-column\",{attrs:{field:\"beginMoney\",title:\"期初余额\",\"min-width\":\"110\"},scopedSlots:e._u([{key:\"default\",fn:function(t){var a=t.row;return[e._v(\" \"+e._s(e.$_common.formattedNumber(a.beginMoney))+\" \")]}}])}),a(\"vxe-table-column\",{attrs:{field:\"shopName\",\"show-overflow\":\"\",title:\"所属商铺\",\"min-width\":\"140\"}}),e.isRadio?e._e():a(\"vxe-table-column\",{attrs:{fixed:\"right\",title:\"选择\",width:\"90\"},scopedSlots:e._u([{key:\"default\",fn:function(t){var n=t.row;return[a(\"el-button\",{attrs:{icon:\"el-icon-check\",size:\"mini\"},on:{click:function(t){return e.dbSelect(n)}}})]}}],null,!1,2398928997)})],1),a(\"FooterPage\",{attrs:{\"page-size\":e.pre_page,\"total-page\":e.total,\"current-page\":e.page},on:{\"update:totalPage\":function(t){e.total=t},\"update:total-page\":function(t){e.total=t},\"update:currentPage\":function(t){e.page=t},\"update:current-page\":function(t){e.page=t},pageChange:e.pageChange,sizeChange:e.sizeChange}},[e.isRadio?a(\"div\",{attrs:{slot:\"btn-div\"},slot:\"btn-div\"},[a(\"el-button\",{attrs:{size:\"small\",type:\"primary\"},on:{click:e.confirm}},[e._v(\"确定\")]),a(\"el-button\",{attrs:{size:\"small\"},on:{click:e.cancel}},[e._v(\"取消\")])],1):e._e()])],1)},i=[],o=a(\"d099\"),r=a(\"3c48\"),l={name:\"AccountType\",components:{FooterPage:r[\"default\"]},props:{title:{type:String,default:\"账户列表\"},isShow:{type:Boolean,default:!1},isRadio:{type:Boolean,default:!1},shopId:{type:Number,default:0},type:{type:[Number,String],default:\"\"},isMem:{type:[Number,String],default:\"\"}},data(){return{choose_data:[],clientList:[],tableData:[],pre_page:10,page:1,selectedIndex:null,total:0,loading:!1,pageLayout:\"total, prev, pager, next\",selectedClient:{}}},created(){this.getAllAccount()},methods:{radioChangeEvent({row:e}){this.choose_data=e,console.log(\"单选事件\")},async getAllAccount(){let e={page:this.page,pageSize:this.pre_page,enableStatus:5,isMem:this.isMem};this.shopId&&(e.shopId=this.shopId),this.type&&(e.type=this.type);const{data:t,pageTotal:a}=await Object(o[\"getAllAccount\"])(e);this.tableData=t,this.total=a},dbSelect(e){this.choose_data=[e],this.$emit(\"confirm\",this.choose_data),this.cancel()},selectionChange(e){this.choose_data=e},confirm(){this.$emit(\"confirm\",this.choose_data),this.cancel()},cancel(){this.$emit(\"cancel\")},pageChange(e){this.page=e,this.getAllAccount()},sizeChange(e){this.pre_page=e,this.pageChange(1)}}},c=l,u=(a(\"3e4b\"),a(\"2877\")),s=Object(u[\"a\"])(c,n,i,!1,null,\"0a96e346\",null);t[\"default\"]=s.exports},\"8c5f\":function(e,t,a){},b314:function(e,t,a){\"use strict\";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(\"div\",{staticClass:\"dis-inline\"},[a(\"el-select\",{style:{width:e.width+\"px\"},attrs:{value:e.value,placeholder:e.placeholder,clearable:e.clearable,filterable:\"\",remote:\"\",size:e.size,multiple:e.multiple,disabled:e.disabled,\"remote-method\":e.remoteMethod,loading:e.loading},on:{change:e.selChange,clear:e.clearChange}},e._l(e.supplier_list,(function(e,t){return a(\"el-option\",{key:t,attrs:{label:e.title,value:e.id}})})),1),a(\"span\",{staticClass:\"sel-btn\",staticStyle:{\"margin-right\":\"15px\"},on:{click:e.openVisible}},[a(\"i\",{staticClass:\"el-icon-search\"})]),a(\"el-dialog\",{attrs:{title:\"供应商列表\",visible:e.supplier_show,width:\"60%\",modal:e.modal,\"close-on-press-escape\":!1,\"close-on-click-modal\":!1},on:{close:e.visibleCancel}},[a(\"div\",{staticClass:\"search-wrp clearfix\"},[a(\"el-input\",{staticStyle:{width:\"260px\"},attrs:{size:\"small\",clearable:\"\",placeholder:\"供应商名称\"},on:{clear:function(t){return e.pageChange(1)}},nativeOn:{keyup:function(t){return!t.type.indexOf(\"key\")&&e._k(t.keyCode,\"enter\",13,t.key,\"Enter\")?null:e.pageChange(1)}},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:\"keyword\"}},[a(\"el-button\",{attrs:{slot:\"append\",type:\"primary\",icon:\"el-icon-search\"},on:{click:function(t){return e.pageChange(1)}},slot:\"append\"})],1)],1),a(\"el-table\",{attrs:{data:e.supplier_list,size:\"small\"},on:{\"row-dblclick\":e.dbSelect,\"selection-change\":e.customerSel}},[a(\"el-table-column\",{attrs:{prop:\"title\",label:\"供应商名称\"}}),a(\"el-table-column\",{attrs:{prop:\"realName\",label:\"联系人\",align:\"center\"}}),a(\"el-table-column\",{attrs:{prop:\"mobile\",label:\"联系电话\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[e._v(\" \"+e._s(t.row.mobile)+\" \")]}}])}),a(\"el-table-column\",{attrs:{label:\"选择\",align:\"center\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return[a(\"el-button\",{attrs:{icon:\"el-icon-check\",size:\"mini\"},on:{click:function(a){return e.dbSelect(t.row)}}})]}}])})],1),a(\"FooterPage\",{attrs:{layout:\"prev, pager, next, jumper\",\"page-size\":e.pre_page,\"total-page\":e.total,\"current-page\":e.page},on:{\"update:totalPage\":function(t){e.total=t},\"update:total-page\":function(t){e.total=t},\"update:currentPage\":function(t){e.page=t},\"update:current-page\":function(t){e.page=t},pageChange:e.pageChange,sizeChange:e.sizeChange}})],1)],1)},i=[],o=a(\"1244\"),r={name:\"SelectSupplier\",components:{},model:{prop:\"value\",event:\"change\"},props:{value:{type:[Number,String,Array],default:\"\"},placeholder:{type:String,default:\"供应商名称\"},size:{type:String,default:\"\"},width:{type:[String,Number],default:\"150\"},isDefault:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},isCheck:{type:Boolean,default:!0},enable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},data(){return{supplier_list:[],supplier_show:!1,loading:!1,total:0,page:1,pre_page:10,keyword:\"\"}},created(){this.getList()},methods:{remoteMethod(e){this.loading=!0,this.pre_page=999,this.keyword=e,this.getList()},clearChange(){this.$emit(\"clear\")},selChange(e){if(!e)return;let t=[];t=this.multiple?this.supplier_list.filter(t=>e.indexOf(t.id)>-1):this.supplier_list.filter(t=>t.id===e),this.$emit(\"change\",e,t)},async getList(){const e={page:this.page,pageSize:this.pre_page,enableStatus:5,keyword:this.keyword},t=await Object(o[\"getAllSupplier\"])(e);this.loading=!1,this.supplier_list=t.data,this.total=t.pageTotal,this.$emit(\"getAllSupplier\",t.data),this.isDefault&&this.$emit(\"default\",t.data[0].id,t.data[0])},dbSelect(e){this.selChange(e.id),this.visibleCancel()},customerSel(e){this.selChange(e[0].id),this.visibleCancel()},pageChange(e){this.page=e,this.getList()},sizeChange(e){this.pre_page=e,this.pageChange(1)},visibleCancel(){this.supplier_show=!1},openVisible(){this.keyword=\"\",this.supplier_show=!0,this.sizeChange(10)}}},l=r,c=(a(\"7549\"),a(\"2877\")),u=Object(c[\"a\"])(l,n,i,!1,null,\"fe7d45a4\",null);t[\"default\"]=u.exports},d099:function(e,t,a){\"use strict\";a.r(t),a.d(t,\"addFinanceType\",(function(){return i})),a.d(t,\"editFinanceType\",(function(){return o})),a.d(t,\"delFinanceType\",(function(){return r})),a.d(t,\"getAllFinanceType\",(function(){return l})),a.d(t,\"getAllFinanceTypeNoPage\",(function(){return c})),a.d(t,\"updateFinanceTypeStatus\",(function(){return u})),a.d(t,\"updateFinanceTypeDefaultStatus\",(function(){return s})),a.d(t,\"getAllReceive\",(function(){return d})),a.d(t,\"exportGetAllReceive\",(function(){return p})),a.d(t,\"searchAllReceive\",(function(){return f})),a.d(t,\"exportSearchAllReceive\",(function(){return h})),a.d(t,\"getReceiveInfo\",(function(){return m})),a.d(t,\"updateReceiveStatus\",(function(){return g})),a.d(t,\"getReceivedByOrder\",(function(){return b})),a.d(t,\"getAllPay\",(function(){return y})),a.d(t,\"exportGetAllPay\",(function(){return _})),a.d(t,\"searchPay\",(function(){return S})),a.d(t,\"exportSearchPay\",(function(){return v})),a.d(t,\"updatePayStatus\",(function(){return P})),a.d(t,\"getPayInfo\",(function(){return A})),a.d(t,\"addAccount\",(function(){return w})),a.d(t,\"getAllAccount\",(function(){return O})),a.d(t,\"editAccount\",(function(){return T})),a.d(t,\"delAccount\",(function(){return j})),a.d(t,\"updateAccountDefaultStatus\",(function(){return k})),a.d(t,\"updateAccountStatus\",(function(){return F})),a.d(t,\"getAccountInfo\",(function(){return x})),a.d(t,\"getAllAccountDetail\",(function(){return I})),a.d(t,\"addReceived\",(function(){return C})),a.d(t,\"deleteReceived\",(function(){return N})),a.d(t,\"exportsgetAllReceived\",(function(){return R})),a.d(t,\"getAllReceived\",(function(){return D})),a.d(t,\"getReceivedInfo\",(function(){return $})),a.d(t,\"updateReceivedStatus\",(function(){return B})),a.d(t,\"updateReceiptRequisitionStatus\",(function(){return M})),a.d(t,\"getTempReceivedData\",(function(){return z})),a.d(t,\"ReceivedSearch\",(function(){return L})),a.d(t,\"editReceived\",(function(){return E})),a.d(t,\"addPaid\",(function(){return q})),a.d(t,\"searchPaid\",(function(){return G})),a.d(t,\"getAllPaid\",(function(){return H})),a.d(t,\"exportsgetAllPaid\",(function(){return U})),a.d(t,\"getPaidInfo\",(function(){return J})),a.d(t,\"updatePaidStatus\",(function(){return W})),a.d(t,\"getTempPaidData\",(function(){return V})),a.d(t,\"editPaid\",(function(){return K})),a.d(t,\"getAllCustomerBalance\",(function(){return Q})),a.d(t,\"exportgetAllCustomerBalance\",(function(){return X})),a.d(t,\"getAllCustomerBalanceDetail\",(function(){return Y})),a.d(t,\"exportgetAllCustomerBalanceDetail\",(function(){return Z})),a.d(t,\"getAllSupplierBalance\",(function(){return ee})),a.d(t,\"exportGetAllSupplierBalance\",(function(){return te})),a.d(t,\"exportgetAllSupplierBalanceDetail\",(function(){return ae})),a.d(t,\"getAllSupplierBalanceDetail\",(function(){return ne})),a.d(t,\"addAccountTransfer\",(function(){return ie})),a.d(t,\"getAccountTransferInfo\",(function(){return oe})),a.d(t,\"editAccountTransfer\",(function(){return re})),a.d(t,\"getAllAccountTransfer\",(function(){return le})),a.d(t,\"updateAccountTransferStatus\",(function(){return ce})),a.d(t,\"getTempAccountTransferData\",(function(){return ue})),a.d(t,\"getTodayStatistics\",(function(){return se})),a.d(t,\"getAllReceiptRequisition\",(function(){return de})),a.d(t,\"addReceiptRequisition\",(function(){return pe})),a.d(t,\"editReceiptRequisition\",(function(){return fe})),a.d(t,\"getReceiptRequisitionInfo\",(function(){return he})),a.d(t,\"getAllAccountType\",(function(){return me})),a.d(t,\"addAccountType\",(function(){return ge})),a.d(t,\"delAccountType\",(function(){return be})),a.d(t,\"getAccountTypeInfo\",(function(){return ye})),a.d(t,\"editAccountType\",(function(){return _e})),a.d(t,\"getAllExpenseSingle\",(function(){return Se})),a.d(t,\"addExpenseSingle\",(function(){return ve})),a.d(t,\"getExpenseSingleInfo\",(function(){return Pe})),a.d(t,\"editExpenseSingle\",(function(){return Ae})),a.d(t,\"delExpenseSingle\",(function(){return we})),a.d(t,\"updateExpenseStatus\",(function(){return Oe})),a.d(t,\"getAllRefund\",(function(){return Te})),a.d(t,\"addRefund\",(function(){return je})),a.d(t,\"getRefundInfo\",(function(){return ke})),a.d(t,\"editRefund\",(function(){return Fe})),a.d(t,\"updateRefundStatus\",(function(){return xe})),a.d(t,\"getAllReceivedOffset\",(function(){return Ie})),a.d(t,\"getAllPaidOffset\",(function(){return Ce}));var n=a(\"b775\");function i(e){return Object(n[\"default\"])({url:\"/Finance/FinanceType/addFinanceType\",method:\"post\",data:e})}function o(e,t){return Object(n[\"default\"])({url:\"/Finance/FinanceType/editFinanceType/\"+e,method:\"put\",data:t})}function r(e,t){return Object(n[\"default\"])({url:\"/Finance/FinanceType/delFinanceType/\"+e,method:\"delete\",data:t})}function l(e){return Object(n[\"default\"])({url:\"/Finance/FinanceType/getAllFinanceType\",method:\"post\",data:e})}function c(e,t){return Object(n[\"default\"])({url:\"/Finance/FinanceType/getAllFinanceTypeNoPage/\"+e,method:\"post\",data:t})}function u(e){return Object(n[\"default\"])({url:\"/Finance/FinanceType/updateFinanceTypeStatus\",method:\"post\",data:e})}function s(e){return Object(n[\"default\"])({url:\"/Finance/FinanceType/updateFinanceTypeDefaultStatus\",method:\"post\",data:e})}function d(e){return Object(n[\"default\"])({url:\"/Finance/Receive/getAllReceive\",method:\"post\",data:e})}function p(e){return Object(n[\"default\"])({url:\"/Finance/Receive/getAllReceive\",responseType:\"blob\",method:\"post\",data:e})}function f(e){return Object(n[\"default\"])({url:\"/Finance/Receive/search\",method:\"post\",data:e})}function h(e){return Object(n[\"default\"])({url:\"/Finance/Receive/search\",responseType:\"blob\",method:\"post\",data:e})}function m(e){return Object(n[\"default\"])({url:\"/Finance/Receive/getReceiveInfo\",method:\"post\",data:e})}function g(e){return Object(n[\"default\"])({url:\"/Finance/Receive/updateReceiveStatus\",method:\"post\",data:e})}function b(e){return Object(n[\"default\"])({url:\"/Finance/Received/getReceivedByOrder\",method:\"post\",data:e})}function y(e){return Object(n[\"default\"])({url:\"/Finance/Pay/getAllPay\",method:\"post\",data:e})}function _(e){return Object(n[\"default\"])({url:\"/Finance/Pay/getAllPay\",responseType:\"blob\",method:\"post\",data:e})}function S(e){return Object(n[\"default\"])({url:\"/Finance/Pay/search\",method:\"post\",data:e})}function v(e){return Object(n[\"default\"])({url:\"/Finance/Pay/search\",responseType:\"blob\",method:\"post\",data:e})}function P(e){return Object(n[\"default\"])({url:\"/Finance/Pay/updatePayStatus\",method:\"post\",data:e})}function A(e){return Object(n[\"default\"])({url:\"/Finance/Pay/getPayInfo\",method:\"post\",data:e})}function w(e){return Object(n[\"default\"])({url:\"/Finance/Account/addAccount\",method:\"post\",data:e})}function O(e){return Object(n[\"default\"])({url:\"/Finance/Account/getAllAccount\",method:\"post\",data:e})}function T(e,t){return Object(n[\"default\"])({url:\"/Finance/Account/editAccount/\"+e,method:\"put\",data:t})}function j(e,t){return Object(n[\"default\"])({url:\"/Finance/Account/delAccount/\"+e,method:\"delete\",data:t})}function k(e){return Object(n[\"default\"])({url:\"/Finance/Account/updateAccountDefaultStatus\",method:\"post\",data:e})}function F(e){return Object(n[\"default\"])({url:\"/Finance/Account/updateAccountStatus\",method:\"post\",data:e})}function x(e,t){return Object(n[\"default\"])({url:\"/Finance/Account/getAccountInfo/\"+e,method:\"get\",data:t})}function I(e){return Object(n[\"default\"])({url:\"/Finance/AccountDetail/getAllAccountDetail\",method:\"post\",data:e})}function C(e){return Object(n[\"default\"])({url:\"/Finance/Received/addReceived\",method:\"post\",data:e})}function N(e,t){return Object(n[\"default\"])({url:\"/Finance/Received/deleteReceived/\"+e,method:\"delete\",data:t})}function R(e){return Object(n[\"default\"])({url:\"/Finance/Received/getAllReceived\",method:\"post\",responseType:\"blob\",data:e})}function D(e){return Object(n[\"default\"])({url:\"Finance/Received/getAllReceived\",method:\"post\",data:e})}function $(e){return Object(n[\"default\"])({url:\"/Finance/Received/getReceivedInfo\",method:\"post\",data:e})}function B(e){return Object(n[\"default\"])({url:\"/Finance/Received/updateReceivedStatus\",method:\"post\",data:e})}function M(e){return Object(n[\"default\"])({url:\"Finance/ReceiptRequisition/updateReceiptRequisitionStatus\",method:\"post\",data:e})}function z(e){return Object(n[\"default\"])({url:\"/Finance/Received/getTempReceivedData\",method:\"get\",data:e})}function L(e){return Object(n[\"default\"])({url:\"/Finance/Received/search\",method:\"post\",data:e})}function E(e,t){return Object(n[\"default\"])({url:\"/Finance/Received/editReceived/\"+e,method:\"post\",data:t})}function q(e){return Object(n[\"default\"])({url:\"/Finance/Paid/addPaid\",method:\"post\",data:e})}function G(e){return Object(n[\"default\"])({url:\"/Finance/Paid/search\",method:\"post\",data:e})}function H(e){return Object(n[\"default\"])({url:\"/Finance/Paid/getAllPaid\",method:\"post\",data:e})}function U(e){return Object(n[\"default\"])({url:\"/Finance/Paid/getAllPaid\",method:\"post\",responseType:\"blob\",data:e})}function J(e){return Object(n[\"default\"])({url:\"/Finance/Paid/getPaidInfo\",method:\"post\",data:e})}function W(e){return Object(n[\"default\"])({url:\"/Finance/Paid/updatePaidStatus\",method:\"post\",data:e})}function V(e){return Object(n[\"default\"])({url:\"/Finance/Paid/getTempPaidData\",method:\"get\",data:e})}function K(e,t){return Object(n[\"default\"])({url:\"/Finance/Paid/editPaid/\"+e,method:\"post\",data:t})}function Q(e){return Object(n[\"default\"])({url:\"/Finance/CustomerBalance/getAllCustomerBalance\",method:\"post\",data:e})}function X(e){return Object(n[\"default\"])({url:\"Finance/CustomerBalance/getAllCustomerBalance\",method:\"post\",responseType:\"blob\",data:e})}function Y(e){return Object(n[\"default\"])({url:\"/Finance/CustomerBalanceDetail/getAllCustomerBalanceDetail\",method:\"post\",data:e})}function Z(e){return Object(n[\"default\"])({url:\"/Finance/CustomerBalanceDetail/getAllCustomerBalanceDetail\",method:\"post\",responseType:\"blob\",data:e})}function ee(e){return Object(n[\"default\"])({url:\"/Finance/SupplierBalance/getAllSupplierBalance\",method:\"post\",data:e})}function te(e){return Object(n[\"default\"])({url:\"/Finance/SupplierBalance/getAllSupplierBalance\",method:\"post\",responseType:\"blob\",data:e})}function ae(e){return Object(n[\"default\"])({url:\"/Finance/SupplierBalanceDetail/getAllSupplierBalanceDetail\",method:\"post\",responseType:\"blob\",data:e})}function ne(e){return Object(n[\"default\"])({url:\"/Finance/SupplierBalanceDetail/getAllSupplierBalanceDetail\",method:\"post\",data:e})}function ie(e){return Object(n[\"default\"])({url:\"/Finance/AccountTransfer/addAccountTransfer\",method:\"post\",data:e})}function oe(e,t){return Object(n[\"default\"])({url:\"/Finance/AccountTransfer/getAccountTransferInfo/\"+e,method:\"get\",data:t})}function re(e,t){return Object(n[\"default\"])({url:\"/Finance/AccountTransfer/editAccountTransfer/\"+e,method:\"put\",data:t})}function le(e){return Object(n[\"default\"])({url:\"/Finance/AccountTransfer/getAllAccountTransfer\",method:\"post\",data:e})}function ce(e,t){return Object(n[\"default\"])({url:\"/Finance/AccountTransfer/updateAccountTransferStatus/\"+e,method:\"put\",data:t})}function ue(e){return Object(n[\"default\"])({url:\"/Finance/AccountTransfer/getTempAccountTransferData\",method:\"post\",data:e})}function se(e){return Object(n[\"default\"])({url:\"Finance/Account/getTodayStatistics\",method:\"post\",data:e})}function de(e){return Object(n[\"default\"])({url:\"Finance/ReceiptRequisition/getAllReceiptRequisition\",method:\"post\",data:e})}function pe(e){return Object(n[\"default\"])({url:\"Finance/ReceiptRequisition/addReceiptRequisition\",method:\"post\",data:e})}function fe(e,t){return Object(n[\"default\"])({url:\"Finance/ReceiptRequisition/editReceiptRequisition/\"+e,method:\"post\",data:t})}function he(e,t){return Object(n[\"default\"])({url:\"Finance/ReceiptRequisition/getReceiptRequisitionInfo/\"+e,method:\"get\",data:t})}function me(e){return Object(n[\"default\"])({url:\"Finance/AccountType/getAllAccountType\",method:\"post\",data:e})}function ge(e){return Object(n[\"default\"])({url:\"Finance/AccountType/addAccountType\",method:\"post\",data:e})}function be(e,t){return Object(n[\"default\"])({url:\"Finance/AccountType/delAccountType/\"+e,method:\"delete\",data:t})}function ye(e,t){return Object(n[\"default\"])({url:\"Finance/AccountType/getAccountTypeInfo/\"+e,method:\"post\",data:t})}function _e(e){return Object(n[\"default\"])({url:\"Finance/AccountType/editAccountType\",method:\"post\",data:e})}function Se(e){return Object(n[\"default\"])({url:\"Finance/ExpenseSingle/getAllExpenseSingle\",method:\"post\",data:e})}function ve(e){return Object(n[\"default\"])({url:\"Finance/ExpenseSingle/addExpenseSingle\",method:\"post\",data:e})}function Pe(e,t){return Object(n[\"default\"])({url:\"Finance/ExpenseSingle/getExpenseSingleInfo/\"+e,method:\"get\",data:t})}function Ae(e,t){return Object(n[\"default\"])({url:\"Finance/ExpenseSingle/editExpenseSingle/\"+e,method:\"post\",data:t})}function we(e,t){return Object(n[\"default\"])({url:\"Finance/ExpenseSingle/delExpenseSingle/\"+e,method:\"delete\",data:t})}function Oe(e){return Object(n[\"default\"])({url:\"Finance/ExpenseSingle/updateExpenseStatus\",method:\"post\",data:e})}function Te(e){return Object(n[\"default\"])({url:\"Finance/Refund/getAllRefund\",method:\"post\",data:e})}function je(e){return Object(n[\"default\"])({url:\"Finance/Refund/addRefund\",method:\"post\",data:e})}function ke(e){return Object(n[\"default\"])({url:\"Finance/Refund/getRefundInfo\",method:\"post\",data:e})}function Fe(e,t){return Object(n[\"default\"])({url:\"Finance/Refund/editRefund/\"+e,method:\"post\",data:t})}function xe(e){return Object(n[\"default\"])({url:\"Finance/Refund/updateRefundStatus\",method:\"post\",data:e})}function Ie(e){return Object(n[\"default\"])({url:\"Finance/Received/getAllReceivedOffset\",method:\"post\",data:e})}function Ce(e){return Object(n[\"default\"])({url:\"Finance/Paid/getAllPaidOffset\",method:\"post\",data:e})}}}]);","extractedComments":[]}
|