|
@@ -258,9 +258,9 @@
|
|
|
<el-select v-model="form.userMg" placeholder="请先选择好用户单位">
|
|
|
<el-option
|
|
|
v-for="dict in userMgOptions"
|
|
|
- :key="dict.dictValue"
|
|
|
- :label="dict.dictLabel"
|
|
|
- :value="parseInt(dict.dictValue)"
|
|
|
+ :key="dict.userId"
|
|
|
+ :label="dict.nickName"
|
|
|
+ :value="dict.nickName"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -375,6 +375,8 @@
|
|
|
import { listBookingworkticket, getBookingworkticket, delBookingworkticket, addBookingworkticket, updateBookingworkticket, exportBookingworkticket, importTemplate, seeBookingworkticket} from "@/api/invoice/bookingworkticket";
|
|
|
import { listWorkcontent, getWorkcontent, delWorkcontent, addWorkcontent, updateWorkcontent, exportWorkcontent,getWorkcontentBybookingticketId} from "@/api/invoice/workcontent";
|
|
|
import { listDevice, getDevice, delDevice, updateDevice, exportDevice} from "@/api/invoice/device";
|
|
|
+import { listUnit, getUnit, delUnit, addUnit, updateUnit, exportUnit,getUserByUnit} from "@/api/invoice/unit";
|
|
|
+import { listUser, getUser, delUser, addUser, updateUser, exportUser, resetUserPwd, changeUserStatus,userDataScope } from "@/api/system/user";
|
|
|
import { treeselect } from "@/api/system/dept";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
@@ -529,9 +531,7 @@ export default {
|
|
|
this.getDicts("book_floor_location").then(response => {
|
|
|
this.floorLocationOptions = response.data;
|
|
|
});
|
|
|
- this.getDicts("book_user_mg").then(response => {
|
|
|
- this.userMgOptions = response.data;
|
|
|
- });
|
|
|
+
|
|
|
this.getDicts("book_user_unit").then(response => {
|
|
|
this.userUnitOptions = response.data;
|
|
|
});
|
|
@@ -550,15 +550,10 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
- //查询用户单位下拉框
|
|
|
- getOneCategorys() {
|
|
|
- getOneCategorys().then(response => {
|
|
|
- this.userUnitOptions = response.data;
|
|
|
- });
|
|
|
- },
|
|
|
//根据用户单位 查询对应选择的用户主管 根据用户单位 字段 查找对应的多个主管 返回 Sysuser的集合(id,name)
|
|
|
checkCategoryPromotion(oneId){
|
|
|
- getTwoCategorys(oneId).then(response => {
|
|
|
+
|
|
|
+ getUserByUnit(oneId).then(response => {
|
|
|
this.form.userMg=null;
|
|
|
this.userMgOptions = response.data;
|
|
|
// let arr= response.data.userIds.split(',');
|