高级搜索修改

yanshishuju
yewj 1 year ago
parent c64f066a1c
commit e719a333c3

@ -1,10 +1,11 @@
<template> <template>
<div> <div>
<el-card class="el-card"> <el-card class="el-card">
<el-form v-if="queryList && queryList.length > 0 && showSearch" :model="filterQuery" class="query-form" <el-form v-if="queryList && queryList.length > 0" :model="filterQuery" class="query-form"
size="mini" label-width="100px"> size="mini" label-width="100px">
<el-row style=" display:flex; flex-wrap: wrap; "> <el-row style=" display:flex; flex-wrap: wrap; ">
<template v-for="(item, index) in queryList"> <template v-for="(item, index) in queryList">
<div v-if="showSearch || item.isImport">
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)" <el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true)"
class="query-form-item" class="query-form-item"
:label="item.columnDesc+`:`" :key="item.id"> :label="item.columnDesc+`:`" :key="item.id">
@ -77,32 +78,35 @@
:placeholder="item.columnDesc" :placeholder="item.columnDesc"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
</div>
</template> </template>
</el-row> </el-row>
</el-form> </el-form>
<div class="left-search" v-if="!showSearch"> <!-- <div class="left-search" v-if="!showSearch">-->
<!-- 关键字搜索 按需配置 --> <!-- &lt;!&ndash; 关键字搜索 按需配置 &ndash;&gt;-->
<el-form v-if="queryList && queryList.length > 0" :model="filterQuery" class="query-form" size="mini" label-width="100px"> <!-- <el-form v-if="queryList && queryList.length > 0" :model="filterQuery" class="query-form" size="mini"-->
<el-row style=" display:flex; flex-wrap: wrap; "> <!-- label-width="100px">-->
<template v-for="(item, index) in queryList"> <!-- <el-row style=" display:flex; flex-wrap: wrap; ">-->
<el-form-item v-if="item.columnType == 'input' && executeEval(row,item.expression,true) && item.columnName == 'keywords'" <!-- <template v-for="(item, index) in queryList">-->
class="query-form-item" <!-- <el-form-item-->
:label="item.columnDesc+`:`" :key="item.id"> <!-- v-if="item.columnType == 'input' && executeEval(row,item.expression,true) && item.columnName == 'keywords'"-->
<el-input <!-- class="query-form-item"-->
v-model="filterQuery[item.columnName]" <!-- :label="item.columnDesc+`:`" :key="item.id">-->
:placeholder="item.columnDesc" <!-- <el-input-->
:disabled="executeEval(null,item.disabledFuc,false)" <!-- v-model="filterQuery[item.columnName]"-->
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)" <!-- :placeholder="item.columnDesc"-->
clearable <!-- :disabled="executeEval(null,item.disabledFuc,false)"-->
></el-input> <!-- @keyup.enter.native="executeFuc($event,'5',item.clickFuc)"-->
</el-form-item> <!-- clearable-->
</template> <!-- ></el-input>-->
</el-row> <!-- </el-form-item>-->
</el-form> <!-- </template>-->
</div> <!-- </el-row>-->
<!-- </el-form>-->
<!-- </div>-->
<div class="top-right-btn"> <div class="top-right-btn">
<el-button-group> <el-button-group>
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button> <el-button icon="el-icon-view" type="primary" @click="hideSearch"></el-button>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-refresh" icon="el-icon-refresh"
@ -197,7 +201,7 @@
:key="item.columnName" :key="item.columnName"
fixed="right" fixed="right"
> >
<template slot- ="scope"> <template slot-="scope">
<el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj" <el-button v-for="(buttonItem, buttonIndex) in item.buttonRulObj"
:type="buttonItem.type" :type="buttonItem.type"
:size="buttonItem.size" :size="buttonItem.size"
@ -696,7 +700,7 @@ import {convertDate} from "@/utils/date";
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
import {getBizDetailList} from "@/api/inout/orderDetailBiz"; import {getBizDetailList} from "@/api/inout/orderDetailBiz";
import {getCodeList} from "@/api/inout/code"; import {getCodeList} from "@/api/inout/code";
import { listPage } from '@/api/basic/workPlace/sysWorkplaceManage' import {listPage} from '@/api/basic/workPlace/sysWorkplaceManage'
export default { export default {
name: "chooseDraftOrderDialog", name: "chooseDraftOrderDialog",
@ -1189,15 +1193,15 @@ export default {
// //
choose(){ choose() {
if (this.currentRow.billNo == null){ if (this.currentRow.billNo == null) {
return this.$message.error("请选择单据") return this.$message.error("请选择单据")
} }
this.closeChooseDialog() this.closeChooseDialog()
this.handleChoose(this.currentRow) this.handleChoose(this.currentRow)
}, },
// //
findCurWorkPlaces(_this,val) { findCurWorkPlaces(_this, val) {
let query = { let query = {
key: val, key: val,
status: 1, status: 1,
@ -1213,7 +1217,7 @@ export default {
label: item.workplaceName label: item.workplaceName
}; };
}) })
if (_this.options.getWorkPlaceList .length == 1){ if (_this.options.getWorkPlaceList.length == 1) {
_this.filterQuery.workPlaceCode = _this.options.getWorkPlaceList[0].code; _this.filterQuery.workPlaceCode = _this.options.getWorkPlaceList[0].code;
} }
}) })
@ -1229,7 +1233,7 @@ export default {
created() { created() {
this.getInvList(this); this.getInvList(this);
this.getBusType(this); this.getBusType(this);
this.findCurWorkPlaces(this,""); this.findCurWorkPlaces(this, "");
this.splitType = this.$route.query.splitType; this.splitType = this.$route.query.splitType;
if (this.splitType == "search") { if (this.splitType == "search") {

@ -11,7 +11,7 @@
:label="item.columnDesc+`:`" :key="item.id"> :label="item.columnDesc+`:`" :key="item.id">
<el-input <el-input
v-model="filterQuery[item.columnName]" v-model="filterQuery[item.columnName]"
:placeholder="item.columnDesc" :placeholder="item.columnDesc == '搜索' ? '单据号/所属工位/业务名称/收货方/发货方' : item.columnDesc"
:disabled="executeEval(null,item.disabledFuc,false)" :disabled="executeEval(null,item.disabledFuc,false)"
@keyup.enter.native="executeFuc($event,'5',item.clickFuc)" @keyup.enter.native="executeFuc($event,'5',item.clickFuc)"
clearable clearable

Loading…
Cancel
Save