You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
3.0 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/upstream"],{"0780":function(e,t,n){"use strict";(function(e,t){var u=n("47a9");n("7859");u(n("3240"));var o=u(n("faa2"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"2c68":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=n("8f59"),o={name:"upstream",computed:(0,u.mapState)(["userId","shopIndex"]),data:function(){return{choose:"1",keyboardNum:"",userId:"",showPrice:!1,options1:[{text:"编辑金额",style:{backgroundColor:"#3c9cff"}}],popupShow:!1,shopName:"",list:[]}},onShow:function(){this.getList()},onLoad:function(){},methods:{getList:function(){var e=this;this.tui.request("/app/purchase/debt","get",{},!1,!0).then((function(t){200==t.code?e.list=t.result.records:e.tui.toast(t.message)}))},onItemClick:function(t){e.navigateTo({url:"/pages/index/uparrears?supplierId=".concat(t.supplierId,"&consigneeName=").concat(t.supplierName)})},keyboardConfirm:function(){this.showPrice=!1},keyCancel:function(){this.showPrice=!1,this.keyboardNum=""},valChange:function(e){this.keyboardNum+=e},backspace:function(e){this.keyboardNum=e},huicancel:function(){this.$refs.inputDialog.close(),this.keyboardNum=""},receivePay:function(e){var t=this;this.tui.request("/app/debt/saveOrUpdateDebt","post",{userId:this.userId,amountOwed:this.keyboardNum,userType:"1"},!1,!1).then((function(e){200==e.code?(t.getList(),t.tui.toast("操作成功"),t.keyboardNum="",t.$refs.inputDialog.close()):(t.keyboardNum="",t.tui.toast(e.message))}))},toggle:function(e){this.userId=e.supplierId,this.$refs.inputDialog.open()}}};t.default=o}).call(this,n("df3c")["default"])},"5fe2":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return u}));var u={uAlert:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-alert/u-alert")]).then(n.bind(null,"9f6d"))},uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,"2864"))},uKeyboard:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-keyboard/u-keyboard")]).then(n.bind(null,"e056"))}},o=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.showPrice=!0})},i=[]},a33c:function(e,t,n){},b507:function(e,t,n){"use strict";var u=n("a33c"),o=n.n(u);o.a},b899:function(e,t,n){"use strict";n.r(t);var u=n("2c68"),o=n.n(u);for(var i in u)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(i);t["default"]=o.a},c2f4:function(e,t,n){"use strict";var u=n("f710"),o=n.n(u);o.a},f710:function(e,t,n){},faa2:function(e,t,n){"use strict";n.r(t);var u=n("5fe2"),o=n("b899");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("b507"),n("c2f4");var a=n("828b"),r=Object(a["a"])(o["default"],u["b"],u["c"],!1,null,"d53241b6",null,!1,u["a"],void 0);t["default"]=r.exports}},[["0780","common/runtime","common/vendor"]]]);