|
@@ -377,6 +377,13 @@
|
|
|
</el-select>
|
|
|
<selectCat :size="'medium'" :widthStr="'360'" v-if="user.userNameNeedTranslate == '1'" :subject="users" :subjectId="depForm.reportAuditUserid" :distinction="'5'" @selectCal="selectCal"></selectCat>
|
|
|
</el-form-item>
|
|
|
+ <!-- 是否推送到SAP -->
|
|
|
+ <el-form-item :label="'推送至SAP'" prop="pushToSap" v-if="user.companyId==3092">
|
|
|
+ <el-radio-group v-model="depForm.pushToSap">
|
|
|
+ <el-radio :label="1">是</el-radio>
|
|
|
+ <el-radio :label="0">否</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="departmentVisible = false">{{ $t('btn.cancel') }}</el-button>
|
|
@@ -996,6 +1003,7 @@ export default {
|
|
|
name: null,
|
|
|
parentId: null,
|
|
|
managerId: null,
|
|
|
+ pushToSap:'1',
|
|
|
},
|
|
|
depRules: {
|
|
|
name: [{ required: true, message: this.$t('pleaseenterthedepartmentname'), trigger: "blur" }],
|
|
@@ -3014,6 +3022,7 @@ export default {
|
|
|
parentId: that.depData.parentId,
|
|
|
managerId: that.depData.managerId,
|
|
|
reportAuditUserid: that.depData.reportAuditUserid,
|
|
|
+ pushToSap:that.depData.pushToSap
|
|
|
}
|
|
|
if(that.depData.otherManagerIds) {
|
|
|
if(Array.isArray(that.depData.otherManagerIds)) {
|
|
@@ -3089,6 +3098,9 @@ export default {
|
|
|
if (this.depForm.managerId) {
|
|
|
form.managerId = this.depForm.managerId;
|
|
|
}
|
|
|
+ if (this.depForm.pushToSap) {
|
|
|
+ form.pushToSap = this.depForm.pushToSap;
|
|
|
+ }
|
|
|
// console.log(this.depForm)
|
|
|
if (this.depForm.reportAuditUserid && this.user.timeType.needDeptAudit) {
|
|
|
form.reportAuditUserid = this.depForm.reportAuditUserid;
|