|
@@ -28,6 +28,40 @@
|
|
:popMenu="false"
|
|
:popMenu="false"
|
|
@fabClick="onClickAdd()"
|
|
@fabClick="onClickAdd()"
|
|
></uni-fab>
|
|
></uni-fab>
|
|
|
|
+
|
|
|
|
+ <search-drawer title="查询项目" ref="searchDrawer" @onOk="search">
|
|
|
|
+ <uni-forms :modelValue="projectFilter" label-position="top" class="form">
|
|
|
|
+ <uni-forms-item label="项目名称">
|
|
|
|
+ <uni-easyinput
|
|
|
|
+ type="text"
|
|
|
|
+ class="input"
|
|
|
|
+ v-model="projectFilter.project_name"
|
|
|
|
+ />
|
|
|
|
+ </uni-forms-item>
|
|
|
|
+ <uni-forms-item label="项目编号">
|
|
|
|
+ <uni-easyinput
|
|
|
|
+ type="text"
|
|
|
|
+ class="input"
|
|
|
|
+ v-model="projectFilter.project_code"
|
|
|
|
+ />
|
|
|
|
+ </uni-forms-item>
|
|
|
|
+ <uni-forms-item label="状态">
|
|
|
|
+ <picker
|
|
|
|
+ @change="selectChangeStatus"
|
|
|
|
+ :range="statusList"
|
|
|
|
+ :range-key="'label'"
|
|
|
|
+ >
|
|
|
|
+ <view class="select">
|
|
|
|
+ {{
|
|
|
|
+ projectFilter.project_status != null
|
|
|
|
+ ? statusList[projectFilter.project_status + 1].label
|
|
|
|
+ : "全部"
|
|
|
|
+ }}
|
|
|
|
+ </view>
|
|
|
|
+ </picker>
|
|
|
|
+ </uni-forms-item>
|
|
|
|
+ </uni-forms>
|
|
|
|
+ </search-drawer>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -35,6 +69,13 @@
|
|
import { queryProject } from "@/services/project";
|
|
import { queryProject } from "@/services/project";
|
|
import { mapState } from "vuex";
|
|
import { mapState } from "vuex";
|
|
import mixin from "@/utils/listMixin";
|
|
import mixin from "@/utils/listMixin";
|
|
|
|
+const statusList = [
|
|
|
|
+ { value: null, label: "全部" },
|
|
|
|
+ { value: 0, label: "售前" },
|
|
|
|
+ { value: 1, label: "转执行" },
|
|
|
|
+ { value: 2, label: "转运营" },
|
|
|
|
+ { value: 3, label: "转质保" },
|
|
|
|
+];
|
|
export default {
|
|
export default {
|
|
mixins: [mixin],
|
|
mixins: [mixin],
|
|
computed: {
|
|
computed: {
|
|
@@ -42,8 +83,14 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- checkself: [],
|
|
|
|
projectList: [],
|
|
projectList: [],
|
|
|
|
+ projectFilter: {
|
|
|
|
+ project_name: "",
|
|
|
|
+ project_code: "",
|
|
|
|
+ project_status: null,
|
|
|
|
+ },
|
|
|
|
+ checkself: [],
|
|
|
|
+ statusList,
|
|
self: [{ text: "只看自己", value: 0 }],
|
|
self: [{ text: "只看自己", value: 0 }],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -77,6 +124,16 @@ export default {
|
|
url: "./add",
|
|
url: "./add",
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ selectChangeStatus(e) {
|
|
|
|
+ const item = this.statusList[e.target.value];
|
|
|
|
+ this.projectFilter.project_status = item.value;
|
|
|
|
+ },
|
|
|
|
+ async search() {
|
|
|
|
+ this.projectFilter.project_code = this.projectFilter.project_code.toUpperCase();
|
|
|
|
+ this.pagination.currentPage = 1;
|
|
|
|
+ await this.initData();
|
|
|
|
+ this.$refs.searchDrawer.closeDrawer();
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
@@ -118,4 +175,7 @@ export default {
|
|
color: gray;
|
|
color: gray;
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
+.form {
|
|
|
|
+ margin: 0 20px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|