cloud-web-corejs-haier 1.0.22 → 1.0.24

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 (48) hide show
  1. package/package.json +1 -1
  2. package/src/components/xform/form-designer/designer.js +1 -1
  3. package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +1 -1
  4. package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
  5. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +1 -1
  6. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
  7. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +8 -2
  8. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
  9. package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +1 -1
  10. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +11 -1
  11. package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +4 -1
  12. package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +8 -3
  13. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +37 -37
  14. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +1 -1
  15. package/src/components/xform/form-designer/form-widget/indexMixin.js +1 -1
  16. package/src/components/xform/form-designer/indexMixin.js +1 -1
  17. package/src/components/xform/form-designer/refMixinDesign.js +1 -28
  18. package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
  19. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +57 -47
  20. package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +1 -1
  21. package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +1 -1
  22. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
  23. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
  24. package/src/components/xform/form-designer/widget-panel/indexMixin.js +1 -290
  25. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +60 -34
  26. package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
  27. package/src/components/xform/form-render/container-item/data-table-item.vue +6 -1
  28. package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
  29. package/src/components/xform/form-render/container-item/table2-item.vue +12 -4
  30. package/src/components/xform/form-render/dynamicDialogRender.js +1 -195
  31. package/src/components/xform/form-render/index.vue +7 -7
  32. package/src/components/xform/form-render/indexMixin.js +1 -1
  33. package/src/components/xform/form-render/refMixin.js +1 -1
  34. package/src/components/xform/lang/zh-CN.js +2 -0
  35. package/src/components/xform/mixins/defaultHandle.js +1 -338
  36. package/src/components/xform/mixins/scriptHttp.js +1 -172
  37. package/src/components/xform/utils/util.js +1 -1460
  38. package/src/components/xform/utils/validators.js +1 -133
  39. package/src/mixins/selectDialog/index.js +266 -1
  40. package/src/mixins/tableTree/index.js +199 -4
  41. package/src/mixins/wf/index.js +33 -1
  42. package/src/views/user/form/form_template/itemList.vue +221 -221
  43. package/src/views/user/form/form_template/list.vue +512 -512
  44. package/src/views/user/form/form_type/list.vue +142 -142
  45. package/src/views/user/form/report_requestaccess/list.vue +198 -198
  46. package/src/views/user/form/vform/render.vue +8 -0
  47. package/src/views/user/form/view/list.vue +9 -0
  48. package/src/mixins/table/index.js +0 -151
@@ -2,5 +2,37 @@
2
2
  import {initWf} from '../../components/wf/wfUtil'
3
3
 
4
4
  let mixins = {};
5
- function _0x45f8(_0x16168e,_0x368e05){const _0x216095=_0x368e();_0x45f8=function(_0xdad2ed,_0x4b8f6d){_0xdad2ed=_0xdad2ed-0x0;let _0x3f077b=_0x216095[_0xdad2ed];if(_0x45f8["\u0068\u006c\u0043\u004e\u0077\u0049"]===undefined){var _0x38ce6b=function(_0x7ce521){const _0x1fa125="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x51de9b="".split("").reverse().join("");let _0x2e106c="".split("").reverse().join("");for(let _0xabc796=0x0,_0x5771db,_0x214814,_0x4dc743=0x0;_0x214814=_0x7ce521["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x4dc743++);~_0x214814&&(_0x5771db=_0xabc796%0x4?_0x5771db*0x40+_0x214814:_0x214814,_0xabc796++%0x4)?_0x51de9b+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](0xff&_0x5771db>>(-0x2*_0xabc796&0x6)):0x0){_0x214814=_0x1fa125["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x214814);}for(let _0xd1cc12=0x0,_0x3cc97e=_0x51de9b["\u006c\u0065\u006e\u0067\u0074\u0068"];_0xd1cc12<_0x3cc97e;_0xd1cc12++){_0x2e106c+="\u0025"+("\u0030\u0030"+_0x51de9b['charCodeAt'](_0xd1cc12)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2e106c);};const _0x51c74f=function(_0x4897f1,_0x355363){let _0x52b2f5=[],_0x4ab0a9=0x0,_0x1a3d90,_0x33b06c="";_0x4897f1=_0x38ce6b(_0x4897f1);let _0x412ef7;for(_0x412ef7=0x0;_0x412ef7<0x100;_0x412ef7++){_0x52b2f5[_0x412ef7]=_0x412ef7;}for(_0x412ef7=0x0;_0x412ef7<0x100;_0x412ef7++){_0x4ab0a9=(_0x4ab0a9+_0x52b2f5[_0x412ef7]+_0x355363['charCodeAt'](_0x412ef7%_0x355363["\u006c\u0065\u006e\u0067\u0074\u0068"]))%0x100;_0x1a3d90=_0x52b2f5[_0x412ef7];_0x52b2f5[_0x412ef7]=_0x52b2f5[_0x4ab0a9];_0x52b2f5[_0x4ab0a9]=_0x1a3d90;}_0x412ef7=0x0;_0x4ab0a9=0x0;for(let _0x2600b5=0x0;_0x2600b5<_0x4897f1['length'];_0x2600b5++){_0x412ef7=(_0x412ef7+0x1)%0x100;_0x4ab0a9=(_0x4ab0a9+_0x52b2f5[_0x412ef7])%0x100;_0x1a3d90=_0x52b2f5[_0x412ef7];_0x52b2f5[_0x412ef7]=_0x52b2f5[_0x4ab0a9];_0x52b2f5[_0x4ab0a9]=_0x1a3d90;_0x33b06c+=String['fromCharCode'](_0x4897f1["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x2600b5)^_0x52b2f5[(_0x52b2f5[_0x412ef7]+_0x52b2f5[_0x4ab0a9])%0x100]);}return _0x33b06c;};_0x45f8['KEbvzr']=_0x51c74f;_0x16168e=arguments;_0x45f8["\u0068\u006c\u0043\u004e\u0077\u0049"]=!![];}const _0x39cfdc=_0x216095[0x0];const _0x275178=_0xdad2ed+_0x39cfdc;const _0x45f851=_0x16168e[_0x275178];if(!_0x45f851){if(_0x45f8["\u0058\u0062\u0071\u0076\u006e\u004a"]===undefined){_0x45f8['XbqvnJ']=!![];}_0x3f077b=_0x45f8['KEbvzr'](_0x3f077b,_0x4b8f6d);_0x16168e[_0x275178]=_0x3f077b;}else{_0x3f077b=_0x45f851;}return _0x3f077b;};return _0x45f8(_0x16168e,_0x368e05);}(function(_0x4c5541,_0x53d856){function _0x53db2f(_0x2f9a34,_0x41a84e,_0x1e1bbc,_0x3ea92f,_0x190aad){return _0x2160(_0x41a84e-0x57,_0x2f9a34);}function _0x5bdf92(_0x5e07c4,_0x58f21b,_0x17a7fc,_0x23dab3,_0x4debdd){return _0x2160(_0x23dab3-0x105,_0x5e07c4);}function _0x553be6(_0x78e670,_0x1e3aed,_0x5c9b1f,_0x29dd76,_0x1d5985){return _0x45f8(_0x29dd76-0x140,_0x78e670);}function _0x107693(_0x2a2251,_0x55cd9b,_0x2e78a4,_0x765315,_0x32533a){return _0x45f8(_0x2a2251- -0x247,_0x2e78a4);}function _0x5af7c7(_0x123aa1,_0x3848a6,_0x543be9,_0xfdc668,_0x54a183){return _0x2160(_0x3848a6-0x3cb,_0x123aa1);}const _0x5a7a6e=_0x4c5541();function _0x11dea1(_0x64a351,_0x2a7c34,_0x5d046c,_0x1c5b2e,_0x3e1e08){return _0x2160(_0x64a351-0x3f,_0x2a7c34);}function _0x5cf77d(_0x392f62,_0x44a154,_0x3f22fb,_0x153fa7,_0x1b1fa3){return _0x2160(_0x153fa7- -0x228,_0x392f62);}function _0x5cc970(_0x2ff784,_0x19dade,_0x4340b0,_0x38e875,_0x2b7cd0){return _0x45f8(_0x2ff784- -0x377,_0x2b7cd0);}while(!![]){try{const _0x5346df=parseInt(_0x5cf77d(-0x211,-0x200,-0x21e,-0x20e,-0x206))/0x1+-parseInt(_0x5cf77d(-0x223,-0x20e,-0x21c,-0x21a,-0x223))/0x2+parseInt(_0x5af7c7(0x3db,0x3dd,0x3d6,0x3e7,0x3db))/0x3*(-parseInt(_0x11dea1(0x53,0x4c,0x45,0x44,0x58))/0x4)+parseInt(_0x5bdf92(0x119,0x11c,0x12f,0x121,0x118))/0x5*(parseInt(_0x5cc970(-0x371,-0x36d,-0x365,-0x379,"Q]Vj".split("").reverse().join("")))/0x6)+-parseInt(_0x5bdf92(0x118,0x110,0x119,0x118,0x127))/0x7*(parseInt(_0x107693(-0x22f,-0x23b,"m5jC".split("").reverse().join(""),-0x220,-0x227))/0x8)+parseInt(_0x5af7c7(0x3ee,0x3e4,0x3f4,0x3e3,0x3ee))/0x9*(-parseInt(_0x107693(-0x23d,-0x22e,"50tM".split("").reverse().join(""),-0x242,-0x243))/0xa)+-parseInt(_0x5cf77d(-0x21c,-0x21e,-0x224,-0x224,-0x21d))/0xb*(-parseInt(_0x5bdf92(0x107,0x10a,0x10e,0x115,0x108))/0xc);if(_0x5346df===_0x53d856){break;}else{_0x5a7a6e['push'](_0x5a7a6e['shift']());}}catch(_0x2ad754){_0x5a7a6e["\u0070\u0075\u0073\u0068"](_0x5a7a6e['shift']());}}})(_0x368e,0x28d18);function _0x2160(_0x16168e,_0x368e05){const _0x216095=_0x368e();_0x2160=function(_0xdad2ed,_0x4b8f6d){_0xdad2ed=_0xdad2ed-0x0;let _0x3f077b=_0x216095[_0xdad2ed];if(_0x2160["\u006b\u0065\u0042\u0054\u0044\u004e"]===undefined){var _0x38ce6b=function(_0x51c74f){const _0x7ce521="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x1fa125="".split("").reverse().join("");let _0x51de9b="".split("").reverse().join("");for(let _0x2e106c=0x0,_0xabc796,_0x5771db,_0x214814=0x0;_0x5771db=_0x51c74f["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x214814++);~_0x5771db&&(_0xabc796=_0x2e106c%0x4?_0xabc796*0x40+_0x5771db:_0x5771db,_0x2e106c++%0x4)?_0x1fa125+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](0xff&_0xabc796>>(-0x2*_0x2e106c&0x6)):0x0){_0x5771db=_0x7ce521['indexOf'](_0x5771db);}for(let _0x4dc743=0x0,_0xd1cc12=_0x1fa125['length'];_0x4dc743<_0xd1cc12;_0x4dc743++){_0x51de9b+="\u0025"+("00".split("").reverse().join("")+_0x1fa125["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x4dc743)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))['slice'](-0x2);}return decodeURIComponent(_0x51de9b);};_0x2160['FrjaLq']=_0x38ce6b;_0x16168e=arguments;_0x2160['keBTDN']=!![];}const _0x39cfdc=_0x216095[0x0];const _0x275178=_0xdad2ed+_0x39cfdc;const _0x45f851=_0x16168e[_0x275178];if(!_0x45f851){_0x3f077b=_0x2160["\u0046\u0072\u006a\u0061\u004c\u0071"](_0x3f077b);_0x16168e[_0x275178]=_0x3f077b;}else{_0x3f077b=_0x45f851;}return _0x3f077b;};return _0x2160(_0x16168e,_0x368e05);}function _0x368e(){const _0x5b3364=['jgnVBw1VBKH0Dha',"\u006d\u005a\u006e\u004e\u0043\u0075\u0066\u006a\u0077\u004b\u0065",'bMBdGSkdsWGesG',"\u0057\u0050\u0033\u0063\u0047\u0038\u006b\u0036\u0076\u0053\u006f\u006c\u0077\u006d\u006b\u0073\u0074\u0071","KuwOLfu".split("").reverse().join(""),"efvmvvC1jZnWKdn".split("").reverse().join(""),"LomNcB6W".split("").reverse().join(""),"MoSqUkSRc7XOdRXKcVOW".split("").reverse().join(""),'qmkDWRddNCkhWOhdVCoCWPVcLmkwW5e',"\u0043\u0033\u0076\u004a\u0079\u0032\u0076\u005a\u0043\u0057",'W6WqWRDbWQtdImknW6ZcGq',"\u006d\u005a\u0047\u0035\u006f\u0074\u0065\u0059\u0077\u0067\u0044\u0065\u0074\u0068\u007a\u0035","\u0043\u0033\u0062\u0053\u0041\u0078\u0071",'mJq1nZaXmMLMvLLNvG',"K4WXe7WaHMfkfQW".split("").reverse().join(""),"zPMCiLhr0etnXadn".split("").reverse().join(""),"Zves3D3DXaZm".split("").reverse().join(""),"GsHnxArffn".split("").reverse().join(""),"aBSf2y".split("").reverse().join(""),'WQhdKaNcHapcM0e','W67cSSobxsqOEg3cP1BdHgK',"OPWYoCblj5W1oSpGoSoTrRW".split("").reverse().join(""),"\u006d\u0074\u0043\u0031\u006f\u0064\u0079\u0057\u0045\u0066\u0044\u0031\u0043\u004e\u0072\u0079","\u006d\u004a\u0047\u0033\u006e\u004a\u0065\u0033\u0042\u0067\u0076\u0031\u0074\u0078\u0062\u0074","\u0061\u0030\u006e\u0035\u0057\u0034\u0075\u0054\u0046\u005a\u0074\u0063\u004d\u0053\u006f\u0050\u0057\u0052\u006c\u0063\u004a\u0075\u0074\u0064\u0055\u0061","mf2vhLKq1Ktn4iZm".split("").reverse().join(""),'r8kvWRJdKCkhWOFdOCocWPFcQSkkW7e',"UDwAZnxy".split("").reverse().join(""),"euERr3ywjtm".split("").reverse().join(""),"\u0057\u0051\u0031\u006c\u0057\u0037\u0072\u0065","CwAM52Bdz2D".split("").reverse().join(""),'cerQW75Uza'];_0x368e=function(){return _0x5b3364;};return _0x368e();}mixins={'methods':{"\u005f\u0067\u0065\u0074\u0042\u0069\u006c\u006c\u0049\u006e\u0066\u006f":async function(_0x5d11d5){const _0x298894={"\u0050\u0059\u0068\u0059\u0049":function(_0x49ef9d,_0x4afce8){return _0x49ef9d+_0x4afce8;}};var _0x432837=0x3+0x6;let _0xbc5157={'url':null,'method':"\u0070\u006f\u0073\u0074","\u0064\u0061\u0074\u0061":{},'isLoading':!![],'modalStrictly':!![],"\u0073\u0075\u0063\u0063\u0065\u0073\u0073":null};_0x432837=_0x298894['PYhYI'](0x4,0x9);var _0x42860b;let _0x542444=Object['assign']({},_0xbc5157,_0x5d11d5);_0x42860b=0x9;delete _0x542444["\u0077\u0066\u0043\u006f\u006e\u0066\u0069\u0067"];return this['$commonHttp']({..._0x542444,"\u0073\u0075\u0063\u0063\u0065\u0073\u0073":(_0x5175b0,_0x280df9)=>{_0x5d11d5['success']&&_0x5d11d5['success'](_0x5175b0,_0x280df9);if(_0x5d11d5['wfConfig']){var _0x54491e;let _0x253873=_0x5d11d5['wfConfig'](_0x5175b0);_0x54491e=0x3+0x8;if(_0x253873){let _0x32a6da=_0x542444["\u0075\u0072\u006c"]["\u0073\u0070\u006c\u0069\u0074"]("\u002f");let _0x3c0d54=Object["\u0061\u0073\u0073\u0069\u0067\u006e"]({},_0x253873,{'serviceId':_0x32a6da[0x64d0e^0x64d0f]});initWf["\u0063\u0061\u006c\u006c"](this,_0x3c0d54);}}}});}}};
5
+ mixins = {
6
+ methods: {
7
+ '_getBillInfo': async function (option) {
8
+ let defaultOption = {
9
+ url: null,
10
+ method: `post`,
11
+ data: {},
12
+ isLoading: true,
13
+ modalStrictly: true,
14
+ success: null
15
+ };
16
+ let opt = Object.assign({}, defaultOption, option);
17
+ delete opt.wfConfig;
18
+ return this.$commonHttp({
19
+ ...opt,
20
+ success: (res, response) => {
21
+ option.success && option.success(res, response);
22
+ if (option.wfConfig) {
23
+ let wfConfig = option.wfConfig(res);
24
+ if (wfConfig) {
25
+ let urlArr = opt.url.split('/');
26
+ let opt2 = Object.assign({}, wfConfig, {
27
+ serviceId: urlArr[1]
28
+ });
29
+ //初始化流程
30
+ initWf.call(this, opt2);
31
+ }
32
+ }
33
+ }
34
+ });
35
+ }
36
+ }
37
+ }
6
38
  export default mixins;
@@ -1,221 +1,221 @@
1
- <template>
2
- <div id="containt">
3
- <el-tabs v-model="activeName" class="tab-box">
4
- <el-tab-pane :label="$t1('常规')" name="first">
5
- <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :parent-target="_self"
6
- @reload="$reloadHandle" :formTemplate="formTemplate"></editView>
7
- </el-tab-pane>
8
- <el-tab-pane :label="$t1('列表')" name="second">
9
- <div class="grid-height">
10
- <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
11
- @custom="$vxeTableUtil.customHandle">
12
- <template #form>
13
- <div class="clearfix screen-btns">
14
- <div class="fl">
15
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">{{ $t1('新增') }}
16
- </vxe-button>
17
- <div class="txt-name el-icon-house">
18
- 表单模板名称:
19
- <span>{{ formTemplate.formName }}</span>
20
- </div>
21
- </div>
22
- <div class="fr">
23
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
24
- plain>{{$t1('重置')}}
25
- </vxe-button>
26
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
27
- </vxe-button>
28
- </div>
29
- </div>
30
- </template>
31
- <template #row_edit>
32
- <a href="#" class="a-link"><i class="el-icon-edit"/></a>
33
- </template>
34
- </vxe-grid>
35
- </div>
36
- </el-tab-pane>
37
- </el-tabs>
38
- </div>
39
- </template>
40
-
41
- <script>
42
- import editView from './itemEdit.vue';
43
-
44
- export default {
45
- name: 'itemList',
46
- components: {editView},
47
- props: ['formTemplate'],
48
- data() {
49
- return {
50
- activeName: 'second',
51
- dataId: 0,
52
- showEdit: false,
53
- vxeOption: {},
54
- formData: {}
55
- };
56
- },
57
- mounted() {
58
- this.initTableList();
59
- },
60
- methods: {
61
- searchEvent() {
62
- this.$refs['table-m1'].commitProxy('reload');
63
- },
64
- resetEvent() {
65
- this.formData = {};
66
- this.$refs['table-m1'].commitProxy('reload');
67
- },
68
- openEditDialog(id) {
69
- this.dataId = !id || typeof id == 'object' ? 0 : id;
70
- this.activeName = 'first';
71
- this.$openEditView('showEdit');
72
- },
73
- initTableList() {
74
- let that = this;
75
- let tableOption1 = {
76
- vue: that,
77
- tableRef: 'table-m1',
78
- tableName: 'user_wf_obj_config_item_list-m1',
79
- path: USER_PREFIX + '/wf_obj_config_item/list',
80
- param: () => {
81
- return {
82
- objTypeCode: this.formTemplate.formCode
83
- }
84
- },
85
- config: {
86
- maxHeight: '',
87
- proxyConfig: {
88
- props: {
89
- result: "objx",
90
- total: "objx.length",
91
- }
92
- }
93
- },
94
- columns: [
95
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
96
- {
97
- title: '流程模版名称',
98
- field: 'modelName',
99
- width: 150,
100
- fixed: 'left'
101
- },
102
- {
103
- title: '流程模版KEY',
104
- field: 'modelKey',
105
- width: 150
106
- },
107
- {
108
- title: '单据类型编码',
109
- field: 'objTypeCode',
110
- width: 150
111
- },
112
- {
113
- title: '跳过相邻任务',
114
- field: 'skipAdjacentTask',
115
- width: 150,
116
- slots: {
117
- default: ({row}) => {
118
- if (row.skipAdjacentTask) {
119
- return [<div class="txt-status">是</div>];
120
- } else {
121
- return [<div class="txt-status s-3">否</div>];
122
- }
123
- }
124
- }
125
- },
126
- {
127
- title: '允许提交到驳回节点',
128
- field: 'toRejectNode',
129
- width: 180,
130
- slots: {
131
- default: ({row}) => {
132
- if (row.toRejectNode) {
133
- return [<div class="txt-status">是</div>];
134
- } else {
135
- return [<div class="txt-status s-3">否</div>];
136
- }
137
- }
138
- }
139
- },
140
- {
141
- field: 'createDate',
142
- title: this.$t1('创建时间'),
143
- width: 200
144
- },
145
- {
146
- width: 150,
147
- fixed: 'right',
148
- sortable: false,
149
- title: '',
150
- slots: {
151
- default: ({row}) => {
152
- return [
153
- <a
154
- href="javascript:void(0);"
155
- class="a-link"
156
- onclick={() => {
157
- this.openEditDialog(row.id);
158
- }}
159
- >
160
- <el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
161
- popper-class="tooltip-skin">
162
- <i class="el-icon-edit"/>
163
- </el-tooltip>
164
- </a>,
165
- <a
166
- href="javascript:void(0);"
167
- onClick={() => {
168
- this.wfEdit(row.modelId);
169
- }}
170
- class="a-link"
171
- >
172
- <el-tooltip enterable={false} effect="dark" content="流程设计" placement="top"
173
- popper-class="tooltip-skin">
174
- <i class="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
175
- </el-tooltip>
176
- </a>,
177
- <a
178
- href="javascript:void(0);"
179
- class="a-link"
180
- onClick={() => {
181
- this.deleteItem(row);
182
- }}
183
- >
184
- <el-tooltip enterable={false} effect="dark" content="删除" placement="top"
185
- popper-class="tooltip-skin">
186
- <i class="el-icon-delete"/>
187
- </el-tooltip>
188
- </a>
189
- ];
190
- }
191
- }
192
- }
193
- ]
194
- };
195
- this.$vxeTableUtil.initVxeTable(tableOption1).then(opts => {
196
- that.vxeOption = opts;
197
- });
198
- },
199
- deleteItem(row) {
200
- this.$baseConfirm('您确定要删除吗?').then(() => {
201
- this.$http({
202
- method: 'post',
203
- url: USER_PREFIX + '/wf_obj_config_item/delete',
204
- data: {id: row.id},
205
- success: res => {
206
- this.$message({
207
- message: res.content,
208
- type: 'success',
209
- duration: 500,
210
- });
211
- this.searchEvent()
212
- }
213
- });
214
- });
215
- },
216
- wfEdit(modelId) {
217
- this.$emit('openWfDesignDialog', modelId);
218
- }
219
- }
220
- };
221
- </script>
1
+ <template>
2
+ <div id="containt">
3
+ <el-tabs v-model="activeName" class="tab-box">
4
+ <el-tab-pane :label="$t1('常规')" name="first">
5
+ <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :parent-target="_self"
6
+ @reload="$reloadHandle" :formTemplate="formTemplate"></editView>
7
+ </el-tab-pane>
8
+ <el-tab-pane :label="$t1('列表')" name="second">
9
+ <div class="grid-height">
10
+ <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
11
+ @custom="$vxeTableUtil.customHandle">
12
+ <template #form>
13
+ <div class="clearfix screen-btns">
14
+ <div class="fl">
15
+ <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">{{ $t1('新增') }}
16
+ </vxe-button>
17
+ <div class="txt-name el-icon-house">
18
+ 表单模板名称:
19
+ <span>{{ formTemplate.formName }}</span>
20
+ </div>
21
+ </div>
22
+ <div class="fr">
23
+ <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
24
+ plain>{{$t1('重置')}}
25
+ </vxe-button>
26
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
27
+ </vxe-button>
28
+ </div>
29
+ </div>
30
+ </template>
31
+ <template #row_edit>
32
+ <a href="#" class="a-link"><i class="el-icon-edit"/></a>
33
+ </template>
34
+ </vxe-grid>
35
+ </div>
36
+ </el-tab-pane>
37
+ </el-tabs>
38
+ </div>
39
+ </template>
40
+
41
+ <script>
42
+ import editView from './itemEdit.vue';
43
+
44
+ export default {
45
+ name: 'itemList',
46
+ components: {editView},
47
+ props: ['formTemplate'],
48
+ data() {
49
+ return {
50
+ activeName: 'second',
51
+ dataId: 0,
52
+ showEdit: false,
53
+ vxeOption: {},
54
+ formData: {}
55
+ };
56
+ },
57
+ mounted() {
58
+ this.initTableList();
59
+ },
60
+ methods: {
61
+ searchEvent() {
62
+ this.$refs['table-m1'].commitProxy('reload');
63
+ },
64
+ resetEvent() {
65
+ this.formData = {};
66
+ this.$refs['table-m1'].commitProxy('reload');
67
+ },
68
+ openEditDialog(id) {
69
+ this.dataId = !id || typeof id == 'object' ? 0 : id;
70
+ this.activeName = 'first';
71
+ this.$openEditView('showEdit');
72
+ },
73
+ initTableList() {
74
+ let that = this;
75
+ let tableOption1 = {
76
+ vue: that,
77
+ tableRef: 'table-m1',
78
+ tableName: 'user_wf_obj_config_item_list-m1',
79
+ path: USER_PREFIX + '/wf_obj_config_item/list',
80
+ param: () => {
81
+ return {
82
+ objTypeCode: this.formTemplate.formCode
83
+ }
84
+ },
85
+ config: {
86
+ maxHeight: '',
87
+ proxyConfig: {
88
+ props: {
89
+ result: "objx",
90
+ total: "objx.length",
91
+ }
92
+ }
93
+ },
94
+ columns: [
95
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
96
+ {
97
+ title: '流程模版名称',
98
+ field: 'modelName',
99
+ width: 150,
100
+ fixed: 'left'
101
+ },
102
+ {
103
+ title: '流程模版KEY',
104
+ field: 'modelKey',
105
+ width: 150
106
+ },
107
+ {
108
+ title: '单据类型编码',
109
+ field: 'objTypeCode',
110
+ width: 150
111
+ },
112
+ {
113
+ title: '跳过相邻任务',
114
+ field: 'skipAdjacentTask',
115
+ width: 150,
116
+ slots: {
117
+ default: ({row}) => {
118
+ if (row.skipAdjacentTask) {
119
+ return [<div class="txt-status">是</div>];
120
+ } else {
121
+ return [<div class="txt-status s-3">否</div>];
122
+ }
123
+ }
124
+ }
125
+ },
126
+ {
127
+ title: '允许提交到驳回节点',
128
+ field: 'toRejectNode',
129
+ width: 180,
130
+ slots: {
131
+ default: ({row}) => {
132
+ if (row.toRejectNode) {
133
+ return [<div class="txt-status">是</div>];
134
+ } else {
135
+ return [<div class="txt-status s-3">否</div>];
136
+ }
137
+ }
138
+ }
139
+ },
140
+ {
141
+ field: 'createDate',
142
+ title: this.$t1('创建时间'),
143
+ width: 200
144
+ },
145
+ {
146
+ width: 150,
147
+ fixed: 'right',
148
+ sortable: false,
149
+ title: '',
150
+ slots: {
151
+ default: ({row}) => {
152
+ return [
153
+ <a
154
+ href="javascript:void(0);"
155
+ class="a-link"
156
+ onclick={() => {
157
+ this.openEditDialog(row.id);
158
+ }}
159
+ >
160
+ <el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
161
+ popper-class="tooltip-skin">
162
+ <i class="el-icon-edit"/>
163
+ </el-tooltip>
164
+ </a>,
165
+ <a
166
+ href="javascript:void(0);"
167
+ onClick={() => {
168
+ this.wfEdit(row.modelId);
169
+ }}
170
+ class="a-link"
171
+ >
172
+ <el-tooltip enterable={false} effect="dark" content="流程设计" placement="top"
173
+ popper-class="tooltip-skin">
174
+ <i class="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
175
+ </el-tooltip>
176
+ </a>,
177
+ <a
178
+ href="javascript:void(0);"
179
+ class="a-link"
180
+ onClick={() => {
181
+ this.deleteItem(row);
182
+ }}
183
+ >
184
+ <el-tooltip enterable={false} effect="dark" content="删除" placement="top"
185
+ popper-class="tooltip-skin">
186
+ <i class="el-icon-delete"/>
187
+ </el-tooltip>
188
+ </a>
189
+ ];
190
+ }
191
+ }
192
+ }
193
+ ]
194
+ };
195
+ this.$vxeTableUtil.initVxeTable(tableOption1).then(opts => {
196
+ that.vxeOption = opts;
197
+ });
198
+ },
199
+ deleteItem(row) {
200
+ this.$baseConfirm('您确定要删除吗?').then(() => {
201
+ this.$http({
202
+ method: 'post',
203
+ url: USER_PREFIX + '/wf_obj_config_item/delete',
204
+ data: {id: row.id},
205
+ success: res => {
206
+ this.$message({
207
+ message: res.content,
208
+ type: 'success',
209
+ duration: 500,
210
+ });
211
+ this.searchEvent()
212
+ }
213
+ });
214
+ });
215
+ },
216
+ wfEdit(modelId) {
217
+ this.$emit('openWfDesignDialog', modelId);
218
+ }
219
+ }
220
+ };
221
+ </script>