kmkf-work-order-service-component 0.3.6-alpha.5 → 0.3.6-alpha.7

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.
@@ -125,10 +125,7 @@ function CustomizeWorkOrderCard(props) {
125
125
  style: {
126
126
  margin: '8px 0'
127
127
  }
128
- }), /*#__PURE__*/_jsx(ItemView, {
129
- label: "\u5E97\u94FA\u540D\u79F0",
130
- value: transData.shopName
131
- }, "shopName"), componentDtoList.map(function (t) {
128
+ }), componentDtoList.map(function (t) {
132
129
  var instance = factory(t.workOrderComponentType, {
133
130
  id: t.uniqueKey,
134
131
  name: t.name,
@@ -309,6 +309,13 @@ var CustomizeFormModal = function CustomizeFormModal(props) {
309
309
  item.componentConfig = _objectSpread(_objectSpread({}, item.componentConfig), {}, {
310
310
  disabled: true
311
311
  });
312
+ } // 这里将图片上传组件中增加一个单店版属性,让他调用快麦工单上传接口
313
+
314
+
315
+ if (item.workOrderComponentType === 'PICTURE') {
316
+ item.componentConfig = _objectSpread(_objectSpread({}, item.componentConfig), {}, {
317
+ isSingleShop: true
318
+ });
312
319
  }
313
320
 
314
321
  var instance = factory(item.workOrderComponentType, {
@@ -105,7 +105,7 @@ var SingleShopWorkOrder = function SingleShopWorkOrder() {
105
105
  children: t.label
106
106
  });
107
107
  })
108
- }), /*#__PURE__*/_jsxs("main", {
108
+ }), (templateList === null || templateList === void 0 ? void 0 : templateList.length) > 0 && /*#__PURE__*/_jsxs("main", {
109
109
  className: "list-container",
110
110
  children: [/*#__PURE__*/_jsxs(Form, {
111
111
  form: form,
@@ -5,6 +5,7 @@
5
5
  overflow-y: auto;
6
6
  background: #fff;
7
7
  .template-button {
8
+ height: 32px;
8
9
  margin: 4px;
9
10
  padding: 4px 8px;
10
11
  border: 1px solid #d9d9d9;
@@ -36,7 +36,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
36
36
  import React from 'react';
37
37
  import BasicComponent from "../../BasicComponent";
38
38
  import { getFormItem } from "../../common/formItemWrap";
39
- import { ApaasUploadAsync } from '@raycloud-apaas-fe-setup/apaas-react-basics-widgets';
39
+ import { ApaasUploadAsync, ApaasUpload } from '@raycloud-apaas-fe-setup/apaas-react-basics-widgets';
40
40
  import { Image } from 'antd';
41
41
  import { imgResize } from "../../../../../common/utils/tools";
42
42
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -79,7 +79,7 @@ var BasicPicture = /*#__PURE__*/function (_BasicComponent) {
79
79
  name: _this.id,
80
80
  rules: [],
81
81
  required: (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.required,
82
- component: /*#__PURE__*/_jsx(ApaasUploadAsync, _objectSpread(_objectSpread({}, _this.componentConfig), {}, {
82
+ component: _this.componentConfig.isSingleShop ? /*#__PURE__*/_jsx(ApaasUpload, _objectSpread({}, _this.componentConfig)) : /*#__PURE__*/_jsx(ApaasUploadAsync, _objectSpread(_objectSpread({}, _this.componentConfig), {}, {
83
83
  uniqueKey: _this.id,
84
84
  hostUrl: "https://kefu.kuaimai.com"
85
85
  }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kmkf-work-order-service-component",
3
- "version": "0.3.6-alpha.5",
3
+ "version": "0.3.6-alpha.7",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@ant-design/icons": "^4.7.0",
42
- "@raycloud-apaas-fe-setup/apaas-react-basics-widgets": "^1.1.1-alpha.2",
42
+ "@raycloud-apaas-fe-setup/apaas-react-basics-widgets": "^1.1.1",
43
43
  "@reduxjs/toolkit": "^1.8.5",
44
44
  "ahooks": "^3.7.4",
45
45
  "copy-to-clipboard": "^3.3.3",