中秋更新
This commit is contained in:
@@ -1 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["oilDistribution/distribute/distribute"],{"0330":function(t,n,e){"use strict";var o=e("5bb0"),i=e.n(o);i.a},"0463":function(t,n,e){"use strict";e.r(n);var o=e("6553"),i=e.n(o);for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},"548c":function(t,n,e){"use strict";e.r(n);var o=e("dd6d"),i=e("0463");for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("0330");var s,u=e("f0c5"),c=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],s);n["default"]=c.exports},"5bb0":function(t,n,e){},6553:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("07c8"));function i(t){return t&&t.__esModule?t:{default:t}}var a=function(){e.e("components/customPopup").then(function(){return resolve(e("5979"))}.bind(null,e)).catch(e.oe)},s={components:{popup:a},data:function(){return{postData:{disCompanyId:"",disTagType:"",disType:"",customerId:"",companyId:"",disAmount:""},iShow:{seting:!1},sendData:null,receiveData:null,seleindex:1,barIndex:1,transition:{zIndex:"1",transform:"scale(0.9)",backgroundColor:"#66AFFF"}}},onLoad:function(){var n=this;t.$on("driverfn",(function(t){console.log(t,"司机参数更新"),n.receiveData=t,n.postData.customerId=t.id,n.postData.companyId="",n.postData.disTagType=0==t.companyCustomerNature?"OUTSIDE":"ESELF_SUPPORT"})),t.$on("company",(function(t){console.log(t.type,t),n.receiveData=null,"send"==t.type?(n.sendData=t,n.postData.disCompanyId=t.id):"receive"==t.type&&(n.receiveData=t,n.postData.companyId=t.id,n.postData.customerId="",n.postData.disTagType="SUBCOMPANY"),console.log(t,"公司参数更新")}))},methods:{inputFn:function(n){-1!=this.postData.disAmount.indexOf(".")&&this.postData.disAmount.split(".")[1].length>2&&(t.showToast({title:"最多保留小数点后两位",icon:"none"}),this.$nextTick((function(){this.postData.disAmount=Number(this.postData.disAmount).toFixed(2),console.log(this.postData.disAmount)})))},confirmFn:function(){var n=this;if(2==this.barIndex){if(0==Number(this.receiveData.balance))return void t.showToast({title:"圈回对象账户不能为零",icon:"none"});if(Number(this.postData.disAmount)>Number(this.receiveData.balance))return void t.showToast({title:"输入金额不能大于圈回对象总余额",icon:"none"})}else{if(Number(this.postData.disAmount)>Number(this.sendData.balance))return void t.showToast({title:"输入金额不能大于总余额",icon:"none"});if(0==Number(this.sendData.balance))return void t.showToast({title:"转账方金额不能为零",icon:"none"})}if(0!=Number(this.postData.disAmount)){var e=this;this.postData.disType=1==this.barIndex?1:-1,console.log(this.postData),o.default.oilDistributions(e.postData).then((function(e){2e4===e.code&&(t.showToast({title:"操作成功",icon:"none"}),n.iShow.seting=!1,setTimeout((function(){t.redirectTo({url:"../index/index"})}),500))}))}else t.showToast({title:"操作金额不能为零",icon:"none"})},closeFn:function(){this.iShow.seting=!1,console.log("取消")},postFn:function(){null!=this.sendData&&null!=this.receiveData&&(""!=this.postData.disAmount&&0!=this.postData.disAmount?this.iShow.seting=!0:t.showToast({title:"金额不能为零",icon:"none"}))},jump:function(n){switch(n){case 1:t.navigateTo({url:"../newSeleCompany/newSeleCompany?jsData="+JSON.stringify({type:"send",data:""})});break;case 2:if(null==this.sendData&&1==this.seleindex)return void t.showToast({title:"请先选择企业",icon:"none"});1==this.seleindex?t.navigateTo({url:"../newSeleDirver/newSeleDirver?jsData="+JSON.stringify(this.sendData),fail:function(t){console.log(t)}}):t.navigateTo({url:"../newSeleCompany/newSeleCompany?jsData="+JSON.stringify({type:"receive",data:this.sendData}),fail:function(t){console.log(t)}});break}},seleBarFn:function(t){this.barIndex=t},seleFn:function(t){this.seleindex=t,this.postData.disAmount="",this.receiveData=null}}};n.default=s}).call(this,e("543d")["default"])},"774e":function(t,n,e){"use strict";(function(t){e("6e43");o(e("66fd"));var n=o(e("548c"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},dd6d:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var o={uniIcons:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(e.bind(null,"3b32"))}},i=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n){2==t.barIndex?t.postData.disAmount=t.receiveData.balance:t.postData.disAmount=t.sendData.balance})},a=[]}},[["774e","common/runtime","common/vendor"]]]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["oilDistribution/distribute/distribute"],{"05a8":function(t,n,e){"use strict";(function(t){e("84da");o(e("66fd"));var n=o(e("8d6a"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},"2d45":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var o={uniIcons:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(e.bind(null,"65b9"))}},i=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n){2==t.barIndex?t.postData.disAmount=t.receiveData.balance:t.postData.disAmount=t.sendData.balance})},a=[]},3596:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("2d56"));function i(t){return t&&t.__esModule?t:{default:t}}var a=function(){e.e("components/customPopup").then(function(){return resolve(e("34d2"))}.bind(null,e)).catch(e.oe)},s={components:{popup:a},data:function(){return{postData:{disCompanyId:"",disTagType:"",disType:"",customerId:"",companyId:"",disAmount:""},iShow:{seting:!1},sendData:null,receiveData:null,seleindex:1,barIndex:1,transition:{zIndex:"1",transform:"scale(0.9)",backgroundColor:"#66AFFF"}}},onLoad:function(){var n=this;t.$on("driverfn",(function(t){console.log(t,"司机参数更新"),n.receiveData=t,n.postData.customerId=t.id,n.postData.companyId="",n.postData.disTagType=0==t.companyCustomerNature?"OUTSIDE":"ESELF_SUPPORT"})),t.$on("company",(function(t){console.log(t.type,t),n.receiveData=null,"send"==t.type?(n.sendData=t,n.postData.disCompanyId=t.id):"receive"==t.type&&(n.receiveData=t,n.postData.companyId=t.id,n.postData.customerId="",n.postData.disTagType="SUBCOMPANY"),console.log(t,"公司参数更新")}))},methods:{inputFn:function(n){-1!=this.postData.disAmount.indexOf(".")&&this.postData.disAmount.split(".")[1].length>2&&(t.showToast({title:"最多保留小数点后两位",icon:"none"}),this.$nextTick((function(){this.postData.disAmount=Number(this.postData.disAmount).toFixed(2),console.log(this.postData.disAmount)})))},confirmFn:function(){var n=this;if(2==this.barIndex){if(0==Number(this.receiveData.balance))return void t.showToast({title:"圈回对象账户不能为零",icon:"none"});if(Number(this.postData.disAmount)>Number(this.receiveData.balance))return void t.showToast({title:"输入金额不能大于圈回对象总余额",icon:"none"})}else{if(Number(this.postData.disAmount)>Number(this.sendData.balance))return void t.showToast({title:"输入金额不能大于总余额",icon:"none"});if(0==Number(this.sendData.balance))return void t.showToast({title:"转账方金额不能为零",icon:"none"})}if(0!=Number(this.postData.disAmount)){var e=this;this.postData.disType=1==this.barIndex?1:-1,console.log(this.postData),o.default.oilDistributions(e.postData).then((function(e){2e4===e.code&&(t.showToast({title:"操作成功",icon:"none"}),n.iShow.seting=!1,setTimeout((function(){t.redirectTo({url:"../index/index"})}),500))}))}else t.showToast({title:"操作金额不能为零",icon:"none"})},closeFn:function(){this.iShow.seting=!1,console.log("取消")},postFn:function(){null!=this.sendData&&null!=this.receiveData&&(""!=this.postData.disAmount&&0!=this.postData.disAmount?this.iShow.seting=!0:t.showToast({title:"金额不能为零",icon:"none"}))},jump:function(n){switch(n){case 1:t.navigateTo({url:"../newSeleCompany/newSeleCompany?jsData="+JSON.stringify({type:"send",data:""})});break;case 2:if(null==this.sendData&&1==this.seleindex)return void t.showToast({title:"请先选择企业",icon:"none"});1==this.seleindex?t.navigateTo({url:"../newSeleDirver/newSeleDirver?jsData="+JSON.stringify(this.sendData),fail:function(t){console.log(t)}}):t.navigateTo({url:"../newSeleCompany/newSeleCompany?jsData="+JSON.stringify({type:"receive",data:this.sendData}),fail:function(t){console.log(t)}});break}},seleBarFn:function(t){this.barIndex=t},seleFn:function(t){this.seleindex=t,this.postData.disAmount="",this.receiveData=null}}};n.default=s}).call(this,e("543d")["default"])},"8d6a":function(t,n,e){"use strict";e.r(n);var o=e("2d45"),i=e("b358");for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("cec3");var s,u=e("f0c5"),c=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],s);n["default"]=c.exports},ab2c:function(t,n,e){},b358:function(t,n,e){"use strict";e.r(n);var o=e("3596"),i=e.n(o);for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},cec3:function(t,n,e){"use strict";var o=e("ab2c"),i=e.n(o);i.a}},[["05a8","common/runtime","common/vendor"]]]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["oilDistribution/newSeleDirver/newSeleDirver"],{"62df":function(e,t,n){"use strict";var a=n("b5ee"),i=n.n(a);i.a},"71ff":function(e,t,n){"use strict";n.r(t);var a=n("ee7b"),i=n.n(a);for(var r in a)"default"!==r&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=i.a},"95f9":function(e,t,n){"use strict";n.r(t);var a=n("d626"),i=n("71ff");for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n("62df");var u,o=n("f0c5"),s=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"7120c7e0",null,!1,a["a"],u);t["default"]=s.exports},9742:function(e,t,n){"use strict";(function(e){n("6e43");a(n("66fd"));var t=a(n("95f9"));function a(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},b5ee:function(e,t,n){},d626:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a}));var a={uniEasyinput:function(){return n.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(n.bind(null,"2572"))}},i=function(){var e=this,t=e.$createElement,n=(e._self._c,0!==e.list.length?e.__map(e.list,(function(t,n){var a=e.__get_orig(t),i=e._f("companyType")(t.companyType);return{$orig:a,f0:i}})):null);e.$mp.data=Object.assign({},{$root:{l0:n}})},r=[]},ee7b:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("f9bd"));function i(e){return e&&e.__esModule?e:{default:e}}var r=function(){n.e("components/scroll").then(function(){return resolve(n("6757"))}.bind(null,n)).catch(n.oe)},u={components:{scroll:r},data:function(){return{barIndex:0,timer:null,seachValue:"",windowHeight:"",lately:[],list:[],page:{pageSize:15,currentPage:1,params:{companyCustomerNature:0,companyId:"",companyType:"",param:""},columns:[]}}},onLoad:function(e){e.jsData&&(console.log(JSON.parse(e.jsData)),this.page.params.companyId=JSON.parse(e.jsData).id,this.page.params.companyType=JSON.parse(e.jsData).companyType,this.getlist())},filters:{companyType:function(e){switch(Number(e)){case 0:return"FUEL";case 1:return"OIL";case 2:return"LNG";case 3:return"SCR"}}},methods:{seleFn:function(t){clearTimeout(this.timer),this.timer=setTimeout((function(){console.log(t),e.$emit("driverfn",t),e.navigateBack()}),200)},getlist:function(){var t=this;a.default.getDriverSelectionListByCompanyId(this.page).then((function(n){2e4===n.code&&(0==n.data.list.length&&e.showToast({title:"没有数据了哦",icon:"none"}),1===t.page.currentPage?t.list=n.data.list:t.list=t.list.concat(n.data.list))}))},scrolltolower:function(){this.currentPage+=1,this.getlist()},seachFn:function(){this.page.currentPage=1,this.getlist()},seleBarFn:function(e){this.page.currentPage=1,this.page.params.companyCustomerNature=e,this.getlist()}}};t.default=u}).call(this,n("543d")["default"])}},[["9742","common/runtime","common/vendor"]]]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["oilDistribution/newSeleDirver/newSeleDirver"],{"17c8":function(t,e,n){"use strict";var a=n("e679"),i=n.n(a);i.a},"1eea":function(t,e,n){"use strict";n.r(e);var a=n("d973"),i=n("bc79");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("17c8");var u,o=n("f0c5"),c=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"7120c7e0",null,!1,a["a"],u);e["default"]=c.exports},2563:function(t,e,n){"use strict";(function(t){n("84da");a(n("66fd"));var e=a(n("1eea"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},"47a6":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("1b48"));function i(t){return t&&t.__esModule?t:{default:t}}var r=function(){n.e("components/scroll").then(function(){return resolve(n("987b"))}.bind(null,n)).catch(n.oe)},u={components:{scroll:r},data:function(){return{barIndex:0,timer:null,seachValue:"",windowHeight:"",lately:[],list:[],page:{pageSize:15,currentPage:1,params:{companyCustomerNature:0,companyId:"",companyType:"",param:""},columns:[]}}},onLoad:function(t){t.jsData&&(console.log(JSON.parse(t.jsData)),this.page.params.companyId=JSON.parse(t.jsData).id,this.page.params.companyType=JSON.parse(t.jsData).companyType,this.getlist())},filters:{companyType:function(t){switch(Number(t)){case 0:return"FUEL";case 1:return"OIL";case 2:return"LNG";case 3:return"SCR"}}},methods:{seleFn:function(e){clearTimeout(this.timer),this.timer=setTimeout((function(){console.log(e),t.$emit("driverfn",e),t.navigateBack()}),200)},getlist:function(){var e=this;a.default.getDriverSelectionListByCompanyId(this.page).then((function(n){2e4===n.code&&(0==n.data.list.length&&t.showToast({title:"没有数据了哦",icon:"none"}),1===e.page.currentPage?e.list=n.data.list:e.list=e.list.concat(n.data.list))}))},scrolltolower:function(){this.currentPage+=1,this.getlist()},seachFn:function(){this.page.currentPage=1,this.getlist()},seleBarFn:function(t){this.page.currentPage=1,this.page.params.companyCustomerNature=t,this.getlist()}}};e.default=u}).call(this,n("543d")["default"])},bc79:function(t,e,n){"use strict";n.r(e);var a=n("47a6"),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},d973:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var a={uniEasyinput:function(){return n.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(n.bind(null,"fb2e"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,0!==t.list.length?t.__map(t.list,(function(e,n){var a=t.__get_orig(e),i=t._f("companyType")(e.companyType);return{$orig:a,f0:i}})):null);t.$mp.data=Object.assign({},{$root:{l0:n}})},r=[]},e679:function(t,e,n){}},[["2563","common/runtime","common/vendor"]]]);
|
||||
Reference in New Issue
Block a user