@zscreate/zhxy-app-component 1.0.385-test.2 → 1.0.385
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.
|
@@ -489,15 +489,6 @@ export default {
|
|
|
489
489
|
this.$set(this.suggestType, this.verifyNode, this.models[this.verifyNode].operation)
|
|
490
490
|
this.fillVerifySignSeal(item)
|
|
491
491
|
}
|
|
492
|
-
if (item
|
|
493
|
-
&& !this.models[this.verifyNode].operation
|
|
494
|
-
&& item.options.confirmOperationChooseFirst) {
|
|
495
|
-
this.models[this.verifyNode].operation = this.suggest[0]
|
|
496
|
-
? this.suggest[0].value
|
|
497
|
-
: "";
|
|
498
|
-
this.$set(this.suggestType, this.verifyNode, this.models[this.verifyNode].operation)
|
|
499
|
-
this.fillVerifySignSeal(item)
|
|
500
|
-
}
|
|
501
492
|
},
|
|
502
493
|
tableData: {
|
|
503
494
|
handler(val) {
|
|
@@ -1239,7 +1230,7 @@ export default {
|
|
|
1239
1230
|
})
|
|
1240
1231
|
},
|
|
1241
1232
|
/***初始化models***/
|
|
1242
|
-
|
|
1233
|
+
generateModle(genList) {
|
|
1243
1234
|
if (!genList || genList.length === 0) return;
|
|
1244
1235
|
this.handleLinkAge()
|
|
1245
1236
|
for (let i = 0; i < genList.length; i++) {
|
|
@@ -1333,10 +1324,11 @@ export default {
|
|
|
1333
1324
|
this.$set(this.selectShow, genList[i].model, false)
|
|
1334
1325
|
if (genList[i].options.isConfirmComponent && !this.warpVerifyDisable(genList[i])) {
|
|
1335
1326
|
const dictName = genList[i].options.dictName
|
|
1336
|
-
if (dictName)
|
|
1327
|
+
if (dictName) cacheHttp.get( `/sys/dict/getDictItems/${dictName}`).then( res => {
|
|
1337
1328
|
if (res.success) {
|
|
1338
1329
|
this.$set(this.selectList ,genList[i].model, res.result?.map(item => ({ label: item.title, value: item.value, description: item.value})))
|
|
1339
1330
|
}
|
|
1331
|
+
})
|
|
1340
1332
|
const userInfo = uni.getStorageSync('userinfo')
|
|
1341
1333
|
this.$set(
|
|
1342
1334
|
this.models,
|
|
@@ -1350,16 +1342,6 @@ export default {
|
|
|
1350
1342
|
userSign: ''
|
|
1351
1343
|
}
|
|
1352
1344
|
)
|
|
1353
|
-
// 确认组件==确认操作默认选中第一项
|
|
1354
|
-
if (genList[i]
|
|
1355
|
-
&& !this.models[genList[i].model].operation
|
|
1356
|
-
&& genList[i].options.confirmOperationChooseFirst) {
|
|
1357
|
-
this.models[genList[i].model].operation = this.selectList[genList[i].model][0]
|
|
1358
|
-
? this.selectList[genList[i].model][0].value
|
|
1359
|
-
: "";
|
|
1360
|
-
this.$set(this.suggestType, genList[i].model, this.models[genList[i].model].operation)
|
|
1361
|
-
this.fillVerifySignSeal(genList[i])
|
|
1362
|
-
}
|
|
1363
1345
|
}
|
|
1364
1346
|
} else if (genList[i].type === "blank") {
|
|
1365
1347
|
this.$set(
|
|
@@ -1480,12 +1462,12 @@ export default {
|
|
|
1480
1462
|
}
|
|
1481
1463
|
})
|
|
1482
1464
|
// 子表单有必填校验 判断有没有添加行, 没有添加行需要手动添加行, 让它触发校验
|
|
1483
|
-
tables.forEach(table => {
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
})
|
|
1465
|
+
//tables.forEach(table => {
|
|
1466
|
+
// const model = this.models[table.model]
|
|
1467
|
+
// if ( !model || ( Array.isArray(model) && model.length === 0 )) {
|
|
1468
|
+
// this.addToTableData(table, table.model, 'addModel')
|
|
1469
|
+
// }
|
|
1470
|
+
//})
|
|
1489
1471
|
},
|
|
1490
1472
|
/**
|
|
1491
1473
|
* @param {回调函数} fn 成功的回调函数
|
|
@@ -1559,7 +1541,7 @@ export default {
|
|
|
1559
1541
|
item = this.models[widget.model]
|
|
1560
1542
|
if (item && widget) {
|
|
1561
1543
|
let rules = {
|
|
1562
|
-
comments: widget.type === 'hnkj-confirm' ?
|
|
1544
|
+
comments: widget.type === 'hnkj-confirm' ? [ { required: widget.options.required , message: widget.options.placeholder }] : [{ required: widget.options.opinionRequire, message: '请输入审批意见' }],
|
|
1563
1545
|
operation: widget.type === 'hnkj-confirm' ? [ { required: widget.options.required , message: `请选择${widget.options.operation}` }] : []
|
|
1564
1546
|
}
|
|
1565
1547
|
utils.validateField(item, rules , Object.keys(rules), (success, errors) => {
|