From 2b0a139f88adbbb67bc6feed69dc1ee9ff158cb9 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 29 五月 2025 13:34:17 +0800
Subject: [PATCH] 提交一把订单
---
wx/unpackage/dist/dev/mp-weixin/pages/addPersonnel/addPersonnel.js | 29 ++++++++++++++++++++++++-----
1 files changed, 24 insertions(+), 5 deletions(-)
diff --git a/wx/unpackage/dist/dev/mp-weixin/pages/addPersonnel/addPersonnel.js b/wx/unpackage/dist/dev/mp-weixin/pages/addPersonnel/addPersonnel.js
index 7355052..59a65fe 100644
--- a/wx/unpackage/dist/dev/mp-weixin/pages/addPersonnel/addPersonnel.js
+++ b/wx/unpackage/dist/dev/mp-weixin/pages/addPersonnel/addPersonnel.js
@@ -103,10 +103,13 @@
try {
components = {
uButton: function () {
- return Promise.all(/*! import() | node-modules/uview-ui/components/u-button/u-button */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-button/u-button")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-button/u-button.vue */ 406))
+ return Promise.all(/*! import() | node-modules/uview-ui/components/u-button/u-button */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-button/u-button")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-button/u-button.vue */ 416))
},
uPopup: function () {
- return Promise.all(/*! import() | node-modules/uview-ui/components/u-popup/u-popup */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-popup/u-popup.vue */ 485))
+ return Promise.all(/*! import() | node-modules/uview-ui/components/u-popup/u-popup */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-popup/u-popup.vue */ 502))
+ },
+ uToast: function () {
+ return __webpack_require__.e(/*! import() | node-modules/uview-ui/components/u-toast/u-toast */ "node-modules/uview-ui/components/u-toast/u-toast").then(__webpack_require__.bind(null, /*! uview-ui/components/u-toast/u-toast.vue */ 495))
},
}
} catch (e) {
@@ -333,6 +336,14 @@
//
//
//
+//
+//
+//
+//
+//
+//
+//
+//
var _default = {
data: function data() {
return {
@@ -347,8 +358,8 @@
},
computed: {
totalPrice: function totalPrice() {
- if (this.info && this.info.price) {
- return (this.list.length * this.info.price).toFixed(2);
+ if (this.model && this.model.cyclePrice) {
+ return (this.list.length * this.model.cyclePrice).toFixed(2);
}
return '0.00';
}
@@ -360,7 +371,14 @@
this.getDetails();
}
uni.$on('add', function (data) {
- _this.list.unshift(data.model);
+ if (JSON.stringify(_this.list).indexOf(data.model.idCard) !== -1) {
+ _this.$refs.uToast.show({
+ type: 'default',
+ message: "[".concat(data.model.name, "]\u4EBA\u5458\u8EAB\u4EFD\u8BC1\u91CD\u590D")
+ });
+ } else {
+ _this.list.unshift(data.model);
+ }
});
},
methods: {
@@ -372,6 +390,7 @@
idcardNo: item.idCard,
duId: item.pqId,
duName: item.pqName,
+ remark: item.remark,
workTypeName: item.gzName,
worktypeId: item.gzId,
fee: _this2.info.price
--
Gitblit v1.9.3