iv-npm 1.2.69 → 1.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iv-npm",
3
- "version": "1.2.69",
3
+ "version": "1.2.73",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -1,31 +1,31 @@
1
- {
2
- "name": "@IVNPM/shared",
3
- "version": "1.0.0",
4
- "private": false,
5
- "description": "IVNPM/shared",
6
- "scripts": {
7
- "prepare": "npm run build",
8
- "dev": "tsup --watch",
9
- "build": "tsup"
10
- },
11
- "main": "dist/utils/index.mjs",
12
- "module": "dist/utils/index.mjs",
13
- "types": "dist/utils/index.d.ts",
14
- "files": [
15
- "index.js",
16
- "dist"
17
- ],
18
- "author": "Mr.Cong",
19
- "license": "ISC",
20
- "devDependencies": {
21
- "@types/node": "^18.6.4",
22
- "rollup-plugin-copy": "^3.4.0",
23
- "tsup": "^6.2.1"
24
- },
25
- "peerDependencies": {
26
- "ant-design-vue": "^3.2.5"
27
- },
28
- "dependencies": {
29
- "nanoid": "^4.0.0"
30
- }
31
- }
1
+ {
2
+ "name": "@IVNPM/shared",
3
+ "version": "1.0.0",
4
+ "private": false,
5
+ "description": "IVNPM/shared",
6
+ "scripts": {
7
+ "prepare": "npm run build",
8
+ "dev": "tsup --watch",
9
+ "build": "tsup"
10
+ },
11
+ "main": "dist/utils/index.mjs",
12
+ "module": "dist/utils/index.mjs",
13
+ "types": "dist/utils/index.d.ts",
14
+ "files": [
15
+ "index.js",
16
+ "dist"
17
+ ],
18
+ "author": "Mr.Cong",
19
+ "license": "ISC",
20
+ "devDependencies": {
21
+ "@types/node": "^18.6.4",
22
+ "rollup-plugin-copy": "^3.4.0",
23
+ "tsup": "^6.2.1"
24
+ },
25
+ "peerDependencies": {
26
+ "ant-design-vue": "^3.2.5"
27
+ },
28
+ "dependencies": {
29
+ "nanoid": "^4.0.0"
30
+ }
31
+ }
@@ -23,6 +23,10 @@ declare const _default: import("vue").DefineComponent<{
23
23
  type: StringConstructor;
24
24
  required: false;
25
25
  };
26
+ contractType: {
27
+ type: NumberConstructor;
28
+ required: false;
29
+ };
26
30
  }, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
27
31
  [key: string]: any;
28
32
  }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "getItem")[], "update:show" | "getItem", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -47,6 +51,10 @@ declare const _default: import("vue").DefineComponent<{
47
51
  type: StringConstructor;
48
52
  required: false;
49
53
  };
54
+ contractType: {
55
+ type: NumberConstructor;
56
+ required: false;
57
+ };
50
58
  }>> & {
51
59
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
52
60
  onGetItem?: ((...args: any[]) => any) | undefined;
@@ -7794,13 +7794,17 @@ var script = /*#__PURE__*/vue.defineComponent({
7794
7794
  setOfBookId: {
7795
7795
  type: String,
7796
7796
  required: false
7797
+ },
7798
+ contractType: {
7799
+ type: Number,
7800
+ required: false
7797
7801
  }
7798
7802
  },
7799
7803
  emits: ["update:show", "getItem"],
7800
7804
  setup: function setup(__props, _ref) {
7801
7805
  var emit = _ref.emit;
7802
7806
 
7803
- var _a;
7807
+ var _a, _b;
7804
7808
 
7805
7809
  var props = __props;
7806
7810
  /**
@@ -7808,7 +7812,8 @@ var script = /*#__PURE__*/vue.defineComponent({
7808
7812
  * */
7809
7813
 
7810
7814
  var formData = vue.reactive({
7811
- setOfBookId: (_a = props.params.setOfBookId) !== null && _a !== void 0 ? _a : "",
7815
+ setOfBookId: (_a = props.setOfBookId) !== null && _a !== void 0 ? _a : "",
7816
+ contractType: (_b = props.params.contractType) !== null && _b !== void 0 ? _b : undefined,
7812
7817
  skipCount: 0,
7813
7818
  maxResultCount: 10,
7814
7819
  key: null
@@ -7842,7 +7847,35 @@ var script = /*#__PURE__*/vue.defineComponent({
7842
7847
  _yield$formatHTTP = _context.sent;
7843
7848
  items = _yield$formatHTTP.items;
7844
7849
  totalCount = _yield$formatHTTP.totalCount;
7845
- dataV.value = items;
7850
+ dataV.value = items.map(function (item) {
7851
+ if (item.signStatus == 0) {
7852
+ item.signStatus = "待开工";
7853
+ } else if (item.signStatus == 1) {
7854
+ item.signStatus = "在建";
7855
+ } else if (item.signStatus == 2) {
7856
+ item.signStatus = "完工未结算";
7857
+ } else if (item.signStatus == 4) {
7858
+ item.signStatus = "完工已结算";
7859
+ } else if (item.signStatus == 8) {
7860
+ item.signStatus = "已销项";
7861
+ } else {
7862
+ item.signStatus = "暂无";
7863
+ }
7864
+
7865
+ if (item.projectStatus == 1) {
7866
+ item.projectStatus = "待签约";
7867
+ } else if (item.projectStatus == 2) {
7868
+ item.projectStatus = "已签约";
7869
+ } else if (item.projectStatus == 4) {
7870
+ item.projectStatus = "已完结";
7871
+ } else if (item.projectStatus == 8) {
7872
+ item.projectStatus = "诉讼中";
7873
+ } else {
7874
+ item.projectStatus = "暂无";
7875
+ }
7876
+
7877
+ return item;
7878
+ });
7846
7879
  totalPages.value = totalCount;
7847
7880
  topPages.value = Math.ceil(totalPages.value / formData.maxResultCount);
7848
7881
 
@@ -7871,17 +7904,17 @@ var script = /*#__PURE__*/vue.defineComponent({
7871
7904
  }, {
7872
7905
  title: "编号",
7873
7906
  w: 104 / 1499 * 100 + "%",
7874
- key: "projectNumber",
7907
+ key: "serialNumber",
7875
7908
  show: true
7876
7909
  }, {
7877
7910
  title: "合同名称",
7878
7911
  w: 212 / 1499 * 100 + "%",
7879
- key: "contractName",
7912
+ key: "name",
7880
7913
  show: true
7881
7914
  }, {
7882
7915
  title: "合同简称",
7883
7916
  w: 140 / 1499 * 100 + "%",
7884
- key: "contractShortName",
7917
+ key: "shortName",
7885
7918
  show: true
7886
7919
  }, {
7887
7920
  title: "账套名称",
@@ -7893,6 +7926,16 @@ var script = /*#__PURE__*/vue.defineComponent({
7893
7926
  w: 140 / 1499 * 100 + "%",
7894
7927
  key: "setOfBookShortName",
7895
7928
  show: true
7929
+ }, {
7930
+ title: "签署状态",
7931
+ w: 140 / 1499 * 100 + "%",
7932
+ key: "signStatus",
7933
+ show: true
7934
+ }, {
7935
+ title: "项目状态",
7936
+ w: 140 / 1499 * 100 + "%",
7937
+ key: "projectStatus",
7938
+ show: true
7896
7939
  }, {
7897
7940
  title: "",
7898
7941
  w: 45 / 1333 * 100 + "%",
@@ -8002,7 +8045,7 @@ var script = /*#__PURE__*/vue.defineComponent({
8002
8045
  switch (_context2.prev = _context2.next) {
8003
8046
  case 0:
8004
8047
  // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
8005
- formData.setOfBookId = (_a = props.params.setOfBookId) !== null && _a !== void 0 ? _a : "";
8048
+ formData.contractType = (_a = props.params.contractType) !== null && _a !== void 0 ? _a : undefined;
8006
8049
  getData({
8007
8050
  params: formData
8008
8051
  });
@@ -8014,6 +8057,17 @@ var script = /*#__PURE__*/vue.defineComponent({
8014
8057
  }
8015
8058
  }, _callee2);
8016
8059
  })));
8060
+ vue.watch(function () {
8061
+ return props;
8062
+ }, function () {
8063
+ console.log(props);
8064
+ }); // watch(
8065
+ // () => props.setofbookId,
8066
+ // () => {
8067
+ // formData.setOfBookId = props.setOfBookId ?? ""
8068
+ // }
8069
+ // );
8070
+
8017
8071
  return function (_ctx, _cache) {
8018
8072
  var _component_a_input = vue.resolveComponent("a-input");
8019
8073
 
@@ -7790,13 +7790,17 @@ var script = /*#__PURE__*/defineComponent({
7790
7790
  setOfBookId: {
7791
7791
  type: String,
7792
7792
  required: false
7793
+ },
7794
+ contractType: {
7795
+ type: Number,
7796
+ required: false
7793
7797
  }
7794
7798
  },
7795
7799
  emits: ["update:show", "getItem"],
7796
7800
  setup: function setup(__props, _ref) {
7797
7801
  var emit = _ref.emit;
7798
7802
 
7799
- var _a;
7803
+ var _a, _b;
7800
7804
 
7801
7805
  var props = __props;
7802
7806
  /**
@@ -7804,7 +7808,8 @@ var script = /*#__PURE__*/defineComponent({
7804
7808
  * */
7805
7809
 
7806
7810
  var formData = reactive({
7807
- setOfBookId: (_a = props.params.setOfBookId) !== null && _a !== void 0 ? _a : "",
7811
+ setOfBookId: (_a = props.setOfBookId) !== null && _a !== void 0 ? _a : "",
7812
+ contractType: (_b = props.params.contractType) !== null && _b !== void 0 ? _b : undefined,
7808
7813
  skipCount: 0,
7809
7814
  maxResultCount: 10,
7810
7815
  key: null
@@ -7838,7 +7843,35 @@ var script = /*#__PURE__*/defineComponent({
7838
7843
  _yield$formatHTTP = _context.sent;
7839
7844
  items = _yield$formatHTTP.items;
7840
7845
  totalCount = _yield$formatHTTP.totalCount;
7841
- dataV.value = items;
7846
+ dataV.value = items.map(function (item) {
7847
+ if (item.signStatus == 0) {
7848
+ item.signStatus = "待开工";
7849
+ } else if (item.signStatus == 1) {
7850
+ item.signStatus = "在建";
7851
+ } else if (item.signStatus == 2) {
7852
+ item.signStatus = "完工未结算";
7853
+ } else if (item.signStatus == 4) {
7854
+ item.signStatus = "完工已结算";
7855
+ } else if (item.signStatus == 8) {
7856
+ item.signStatus = "已销项";
7857
+ } else {
7858
+ item.signStatus = "暂无";
7859
+ }
7860
+
7861
+ if (item.projectStatus == 1) {
7862
+ item.projectStatus = "待签约";
7863
+ } else if (item.projectStatus == 2) {
7864
+ item.projectStatus = "已签约";
7865
+ } else if (item.projectStatus == 4) {
7866
+ item.projectStatus = "已完结";
7867
+ } else if (item.projectStatus == 8) {
7868
+ item.projectStatus = "诉讼中";
7869
+ } else {
7870
+ item.projectStatus = "暂无";
7871
+ }
7872
+
7873
+ return item;
7874
+ });
7842
7875
  totalPages.value = totalCount;
7843
7876
  topPages.value = Math.ceil(totalPages.value / formData.maxResultCount);
7844
7877
 
@@ -7867,17 +7900,17 @@ var script = /*#__PURE__*/defineComponent({
7867
7900
  }, {
7868
7901
  title: "编号",
7869
7902
  w: 104 / 1499 * 100 + "%",
7870
- key: "projectNumber",
7903
+ key: "serialNumber",
7871
7904
  show: true
7872
7905
  }, {
7873
7906
  title: "合同名称",
7874
7907
  w: 212 / 1499 * 100 + "%",
7875
- key: "contractName",
7908
+ key: "name",
7876
7909
  show: true
7877
7910
  }, {
7878
7911
  title: "合同简称",
7879
7912
  w: 140 / 1499 * 100 + "%",
7880
- key: "contractShortName",
7913
+ key: "shortName",
7881
7914
  show: true
7882
7915
  }, {
7883
7916
  title: "账套名称",
@@ -7889,6 +7922,16 @@ var script = /*#__PURE__*/defineComponent({
7889
7922
  w: 140 / 1499 * 100 + "%",
7890
7923
  key: "setOfBookShortName",
7891
7924
  show: true
7925
+ }, {
7926
+ title: "签署状态",
7927
+ w: 140 / 1499 * 100 + "%",
7928
+ key: "signStatus",
7929
+ show: true
7930
+ }, {
7931
+ title: "项目状态",
7932
+ w: 140 / 1499 * 100 + "%",
7933
+ key: "projectStatus",
7934
+ show: true
7892
7935
  }, {
7893
7936
  title: "",
7894
7937
  w: 45 / 1333 * 100 + "%",
@@ -7998,7 +8041,7 @@ var script = /*#__PURE__*/defineComponent({
7998
8041
  switch (_context2.prev = _context2.next) {
7999
8042
  case 0:
8000
8043
  // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
8001
- formData.setOfBookId = (_a = props.params.setOfBookId) !== null && _a !== void 0 ? _a : "";
8044
+ formData.contractType = (_a = props.params.contractType) !== null && _a !== void 0 ? _a : undefined;
8002
8045
  getData({
8003
8046
  params: formData
8004
8047
  });
@@ -8010,6 +8053,17 @@ var script = /*#__PURE__*/defineComponent({
8010
8053
  }
8011
8054
  }, _callee2);
8012
8055
  })));
8056
+ watch(function () {
8057
+ return props;
8058
+ }, function () {
8059
+ console.log(props);
8060
+ }); // watch(
8061
+ // () => props.setofbookId,
8062
+ // () => {
8063
+ // formData.setOfBookId = props.setOfBookId ?? ""
8064
+ // }
8065
+ // );
8066
+
8013
8067
  return function (_ctx, _cache) {
8014
8068
  var _component_a_input = resolveComponent("a-input");
8015
8069
 
@@ -7794,13 +7794,17 @@
7794
7794
  setOfBookId: {
7795
7795
  type: String,
7796
7796
  required: false
7797
+ },
7798
+ contractType: {
7799
+ type: Number,
7800
+ required: false
7797
7801
  }
7798
7802
  },
7799
7803
  emits: ["update:show", "getItem"],
7800
7804
  setup: function setup(__props, _ref) {
7801
7805
  var emit = _ref.emit;
7802
7806
 
7803
- var _a;
7807
+ var _a, _b;
7804
7808
 
7805
7809
  var props = __props;
7806
7810
  /**
@@ -7808,7 +7812,8 @@
7808
7812
  * */
7809
7813
 
7810
7814
  var formData = vue.reactive({
7811
- setOfBookId: (_a = props.params.setOfBookId) !== null && _a !== void 0 ? _a : "",
7815
+ setOfBookId: (_a = props.setOfBookId) !== null && _a !== void 0 ? _a : "",
7816
+ contractType: (_b = props.params.contractType) !== null && _b !== void 0 ? _b : undefined,
7812
7817
  skipCount: 0,
7813
7818
  maxResultCount: 10,
7814
7819
  key: null
@@ -7842,7 +7847,35 @@
7842
7847
  _yield$formatHTTP = _context.sent;
7843
7848
  items = _yield$formatHTTP.items;
7844
7849
  totalCount = _yield$formatHTTP.totalCount;
7845
- dataV.value = items;
7850
+ dataV.value = items.map(function (item) {
7851
+ if (item.signStatus == 0) {
7852
+ item.signStatus = "待开工";
7853
+ } else if (item.signStatus == 1) {
7854
+ item.signStatus = "在建";
7855
+ } else if (item.signStatus == 2) {
7856
+ item.signStatus = "完工未结算";
7857
+ } else if (item.signStatus == 4) {
7858
+ item.signStatus = "完工已结算";
7859
+ } else if (item.signStatus == 8) {
7860
+ item.signStatus = "已销项";
7861
+ } else {
7862
+ item.signStatus = "暂无";
7863
+ }
7864
+
7865
+ if (item.projectStatus == 1) {
7866
+ item.projectStatus = "待签约";
7867
+ } else if (item.projectStatus == 2) {
7868
+ item.projectStatus = "已签约";
7869
+ } else if (item.projectStatus == 4) {
7870
+ item.projectStatus = "已完结";
7871
+ } else if (item.projectStatus == 8) {
7872
+ item.projectStatus = "诉讼中";
7873
+ } else {
7874
+ item.projectStatus = "暂无";
7875
+ }
7876
+
7877
+ return item;
7878
+ });
7846
7879
  totalPages.value = totalCount;
7847
7880
  topPages.value = Math.ceil(totalPages.value / formData.maxResultCount);
7848
7881
 
@@ -7871,17 +7904,17 @@
7871
7904
  }, {
7872
7905
  title: "编号",
7873
7906
  w: 104 / 1499 * 100 + "%",
7874
- key: "projectNumber",
7907
+ key: "serialNumber",
7875
7908
  show: true
7876
7909
  }, {
7877
7910
  title: "合同名称",
7878
7911
  w: 212 / 1499 * 100 + "%",
7879
- key: "contractName",
7912
+ key: "name",
7880
7913
  show: true
7881
7914
  }, {
7882
7915
  title: "合同简称",
7883
7916
  w: 140 / 1499 * 100 + "%",
7884
- key: "contractShortName",
7917
+ key: "shortName",
7885
7918
  show: true
7886
7919
  }, {
7887
7920
  title: "账套名称",
@@ -7893,6 +7926,16 @@
7893
7926
  w: 140 / 1499 * 100 + "%",
7894
7927
  key: "setOfBookShortName",
7895
7928
  show: true
7929
+ }, {
7930
+ title: "签署状态",
7931
+ w: 140 / 1499 * 100 + "%",
7932
+ key: "signStatus",
7933
+ show: true
7934
+ }, {
7935
+ title: "项目状态",
7936
+ w: 140 / 1499 * 100 + "%",
7937
+ key: "projectStatus",
7938
+ show: true
7896
7939
  }, {
7897
7940
  title: "",
7898
7941
  w: 45 / 1333 * 100 + "%",
@@ -8002,7 +8045,7 @@
8002
8045
  switch (_context2.prev = _context2.next) {
8003
8046
  case 0:
8004
8047
  // 由于打包问题,侦听器一定要在最后,否则找不到getData方法
8005
- formData.setOfBookId = (_a = props.params.setOfBookId) !== null && _a !== void 0 ? _a : "";
8048
+ formData.contractType = (_a = props.params.contractType) !== null && _a !== void 0 ? _a : undefined;
8006
8049
  getData({
8007
8050
  params: formData
8008
8051
  });
@@ -8014,6 +8057,17 @@
8014
8057
  }
8015
8058
  }, _callee2);
8016
8059
  })));
8060
+ vue.watch(function () {
8061
+ return props;
8062
+ }, function () {
8063
+ console.log(props);
8064
+ }); // watch(
8065
+ // () => props.setofbookId,
8066
+ // () => {
8067
+ // formData.setOfBookId = props.setOfBookId ?? ""
8068
+ // }
8069
+ // );
8070
+
8017
8071
  return function (_ctx, _cache) {
8018
8072
  var _component_a_input = vue.resolveComponent("a-input");
8019
8073