@zscreate/zhxy-app-component 1.0.277 → 1.0.279
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.
|
@@ -1001,7 +1001,9 @@ export default {
|
|
|
1001
1001
|
description: item.value
|
|
1002
1002
|
})))
|
|
1003
1003
|
const operation = this.models[genList[i].model].operation
|
|
1004
|
-
|
|
1004
|
+
const label = this.selectList[genList[i].model].find(item => item.value === operation)?.label
|
|
1005
|
+
this.$set(this.models[genList[i].model], 'operationShow',label )
|
|
1006
|
+
this.$set(this.suggestType, genList[i].model, label)
|
|
1005
1007
|
}
|
|
1006
1008
|
})
|
|
1007
1009
|
}
|
|
@@ -1220,24 +1222,31 @@ export default {
|
|
|
1220
1222
|
// console.log(promiseArr)
|
|
1221
1223
|
// 校验审核表单
|
|
1222
1224
|
promiseArr.push(new Promise((resolve, reject) => {
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1225
|
+
let item = this.models[this.verifyNode]
|
|
1226
|
+
let widgets = this.dataObj.list.filter(obj => obj.model === this.verifyNode || obj.type === 'hnkj-confirm') || []
|
|
1227
|
+
|
|
1228
|
+
widgets.forEach( (widget) => {
|
|
1229
|
+
item = this.models[widget.model]
|
|
1230
|
+
if (item && widget) {
|
|
1231
|
+
let rules = {
|
|
1232
|
+
comments: widget.type === 'hnkj-confirm' ? [ { required: widget.options.required , message: widget.options.placeholder }] : [{ required: widget.options.opinionRequire, message: '请输入审批意见' }],
|
|
1233
|
+
operation: widget.type === 'hnkj-confirm' ? [ { required: widget.options.required , message: `请选择${widget.options.operation}` }] : []
|
|
1234
|
+
}
|
|
1235
|
+
utils.validateField(item, rules , Object.keys(rules), (success, errors) => {
|
|
1230
1236
|
if (success) {
|
|
1231
|
-
|
|
1237
|
+
resolve()
|
|
1232
1238
|
} else {
|
|
1233
|
-
|
|
1239
|
+
reject(errors)
|
|
1234
1240
|
}
|
|
1235
|
-
|
|
1241
|
+
},{
|
|
1236
1242
|
showMessage: true
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1243
|
+
})
|
|
1244
|
+
}
|
|
1245
|
+
})
|
|
1246
|
+
if (!widgets.length) {
|
|
1247
|
+
resolve()
|
|
1240
1248
|
}
|
|
1249
|
+
|
|
1241
1250
|
}))
|
|
1242
1251
|
}
|
|
1243
1252
|
Promise.all(promiseArr).then((result) => {
|