|
@@ -193,12 +193,12 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
<el-form-item label="作业区域" prop="workArea">
|
|
<el-form-item label="作业区域" prop="workArea">
|
|
- <el-select v-model="form.workArea" placeholder="请选择作业区域" @change="getDeviceup">
|
|
|
|
|
|
+ <el-select v-model="form.workArea" placeholder="请选择作业区域">
|
|
<el-option
|
|
<el-option
|
|
v-for="dict in workAreaOptions"
|
|
v-for="dict in workAreaOptions"
|
|
:key="dict.id"
|
|
:key="dict.id"
|
|
- :label="dict.workArea"
|
|
|
|
- :value="dict.workArea"
|
|
|
|
|
|
+ :label="dict"
|
|
|
|
+ :value="dict"
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -389,11 +389,10 @@
|
|
<script>
|
|
<script>
|
|
import { listBookingworkticket, getBookingworkticket, delBookingworkticket, addBookingworkticket, updateBookingworkticket, exportBookingworkticket, importTemplate, seeBookingworkticket} from "@/api/invoice/bookingworkticket";
|
|
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 { listWorkcontent, getWorkcontent, delWorkcontent, addWorkcontent, updateWorkcontent, exportWorkcontent,getWorkcontentBybookingticketId} from "@/api/invoice/workcontent";
|
|
-import { listDevice, getDevice, delDevice, updateDevice, exportDevice} from "@/api/invoice/device";
|
|
|
|
|
|
+import { listDevice, getDevice, delDevice, updateDevice, exportDevice, selectDevice} from "@/api/invoice/device";
|
|
import { listUnit, getUnit, delUnit, addUnit, updateUnit, exportUnit,getUserByUnit} from "@/api/invoice/unit";
|
|
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 { listUser, getUser, delUser, addUser, updateUser, exportUser, resetUserPwd, changeUserStatus,userDataScope } from "@/api/system/user";
|
|
import { treeselect } from "@/api/system/dept";
|
|
import { treeselect } from "@/api/system/dept";
|
|
-import { checkPermi} from "@/utils/permission"; // 权限判断函数
|
|
|
|
import { getToken } from "@/utils/auth";
|
|
import { getToken } from "@/utils/auth";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
@@ -402,7 +401,7 @@ import {addInvoice} from "@/api/invoice/invoice";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "Bookingworkticket",
|
|
name: "Bookingworkticket",
|
|
- components: { Treeselect,AddApprove,checkPermi},
|
|
|
|
|
|
+ components: { Treeselect,AddApprove},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
//禁用
|
|
//禁用
|
|
@@ -581,9 +580,10 @@ export default {
|
|
deptId: null,
|
|
deptId: null,
|
|
remarks: null
|
|
remarks: null
|
|
};
|
|
};
|
|
- listDevice(queryForm).then(response => {
|
|
|
|
- this.workAreaOptions=response.rows
|
|
|
|
|
|
+ selectDevice(queryForm).then(response => {
|
|
|
|
+ this.workAreaOptions=response.data
|
|
});
|
|
});
|
|
|
|
+ console.log(this.workAreaOptions)
|
|
},
|
|
},
|
|
addAprrove(row) {
|
|
addAprrove(row) {
|
|
this.reset();
|
|
this.reset();
|
|
@@ -701,7 +701,7 @@ export default {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- console.log(this.bookingworkticketList)
|
|
|
|
|
|
+ // console.log(this.bookingworkticketList)
|
|
this.total = response.total;
|
|
this.total = response.total;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|