Commit 565b7d97 authored by 黄奎's avatar 黄奎

页面修改

parent 7b482e84
...@@ -49,10 +49,10 @@ module.exports = function (ctx) { ...@@ -49,10 +49,10 @@ module.exports = function (ctx) {
env: ctx.dev ? { env: ctx.dev ? {
//API: 'http://192.168.1.36:8300/api' //API: 'http://192.168.1.36:8300/api'
// API: 'https://localhost:5001/api', API: 'https://localhost:5001/api',
// API: 'http://192.168.20.24:8300/api', // API: 'http://192.168.20.24:8300/api',
// API: 'http://testeduapi.oytour.com/api', // API: 'http://testeduapi.oytour.com/api',
API: 'http://192.168.20.9:8085/api', // API: 'http://192.168.20.9:8085/api',
// API: 'http://192.168.20.17:8017/api', // API: 'http://192.168.20.17:8017/api',
// API: 'http://eduapi.oytour.com/api' // API: 'http://eduapi.oytour.com/api'
API_ZC:'http://192.168.20.9:8087/api', API_ZC:'http://192.168.20.9:8087/api',
......
...@@ -277,8 +277,8 @@ ...@@ -277,8 +277,8 @@
<tbody v-for="(nItem,nIndex) in DefaultPlanTimeList" :key="nIndex+10000"> <tbody v-for="(nItem,nIndex) in DefaultPlanTimeList" :key="nIndex+10000">
<tr v-for="(sItem,sIndex) in nItem.TimeList"> <tr v-for="(sItem,sIndex) in nItem.TimeList">
<td :rowspan="nItem.TimeList.length" v-if="sIndex==0"> <td :rowspan="nItem.TimeList.length" v-if="sIndex==0">
<q-select filled style="width:220px;" stack-label multiple v-model="nItem.DateList" ref="ClassStyle" :options="checkedDays" <q-select filled style="width:220px;" stack-label multiple v-model="nItem.DateList" ref="DateList" :options="checkedDays"
label="选择日期" :dense="false" class="col-6" emit-value map-options> :label="objOption.ClassStyle==1?'选择周几':'选择日期'" :dense="false" class="col-6" emit-value map-options clearable>
</q-select> </q-select>
<a @click="deletePlan(nIndex)" style="color:blue;cursor:pointer;">删除</a> <a @click="deletePlan(nIndex)" style="color:blue;cursor:pointer;">删除</a>
</td> </td>
...@@ -442,10 +442,7 @@ ...@@ -442,10 +442,7 @@
//选中日期/星期 //选中日期/星期
checkedDays: [], checkedDays: [],
//默认上课时间数组 //默认上课时间数组
DefaultPlanTimeList: [{ DefaultPlanTimeList: [ ],
DateList: [],
TimeList: [],
}],
} }
}, },
created() { created() {
......
...@@ -244,7 +244,8 @@ ...@@ -244,7 +244,8 @@
</div> </div>
<!-- <input type="button" class="normalBtn" @click="getMember()" <!-- <input type="button" class="normalBtn" @click="getMember()"
:value="$t('fnc.tjchengyuan')" /> --> :value="$t('fnc.tjchengyuan')" /> -->
<q-btn color="primary" size="11px" :label="$t('fnc.tjchengyuan')" @click="getMember()" style="marginRight:10px"/> <q-btn color="primary" size="11px" :label="$t('fnc.tjchengyuan')" @click="getMember()"
style="marginRight:10px" />
<div style="margin: 10px 0;" v-if="showMember.length>1"> <div style="margin: 10px 0;" v-if="showMember.length>1">
<el-radio-group v-model="AuditWay"> <el-radio-group v-model="AuditWay">
<el-radio :label="2">{{$t('fnc.huiquandetail')}}</el-radio> <el-radio :label="2">{{$t('fnc.huiquandetail')}}</el-radio>
...@@ -291,14 +292,18 @@ ...@@ -291,14 +292,18 @@
</div> </div>
</div> </div>
<div class="approval_page_layer_bottom"> <div class="approval_page_layer_bottom">
<q-btn text-color="primary" size="11px" :label="$t('pub.cancelBtn')" @click="closeLayer" style="marginRight:10px"/> <q-btn text-color="primary" size="11px" :label="$t('pub.cancelBtn')" @click="closeLayer"
<q-btn color="primary" size="11px" :label="$t('pub.sureBtn')" @click="addNode" style="marginRight:10px" v-if='addBtn'/> style="marginRight:10px" />
<q-btn color="primary" size="11px" :label="$t('fnc.xgjiedian')" @click="saveUpdateNode" style="marginRight:10px" v-if='!addBtn'/> <q-btn color="primary" size="11px" :label="$t('pub.sureBtn')" @click="addNode" style="marginRight:10px"
v-if='addBtn' />
<q-btn color="primary" size="11px" :label="$t('fnc.xgjiedian')" @click="saveUpdateNode"
style="marginRight:10px" v-if='!addBtn' />
</div> </div>
</div> </div>
</div> </div>
<div v-loading="loading"> <div v-loading="loading">
<q-btn color="primary" size="11px" :label="$t('pub.returnBack')" @click="goUrl('FProcessManagement')" style="marginLeft:10px" class="approval_back_btn"/> <q-btn color="primary" size="11px" :label="$t('pub.returnBack')" @click="goUrl('FProcessManagement')"
 style="marginLeft:10px" class="approval_back_btn" />
<el-form class="_add_box clearfix" :model="addMsg" ref="addMsg" :rules="rules" label-width="100px"> <el-form class="_add_box clearfix" :model="addMsg" ref="addMsg" :rules="rules" label-width="100px">
<div class="approval_page_title">{{$t('fnc.jcxinxi')}}</div> <div class="approval_page_title">{{$t('fnc.jcxinxi')}}</div>
<el-form-item :label="$t('fnc.lcmingcheng')" prop="Name"> <el-form-item :label="$t('fnc.lcmingcheng')" prop="Name">
...@@ -349,16 +354,14 @@ ...@@ -349,16 +354,14 @@
<el-form-item v-show="addMsg.IsShow==2" label="可显示部门"> <el-form-item v-show="addMsg.IsShow==2" label="可显示部门">
<el-select filterable multiple v-model='addMsg.ShowDepartmentList' class="w200" <el-select filterable multiple v-model='addMsg.ShowDepartmentList' class="w200"
style="max-height:100px;overflow:hidden" size="small"> style="max-height:100px;overflow:hidden" size="small">
<el-option v-for='item in DepartmentList' :label='item.DeptName' :value='item.DeptId' <el-option v-for='item in DepartmentList' :label='item.DeptName' :value='item.DeptId' :key='item.DeptId'>
:key='item.DeptId'>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item v-show="addMsg.IsShow==2" label="可显示人"> <el-form-item v-show="addMsg.IsShow==2" label="可显示人">
<el-select filterable multiple v-model='addMsg.ShowEmployeeList' class="w200" <el-select filterable multiple v-model='addMsg.ShowEmployeeList' class="w200"
style="max-height:100px;overflow:hidden" size="small"> style="max-height:100px;overflow:hidden" size="small">
<el-option v-for='item in EmployeeList' :label='item.EmployeeName' :value='item.Id' <el-option v-for='item in EmployeeList' :label='item.EmployeeName' :value='item.Id' :key='item.Id'>
:key='item.Id'>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -391,8 +394,8 @@ ...@@ -391,8 +394,8 @@
<div class="approval_person_content"> <div class="approval_person_content">
<span class="approval_span_type">{{$t('fnc.mrspliucheng')}}</span> <span class="approval_span_type">{{$t('fnc.mrspliucheng')}}</span>
<span style="float:right"> <span style="float:right">
<el-button @click="Auditshow=true" style="padding:4px" type="primary" icon="el-icon-edit" <el-button @click="Auditshow=true" style="padding:4px" type="primary" icon="el-icon-edit" circle>
circle></el-button> </el-button>
</span> </span>
<div class="approval_person_list fl"> <div class="approval_person_list fl">
<span class="approval_person_list_tit">{{$t('fnc.mrspiren')}}</span> <span class="approval_person_list_tit">{{$t('fnc.mrspiren')}}</span>
...@@ -410,7 +413,7 @@ ...@@ -410,7 +413,7 @@
<i class="iconfont icon-jiantouyou"></i> <i class="iconfont icon-jiantouyou"></i>
</div> </div>
<!-- <input type="button" class="hollowFixedBtn" @click="addAppPerson" :value="$t('fnc.tianjia')" /> --> <!-- <input type="button" class="hollowFixedBtn" @click="addAppPerson" :value="$t('fnc.tianjia')" /> -->
<q-btn color="primary" size="11px" :label="$t('fnc.tianjia')" @click="addAppPerson"/> <q-btn color="primary" size="11px" :label="$t('fnc.tianjia')" @click="addAppPerson" />
</div> </div>
</div> </div>
<div class="approval_person_list fl"> <div class="approval_person_list fl">
...@@ -426,7 +429,7 @@ ...@@ -426,7 +429,7 @@
<i class="iconfont icon-jiantouyou"></i> <i class="iconfont icon-jiantouyou"></i>
</div> </div>
<!-- <input type="button" class="hollowFixedBtn" @click="addAuditUser" :value="$t('fnc.tianjia')" /> --> <!-- <input type="button" class="hollowFixedBtn" @click="addAuditUser" :value="$t('fnc.tianjia')" /> -->
<q-btn color="primary" size="11px" :label="$t('fnc.tianjia')" @click="addAuditUser"/> <q-btn color="primary" size="11px" :label="$t('fnc.tianjia')" @click="addAuditUser" />
</div> </div>
</div> </div>
</div> </div>
...@@ -434,9 +437,9 @@ ...@@ -434,9 +437,9 @@
</el-form> </el-form>
<div style="margin: 20px 0;"> <div style="margin: 20px 0;">
<!-- <input type="button" :value="$t('pub.cancelBtn')" class="hollowFixedBtn" @click="goUrl('FProcessManagement')" /> --> <!-- <input type="button" :value="$t('pub.cancelBtn')" class="hollowFixedBtn" @click="goUrl('FProcessManagement')" /> -->
<q-btn text-color="primary" size="11px" :label="$t('pub.cancelBtn')" @click="goUrl('FProcessManagement')" style="margin:10px"/> <q-btn text-color="primary" size="11px" :label="$t('pub.cancelBtn')" @click="goUrl('FProcessManagement')" style="margin:10px" />
<!-- <input type="button" :value="$t('pub.saveBtn')" class="normalBtn" @click="saveApproval" /> --> <!-- <input type="button" :value="$t('pub.saveBtn')" class="normalBtn" @click="saveApproval" /> -->
<q-btn color="primary" size="11px" :label="$t('pub.saveBtn')" @click="saveApproval"/> <q-btn color="primary" size="11px" :label="$t('pub.saveBtn')" @click="saveApproval" />
</div> </div>
</div> </div>
<el-dialog custom-class='w700' :title="dialogTitle" :visible.sync="outerVisible" center> <el-dialog custom-class='w700' :title="dialogTitle" :visible.sync="outerVisible" center>
...@@ -446,7 +449,8 @@ ...@@ -446,7 +449,8 @@
</el-input> </el-input>
</p> </p>
<el-tree class='ApprovalProcessBg' :data="memberList" show-checkbox :filter-node-method="filterNode" ref="tree" <el-tree class='ApprovalProcessBg' :data="memberList" show-checkbox :filter-node-method="filterNode" ref="tree"
:props="defaultProps" :render-after-expand="false" node-key="Id" :check-on-click-node="true" @check-change="handleNodeChange"> :props="defaultProps" :render-after-expand="false" node-key="Id" :check-on-click-node="true"
@check-change="handleNodeChange">
</el-tree> </el-tree>
</div> </div>
<div class="fl"> <div class="fl">
...@@ -469,8 +473,8 @@ ...@@ -469,8 +473,8 @@
</el-input> </el-input>
</p> </p>
<el-tree class='ApprovalProcessBg' :data="roleList" ref="treeRole" show-checkbox <el-tree class='ApprovalProcessBg' :data="roleList" ref="treeRole" show-checkbox
:filter-node-method="filterNode1" :props="defaultProps1" :check-on-click-node="true" :check-strictly="true" @check-change="checkedRole" :filter-node-method="filterNode1" :props="defaultProps1" :check-on-click-node="true" :check-strictly="true"
:default-checked-keys="defaultCheckedArr" node-key="PostId"> @check-change="checkedRole" :default-checked-keys="defaultCheckedArr" node-key="PostId">
</el-tree> </el-tree>
</div> </div>
<div class="fl"> <div class="fl">
...@@ -508,9 +512,9 @@ ...@@ -508,9 +512,9 @@
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<!-- <button class="hollowFixedBtn" @click="outerVisible2 = false">{{$t('pub.cancelBtn')}}</button> &nbsp; --> <!-- <button class="hollowFixedBtn" @click="outerVisible2 = false">{{$t('pub.cancelBtn')}}</button> &nbsp; -->
<q-btn text-color="primary" size="11px" :label="$t('pub.cancelBtn')" @click="outerVisible2 = false" style="marginRight:10px"/> <q-btn text-color="primary" size="11px" :label="$t('pub.cancelBtn')" @click="outerVisible2=false" style="marginRight:10px" />
<!-- <button class="normalBtn" type="primary" @click="saveAuditUser">{{$t('pub.sureBtn')}}</button> --> <!-- <button class="normalBtn" type="primary" @click="saveAuditUser">{{$t('pub.sureBtn')}}</button> -->
<q-btn color="primary" size="11px" :label="$t('pub.sureBtn')" @click="saveAuditUser"/> <q-btn color="primary" size="11px" :label="$t('pub.sureBtn')" @click="saveAuditUser" />
</div> </div>
</el-dialog> </el-dialog>
<el-dialog title="修改审批人" :visible.sync="Auditshow" width="400px"> <el-dialog title="修改审批人" :visible.sync="Auditshow" width="400px">
...@@ -612,46 +616,45 @@ ...@@ -612,46 +616,45 @@
CompanyList: [], CompanyList: [],
CostTypeList: [], CostTypeList: [],
myAuditList: [], myAuditList: [],
levelList: [ levelList: [{
{ level: 1,
level:1, name: '第1级主管'
name:'第1级主管'
}, },
{ {
level:2, level: 2,
name:'第2级主管' name: '第2级主管'
}, },
{ {
level:3, level: 3,
name:'第3级主管' name: '第3级主管'
}, },
{ {
level:4, level: 4,
name:'第4级主管' name: '第4级主管'
}, },
{ {
level:5, level: 5,
name:'第5级主管' name: '第5级主管'
}, },
{ {
level:6, level: 6,
name:'第6级主管' name: '第6级主管'
}, },
{ {
level:7, level: 7,
name:'第7级主管' name: '第7级主管'
}, },
{ {
level:8, level: 8,
name:'第8级主管' name: '第8级主管'
}, },
{ {
level:9, level: 9,
name:'第9级主管' name: '第9级主管'
}, },
{ {
level:10, level: 10,
name:'第10级主管' name: '第10级主管'
}, },
], ],
showMember: [], showMember: [],
...@@ -736,7 +739,7 @@ ...@@ -736,7 +739,7 @@
lab: this.$t('fnc.zjinchi') lab: this.$t('fnc.zjinchi')
}], }],
isIndeterminate: true, isIndeterminate: true,
schoolMsg:{ schoolMsg: {
pageIndex: 1, pageIndex: 1,
pageSize: 99999, pageSize: 99999,
rowsPerPage: 12, rowsPerPage: 12,
...@@ -744,7 +747,7 @@ ...@@ -744,7 +747,7 @@
Status: '-1' Status: '-1'
}, },
//岗位msg //岗位msg
jobMsg:{ jobMsg: {
pageIndex: 1, pageIndex: 1,
pageSize: 12, pageSize: 12,
rowsPerPage: 12, rowsPerPage: 12,
...@@ -801,7 +804,7 @@ ...@@ -801,7 +804,7 @@
methods: { methods: {
getSchool() { getSchool() {
getSchoolPage(this.schoolMsg).then(res => { getSchoolPage(this.schoolMsg).then(res => {
this.CompanyList=res.Data.PageData; this.CompanyList = res.Data.PageData;
}).catch(() => { }).catch(() => {
}) })
...@@ -820,7 +823,7 @@ ...@@ -820,7 +823,7 @@
}, },
//根据多公司获取部门 //根据多公司获取部门
getDepartment() { getDepartment() {
let msg={ let msg = {
pageIndex: 1, pageIndex: 1,
pageSize: 999, pageSize: 999,
rowsPerPage: 12, rowsPerPage: 12,
...@@ -832,9 +835,8 @@ ...@@ -832,9 +835,8 @@
ParentId: 0, ParentId: 0,
} }
getDeptPage(msg).then(res => { getDeptPage(msg).then(res => {
this.DepartmentList=res.Data.PageData; this.DepartmentList = res.Data.PageData;
}).catch(() => { }).catch(() => {})
})
}, },
RadioShow(val) { RadioShow(val) {
if (val == 1) { if (val == 1) {
...@@ -845,7 +847,7 @@ ...@@ -845,7 +847,7 @@
}, },
getEmployeeList() { getEmployeeList() {
queryEmployee({}).then(res => { queryEmployee({}).then(res => {
if(res.Code==1){ if (res.Code == 1) {
this.EmployeeList = res.Data; this.EmployeeList = res.Data;
} }
}).catch(() => { }).catch(() => {
...@@ -1025,7 +1027,7 @@ ...@@ -1025,7 +1027,7 @@
} else { } else {
this.addMsg.list = this.accListMsg this.addMsg.list = this.accListMsg
} }
this.addMsg.FinancialInstitutions=[]; this.addMsg.FinancialInstitutions = [];
if (this.BranchIdS.length != 0) { //适用公司 if (this.BranchIdS.length != 0) { //适用公司
this.BranchIdS.forEach(x => { this.BranchIdS.forEach(x => {
if (x == -1) { if (x == -1) {
...@@ -1045,9 +1047,9 @@ ...@@ -1045,9 +1047,9 @@
} }
FinancialInstitutions.Type = 1; FinancialInstitutions.Type = 1;
FinancialInstitutions.SuitableObjectId = x; FinancialInstitutions.SuitableObjectId = x;
this.CompanyList.forEach(y=>{ this.CompanyList.forEach(y => {
if(x==y.SId){ if (x == y.SId) {
FinancialInstitutions.SuitableObjectIdName=y.SName FinancialInstitutions.SuitableObjectIdName = y.SName
} }
}) })
this.addMsg.FinancialInstitutions.push(FinancialInstitutions) this.addMsg.FinancialInstitutions.push(FinancialInstitutions)
...@@ -1143,17 +1145,17 @@ ...@@ -1143,17 +1145,17 @@
}, err => {}) }, err => {})
}, },
deleteUser(index) { // 删除人员 deleteUser(index) { // 删除人员
var arr=[]; var arr = [];
this.myAuditUserList1.splice(index,1); this.myAuditUserList1.splice(index, 1);
this.myAuditUserList1.forEach(x=>{ this.myAuditUserList1.forEach(x => {
arr.push(x.EmployeeId); arr.push(x.EmployeeId);
}) })
if(this.$refs.treeUser){ if (this.$refs.treeUser) {
this.$refs.treeUser.setCheckedKeys(arr); this.$refs.treeUser.setCheckedKeys(arr);
} }
}, },
deleteUser2(index){ deleteUser2(index) {
this.myAuditUserList.splice(index,1); this.myAuditUserList.splice(index, 1);
}, },
saveAuditUser() { // 抄送人保存 saveAuditUser() { // 抄送人保存
if (this.myAuditUserList1.length <= 10) { if (this.myAuditUserList1.length <= 10) {
...@@ -1168,12 +1170,12 @@ ...@@ -1168,12 +1170,12 @@
handleNodeChange1(data, checked) { //抄送人操作选中 handleNodeChange1(data, checked) { //抄送人操作选中
data.IsCheck = checked; data.IsCheck = checked;
let res = this.$refs.treeUser.getCheckedNodes(true, true); let res = this.$refs.treeUser.getCheckedNodes(true, true);
this.myAuditUserList1=[]; this.myAuditUserList1 = [];
res.forEach((x,index)=>{ res.forEach((x, index) => {
var obj={ var obj = {
sort:index+1, sort: index + 1,
emName:x.EmployeeName, emName: x.EmployeeName,
EmployeeId:x.Id EmployeeId: x.Id
} }
this.myAuditUserList1.push(obj) this.myAuditUserList1.push(obj)
}) })
...@@ -1191,18 +1193,18 @@ ...@@ -1191,18 +1193,18 @@
// }, err => {}) // }, err => {})
this.dialogTitle = this.$t('fnc.xzrenyuan'); this.dialogTitle = this.$t('fnc.xzrenyuan');
this.outerVisible2 = true; this.outerVisible2 = true;
var arr=[]; var arr = [];
if(this.myAuditUserList1.length>0){ if (this.myAuditUserList1.length > 0) {
this.myAuditUserList1.forEach(x=>{ this.myAuditUserList1.forEach(x => {
arr.push(x.EmployeeId); arr.push(x.EmployeeId);
}) })
if(this.$refs.treeUser){ if (this.$refs.treeUser) {
this.$refs.treeUser.setCheckedKeys(arr); this.$refs.treeUser.setCheckedKeys(arr);
} }
} }
queryEmployee({}).then(res => { queryEmployee({}).then(res => {
if(res.Code==1){ if (res.Code == 1) {
this.userList=res.Data; this.userList = res.Data;
} }
}).catch(() => { }).catch(() => {
...@@ -1210,32 +1212,32 @@ ...@@ -1210,32 +1212,32 @@
}, },
checkedRole(data, checked) { // 岗位选择+ checkedRole(data, checked) { // 岗位选择+
if(checked){ if (checked) {
this.$refs.treeRole.setCheckedKeys([data.PostId]); this.$refs.treeRole.setCheckedKeys([data.PostId]);
} }
let res = this.$refs.treeRole.getCheckedNodes(true, true); let res = this.$refs.treeRole.getCheckedNodes(true, true);
this.showRole=[]; this.showRole = [];
res.forEach((x,index)=>{ res.forEach((x, index) => {
var obj={ var obj = {
DepartmentName:x.PostName, DepartmentName: x.PostName,
Id:x.PostId Id: x.PostId
} }
this.showRole.push(obj) this.showRole.push(obj)
}) })
}, },
deleteRole(index) { // 删除已选岗位 deleteRole(index) { // 删除已选岗位
this.showRole.splice(index,1); this.showRole.splice(index, 1);
var arr=[]; var arr = [];
this.showRole.forEach(x=>{ this.showRole.forEach(x => {
arr.push(x.Id); arr.push(x.Id);
}) })
if(this.$refs.treeRole){ if (this.$refs.treeRole) {
this.$refs.treeRole.setCheckedKeys(arr); this.$refs.treeRole.setCheckedKeys(arr);
} }
}, },
getRole() { // 选择岗位 getRole() { // 选择岗位
getPostPage(this.jobMsg).then(res => { getPostPage(this.jobMsg).then(res => {
if(res.Code==1){ if (res.Code == 1) {
this.roleList = res.Data.PageData; this.roleList = res.Data.PageData;
} }
}).catch(() => { }).catch(() => {
...@@ -1253,7 +1255,7 @@ ...@@ -1253,7 +1255,7 @@
AuditList.AuditWay = 1; AuditList.AuditWay = 1;
AuditList.AuditUserList = [{ AuditList.AuditUserList = [{
EmployeeId: '', EmployeeId: '',
EmployeeIdName:'', EmployeeIdName: '',
Sort: '' Sort: ''
}]; }];
AuditList.Sort = this.myAuditList.length + 1; AuditList.Sort = this.myAuditList.length + 1;
...@@ -1438,14 +1440,14 @@ ...@@ -1438,14 +1440,14 @@
// this.showMember = []; // this.showMember = [];
this.memberSetCheckedKeys = []; this.memberSetCheckedKeys = [];
this.AuditWay = obj.AuditWay; this.AuditWay = obj.AuditWay;
var arr=[]; var arr = [];
obj.AuditUserList.forEach((item, index) => { obj.AuditUserList.forEach((item, index) => {
this.showMember.push({ this.showMember.push({
EmployeeName: item.EmName, EmployeeName: item.EmName,
Id: item.EmployeeId Id: item.EmployeeId
}) })
arr.push(item.EmployeeId); arr.push(item.EmployeeId);
if(this.$refs.tree){ if (this.$refs.tree) {
this.$refs.tree.setCheckedKeys(arr); this.$refs.tree.setCheckedKeys(arr);
} }
}) })
...@@ -1478,22 +1480,22 @@ ...@@ -1478,22 +1480,22 @@
handleNodeChange(data, checked) { handleNodeChange(data, checked) {
data.IsCheck = checked; data.IsCheck = checked;
let res = this.$refs.tree.getCheckedNodes(true, true); let res = this.$refs.tree.getCheckedNodes(true, true);
this.showMember=[]; this.showMember = [];
res.forEach(x=>{ res.forEach(x => {
var obj={ var obj = {
EmployeeName:x.EmployeeName, EmployeeName: x.EmployeeName,
Id:x.Id Id: x.Id
} }
this.showMember.push(obj) this.showMember.push(obj)
}) })
}, },
mySetCheckedKeys(id,index) { mySetCheckedKeys(id, index) {
var arr=[]; var arr = [];
this.showMember.splice(index,1); this.showMember.splice(index, 1);
this.showMember.forEach(x=>{ this.showMember.forEach(x => {
arr.push(x.Id); arr.push(x.Id);
}) })
if(this.$refs.tree){ if (this.$refs.tree) {
this.$refs.tree.setCheckedKeys(arr); this.$refs.tree.setCheckedKeys(arr);
} }
}, },
...@@ -1501,17 +1503,17 @@ ...@@ -1501,17 +1503,17 @@
this.outerVisible = true; this.outerVisible = true;
this.dialogTitle = this.$t('fnc.xzrenyuan'); this.dialogTitle = this.$t('fnc.xzrenyuan');
queryEmployee({}).then(res => { queryEmployee({}).then(res => {
if(res.Code==1){ if (res.Code == 1) {
this.memberList = res.Data; this.memberList = res.Data;
} }
}).catch(() => { }).catch(() => {
}) })
var arr=[]; var arr = [];
this.showMember.forEach(x=>{ this.showMember.forEach(x => {
arr.push(x.Id); arr.push(x.Id);
}) })
if(this.$refs.tree){ if (this.$refs.tree) {
this.$refs.tree.setCheckedKeys(arr); this.$refs.tree.setCheckedKeys(arr);
} }
}, },
...@@ -1703,7 +1705,6 @@ ...@@ -1703,7 +1705,6 @@
}, },
getMaxDepartmentTierList() { // 获取直接主管层级 getMaxDepartmentTierList() { // 获取直接主管层级
this.apipost('admin_get_GetMaxDepartmentTier', {}, res => { this.apipost('admin_get_GetMaxDepartmentTier', {}, res => {
console.log(res,'数据');
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
let newList = []; let newList = [];
...@@ -1743,7 +1744,7 @@ ...@@ -1743,7 +1744,7 @@
}, },
goUrl(path) { goUrl(path) {
this.$router.push({ this.$router.push({
path: '/financial/'+path, path: '/financial/' + path,
query: { query: {
"type": this.addMsg.TemplateType, "type": this.addMsg.TemplateType,
'Branch_Id': this.$route.query.Branch_Id 'Branch_Id': this.$route.query.Branch_Id
......
...@@ -109,27 +109,29 @@ ...@@ -109,27 +109,29 @@
line-height: 25px; line-height: 25px;
background-color: #004d40; background-color: #004d40;
} }
.courseOffer .el-range-editor.el-input__inner {
.courseOffer .el-range-editor.el-input__inner {
background-color: transparent; background-color: transparent;
} }
.courseOffer .el-range-editor .el-range-input {
.courseOffer .el-range-editor .el-range-input {
background: transparent; background: transparent;
} }
</style> </style>
<template> <template>
<div class="page-body courseOffer"> <div class="page-body courseOffer">
<div class="page-search row items-center"> <div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3"> <div class="col-3">
<q-select filled use-input input-debounce="0" option-value="id" @input="resetSearch" <q-select filled use-input input-debounce="0" option-value="id" @input="resetSearch" option-label="name"
option-label="name" v-model="msg.AuditStatus" :options="AuditStatusOptions" label="审核状态" :dense="false" v-model="msg.AuditStatus" :options="AuditStatusOptions" label="审核状态" :dense="false" emit-value map-options>
emit-value map-options>
</q-select> </q-select>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select filled use-input input-debounce="0" option-value="id" @input="resetSearch" <q-select filled use-input input-debounce="0" option-value="id" @input="resetSearch" option-label="name"
option-label="name" v-model="msg.StockOutStatus" :options="StockOutStatusOptions" label="出库状态" :dense="false" v-model="msg.StockOutStatus" :options="StockOutStatusOptions" label="出库状态" :dense="false" emit-value
emit-value map-options> map-options>
</q-select> </q-select>
</div> </div>
<div class="col-3"> <div class="col-3">
...@@ -141,9 +143,8 @@ ...@@ -141,9 +143,8 @@
label="耗材名称" @clear="resetSearch" maxlength="20" /> label="耗材名称" @clear="resetSearch" maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select filled use-input input-debounce="0" option-value="id" @input="resetSearch" <q-select filled use-input input-debounce="0" option-value="id" @input="resetSearch" option-label="name"
option-label="name" v-model="msg.Type" :options="TypeOptions" label="类型" :dense="false" v-model="msg.Type" :options="TypeOptions" label="类型" :dense="false" emit-value map-options>
emit-value map-options >
</q-select> </q-select>
</div> </div>
<div class="col-3"> <div class="col-3">
...@@ -158,8 +159,8 @@ ...@@ -158,8 +159,8 @@
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class=" sticky-right-column-table sticky-column-table" <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
:data="data" :columns="columns" row-key="name"> class=" sticky-right-column-table sticky-column-table" :data="data" :columns="columns" row-key="name">
<template v-slot:top="props"> <template v-slot:top="props">
<div class="col-2 q-table__title">出库管理</div> <div class="col-2 q-table__title">出库管理</div>
<q-space /> <q-space />
...@@ -195,7 +196,8 @@ ...@@ -195,7 +196,8 @@
</template> </template>
<template v-slot:body-cell-FinanceIdList="props"> <template v-slot:body-cell-FinanceIdList="props">
<q-td :props="props"> <q-td :props="props">
<div v-for="item in props.row.FinanceIdList" :key="item.Id" class="td_height" @click="gocaiwu(item)" style="text-decoration:underline;color:#2961FE;cursor:pointer;"> <div v-for="item in props.row.FinanceIdList" :key="item.Id" class="td_height" @click="gocaiwu(item)"
style="text-decoration:underline;color:#2961FE;cursor:pointer;">
{{item}} {{item}}
</div> </div>
</q-td> </q-td>
...@@ -240,7 +242,8 @@ ...@@ -240,7 +242,8 @@
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<q-btn flat size="xs" icon="edit" color="accent" @click="goDetail(props.row)">详情</q-btn> <q-btn flat size="xs" icon="edit" color="accent" @click="goDetail(props.row)">详情</q-btn>
<q-btn flat size="xs" icon="edit" color="accent" style="color:#f00" @click="quxiao(props.row)" v-if="props.row.CreateBy==loginId&&props.row.AuditStatus!=2">取消</q-btn> <q-btn flat size="xs" icon="edit" color="accent" style="color:#f00" @click="quxiao(props.row)"
v-if="props.row.CreateBy==loginId&&props.row.AuditStatus!=2">取消</q-btn>
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
...@@ -250,13 +253,16 @@ ...@@ -250,13 +253,16 @@
</q-table> </q-table>
</div> </div>
<q-dialog v-model="showaddStockOut" persistent> <q-dialog v-model="showaddStockOut" persistent>
<SuppliesStockOutFrom @success="successSave"/> <SuppliesStockOutFrom @success="successSave" />
</q-dialog> </q-dialog>
</div> </div>
</template> </template>
<script> <script>
import SuppliesStockOutFrom from '../../components/sale/addSuppliesStockOut-from' import SuppliesStockOutFrom from '../../components/sale/addSuppliesStockOut-from'
import {GetSuppliesStockOutApplyForPageList,SetSuppliesStockOutApplyForState} from '../../api/sale/StockOutApplyFor' import {
GetSuppliesStockOutApplyForPageList,
SetSuppliesStockOutApplyForState
} from '../../api/sale/StockOutApplyFor'
export default { export default {
meta: { meta: {
title: "出库管理" title: "出库管理"
...@@ -266,43 +272,51 @@ ...@@ -266,43 +272,51 @@
}, },
data() { data() {
return { return {
AuditStatusOptions:[ AuditStatusOptions: [{
{ id: 0,
id:0,name:"不限" name: "不限"
}, },
{ {
id:1,name:"审核中" id: 1,
name: "审核中"
}, },
{ {
id:2,name:"通过" id: 2,
name: "通过"
}, },
{ {
id:3,name:"驳回" id: 3,
name: "驳回"
} }
], ],
StockOutStatusOptions:[ StockOutStatusOptions: [{
{ id: 0,
id:0,name:"不限" name: "不限"
}, },
{ {
id:1,name:"未出库" id: 1,
name: "未出库"
}, },
{ {
id:2,name:"部分出库" id: 2,
name: "部分出库"
}, },
{ {
id:3,name:"已出库" id: 3,
name: "已出库"
} }
], ],
TypeOptions:[ TypeOptions: [{
{ id: 0,
id:0,name:"不限" name: "不限"
}, },
{ {
id:1,name:"主营业务" id: 1,
name: "主营业务"
}, },
{ {
id:2,name:"其他业务" id: 2,
name: "其他业务"
}, },
], ],
dateList: [], //创建时间 dateList: [], //创建时间
...@@ -311,18 +325,17 @@ ...@@ -311,18 +325,17 @@
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
AuditStatus:0, AuditStatus: 0,
StockOutStatus:0, StockOutStatus: 0,
ClassName:"", ClassName: "",
SuppliesName:"", SuppliesName: "",
StartTime:"", StartTime: "",
EndTime:"", EndTime: "",
Type:0 Type: 0
}, },
pageCount: 0, pageCount: 0,
offerObj: {}, //报价单信息 offerObj: {}, //报价单信息
columns: [ columns: [{
{
name: "AuditStatus", name: "AuditStatus",
label: "审核状态", label: "审核状态",
field: "AuditStatus", field: "AuditStatus",
...@@ -389,13 +402,13 @@ ...@@ -389,13 +402,13 @@
name: "CreateByName", name: "CreateByName",
label: "申请人", label: "申请人",
align: "left", align: "left",
field:"CreateByName" field: "CreateByName"
}, },
{ {
name: "CreateDate", name: "CreateDate",
label: "申请时间", label: "申请时间",
align: "left", align: "left",
field:"CreateDate" field: "CreateDate"
}, },
{ {
name: 'optioned', name: 'optioned',
...@@ -403,15 +416,15 @@ ...@@ -403,15 +416,15 @@
align: "left", align: "left",
} }
], ],
showaddStockOut:false, showaddStockOut: false,
loginId:0, loginId: 0,
} }
}, },
mounted() { mounted() {
this.getSuppliesStockOutApplyForPageList(); this.getSuppliesStockOutApplyForPageList();
this.loginId= JSON.parse(localStorage.getItem('loginUserInfo')).data.Id this.loginId = JSON.parse(localStorage.getItem('loginUserInfo')).data.Id
}, },
methods: { methods: {
//跳转详情 //跳转详情
...@@ -460,14 +473,14 @@ ...@@ -460,14 +473,14 @@
}) })
}, },
// 显示新增出库单 // 显示新增出库单
showAdd(){ showAdd() {
this.showaddStockOut=true this.showaddStockOut = true
}, },
closePop(){ closePop() {
this.showaddStockOut=false this.showaddStockOut = false
}, },
//取消 //取消
quxiao(row){ quxiao(row) {
this.$q.dialog({ this.$q.dialog({
title: '提示信息', title: '提示信息',
message: '是否确定取消?', message: '是否确定取消?',
...@@ -476,45 +489,44 @@ ...@@ -476,45 +489,44 @@
ok: "确定", ok: "确定",
cancel: "取消", cancel: "取消",
}).onOk(() => { }).onOk(() => {
let obj={ let obj = {
ApplyForId:row.Id, ApplyForId: row.Id,
Type:1, Type: 1,
Remark:"" Remark: ""
} }
SetSuppliesStockOutApplyForState(obj).then(res=>{ SetSuppliesStockOutApplyForState(obj).then(res => {
if(res.data.resultCode===1){ if (res.data.resultCode === 1) {
this.Success(res.data.message) this.Success(res.data.message)
this.getSuppliesStockOutApplyForPageList(); this.getSuppliesStockOutApplyForPageList();
}else{ } else {
this.Error(res.data.message) this.Error(res.data.message)
} }
}) })
}).onCancel(() => { }).onCancel(() => {
}); });
}, },
gocaiwu(item){ gocaiwu(item) {
// console.log(item) let tempStr = '/financial/financalDocument/FinancialDocumentsDetail?id=' + item;
let tempStr = '/financial/financalDocument/FinancialDocumentsDetail?id='+item;
this.$router.push({ this.$router.push({
path: tempStr path: tempStr
}); });
}, },
successSave(){ successSave() {
this.getSuppliesStockOutApplyForPageList() this.getSuppliesStockOutApplyForPageList()
this.closePop() this.closePop()
} }
} }
} }
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
<style > <style>
.td_height{ .td_height {
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
} }
</style> </style>
...@@ -138,21 +138,56 @@ ...@@ -138,21 +138,56 @@
</el-calendar> </el-calendar>
</div> </div>
<div style="color:#2D2D2D;font-size: 14px;font-weight: bold;">课程安排</div> <div style="color:#2D2D2D;font-size: 14px;font-weight: bold;">课程安排</div>
<div <table>
<thead>
<tr
style="width:100%;height: 40px;background: #EEEEEF;font-size: 12px;color: #2D2D2D;font-weight: 600;margin-top: 20px;display: flex;align-items: center"> style="width:100%;height: 40px;background: #EEEEEF;font-size: 12px;color: #2D2D2D;font-weight: 600;margin-top: 20px;display: flex;align-items: center">
<div style="width: 50%;padding-left: 20px"> <th width="40%">
<template v-if="item.ClassStyle==1">
每周
</template>
<template v-if="item.ClassStyle==2">
每月
</template>
<template v-if="item.ClassStyle==3">
固定日期
</template>
</th>
<th width="20%">
课节 课节
</div> </th>
<div>时间</div> <th width="40%">
</div> 时间
<div </th>
</tr>
</thead>
<tbody v-for="(tItem,tIndex) in item.ClassTimeList" :key="tIndex">
<template v-for="(timeItem,timeIndex) in tItem.TimeList">
<tr>
<td :rowspan=" tItem.TimeList.length" v-if="timeIndex==0">
<template v-for="(sItem,sIndex) in tItem.DateList">
{{sItem}}
</template>
</td>
<td>
第 {{timeIndex+1}} 节
</td>
<td>
{{timeItem.StartTime}}-{{timeItem.timeItem}}
</td>
</tr>
</template>
</tbody>
</table>
<!-- <div
style="font-size: 12px;color: #2D2D2D;font-weight: bold;height: 40px;width: 454px;line-height: 40px;display: flex;border-bottom: 1px solid rgba(138, 138, 138, 0.09);" style="font-size: 12px;color: #2D2D2D;font-weight: bold;height: 40px;width: 454px;line-height: 40px;display: flex;border-bottom: 1px solid rgba(138, 138, 138, 0.09);"
v-for="(zx,zi) in item.ClassTimeList" :key="zi"> >
<div style="width: 50%;padding-left: 20px"> <div style="width: 50%;padding-left: 20px">
第{{zi+1}}节 第{{zi+1}}节
</div> </div>
<div>{{zx.StartTime}}-{{zx.EndTime}}</div> <div>{{zx.StartTime}}-{{zx.EndTime}}</div>
</div> </div> -->
</div> </div>
</div> </div>
</q-banner> </q-banner>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment