@ailaw/venus 1.260.0 → 1.261.0

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.
Files changed (2) hide show
  1. package/dist/venus.es.js +20 -5
  2. package/package.json +1 -1
package/dist/venus.es.js CHANGED
@@ -2077,6 +2077,19 @@ var __vue2_script$8 = defineComponent({
2077
2077
  }
2078
2078
  }
2079
2079
  });
2080
+ const shouldShowBelongsTo = computed(() => {
2081
+ if (props.value.isEmployee !== AssigneeTypes[AssigneeTypes.PETITIONER])
2082
+ return false;
2083
+ if (props.value.id) {
2084
+ return belongsTo.some(([_, v]) => v === props.value.taskSmartType);
2085
+ }
2086
+ return true;
2087
+ });
2088
+ watch(() => shouldShowBelongsTo.value, (shouldShow) => {
2089
+ if (!shouldShow) {
2090
+ changeVal("taskSmartType", "");
2091
+ }
2092
+ });
2080
2093
  return {
2081
2094
  typeError,
2082
2095
  nameError,
@@ -2088,7 +2101,9 @@ var __vue2_script$8 = defineComponent({
2088
2101
  isAttorneySelected,
2089
2102
  defaultActiveKey,
2090
2103
  nameErrorContent,
2091
- belongsTo
2104
+ belongsTo,
2105
+ AssigneeTypes,
2106
+ shouldShowBelongsTo
2092
2107
  };
2093
2108
  }
2094
2109
  });
@@ -2110,13 +2125,13 @@ var render$8 = function() {
2110
2125
  _vm.$set(_vm.value, "assigneeTypeList", $$v);
2111
2126
  }, expression: "value.assigneeTypeList" } }, [_c("a-checkbox", { attrs: { "value": 1, "disabled": _vm.value.isEmployee === "BENEFICIARY" } }, [_vm._v(_vm._s(_vm.$t("message.Beneficiary")))]), _c("a-checkbox", { attrs: { "value": 2, "disabled": _vm.value.isEmployee === "PETITIONER" } }, [_vm._v(_vm._s(_vm.$t("message.petitioner")))])], 1)], 1)], 1) : _vm._e(), _c("ant-row", { attrs: { "gutter": 40 } }, [_c("ant-col", { attrs: { "span": 12 } }, [_c("ant-form-item", { attrs: { "required": "", "label": _vm.$t("message.type"), "help": _vm.typeError ? _vm.$t("message.required") : void 0, "validate-status": _vm.typeError ? "error" : void 0 } }, [_vm.value.generalTaskType !== _vm.TaskTypes.worksheet ? _c("ant-radio-group", { attrs: { "disabled": _vm.value.presetDocs != null || _vm.disabled, "value": _vm.value.generalTaskType }, on: { "change": function($event) {
2112
2127
  return _vm.changeVal("generalTaskType", $event.target.value);
2113
- } } }, [_c("ant-radio", { attrs: { "value": _vm.TaskTypes.clientUpload } }, [_vm._v(" " + _vm._s(_vm.$t("message.clientUpload")) + " ")]), _c("ant-radio", { attrs: { "value": _vm.TaskTypes.clientReview, "disabled": _vm.isAttorneySelected } }, [_vm._v(" " + _vm._s(_vm.$t("message.clientReview")) + " ")])], 1) : _c("div", [_vm._v(_vm._s(_vm.$t("message.worksheet")))])], 1)], 1), _c("ant-col", { attrs: { "span": 12 } }, [_c("ant-form-item", { scopedSlots: _vm._u([{ key: "label", fn: function() {
2128
+ } } }, [_c("ant-radio", { attrs: { "value": _vm.TaskTypes.clientUpload } }, [_vm._v(" " + _vm._s(_vm.$t("message.clientUpload")) + " ")]), _c("ant-radio", { attrs: { "value": _vm.TaskTypes.clientReview, "disabled": _vm.isAttorneySelected } }, [_vm._v(" " + _vm._s(_vm.$t("message.clientReview")) + " ")])], 1) : _c("div", [_vm._v(_vm._s(_vm.$t("message.worksheet")))])], 1)], 1), _vm.shouldShowBelongsTo ? _c("ant-col", { attrs: { "span": 12 } }, [_c("ant-form-item", { scopedSlots: _vm._u([{ key: "label", fn: function() {
2114
2129
  return [_vm._v(" " + _vm._s(_vm.$t("message.belongsTo")) + " "), _c("ant-popover", { attrs: { "content": _vm.$t("message.toReuseThisDoc") } }, [_c("ant-icon", { staticClass: "pt-3.5 text-classic cursor-pointer", attrs: { "type": "question-circle" } })], 1)];
2115
- }, proxy: true }]) }, [_c("ant-select", { model: { value: _vm.value.taskSmartType, callback: function($$v) {
2130
+ }, proxy: true }], null, false, 4216407690) }, [_c("ant-select", { model: { value: _vm.value.taskSmartType, callback: function($$v) {
2116
2131
  _vm.$set(_vm.value, "taskSmartType", $$v);
2117
2132
  }, expression: "value.taskSmartType" } }, _vm._l(_vm.belongsTo, function(item) {
2118
2133
  return _c("ant-select-option", { key: item[0], attrs: { "value": item[1] } }, [_vm._v(" " + _vm._s(item[0]) + " ")]);
2119
- }), 1)], 1)], 1)], 1), _c("ant-form-item", { attrs: { "label": "" + _vm.$t("message.descriptions") + " (" + _vm.$t("message.optional") + ")" } }, [_c("ant-textarea", { attrs: { "disabled": _vm.disabled, "value": _vm.value.descriptions }, on: { "input": function($event) {
2134
+ }), 1)], 1)], 1) : _vm._e()], 1), _c("ant-form-item", { attrs: { "label": "" + _vm.$t("message.descriptions") + " (" + _vm.$t("message.optional") + ")" } }, [_c("ant-textarea", { attrs: { "disabled": _vm.disabled, "value": _vm.value.descriptions }, on: { "input": function($event) {
2120
2135
  return _vm.changeVal("descriptions", $event.target.value);
2121
2136
  } } })], 1), _c("ant-form-item", { attrs: { "label": "" + _vm.$t("message.attachment") + " (" + _vm.$t("message.optional") + ")" } }, [_c("a-file-uploader", { attrs: { "disabled": _vm.value.presetDocs != null || _vm.disabled, "value": _vm.value.presetDocs || _vm.value.sampleDocs, "uploadFilesFunc": _vm.uploadFilesFunc }, on: { "change": function($event) {
2122
2137
  return _vm.changeVal("sampleDocs", $event);
@@ -2129,7 +2144,7 @@ var render$8 = function() {
2129
2144
  var staticRenderFns$8 = [];
2130
2145
  var index_vue_vue_type_style_index_0_scoped_true_lang$3 = "";
2131
2146
  const __cssModules$8 = {};
2132
- var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "749b5e82", null, null);
2147
+ var __component__$8 = /* @__PURE__ */ normalizeComponent(__vue2_script$8, render$8, staticRenderFns$8, false, __vue2_injectStyles$8, "cf48ed86", null, null);
2133
2148
  function __vue2_injectStyles$8(context) {
2134
2149
  for (let o in __cssModules$8) {
2135
2150
  this[o] = __cssModules$8[o];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ailaw/venus",
3
- "version": "1.260.0",
3
+ "version": "1.261.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],