From db9ffaf49c37f5d14a6b62cfeed05c45f18085cf Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Fri, 30 Aug 2024 10:25:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=85=8D=E4=BB=B6=E9=94=80?= =?UTF-8?q?=E5=94=AE=E6=8F=90=E6=88=90=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sparePartsCommission.vue | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/yxt-as-ui/src/views/basicinformation/sparePartsCommission/sparePartsCommission.vue b/yxt-as-ui/src/views/basicinformation/sparePartsCommission/sparePartsCommission.vue index 62f41b5e72..07391273bd 100644 --- a/yxt-as-ui/src/views/basicinformation/sparePartsCommission/sparePartsCommission.vue +++ b/yxt-as-ui/src/views/basicinformation/sparePartsCommission/sparePartsCommission.vue @@ -31,9 +31,13 @@ - + + + - + @@ -48,7 +52,7 @@ - + @@ -63,7 +67,7 @@
*提成比例(%)
- +
@@ -114,7 +118,7 @@ export default { remarks: '', postName: '', postSid: '', - cormRatio: '', + commRatio: '', sortNo: '', useOrgSid: '', useOrgName: '', @@ -122,8 +126,8 @@ export default { createOrgName: '' }, rules: { - postSid: [{ required: true, message: '岗位名称不能为空', trigger: 'blur' }], - cormRatio: [{ required: true, message: '提成比例不能为空', trigger: 'blur' }], + postSid: [{ required: true, message: '岗位名称不能为空', trigger: 'change' }], + commRatio: [{ required: true, message: '提成比例不能为空', trigger: 'blur' }], sortNo: [{ required: true, message: '排序不能为空', trigger: 'blur' }] }, btndisabled: false, @@ -322,7 +326,7 @@ export default { } }, postNameChange(value) { - const choose = this.post_list.filter((item) => item.dictKey === value) + const choose = this.post_list.filter((item) => item.sid === value) if (choose !== null && choose.length > 0) { this.formobj.postName = choose[0].name } else { @@ -351,7 +355,7 @@ export default { remarks: '', postName: '', postSid: '', - cormRatio: '', + commRatio: '', sortNo: '', useOrgSid: '', useOrgName: '', @@ -411,12 +415,12 @@ export default {