ydb-components-material 0.1.71 → 0.1.73

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.
@@ -373,7 +373,7 @@ var FileItem = function FileItem(_ref) {
373
373
  className: "upload",
374
374
  src: _upload["default"],
375
375
  alt: ""
376
- }), "\u4E0A\u4F20\u6750\u6599"), isPC && (isSigned || isSealed) && /*#__PURE__*/_react["default"].createElement("div", {
376
+ }), "\u4E0A\u4F20\u6750\u6599"), !isPC && (isSigned || isSealed) && /*#__PURE__*/_react["default"].createElement("div", {
377
377
  className: "mask"
378
378
  }, /*#__PURE__*/_react["default"].createElement("div", {
379
379
  className: "center"
@@ -9,6 +9,8 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
9
9
  var _file = require("./file");
10
10
  var _api = require("../../api");
11
11
  var categoryId = '3354397552669692408';
12
+ // 预发
13
+ var categoryIdRelease = '3291682531601133765'; // 手写签批id
12
14
  var documentId = ''; // 手写签批生成的文件id
13
15
  var contractId = ''; // 合同id
14
16
 
@@ -103,7 +105,7 @@ function _uploadSignFile() {
103
105
  return _regenerator["default"].wrap(function (_context2) {
104
106
  while (1) switch (_context2.prev = _context2.next) {
105
107
  case 0:
106
- console.log(event, '文件');
108
+ console.log(event, '文件', window.env);
107
109
  // uni.showLoading({ title: '加载中' })
108
110
  _context2.next = 1;
109
111
  return (0, _file.getBlob)(event.url);
@@ -124,7 +126,7 @@ function _uploadSignFile() {
124
126
  headers: {
125
127
  Authorization: window.token
126
128
  },
127
- action: "\nhttps://zwfwpt.sxzwfw.gov.cn" + (window.env === 'release' ? ':10010' : '') + "/DeclarationAPI/declaration/center/signapproval/api/createbyfile",
129
+ action: "\nhttps://zwfwpt.sxzwfw.gov.cn" + (window.env === 'release' ? ':10010' : '') + "/declaration/center/signapproval/api/createbyfile",
128
130
  // 上传文件的地址
129
131
  onError: function onError(e) {
130
132
  // uni.$u.toast(e.msg || '手写签批上传文件异常');
@@ -148,10 +150,11 @@ function _uploadSignFile() {
148
150
  }
149
151
  function createbycategoryFun(fileName, documentIdVal) {
150
152
  // uni.showLoading({ title: '加载中' })
153
+ console.log('env---', window.env);
151
154
  var params = {
152
155
  subject: fileName,
153
156
  documents: [documentIdVal],
154
- categoryId: categoryId,
157
+ categoryId: window.env === 'release' ? categoryIdRelease : categoryId,
155
158
  send: true,
156
159
  tenantName: '山西省行政审批服务管理局'
157
160
  };
@@ -89,7 +89,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
89
89
  packageName = 'ydb-components-material';
90
90
  }
91
91
  if (version === void 0) {
92
- version = '0.1.71';
92
+ version = '0.1.73';
93
93
  }
94
94
  if (basicLibraryVersion === void 0) {
95
95
  basicLibraryVersion = {
@@ -94,7 +94,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
94
94
  packageName = 'ydb-components-material';
95
95
  }
96
96
  if (version === void 0) {
97
- version = '0.1.71';
97
+ version = '0.1.73';
98
98
  }
99
99
  if (basicLibraryVersion === void 0) {
100
100
  basicLibraryVersion = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-components-material",
3
- "version": "0.1.71",
3
+ "version": "0.1.73",
4
4
  "description": "ydb-components-material",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -97,10 +97,10 @@
97
97
  },
98
98
  "componentConfig": {
99
99
  "isComponentLibrary": true,
100
- "materialSchema": "https://unpkg.com/ydb-components-material@0.1.71/build/lowcode/assets-prod.json"
100
+ "materialSchema": "https://unpkg.com/ydb-components-material@0.1.73/build/lowcode/assets-prod.json"
101
101
  },
102
102
  "lcMeta": {
103
103
  "type": "component"
104
104
  },
105
- "homepage": "https://unpkg.com/ydb-components-material@0.1.71/build/index.html"
105
+ "homepage": "https://unpkg.com/ydb-components-material@0.1.73/build/index.html"
106
106
  }