kmkf-work-order-service-component 0.0.1-alpha.14 → 0.0.1-alpha.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -278,13 +278,13 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
278
278
 
279
279
  var queryDetail = /*#__PURE__*/function () {
280
280
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2) {
281
- var templateId, workOrderId, shopId, record, orderNo, buyerId, _workOrderDetail2, _workOrderDetail2$dat, _workOrderDetail2$dat2, _workOrderDetail, _templateDetail, _workOrderDetail3, _templateDetail$data, transData, _templateDetail$data2, _templateDetail$data3, jsonMap, _transData;
281
+ var templateId, workOrderId, shopId, record, orderNo, buyerId, buyerNick, _workOrderDetail2, _workOrderDetail2$dat, _workOrderDetail2$dat2, _workOrderDetail, _templateDetail, _workOrderDetail3, _templateDetail$data, transData, _templateDetail$data2, _templateDetail$data3, jsonMap, _transData;
282
282
 
283
283
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
284
284
  while (1) {
285
285
  switch (_context2.prev = _context2.next) {
286
286
  case 0:
287
- templateId = _ref2.templateId, workOrderId = _ref2.workOrderId, shopId = _ref2.shopId, record = _ref2.record, orderNo = _ref2.orderNo, buyerId = _ref2.buyerId;
287
+ templateId = _ref2.templateId, workOrderId = _ref2.workOrderId, shopId = _ref2.shopId, record = _ref2.record, orderNo = _ref2.orderNo, buyerId = _ref2.buyerId, buyerNick = _ref2.buyerNick;
288
288
  form.resetFields();
289
289
  _context2.prev = 2;
290
290
  setLoading(true);
@@ -331,10 +331,12 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
331
331
  jsonMap = _templateDetail === null || _templateDetail === void 0 ? void 0 : (_templateDetail$data2 = _templateDetail.data) === null || _templateDetail$data2 === void 0 ? void 0 : _templateDetail$data2.componentDtoList.reduce(function (prv, next) {
332
332
  if (next.workOrderComponentType === 'BUYER_NICK_INPUT') {
333
333
  prv["".concat(next.uniqueKey, "_buyerOpenUid")] = buyerId;
334
+ prv["".concat(next.uniqueKey, "_buyerNick")] = buyerNick;
334
335
  }
335
336
 
336
337
  if (next.workOrderComponentType === 'ENTERPRISE_PAYMENT') {
337
338
  prv["".concat(next.uniqueKey, "_enterprisePaymentBuyerOpenUid")] = buyerId;
339
+ prv["".concat(next.uniqueKey, "_enterprisePaymentBuyerNick")] = buyerNick;
338
340
  }
339
341
 
340
342
  return prv;
@@ -395,7 +397,8 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
395
397
  _ref4$record = _ref4.record,
396
398
  record = _ref4$record === void 0 ? {} : _ref4$record,
397
399
  orderNo = _ref4.orderNo,
398
- buyerId = _ref4.buyerId;
400
+ buyerId = _ref4.buyerId,
401
+ buyerNick = _ref4.buyerNick;
399
402
  // console.log('openModal---------', templateId, shopId, workOrderId, (record = {}));
400
403
  setVisible(true);
401
404
  setTemplateId(templateId);
@@ -407,7 +410,8 @@ var CustomizeFormModal = function CustomizeFormModal(props, ref) {
407
410
  shopId: shopId,
408
411
  record: record,
409
412
  orderNo: orderNo,
410
- buyerId: buyerId
413
+ buyerId: buyerId,
414
+ buyerNick: buyerNick
411
415
  });
412
416
  };
413
417
 
@@ -28,7 +28,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
28
28
  * @Author: wangzhenggui jianjia.wzg@raycloud.com
29
29
  * @Date: 2022-09-16 11:19:43
30
30
  * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
31
- * @LastEditTime: 2022-10-08 16:51:06
31
+ * @LastEditTime: 2022-10-09 16:32:48
32
32
  * @FilePath: /kmkf-work-order-service-component/src/WorkOrder/index.tsx
33
33
  * @Description:
34
34
  *
@@ -231,7 +231,8 @@ var OrderList = function OrderList(tabActive) {
231
231
  templateId: id,
232
232
  shopId: platformInfo.shopId + '',
233
233
  orderNo: platformInfo.orderNo,
234
- buyerId: platformInfo.buyerId
234
+ buyerId: platformInfo.buyerId,
235
+ buyerNick: platformInfo.buyerNick
235
236
  });
236
237
  }; //编辑
237
238
 
@@ -241,7 +242,8 @@ var OrderList = function OrderList(tabActive) {
241
242
  templateId: item.templateDetailDto.uniqueKey,
242
243
  record: item,
243
244
  shopId: item.shopId,
244
- workOrderId: item.id
245
+ workOrderId: item.id,
246
+ buyerNick: platformInfo.buyerNick
245
247
  });
246
248
  }; //记录
247
249
 
@@ -544,6 +546,7 @@ var PayOrderList = function PayOrderList(tabActive) {
544
546
  var _shopList$find;
545
547
 
546
548
  return handleOpenModify({
549
+ buyerNick: platformInfo.buyerNick,
547
550
  buyerOpenUid: platformInfo.buyerId,
548
551
  shopId: platformInfo.shopId,
549
552
  shopName: (_shopList$find = shopList.find(function (item) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kmkf-work-order-service-component",
3
- "version": "0.0.1-alpha.14",
3
+ "version": "0.0.1-alpha.15",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",