@zscreate/form-component 1.1.177 → 1.1.178
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.
|
@@ -65853,6 +65853,9 @@ module.exports = /******/function (modules) {
|
|
|
65853
65853
|
height: height ? `${height}px !important` : undefined,
|
|
65854
65854
|
color: color ? color + '!important' : undefined
|
|
65855
65855
|
};
|
|
65856
|
+
},
|
|
65857
|
+
m_isCorrectAudit() {
|
|
65858
|
+
return this.isCorrectAudit() && window._CONFIG.JCTJBT != true;
|
|
65856
65859
|
}
|
|
65857
65860
|
},
|
|
65858
65861
|
data() {
|
|
@@ -66151,7 +66154,7 @@ module.exports = /******/function (modules) {
|
|
|
66151
66154
|
//校验表单 获取数据
|
|
66152
66155
|
getFormData() {
|
|
66153
66156
|
// 判断是否为 纠错审核内进来的, 纠错审核不用校验表单
|
|
66154
|
-
if (this.
|
|
66157
|
+
if (this.m_isCorrectAudit) return Promise.resolve(this.models);
|
|
66155
66158
|
|
|
66156
66159
|
// 判断子表单内组件有没有必填的校验
|
|
66157
66160
|
const tables = this.findTableComponent(this.widgetList).filter(table => {
|
|
@@ -66416,7 +66419,7 @@ module.exports = /******/function (modules) {
|
|
|
66416
66419
|
if (!widget.options.canView) {
|
|
66417
66420
|
return callback();
|
|
66418
66421
|
}
|
|
66419
|
-
if (!item.options.canView || item.options.disabled || !rule.required) {
|
|
66422
|
+
if (!item.options.canView || item.options.disabled && this.m_isCorrectAudit || !rule.required) {
|
|
66420
66423
|
return callback();
|
|
66421
66424
|
}
|
|
66422
66425
|
if (value === "" || value === undefined || value == null || Array.isArray(value) && !value.length) {
|
|
@@ -66452,7 +66455,7 @@ module.exports = /******/function (modules) {
|
|
|
66452
66455
|
...item,
|
|
66453
66456
|
validator: (rule, value, callback) => {
|
|
66454
66457
|
if (parentWidget && !parentWidget.options.canView) return callback();
|
|
66455
|
-
if (!widget.options.canView || widget.options.disabled || !rule.required) {
|
|
66458
|
+
if (!widget.options.canView || widget.options.disabled && this.m_isCorrectAudit || !rule.required) {
|
|
66456
66459
|
return callback();
|
|
66457
66460
|
}
|
|
66458
66461
|
if (value === "" || value === undefined || value == null || Array.isArray(value) && !value.length) {
|
|
@@ -66471,7 +66474,7 @@ module.exports = /******/function (modules) {
|
|
|
66471
66474
|
pattern: eval(item.pattern),
|
|
66472
66475
|
asyncValidator(rule, value, callback, source, options) {
|
|
66473
66476
|
if (parentWidget && !parentWidget.options.canView) return callback();
|
|
66474
|
-
if (!widget.options.canView || widget.options.disabled || !widget.options.canEdit) {
|
|
66477
|
+
if (!widget.options.canView || widget.options.disabled && this.m_isCorrectAudit || !widget.options.canEdit) {
|
|
66475
66478
|
return callback();
|
|
66476
66479
|
}
|
|
66477
66480
|
return rule.validator(rule, value, callback, source, options);
|
|
@@ -66482,7 +66485,7 @@ module.exports = /******/function (modules) {
|
|
|
66482
66485
|
...item,
|
|
66483
66486
|
asyncValidator(rule, value, callback, source, options) {
|
|
66484
66487
|
if (parentWidget && !parentWidget.options.canView) return callback();
|
|
66485
|
-
if (!widget.options.canView || widget.options.disabled || !widget.options.canEdit) {
|
|
66488
|
+
if (!widget.options.canView || widget.options.disabled && this.m_isCorrectAudit || !widget.options.canEdit) {
|
|
66486
66489
|
return callback();
|
|
66487
66490
|
}
|
|
66488
66491
|
return rule.validator(rule, value, callback, source, options);
|
|
@@ -118160,7 +118163,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;
|
|
|
118160
118163
|
/***/ ((module) => {
|
|
118161
118164
|
|
|
118162
118165
|
"use strict";
|
|
118163
|
-
module.exports = {"i8":"1.1.
|
|
118166
|
+
module.exports = {"i8":"1.1.178"};
|
|
118164
118167
|
|
|
118165
118168
|
/***/ })
|
|
118166
118169
|
|
|
@@ -118353,7 +118356,7 @@ function encry_http_v1(config) {
|
|
|
118353
118356
|
encry_http_v1: encry_http_v1,
|
|
118354
118357
|
encryption_v1: aesEncrypt/* encryption_v1 */.iv
|
|
118355
118358
|
});
|
|
118356
|
-
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=template&id=
|
|
118359
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=template&id=405d58bb&scoped=true&
|
|
118357
118360
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-spin',{staticClass:"layout layout-input-all-setting",class:{ 'no-border': !_vm.data.config.border, 'save-pdf': _vm.showLine, 'ant-form-noBorder': _vm.data.config.componentsNoBorder },style:({ 'overflow-x': _vm.data.config.layout === 'horizontal' ? 'auto' : 'initial' }),attrs:{"spinning":_vm.formLoading,"tip":_vm.formLoadingTip}},[(_vm.pageLoading && _vm.showLayoutLoading)?_c('div',{class:{ form_skeleton: _vm.pageLoading }},[(_vm.pageLoading)?_c('a-skeleton',{attrs:{"active":"","loading":_vm.pageLoading,"paragraph":{ rows: 12 }}}):_vm._e()],1):_vm._e(),_c('a-form-model',{ref:"Form",attrs:{"hideRequiredMark":true,"model":_vm.models,"rules":_vm.rules,"wrapper-col":{}},on:{"update:rules":function($event){_vm.rules=$event},"validate":_vm.validate}},_vm._l((_vm.widgetList),function(list,listindex){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.widgetList[0].length > 0),expression:"widgetList[0].length > 0"}],key:listindex,staticClass:"paper",style:(_vm.contentStyle)},[(listindex == 0)?_vm._t("default"):_vm._e(),(listindex == 0)?_c('div',{staticClass:"form-title",style:(Object.assign({}, {height: _vm.formNameHeight}, _vm.formNameStyle))},[_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameLeftContent || '')}}),_vm._v(_vm._s(_vm.data.config.formName)),_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameRightContent || '')}})]):_vm._e(),(_vm.value && _vm.value.formIndex)?_c('div',{staticStyle:{"text-align":"right","font-weight":"bold"}},[_vm._v(_vm._s(_vm.value.formIndex))]):_vm._e(),(_vm.data.config.pageHeader && listindex === 0)?_c('div',{style:(_vm.data.config.headerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageHeader)}}):_vm._e(),_c('div',{staticClass:"page-border",style:({ borderColor: _vm.data.config.borderColor })},[_vm._l((list),function(widget,index){return [(widget.type == 'table')?[(
|
|
118358
118361
|
widget.options.layoutModel === 'auto' ||
|
|
118359
118362
|
widget.options.layoutModel === undefined
|
|
@@ -118389,15 +118392,15 @@ var staticRenderFns = []
|
|
|
118389
118392
|
var layoutForPapervue_type_script_lang_js_ = __webpack_require__(7862);
|
|
118390
118393
|
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js&
|
|
118391
118394
|
/* harmony default export */ const layout_layoutForPapervue_type_script_lang_js_ = (layoutForPapervue_type_script_lang_js_/* default */.Z);
|
|
118392
|
-
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.7.3@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=
|
|
118395
|
+
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.7.3@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=405d58bb&prod&lang=less&scoped=true&
|
|
118393
118396
|
// extracted by mini-css-extract-plugin
|
|
118394
118397
|
|
|
118395
|
-
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=
|
|
118398
|
+
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=405d58bb&prod&lang=less&scoped=true&
|
|
118396
118399
|
|
|
118397
|
-
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.7.3@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=
|
|
118400
|
+
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.7.3@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=405d58bb&prod&lang=css&
|
|
118398
118401
|
// extracted by mini-css-extract-plugin
|
|
118399
118402
|
|
|
118400
|
-
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=
|
|
118403
|
+
;// CONCATENATED MODULE: ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=405d58bb&prod&lang=css&
|
|
118401
118404
|
|
|
118402
118405
|
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
118403
118406
|
var componentNormalizer = __webpack_require__(8412);
|
|
@@ -118417,7 +118420,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
118417
118420
|
staticRenderFns,
|
|
118418
118421
|
false,
|
|
118419
118422
|
null,
|
|
118420
|
-
"
|
|
118423
|
+
"405d58bb",
|
|
118421
118424
|
null
|
|
118422
118425
|
|
|
118423
118426
|
)
|