kmkf-work-order-service-component 0.3.0 → 0.3.1

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.
@@ -10,6 +10,7 @@ declare type CustomizeFormModal = {
10
10
  orderNo: string;
11
11
  buyerId: string;
12
12
  buyerNick: string;
13
+ platform: string;
13
14
  onSuccess?: (val: any) => void;
14
15
  };
15
16
  declare const CustomizeFormModal: (props: CustomizeFormModal) => JSX.Element;
@@ -60,7 +60,8 @@ var CustomizeFormModal = function CustomizeFormModal(props) {
60
60
  currentShopId = props.shopId,
61
61
  orderNo = props.orderNo,
62
62
  buyerId = props.buyerId,
63
- buyerNick = props.buyerNick;
63
+ buyerNick = props.buyerNick,
64
+ platform = props.platform;
64
65
 
65
66
  var _useState = useState(false),
66
67
  _useState2 = _slicedToArray(_useState, 2),
@@ -189,7 +190,7 @@ var CustomizeFormModal = function CustomizeFormModal(props) {
189
190
  accessToken: get(find(shopList, function (s) {
190
191
  return s.shopId === currentShopId;
191
192
  }), 'accessToken', ''),
192
- source: platformMap[platformInfo.platform] || '工单通'
193
+ source: platformMap[platform] || '工单通'
193
194
  };
194
195
  _params.workOrderComponentVos = submitDataTransOldFormat(data, templateDetail, !!workOrderId, workOrderDetail, _params);
195
196
  hasEnterPrisePayment = some(templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList, function (item) {
@@ -262,6 +262,7 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref) {
262
262
  orderNo: orderNo,
263
263
  buyerId: buyerId,
264
264
  buyerNick: buyerNick,
265
+ platform: platform,
265
266
  onSuccess: callBackFormOperation
266
267
  })]
267
268
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kmkf-work-order-service-component",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",