|
@@ -8,6 +8,8 @@
|
|
|
:loading="loading"
|
|
|
:selectConfig="selectConfig"
|
|
|
:statConfig="statConfig"
|
|
|
+ :onMoreSearch="true"
|
|
|
+ @moreSearch="clickMoreSearch"
|
|
|
highlight-current-row
|
|
|
:action-list="[
|
|
|
{
|
|
@@ -263,6 +265,26 @@
|
|
|
>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ :title="'高级检索'"
|
|
|
+ v-model="moreSearchDialog"
|
|
|
+ width="500px"
|
|
|
+ destroy-on-close
|
|
|
+ >
|
|
|
+ <byForm
|
|
|
+ :formConfig="formSearchConfig"
|
|
|
+ :formOption="formOption"
|
|
|
+ v-model="sourceList.pagination"
|
|
|
+ >
|
|
|
+ </byForm>
|
|
|
+ <template #footer>
|
|
|
+ <el-button @click="moreSearchReset" size="large">重置</el-button>
|
|
|
+ <el-button @click="moreSearchQuery" type="primary" size="large"
|
|
|
+ >搜索</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -420,7 +442,7 @@ const config = computed(() => {
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "业务员",
|
|
|
- prop: "userName",
|
|
|
+ prop: "salesmanName",
|
|
|
width: 100,
|
|
|
},
|
|
|
// render(type) {
|
|
@@ -1112,6 +1134,69 @@ const submitRecords = () => {
|
|
|
const openFile = (item) => {
|
|
|
window.open(item.fileUrl, "_blank");
|
|
|
};
|
|
|
+
|
|
|
+const formSearchConfig = computed(() => {
|
|
|
+ return [
|
|
|
+ {
|
|
|
+ type: "select",
|
|
|
+ label: "审批状态",
|
|
|
+ prop: "status",
|
|
|
+ itemWidth: 50,
|
|
|
+ data: status.value,
|
|
|
+ clearable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "select",
|
|
|
+ label: "归属公司",
|
|
|
+ prop: "sellCorporationId",
|
|
|
+ itemWidth: 50,
|
|
|
+ data: corporationList.value,
|
|
|
+ clearable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "select",
|
|
|
+ label: "业务员",
|
|
|
+ prop: "userId",
|
|
|
+ data: userList.value,
|
|
|
+ clearable: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "date",
|
|
|
+ itemType: "datetime",
|
|
|
+ label: "合同时间",
|
|
|
+ prop: "beginTime",
|
|
|
+ placeholder: "合同开始时间",
|
|
|
+ itemWidth: 50,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "date",
|
|
|
+ itemType: "datetime",
|
|
|
+ label: " ",
|
|
|
+ prop: "endTime",
|
|
|
+ placeholder: "合同结束时间",
|
|
|
+ itemWidth: 50,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+});
|
|
|
+const moreSearchDialog = ref(false);
|
|
|
+const clickMoreSearch = () => {
|
|
|
+ moreSearchDialog.value = true;
|
|
|
+};
|
|
|
+const moreSearchQuery = () => {
|
|
|
+ moreSearchDialog.value = false;
|
|
|
+ getList();
|
|
|
+};
|
|
|
+const moreSearchReset = () => {
|
|
|
+ sourceList.value.pagination = {
|
|
|
+ total: 0,
|
|
|
+ pageNum: sourceList.value.pagination.pageNum,
|
|
|
+ pageSize: sourceList.value.pagination.pageSize,
|
|
|
+ keyword: "",
|
|
|
+ status: "",
|
|
|
+ sellCorporationId: "",
|
|
|
+ };
|
|
|
+ moreSearchQuery();
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|