|
@@ -69,6 +69,10 @@ export default {
|
|
|
useDingDefUser: { // 是否使用最新一次申请人员
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
+ },
|
|
|
+ showDefUser:{
|
|
|
+ type: Boolean,
|
|
|
+ default: true
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
@@ -143,8 +147,10 @@ export default {
|
|
|
},
|
|
|
async getDefAudit(){
|
|
|
if(!this.useDingDefUser){
|
|
|
+ // 默认写死的人员
|
|
|
const data = await getDefaultCofig({code:'EXPENSE_ACCOUNT_DING_USER'}).then(res => res.data)
|
|
|
const ret = JSON.parse(data.value)
|
|
|
+ console.log(ret)
|
|
|
this.form.approvers = this.getFormatUser(ret.approvers)
|
|
|
this.form.ccList = this.getFormatUser(ret.ccList)
|
|
|
}else{
|
|
@@ -178,7 +184,9 @@ export default {
|
|
|
this.$emit('close')
|
|
|
this.resetForm()
|
|
|
}else{
|
|
|
- this.getDefAudit()
|
|
|
+ if(this.showDefUser){
|
|
|
+ this.getDefAudit()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|