|
@@ -98,6 +98,42 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="施工时间" prop="completionStatus">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="queryParams1.beginTime"
|
|
|
+ type="daterange"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="施工人" prop="completionStatus">
|
|
|
+<!-- <el-select v-model="queryParams1.createBy" placeholder="请选择施工人" filterable clearable-->
|
|
|
+<!-- @clear="">-->
|
|
|
+<!-- <el-option-->
|
|
|
+<!-- v-for="dict in userList"-->
|
|
|
+<!-- :key="dict.userName"-->
|
|
|
+<!-- :label="dict.userName"-->
|
|
|
+<!-- :value="dict.userName"-->
|
|
|
+<!-- />-->
|
|
|
+<!-- </el-select>-->
|
|
|
+ <el-autocomplete
|
|
|
+ popper-class="my-autocomplete"
|
|
|
+ v-model="queryParams1.createBy"
|
|
|
+ :fetch-suggestions="querySearch"
|
|
|
+ value-key="userName"
|
|
|
+ placeholder="请输入内容"
|
|
|
+ @select="handleSelect"
|
|
|
+ >
|
|
|
+ <template slot-scope="{ item }">
|
|
|
+ <div class="name">{{ item.nickName }}</div>
|
|
|
+ <span class="addr">{{item.userName }}</span>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ </el-autocomplete>
|
|
|
+ </el-form-item>
|
|
|
<!-- <el-form-item label="工程周期" prop="enginCycle">-->
|
|
|
<!-- <el-select v-model="queryParams1.enginCycle" placeholder="请选择工程周期" clearable-->
|
|
|
<!-- @clear="">-->
|
|
@@ -765,6 +801,7 @@ import {getDicts} from "@/api/system/dict/data";
|
|
|
import EnginNodeInfo from "@/components/EnginNodeInfo/index";
|
|
|
import EngineePipe from '@/components/EngineePipe'
|
|
|
import ConstructionDetails from "@/components/ConstructionDetails/index.vue";
|
|
|
+import {listAll} from "@/api/system/user";
|
|
|
|
|
|
function formatDate(date) {
|
|
|
const days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
|
|
@@ -1089,11 +1126,12 @@ export default {
|
|
|
components: [
|
|
|
[
|
|
|
'caliber' ,// 管径
|
|
|
- 'specificConstruction', //具体施工位置
|
|
|
+ 'specificConstruction', //具体施工位置
|
|
|
'constructAddre'//位置
|
|
|
],
|
|
|
'constructTime',
|
|
|
'beforeBottom',
|
|
|
+ 'onTheDitch',
|
|
|
'legBackfilling',
|
|
|
'inferiorSulcus', // 照片
|
|
|
]
|
|
@@ -1197,7 +1235,9 @@ export default {
|
|
|
enginCycle: 0,
|
|
|
completionStatus: undefined,
|
|
|
imgUrl: undefined,
|
|
|
- type: undefined
|
|
|
+ type: undefined,
|
|
|
+ beginTime:[],
|
|
|
+ createBy:''
|
|
|
},
|
|
|
zEngineeringInfoBo: {
|
|
|
constructAddre: '', // 施工地址
|
|
@@ -1318,13 +1358,15 @@ export default {
|
|
|
],
|
|
|
zEngineeringNodeBo: {},
|
|
|
currentEnginName: null,
|
|
|
- currentCheckingEnginList: []
|
|
|
+ currentCheckingEnginList: [],
|
|
|
+ userList:[]
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.listAll()
|
|
|
},
|
|
|
computed: {
|
|
|
currentContain(e) {
|
|
@@ -1332,6 +1374,20 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ querySearch(queryString, cb) {
|
|
|
+ var restaurants = this.userList;
|
|
|
+ var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
|
|
|
+ // 调用 callback 返回建议列表的数据
|
|
|
+ cb(results);
|
|
|
+ },
|
|
|
+ handleSelect(item) {
|
|
|
+ console.log(item);
|
|
|
+ },
|
|
|
+ createFilter(queryString) {
|
|
|
+ return (restaurant) => {
|
|
|
+ return (restaurant.userName.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
|
|
|
+ };
|
|
|
+ },
|
|
|
enginNodeStatusExecuted(item) {
|
|
|
try {
|
|
|
let flag
|
|
@@ -1374,6 +1430,12 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ listAll()
|
|
|
+ {
|
|
|
+ listAll({status:0}).then(res=>{
|
|
|
+ this.userList=res.data
|
|
|
+ })
|
|
|
+ },
|
|
|
checkingAllSubmit() {
|
|
|
this.$refs.checkingFormAll.validate(valid => {
|
|
|
if (valid) {
|
|
@@ -1697,6 +1759,7 @@ export default {
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
|
+
|
|
|
},
|
|
|
// 取消按钮
|
|
|
cancel() {
|
|
@@ -2061,4 +2124,23 @@ export default {
|
|
|
height: 115px;
|
|
|
}
|
|
|
}
|
|
|
+.my-autocomplete {
|
|
|
+ li {
|
|
|
+ line-height: normal;
|
|
|
+ padding: 7px;
|
|
|
+
|
|
|
+ .name {
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ .addr {
|
|
|
+ font-size: 12px;
|
|
|
+ color: #b4b4b4;
|
|
|
+ }
|
|
|
+
|
|
|
+ .highlighted .addr {
|
|
|
+ color: #ddd;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|