kmkf-work-order-service-component 0.0.1-alpha.10 → 0.0.1-alpha.11

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.
@@ -720,23 +720,43 @@ export var orderBack = /*#__PURE__*/function () {
720
720
  return prv;
721
721
  }, {}); //有打款组件返填订单编号
722
722
 
723
+ console.log('formValue', formValue);
723
724
  ((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []).forEach(function (item) {
724
725
  if (item.workOrderComponentType === 'ENTERPRISE_PAYMENT') {
725
726
  detailsValue["".concat(item.uniqueKey, "_enterprisePaymentTid")] = detail['tradeId'];
726
- detailsValue["".concat(item.uniqueKey, "_enterprisePaymentBuyerOpenUid")] = formValue[item.uniqueKey]['buyerOpenUid'];
727
+ detailsValue["".concat(item.uniqueKey, "_enterprisePaymentBuyerOpenUid")] = formValue[item.uniqueKey]['enterprisePaymentBuyerOpenUid'];
727
728
  }
728
729
 
729
730
  if (item.workOrderComponentType === 'BUYER_NICK_INPUT') {
730
731
  detailsValue["".concat(item.uniqueKey, "_buyerOpenUid")] = formValue[item.uniqueKey]['buyerOpenUid'];
731
732
  }
733
+
734
+ var GOOD_LIST = ['ITEM_ENCODE', 'ITEM_ID', 'ITEM_SELECT', 'ITEM_SELECT_THIRD'];
735
+
736
+ if (GOOD_LIST.includes(item.workOrderComponentType)) {
737
+ var itemList = detail['itemList'] || []; // let newList = itemList.map((t: any) => {
738
+ // const { numIid, outerId, picUrl, platform, price, title } = t
739
+ // let value = {
740
+ // numIid,
741
+ // outerId,
742
+ // picUrl,
743
+ // platform: platform.toLowerCase(),
744
+ // price,
745
+ // title
746
+ // };
747
+ // return value
748
+ // })
749
+
750
+ detailsValue["".concat(item.uniqueKey, "_itemList")] = JSON.stringify(itemList);
751
+ }
732
752
  });
733
753
  newData = calcWorkOrderList([{
734
754
  jsonMap: detailsValue
735
- }], templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList, 'init'); // console.log('detailsValue++', formValue, newData[0]);
736
-
755
+ }], templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList, 'init');
756
+ console.log('detailsValue++', detailsValue, newData[0]);
737
757
  form.setFieldsValue(_objectSpread({}, newData[0]));
738
758
 
739
- case 20:
759
+ case 22:
740
760
  case "end":
741
761
  return _context.stop();
742
762
  }
@@ -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: litian
31
- * @LastEditTime: 2022-09-28 16:36:33
31
+ * @LastEditTime: 2022-09-29 13:56:52
32
32
  * @FilePath: /kmkf-work-order-service-component/src/WorkOrder/index.tsx
33
33
  * @Description:
34
34
  *
@@ -227,11 +227,6 @@ var OrderList = function OrderList(tabActive) {
227
227
 
228
228
 
229
229
  var openCustomForm = function openCustomForm(id) {
230
- if (!platformInfo.buyerId) {
231
- message.error('请选择用户');
232
- return;
233
- }
234
-
235
230
  openCustomizeWOrkOrderModal({
236
231
  templateId: id,
237
232
  shopId: platformInfo.shopId + '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kmkf-work-order-service-component",
3
- "version": "0.0.1-alpha.10",
3
+ "version": "0.0.1-alpha.11",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",