第一次提交

This commit is contained in:
caolc
2023-03-14 15:39:40 +08:00
parent d659190a9e
commit 0708de8d86
354 changed files with 15675 additions and 2683 deletions

View File

@@ -96,7 +96,7 @@ var components
try {
components = {
uniIcons: function() {
return Promise.all(/*! import() | uni_modules/uni-icons/components/uni-icons/uni-icons */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-icons/components/uni-icons/uni-icons.vue */ 395))
return Promise.all(/*! import() | uni_modules/uni-icons/components/uni-icons/uni-icons */[__webpack_require__.e("common/vendor"), __webpack_require__.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(__webpack_require__.bind(null, /*! @/uni_modules/uni-icons/components/uni-icons/uni-icons.vue */ 448))
}
}
} catch (e) {
@@ -288,7 +288,6 @@ __webpack_require__.r(__webpack_exports__);
var _oilDistribution = _interopRequireDefault(__webpack_require__(/*! @/api/oilDistribution */ 295));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} //
@@ -420,8 +419,7 @@ var _oilDistribution = _interopRequireDefault(__webpack_require__(/*! @/api/oilD
//
//
//
//
var popup = function popup() {__webpack_require__.e(/*! require.ensure | components/customPopup */ "components/customPopup").then((function () {return resolve(__webpack_require__(/*! @/components/customPopup */ 388));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default = { components: { popup: popup }, data: function data() {return { postData: { disCompanyId: '', disTagType: '', disType: '', customerId: '', companyId: '', disAmount: '' }, iShow: { seting: false }, sendData: null, receiveData: null, seleindex: 1, barIndex: 1, transition: { zIndex: '1', // height: '323rpx',
var popup = function popup() {__webpack_require__.e(/*! require.ensure | components/customPopup */ "components/customPopup").then((function () {return resolve(__webpack_require__(/*! @/components/customPopup */ 441));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default = { components: { popup: popup }, data: function data() {return { postData: { disCompanyId: '', disTagType: '', disType: '', customerId: '', companyId: '', disAmount: '' }, iShow: { seting: false }, sendData: null, receiveData: null, seleindex: 1, barIndex: 1, transition: { zIndex: '1', // height: '323rpx',
// width: '397rpx',
transform: "scale(0.9)", backgroundColor: '#66AFFF' } };}, onLoad: function onLoad() {var that = this;uni.$on('driverfn', function (e) {console.log(e, '司机参数更新');that.receiveData = e;that.postData.customerId = e.id;that.postData.companyId = '';that.postData.disTagType = e.companyCustomerNature == 0 ? 'OUTSIDE' : 'ESELF_SUPPORT';});uni.$on('company', function (e) {console.log(e.type, e);that.receiveData = null;if (e.type == 'send') {that.sendData = e;that.postData.disCompanyId = e.id;} else if (e.type == 'receive') {that.receiveData = e;that.postData.companyId = e.id;that.postData.customerId = '';that.postData.disTagType = 'SUBCOMPANY';}console.log(e, '公司参数更新');});}, methods: { inputFn: function inputFn(e) {// this.postData.disAmount = Number(this.postData.disAmount).toFixed(2)
if (this.postData.disAmount.indexOf('.') != -1) {if (this.postData.disAmount.split('.')[1].length > 2) {uni.showToast({ title: '最多保留小数点后两位', icon: 'none' });this.$nextTick(function () {this.postData.disAmount = Number(this.postData.disAmount).toFixed(2);console.log(this.postData.disAmount);});}}}, confirmFn: function confirmFn() {var _this = this;if (this.barIndex == 2) {if (Number(this.receiveData.balance) == 0) {uni.showToast({ title: '圈回对象账户不能为零', icon: "none" });return;}if (Number(this.postData.disAmount) > Number(this.receiveData.balance)) {uni.showToast({ title: '输入金额不能大于圈回对象总余额', icon: "none" });return;}} else {if (Number(this.postData.disAmount) > Number(this.sendData.balance)) {uni.showToast({ title: '输入金额不能大于总余额', icon: "none" });return;}if (Number(this.sendData.balance) == 0) {uni.showToast({ title: '转账方金额不能为零', icon: "none" });return;}}if (Number(this.postData.disAmount) == 0) {uni.showToast({ title: '操作金额不能为零', icon: "none" });return;} // if (this.seleindex == 2 && this.sendData.id == this.receiveData) {
@@ -431,7 +429,8 @@ var popup = function popup() {__webpack_require__.e(/*! require.ensure | compone
// })
// return
// }
var that = this;this.postData.disType = this.barIndex == 1 ? 1 : -1;console.log(this.postData);_oilDistribution.default.oilDistributions(that.postData).then(function (res) {if (res.code !== 20000) return;uni.showToast({ title: '操作成功', icon: 'none' });_this.iShow.seting = false;setTimeout(function () {uni.redirectTo({ url: '../index/index' });}, 500);});}, closeFn: function closeFn() {this.iShow.seting = false;console.log('取消');}, postFn: function postFn() {if (this.sendData == null || this.receiveData == null) {
var that = this;this.postData.disType = this.barIndex == 1 ? 1 : -1;console.log(this.postData);_oilDistribution.default.oilDistributions(that.postData).then(function (res) {if (res.code !== 20000) return;uni.showToast({ title: '操作成功', icon: 'none' });_this.iShow.seting = false;setTimeout(function () {uni.redirectTo({ url: '../index/index' });}, 500);});}, closeFn: function closeFn() {this.iShow.seting = false;console.log('取消');}, postFn: function postFn() {
if (this.sendData == null || this.receiveData == null) {
return;
}
if (this.postData.disAmount == '' || this.postData.disAmount == 0) {