|
@@ -349,6 +349,15 @@
|
|
@getValue="(value) => {inputForm.billingPeopleReal=value}"/>
|
|
@getValue="(value) => {inputForm.billingPeopleReal=value}"/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-form-item label="邮箱" prop="actualDrawerEmailAddress"
|
|
|
|
+ :rules="[
|
|
|
|
+ {required: true, message:'邮箱不能为空', trigger:'change'}
|
|
|
|
+ ]">
|
|
|
|
+ <el-input v-model="inputForm.actualDrawerEmailAddress" placeholder="请输入邮箱" show-word-limit style="width: 84%" @blur="checkEmail"></el-input>
|
|
|
|
+ <el-button type="primary" @click="openDia">邮箱</el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="对账人" prop="reconciliationPeople"
|
|
<el-form-item label="对账人" prop="reconciliationPeople"
|
|
:rules="[
|
|
:rules="[
|
|
@@ -622,6 +631,40 @@
|
|
<ProgramPageForm ref="programPageForm" @getProgram="getProgram"></ProgramPageForm>
|
|
<ProgramPageForm ref="programPageForm" @getProgram="getProgram"></ProgramPageForm>
|
|
<ContractForm ref="contractForm" @getContract="getContract"></ContractForm>
|
|
<ContractForm ref="contractForm" @getContract="getContract"></ContractForm>
|
|
<WorkClientForm ref="workClientForm" @getWorkClient="getWorkClient"></WorkClientForm>
|
|
<WorkClientForm ref="workClientForm" @getWorkClient="getWorkClient"></WorkClientForm>
|
|
|
|
+ <!-- 邮箱弹窗-->
|
|
|
|
+ <el-dialog v-model="dialogFormVisible" style="width: 50%" title="邮箱修改">
|
|
|
|
+ <el-form :model="form" label-width="160px">
|
|
|
|
+ <el-row :gutter="15">
|
|
|
|
+ <el-col :span="24">
|
|
|
|
+ <el-form-item label="姓名:" prop="userName"
|
|
|
|
+ :rules="[
|
|
|
|
+ ]">
|
|
|
|
+ <el-input :disabled="true" v-model="userName" style="width: 95%"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col >
|
|
|
|
+ <el-col :span="24">
|
|
|
|
+ <el-form-item label="邮箱:" prop="userEmail">
|
|
|
|
+ <el-input v-model="userEmail" style="width: 95%"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="24">
|
|
|
|
+ <el-form-item label="电话:" prop="userPhone"
|
|
|
|
+ :rules="[
|
|
|
|
+ ]">
|
|
|
|
+ <el-input :disabled="true" v-model="userPhone" style="width: 95%"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-form>
|
|
|
|
+ <template #footer>
|
|
|
|
+ <span class="dialog-footer">
|
|
|
|
+ <el-button @click="dialogFormVisible = false">关闭</el-button>
|
|
|
|
+ <el-button type="primary" @click="updateEmail">
|
|
|
|
+ 确认
|
|
|
|
+ </el-button>
|
|
|
|
+ </span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -634,6 +677,7 @@
|
|
import WorkClientForm from '@/views/program/registered/WorkClientForm'
|
|
import WorkClientForm from '@/views/program/registered/WorkClientForm'
|
|
import SelectUserTree from '@/views/utils/treeUserSelect'
|
|
import SelectUserTree from '@/views/utils/treeUserSelect'
|
|
import SelectTree from '@/components/treeSelect/treeSelect.vue'
|
|
import SelectTree from '@/components/treeSelect/treeSelect.vue'
|
|
|
|
+ import userService from "../../../api/sys/userService";
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
businessId: {
|
|
businessId: {
|
|
@@ -655,6 +699,7 @@
|
|
method: '',
|
|
method: '',
|
|
visible: false,
|
|
visible: false,
|
|
loading: false,
|
|
loading: false,
|
|
|
|
+ dialogFormVisible: false,
|
|
inputForm: {
|
|
inputForm: {
|
|
id: '',
|
|
id: '',
|
|
financeInvoiceBaseDTOList: [],
|
|
financeInvoiceBaseDTOList: [],
|
|
@@ -693,7 +738,8 @@
|
|
financeInvoiceDetailDTOList: [],
|
|
financeInvoiceDetailDTOList: [],
|
|
financeInvoiceReceivablesDTOList: [],
|
|
financeInvoiceReceivablesDTOList: [],
|
|
financeInvoiceInvalidDTO: {},
|
|
financeInvoiceInvalidDTO: {},
|
|
- isMultiple: ''
|
|
|
|
|
|
+ isMultiple: '',
|
|
|
|
+ actualDrawerEmailAddress: ''
|
|
},
|
|
},
|
|
programRow: '',
|
|
programRow: '',
|
|
bankList: [],
|
|
bankList: [],
|
|
@@ -703,7 +749,10 @@
|
|
yesNoFlag: [{label: '否', value: '0'}, {label: '是', value: '1'}],
|
|
yesNoFlag: [{label: '否', value: '0'}, {label: '是', value: '1'}],
|
|
baseKey: '',
|
|
baseKey: '',
|
|
detailKey: '',
|
|
detailKey: '',
|
|
- receivablesKey: ''
|
|
|
|
|
|
+ receivablesKey: '',
|
|
|
|
+ userName: this.$store.state.user.name,
|
|
|
|
+ userEmail: '',
|
|
|
|
+ userPhone: '',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
financeInvoiceService: null,
|
|
financeInvoiceService: null,
|
|
@@ -802,7 +851,8 @@
|
|
invoiceId: '',
|
|
invoiceId: '',
|
|
remarks: ''
|
|
remarks: ''
|
|
},
|
|
},
|
|
- isMultiple: ''
|
|
|
|
|
|
+ isMultiple: '',
|
|
|
|
+ actualDrawerEmailAddress: ''
|
|
}
|
|
}
|
|
// if (method === 'add') {
|
|
// if (method === 'add') {
|
|
// this.title = `新建发票`
|
|
// this.title = `新建发票`
|
|
@@ -1097,7 +1147,8 @@
|
|
financeInvoiceDetailDTOList: [],
|
|
financeInvoiceDetailDTOList: [],
|
|
financeInvoiceReceivablesDTOList: [],
|
|
financeInvoiceReceivablesDTOList: [],
|
|
financeInvoiceInvalidDTO: {},
|
|
financeInvoiceInvalidDTO: {},
|
|
- isMultiple: ''
|
|
|
|
|
|
+ isMultiple: '',
|
|
|
|
+ actualDrawerEmailAddress: ''
|
|
}
|
|
}
|
|
this.bankList = []
|
|
this.bankList = []
|
|
this.visible = false
|
|
this.visible = false
|
|
@@ -1471,7 +1522,30 @@
|
|
var result = this.inputForm.account.replace(reg, regStrs[i][1])
|
|
var result = this.inputForm.account.replace(reg, regStrs[i][1])
|
|
this.inputForm.account = result
|
|
this.inputForm.account = result
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ //点开邮箱
|
|
|
|
+ openDia() {
|
|
|
|
+ this.dialogFormVisible = true
|
|
|
|
+ },
|
|
|
|
+ //修改用户邮箱
|
|
|
|
+ updateEmail() {
|
|
|
|
+ let id = this.$store.state.user.id
|
|
|
|
+ userService.updateEmail({id: id, userEmail: this.userEmail}).then(
|
|
|
|
+ this.$message.success("修改成功"),
|
|
|
|
+ this.inputForm.actualDrawerEmailAddress=this.userEmail,
|
|
|
|
+ this.userEmail=this.userEmail,
|
|
|
|
+ this.dialogFormVisible = false
|
|
|
|
+ )
|
|
|
|
+ },
|
|
|
|
+ checkEmail() {
|
|
|
|
+ if (this.commonJS.isNotEmpty(this.inputForm.actualDrawerEmailAddress)){
|
|
|
|
+ if (!this.validateXG.isEmail(this.inputForm.actualDrawerEmailAddress)) {
|
|
|
|
+ this.$message.error("邮箱格式错误")
|
|
|
|
+ this.loading = false
|
|
|
|
+ throw new Error("邮箱格式错误")
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|