mooho-base-admin-plus 2.10.66 → 2.10.68

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,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "2.10.66",
4
+ "version": "2.10.68",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
package/src/api/task.js CHANGED
@@ -15,12 +15,13 @@ export default {
15
15
  }
16
16
  });
17
17
  },
18
- reject(id, comment) {
18
+ reject(id, rejectToID, comment) {
19
19
  return request({
20
20
  url: `api/${res}/reject`,
21
21
  method: 'post',
22
22
  data: {
23
23
  id,
24
+ rejectToID,
24
25
  comment
25
26
  }
26
27
  });
@@ -89,5 +90,14 @@ export default {
89
90
  method: 'post',
90
91
  data: filter
91
92
  });
93
+ },
94
+ queryRejectTo(id) {
95
+ return request({
96
+ url: `api/${res}/queryRejectTo`,
97
+ method: 'get',
98
+ params: {
99
+ id
100
+ }
101
+ });
92
102
  }
93
103
  };
@@ -664,7 +664,7 @@
664
664
  }
665
665
  }
666
666
  });
667
- } else if (column.controlType == 'Attachment' && this.$refs['attachment_' + column.code]) {
667
+ } else if (column.controlType == 'Attachment' && this.$refs['attachment_' + column.code] && this.$refs['attachment_' + column.code].length > 0) {
668
668
  this.$refs['attachment_' + column.code][0].setData(this.parseData(this.data, column.code));
669
669
  }
670
670
  });
@@ -663,7 +663,7 @@
663
663
  if (column.isRequired) {
664
664
  return 'text-required';
665
665
  } else {
666
- return 'text';
666
+ return null;
667
667
  }
668
668
  } else if (column.controlType === 'NumberInput') {
669
669
  if (column.isRequired) {
@@ -365,6 +365,29 @@
365
365
  </Option>
366
366
  </Select>
367
367
  </template>
368
+ <template v-if="code == 'rejectActivityPids'">
369
+ <Select
370
+ :model-value="parseArrayData(data, code)"
371
+ @update:model-value="$event => setArrayData(data, code, $event)"
372
+ :clearable="true"
373
+ :transfer="true"
374
+ :multiple="true"
375
+ v-if="activities"
376
+ >
377
+ <Option
378
+ v-for="item in activities.filter(item => {
379
+ return (
380
+ item.pid != data.pid &&
381
+ (item.activityType == 'Interactive' || item.activityType == 'Judgement' || item.activityType == 'Service' || item.activityType == 'ParallelStart')
382
+ );
383
+ })"
384
+ :key="item.pid"
385
+ :value="item.pid"
386
+ >
387
+ {{ item.name }}
388
+ </Option>
389
+ </Select>
390
+ </template>
368
391
  </template>
369
392
  </modal-form>
370
393
  <modal-form ref="serviceForm" view-code="ServiceActivityEdit">
@@ -86,6 +86,20 @@
86
86
  <Button type="default" custom-icon="fa fa-times" @click="messageOpened = false">{{ $t('Front_Btn_Close') }}</Button>
87
87
  </template>
88
88
  </Modal>
89
+ <modal-form ref="rejectForm" view-code="RejectTask">
90
+ <template #column="{ data, code }">
91
+ <template v-if="code == 'rejectTo'">
92
+ <Select v-model="$refs.rejectForm.data.rejectToID" :clearable="true" placeholder="退回发起人" :transfer="true">
93
+ <Option v-for="item in rejectActivities" :key="item.id" :value="item.id">
94
+ {{ item.name }}
95
+ </Option>
96
+ </Select>
97
+ </template>
98
+ </template>
99
+ <template #footer>
100
+ <Button type="primary" custom-icon="fa fa-check" @click="rejectSubmit()">{{ $t('Front_Btn_OK') }}</Button>
101
+ </template>
102
+ </modal-form>
89
103
  <flow-chart ref="flowChart" />
90
104
  </div>
91
105
  </template>
@@ -124,7 +138,8 @@
124
138
  description: null,
125
139
  customComponent: null,
126
140
  form: null,
127
- isFullscreen: false
141
+ isFullscreen: false,
142
+ rejectActivities: []
128
143
  };
129
144
  },
130
145
  async created() {},
@@ -302,7 +317,7 @@
302
317
  );
303
318
  }
304
319
  },
305
- // 拒绝
320
+ // 打开拒绝表单
306
321
  async reject() {
307
322
  if (this.isCustom && typeof this.$refs.customComponent.rejectValidation === 'function') {
308
323
  let isOK = await this.$refs.customComponent.rejectValidation();
@@ -312,30 +327,40 @@
312
327
  }
313
328
  }
314
329
 
315
- this.confirmInput(
316
- 'Front_Msg_Sure_To_Reject_Application',
317
- this.$t('Front_Label_Comment'),
318
- async () => {
319
- if (this.isCustom && typeof this.$refs.customComponent.beforeReject === 'function') {
320
- await this.$refs.customComponent.beforeReject(this.comment);
321
- }
330
+ console.log('xxx', this.task.activityInst.activityID);
322
331
 
323
- await taskApi.reject(this.task.id, this.comment);
332
+ let column = this.$refs.rejectForm.columns.find(item => item.code == 'rejectTo');
333
+
334
+ if (column) {
335
+ if (this.task.activityInst.activity.isRejectSelect == true) {
336
+ this.rejectActivities = await taskApi.queryRejectTo(this.task.id);
337
+ column.isShow = true;
338
+ } else {
339
+ column.isShow = false;
340
+ }
341
+ }
342
+
343
+ this.$refs.rejectForm.open();
344
+ },
345
+ // 拒绝提交
346
+ async rejectSubmit() {
347
+ let isOK = await this.$refs.rejectForm.validate();
348
+
349
+ if (!isOK) {
350
+ this.error('Front_Msg_Form_Validate_Fail');
351
+ } else {
352
+ this.confirm('Front_Msg_Sure_To_Reject_Application', async () => {
353
+ let model = this.$refs.rejectForm.data;
354
+
355
+ await taskApi.reject(this.task.id, model.rejectToID, model.comment);
324
356
  this.success('Front_Msg_Success');
325
357
  this.resetNotice();
326
358
  this.$emit('on-after-action');
359
+ this.$refs.rejectForm.data = {};
360
+ this.$refs.rejectForm.close();
327
361
  this.opened = false;
328
- },
329
- comment => {
330
- if (!(comment || '').trim()) {
331
- this.warning('Front_Msg_Please_Input_Reject_Reason');
332
- return false;
333
- } else {
334
- this.comment = comment;
335
- return true;
336
- }
337
- }
338
- );
362
+ });
363
+ }
339
364
  },
340
365
  // 撤回
341
366
  async recall() {
@@ -1 +1 @@
1
- import{s as e}from"./lang.js";const t={i:{locale:"en-US",select:{placeholder:"Select",noMatch:"No matching data",loading:"Loading"},table:{noDataText:"No Data",noFilteredDataText:"No filter data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},datepicker:{selectDate:"Select date",selectTime:"Select time",startTime:"Start Time",endTime:"End Time",clear:"Clear",ok:"OK",datePanelLabel:"[mmmm] [yyyy]",month:"Month",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",year:"Year",weekStartDay:"0",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},months:{m1:"Jan",m2:"Feb",m3:"Mar",m4:"Apr",m5:"May",m6:"Jun",m7:"Jul",m8:"Aug",m9:"Sep",m10:"Oct",m11:"Nov",m12:"Dec"}},transfer:{titles:{source:"Source",target:"Target"},filterPlaceholder:"Search here",notFoundText:"Not Found"},modal:{okText:"OK",cancelText:"Cancel"},poptip:{okText:"OK",cancelText:"Cancel"},page:{prev:"Previous Page",next:"Next Page",total:"Total",item:"item",items:"items",prev5:"Previous 5 Pages",next5:"Next 5 Pages",page:"/page",goto:"Goto",p:""},rate:{star:"Star",stars:"Stars"},time:{before:" ago",after:" after",just:"just now",seconds:" seconds",minutes:" minutes",hours:" hours",days:" days"},tree:{emptyText:"No Data"}}};e(t);export{t as default};
1
+ import{s as e}from"./lang.js";const t={i:{locale:"en-US",select:{placeholder:"Select",noMatch:"No matching data",loading:"Loading"},table:{noDataText:"No Data",noFilteredDataText:"No filter data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},datepicker:{selectDate:"Select date",selectTime:"Select time",startTime:"Start Time",endTime:"End Time",clear:"Clear",ok:"OK",datePanelLabel:"[mmmm] [yyyy]",month:"Month",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",year:"Year",weekStartDay:"0",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},months:{m1:"Jan",m2:"Feb",m3:"Mar",m4:"Apr",m5:"May",m6:"Jun",m7:"Jul",m8:"Aug",m9:"Sep",m10:"Oct",m11:"Nov",m12:"Dec"}},transfer:{titles:{source:"Source",target:"Target"},filterPlaceholder:"Search here",notFoundText:"Not Found"},modal:{okText:"OK",cancelText:"Cancel"},poptip:{okText:"OK",cancelText:"Cancel"},page:{prev:"Previous Page",next:"Next Page",total:"Total",item:"item",items:"items",prev5:"Previous 5 Pages",next5:"Next 5 Pages",page:"/page",goto:"Goto",p:""},rate:{star:"Star",stars:"Stars"},time:{before:" ago",after:" after",just:"just now",seconds:" seconds",minutes:" minutes",hours:" hours",days:" days"},tree:{emptyText:"No Data"}}};e(t);export{t as default};
@@ -1 +1 @@
1
- const e=typeof window!="undefined";function n(i){e&&typeof window.viewuiplus!="undefined"&&("langs"in viewuiplus||(viewuiplus.langs={}),viewuiplus.langs[i.i.locale]=i)}export{n as s};
1
+ const e=typeof window!="undefined";function n(i){e&&typeof window.viewuiplus!="undefined"&&("langs"in viewuiplus||(viewuiplus.langs={}),viewuiplus.langs[i.i.locale]=i)}export{n as s};
@@ -1 +1 @@
1
- import{s as e}from"./lang.js";const t={i:{locale:"zh-CN",select:{placeholder:"\u8BF7\u9009\u62E9",noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D"},table:{noDataText:"\u6682\u65E0\u6570\u636E",noFilteredDataText:"\u6682\u65E0\u7B5B\u9009\u7ED3\u679C",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},datepicker:{selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startTime:"\u5F00\u59CB\u65F6\u95F4",endTime:"\u7ED3\u675F\u65F6\u95F4",clear:"\u6E05\u7A7A",ok:"\u786E\u5B9A",datePanelLabel:"[yyyy\u5E74] [m\u6708]",month:"\u6708",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",year:"\u5E74",weekStartDay:"0",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{m1:"1\u6708",m2:"2\u6708",m3:"3\u6708",m4:"4\u6708",m5:"5\u6708",m6:"6\u6708",m7:"7\u6708",m8:"8\u6708",m9:"9\u6708",m10:"10\u6708",m11:"11\u6708",m12:"12\u6708"}},transfer:{titles:{source:"\u6E90\u5217\u8868",target:"\u76EE\u7684\u5217\u8868"},filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",notFoundText:"\u5217\u8868\u4E3A\u7A7A"},modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},poptip:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},page:{prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",total:"\u5171",item:"\u6761",items:"\u6761",prev5:"\u5411\u524D 5 \u9875",next5:"\u5411\u540E 5 \u9875",page:"\u6761/\u9875",goto:"\u8DF3\u81F3",p:"\u9875"},rate:{star:"\u661F",stars:"\u661F"},time:{before:"\u524D",after:"\u540E",just:"\u521A\u521A",seconds:"\u79D2",minutes:"\u5206\u949F",hours:"\u5C0F\u65F6",days:"\u5929"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"}}};e(t);export{t as default};
1
+ import{s as e}from"./lang.js";const t={i:{locale:"zh-CN",select:{placeholder:"\u8BF7\u9009\u62E9",noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D"},table:{noDataText:"\u6682\u65E0\u6570\u636E",noFilteredDataText:"\u6682\u65E0\u7B5B\u9009\u7ED3\u679C",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},datepicker:{selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startTime:"\u5F00\u59CB\u65F6\u95F4",endTime:"\u7ED3\u675F\u65F6\u95F4",clear:"\u6E05\u7A7A",ok:"\u786E\u5B9A",datePanelLabel:"[yyyy\u5E74] [m\u6708]",month:"\u6708",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",year:"\u5E74",weekStartDay:"0",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{m1:"1\u6708",m2:"2\u6708",m3:"3\u6708",m4:"4\u6708",m5:"5\u6708",m6:"6\u6708",m7:"7\u6708",m8:"8\u6708",m9:"9\u6708",m10:"10\u6708",m11:"11\u6708",m12:"12\u6708"}},transfer:{titles:{source:"\u6E90\u5217\u8868",target:"\u76EE\u7684\u5217\u8868"},filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",notFoundText:"\u5217\u8868\u4E3A\u7A7A"},modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},poptip:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},page:{prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",total:"\u5171",item:"\u6761",items:"\u6761",prev5:"\u5411\u524D 5 \u9875",next5:"\u5411\u540E 5 \u9875",page:"\u6761/\u9875",goto:"\u8DF3\u81F3",p:"\u9875"},rate:{star:"\u661F",stars:"\u661F"},time:{before:"\u524D",after:"\u540E",just:"\u521A\u521A",seconds:"\u79D2",minutes:"\u5206\u949F",hours:"\u5C0F\u65F6",days:"\u5929"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"}}};e(t);export{t as default};