|
|
@@ -75,8 +75,8 @@
|
|
|
parentData.zhuang_tai_ === '已早交班'
|
|
|
? '午班'
|
|
|
: parentData.zhuang_tai_ === '已午交班'
|
|
|
- ? '晚班'
|
|
|
- : ''
|
|
|
+ ? '晚班'
|
|
|
+ : ''
|
|
|
}}</span>
|
|
|
<!-- <span v-else>{{ ruleForm.ban_ci_ }}</span> -->
|
|
|
</el-form-item>
|
|
|
@@ -184,6 +184,7 @@ import log from '@/plugins/log'
|
|
|
import ibpsUserSelector from '@/business/platform/org/selector'
|
|
|
import IbpsLinkData from '@/business/platform/data/templaterender/link-data'
|
|
|
import getDate from '@/utils/common'
|
|
|
+import { getSetting } from '@/utils/query'
|
|
|
export default {
|
|
|
components: {
|
|
|
ibpsUserSelector,
|
|
|
@@ -216,6 +217,7 @@ export default {
|
|
|
userType: 'position'
|
|
|
}
|
|
|
],
|
|
|
+ enrolledSum: false,
|
|
|
userId: userId,
|
|
|
editPermissions: false,
|
|
|
isDisabled: false,
|
|
|
@@ -342,13 +344,33 @@ export default {
|
|
|
this.filterData = this.jianCeGangWeiList.filter((i) => i.dept === val)
|
|
|
},
|
|
|
deep: true
|
|
|
+ },
|
|
|
+ 'ruleForm.wei_chu_li_biao_b': {
|
|
|
+ handler(val) {
|
|
|
+ if (this.enrolledSum) {
|
|
|
+ this.ruleForm.jiao_ban_biao_ben = this.ruleForm.wei_fa_bao_gao_ + val
|
|
|
+ }
|
|
|
+ },
|
|
|
+ deep: true
|
|
|
+ },
|
|
|
+ 'ruleForm.wei_fa_bao_gao_': {
|
|
|
+ handler(val) {
|
|
|
+ if (this.enrolledSum) {
|
|
|
+ this.ruleForm.jiao_ban_biao_ben =
|
|
|
+ this.ruleForm.wei_chu_li_biao_b + val
|
|
|
+ }
|
|
|
+ },
|
|
|
+ deep: true
|
|
|
}
|
|
|
},
|
|
|
|
|
|
mounted() {
|
|
|
this.loadSelectorData()
|
|
|
},
|
|
|
- created() {
|
|
|
+ async created() {
|
|
|
+ const res = await getSetting()
|
|
|
+ const enrolledSum = res.enrolledSum || false
|
|
|
+ this.enrolledSum = enrolledSum
|
|
|
if (this.parentData) {
|
|
|
if (this.parentData.id_) {
|
|
|
this.ruleForm.deng_ji_bu_men_ = this.parentData.deng_ji_bu_men_
|