|
@@ -395,6 +395,12 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="作业装置" prop="deptId">
|
|
|
+ <treeselect v-model="form.deptId" :options="deptOptions" @select="getWorkArea" placeholder="请选择归属部门"/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="作业区域" prop="workArea">
|
|
|
<el-select v-model="form.workArea" placeholder="请选择作业区域">
|
|
@@ -407,11 +413,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-form-item label="归属部门" prop="deptId">
|
|
|
- <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属部门"/>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
@@ -890,7 +892,7 @@ export default {
|
|
|
this.getTreeselect()
|
|
|
this.getTagList()
|
|
|
//初始化作业区域、 初始化用户单位下拉框
|
|
|
- this.getDeviceup();
|
|
|
+ // this.getDeviceup();
|
|
|
this.getDicts("booking_work_status").then(response => {
|
|
|
this.statusOptions = response.data;
|
|
|
});
|
|
@@ -1032,19 +1034,10 @@ export default {
|
|
|
},
|
|
|
|
|
|
//得到作业区域下拉框
|
|
|
- getDeviceup() {
|
|
|
+ getDeviceup(deptId) {
|
|
|
+ this.form.workArea = null
|
|
|
const queryForm = {
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 99999,
|
|
|
- devName: null,
|
|
|
- workArea: null,
|
|
|
- regionalHead: null,
|
|
|
- createrCode: null,
|
|
|
- createdate: null,
|
|
|
- updaterCode: null,
|
|
|
- updatedate: null,
|
|
|
- deptId: null,
|
|
|
- remarks: null
|
|
|
+ deptId: deptId,
|
|
|
};
|
|
|
selectDevice(queryForm).then(response => {
|
|
|
this.workAreaOptions = response.data
|
|
@@ -1293,7 +1286,7 @@ export default {
|
|
|
getUserByUserName(names).then(response => {
|
|
|
this.form.workUnit = response.data.dept.deptName;
|
|
|
//默认是用户自己的部门
|
|
|
- this.form.deptId = response.data.dept.deptId;
|
|
|
+ // this.form.deptId = response.data.dept.deptId;
|
|
|
});
|
|
|
this.open = true;
|
|
|
this.title = "添加预约作业票台账";
|
|
@@ -1331,6 +1324,10 @@ export default {
|
|
|
this.ruleForm.length = response.data.tInvoiceWorkcontentList.length
|
|
|
});
|
|
|
},
|
|
|
+ getWorkArea(node){
|
|
|
+ console.log(node.id)
|
|
|
+ this.getDeviceup(node.id)
|
|
|
+ },
|
|
|
//校验
|
|
|
getFormPromise(formDone) {
|
|
|
return new Promise(resolve => {
|