| | |
| | | "devDependencies": { |
| | | "@vue/cli-plugin-babel": "4.4.6", |
| | | "@vue/cli-plugin-eslint": "4.4.6", |
| | | "@vue/cli-service": "4.4.6", |
| | | "@vue/cli-service": "^5.0.8", |
| | | "babel-eslint": "10.1.0", |
| | | "chalk": "4.1.0", |
| | | "connect": "3.6.6", |
| | |
| | | organization: state => state.user.organization, |
| | | introduction: state => state.user.introduction, |
| | | roles: state => state.user.roles, |
| | | rolesor: state => state.user.rolesor, |
| | | permissions: state => state.user.permissions, |
| | | permission_routes: state => state.permission.routes, |
| | | topbarRouters:state => state.permission.topbarRouters, |
| | |
| | | code: '', |
| | | msg: '', |
| | | roles: [], |
| | | rolesor: [], |
| | | permissions: [], |
| | | organization:[], |
| | | addressArray:[], |
| | |
| | | }, |
| | | SET_ROLES: (state, roles) => { |
| | | state.roles = roles |
| | | }, |
| | | SET_ROLESor: (state, rolesor) => { |
| | | state.rolesor = rolesor |
| | | }, |
| | | SET_addressArray: (state, addressArray) => { |
| | | state.addressArray = addressArray |
| | |
| | | commit('SET_ROLES', ['ROLE_DEFAULT']) |
| | | } |
| | | commit('SET_NAME', user.userName) |
| | | commit('SET_ROLESor', user.roles) |
| | | commit('SET_AVATAR', avatar) |
| | | resolve(res) |
| | | }).catch(error => { |
| | |
| | | getUserProfile().then(res => { |
| | | if ( |
| | | res.data.userName == "admin" || |
| | | res.data.userName == "001" || |
| | | res.data.userName == "053" || |
| | | res.data.userName == "047" |
| | | ) { |
| | | this.ismanager = true; |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import store from "@/store"; |
| | | |
| | | // 'sdaad2123UD2',1 'wsadadwsad',4 'sdadaddad',3 'ssaaddxs',2 |
| | | //这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等) |
| | | //例如:import 《组件名称》 from '《组件路径》'; |
| | |
| | | getUserProfile().then(res => { |
| | | this.userprofile = res.data; |
| | | this.standardlevel = res.data.standardlevel; |
| | | |
| | | if ( |
| | | this.userprofile.userName == "admin" || |
| | | this.userprofile.userName == "001" || |
| | | this.userprofile.userName == "047" |
| | | this.userprofile.userName == "053" || |
| | | this.userprofile.userName == "047"|| store.getters.rolesor[0].roleSort=='13' |
| | | ) { |
| | | this.ismanager = true; |
| | | } else { |
| | |
| | | this.standardlevel = res.data.standardlevel; |
| | | if ( |
| | | this.userprofile.userName == "admin" || |
| | | this.userprofile.userName == "001" || |
| | | this.userprofile.userName == "053" || |
| | | this.userprofile.userName == "047" |
| | | ) { |
| | | this.ismanager = true; |
| | |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- |
| | | <el-table-column label="申请金额" align="center" prop="amountrequested" width="120px" /> |
| | | <!-- |
| | | <el-table-column label="申请金额" align="center" prop="amountrequested" width="120px" /> |
| | | <el-table-column label="联系电话" align="center" prop="phone" width="150px" /> |
| | | <el-table-column label="工作单位" align="center" prop="unitname" width="220px" /> |
| | | <el-table-column label="工作单位" align="center" prop="unitname" width="220px" /> |
| | | --> |
| | | <el-table-column |
| | | label="操作" |
| | |
| | | </el-table> |
| | | </el-row> |
| | | <!-- |
| | | <el-row> |
| | | <el-row> |
| | | <el-col :span="7"> |
| | | <el-form-item label="预支金额" prop="prepaidamount"> |
| | | <el-input v-model="form.prepaidamount" placeholder="申请金额" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="7"> |
| | | <el-form-item label="OPO中心签字" prop="opochecker"> |
| | | <el-input v-model="form.opochecker" placeholder="opo中心签字" /> |
| | |
| | | :value="dict.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> |
| | | </el-row> |
| | | --> |
| | | <el-row> |
| | |
| | | } |
| | | this.fundDetails[i] = tempDetail; |
| | | /* |
| | | //计算个税 |
| | | //计算个税 |
| | | //if (isNaN(parseFloat(tempDetail.taxedamount))) |
| | | //获取参数 |
| | | this.taxParam.beneficiaryNo = tempDetail.beneficiaryno; |
| | |
| | | this.standardlevel = response.data.standardlevel; |
| | | if ( |
| | | this.defaultperson.createBy == "admin" || |
| | | this.defaultperson.createBy == "001" || |
| | | this.defaultperson.createBy == "053" || |
| | | this.defaultperson.createBy == "002" |
| | | ) { |
| | | this.ismanager = true; |
| | |
| | | this.standardlevel = res.data.standardlevel; |
| | | if ( |
| | | this.userprofile.userName == "admin" || |
| | | this.userprofile.userName == "001" || |
| | | this.userprofile.userName == "053" || |
| | | this.userprofile.userName == "047" |
| | | ) { |
| | | this.ismanager = true; |
| | |
| | | // this.defaultperson = response.data; |
| | | // this.standardlevel = response.data.standardlevel; |
| | | if ( |
| | | response.data.userName === "001" || |
| | | response.data.userName === "053" || |
| | | response.data.userName === "002" || |
| | | response.data.userName === "admin" |
| | | ) { |
| | |
| | | getUsermsg() { |
| | | getUserProfile().then(response => { |
| | | if ( |
| | | response.data.userName === "001" || |
| | | response.data.userName === "053" || |
| | | response.data.userName === "002" || |
| | | response.data.userName === "012" || |
| | | response.data.userName === "admin" |
| | |
| | | // this.defaultperson = response.data; |
| | | // this.standardlevel = response.data.standardlevel; |
| | | if ( |
| | | response.data.userName === "001" || |
| | | response.data.userName === "053" || |
| | | response.data.userName === "002" || |
| | | response.data.userName === "admin" |
| | | ) { |
| | |
| | | // this.defaultperson = response.data; |
| | | // this.standardlevel = response.data.standardlevel; |
| | | if ( |
| | | response.data.userName === "001" || |
| | | response.data.userName === "053" || |
| | | response.data.userName === "002" || |
| | | response.data.userName === "admin" |
| | | ) { |
| | |
| | | // this.defaultperson = response.data; |
| | | // this.standardlevel = response.data.standardlevel; |
| | | if ( |
| | | response.data.userName === "001" || |
| | | response.data.userName === "053" || |
| | | response.data.userName === "002" || |
| | | response.data.userName === "admin" |
| | | ) { |
| | |
| | | |
| | | this.queryParams.reportervalue = this.reportervalue; |
| | | console.log(JSON.stringify(this.queryParams)); |
| | | // this.queryParams.city='001' |
| | | // this.queryParams.city='053' |
| | | //console.log(JSON.stringify(this.queryParams)); |
| | | if (this.starttime != "") { |
| | | this.queryParams.starttime = this.starttime; |
| | |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="15"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="出差事由" prop="reason"> |
| | | <el-input v-model="form.reason" placeholder="出差事由" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="捐献者" prop="infoid"> |
| | | <el-form-item label="报销类别" prop="costtype"> |
| | | <el-select v-model="form.costtype" value-key="value" placeholder="请选择报销人员类别" @change="getTravelers"> |
| | | <el-option v-for="dict in dict.type.sys_travelexpensebelong" :key="dict.value" :label="dict.label" |
| | | :value="dict.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="捐献者" prop="infoid" v-show="form.costtype==4"> |
| | | <el-select |
| | | v-model="form.infoid" |
| | | @change="selectbaseinfo" |
| | | clearable |
| | | filterable |
| | | placeholder="请选择捐献者" |
| | | > |
| | |
| | | </el-row> |
| | | <el-row style="margin-top: 10px"> |
| | | <el-col :span="5"> |
| | | <el-form-item label="报销金额" prop="amountrequested"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="form.amountrequested" |
| | | placeholder="报销合计金额" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="7"> |
| | | <el-form-item label="大写金额" prop="bigstrmoney"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="form.bigstrmoney" |
| | | placeholder="报销大写金额" |
| | | /> |
| | | </el-form-item> </el-col |
| | | ><el-col :span="4"> |
| | | <el-form-item label="审核状态" prop="flowlevel"> |
| | | <el-select |
| | | v-model="form.recordstatus" |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="报销金额" prop="amountrequested"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="form.amountrequested" |
| | | placeholder="报销合计金额" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="大写金额" prop="bigstrmoney"> |
| | | <el-input |
| | | :disabled="true" |
| | | v-model="form.bigstrmoney" |
| | | placeholder="报销大写金额" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <!-- |
| | | <el-row> |
| | |
| | | <el-form-item label="出差事由" prop="reason"> |
| | | <el-input v-model="form.reason" placeholder="出差事由" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="报销分类" prop="costtype"> |
| | | <el-select v-model="form.costtype" value-key="value" placeholder="请选择出差人分类" @change="getTravelers"> |
| | | <el-option v-for="dict in dict.type.sys_travelexpensebelong" :key="dict.value" :label="dict.label" |
| | | :value="dict.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | | <el-form-item label="出差人" prop="travelers"> |
| | | <el-select v-model="form.travelers" clearable filterable allow-create ref="getReportname" |
| | |
| | | ], |
| | | deptmentname: [ |
| | | { required: true, message: "请输入所属业务组", trigger: "blur" } |
| | | ], |
| | | costtype: [ |
| | | { required: true, message: "请输入报销类别", trigger: "blur" } |
| | | ] |
| | | }, |
| | | //费用申请单form |
| | |
| | | ); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (this.form.id != null) { |
| | | console.log(this.form); |
| | | if (this.form.id != null) { |
| | | updateReimbursement(this.form); |
| | | // .then(res => { |
| | | //保存明细 |
| | |
| | | const rbDetails = [...this.rbDetails]; |
| | | const rbPayees = [...this.rbPayees]; |
| | | if (this.form.id != null) { |
| | | console.log(this.form); |
| | | updateReimbursement(this.form); |
| | | // .then(res => { |
| | | //保存明细 |