|
@@ -5,17 +5,17 @@
|
|
|
<div ref="tableSearch">
|
|
|
<a-form layout="inline" @keyup.enter.native="$refs.table.refresh(true)">
|
|
|
<a-row type="flex" justify="start" :gutter="15">
|
|
|
- <a-col flex="350px">
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
<a-form-item label="创建时间">
|
|
|
<rangeDate style="width:100%" ref="rangeDate" :value="time" @change="dateChange" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col flex="300px">
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
<a-form-item label="采购单号">
|
|
|
<a-input id="purchaseOrderList-purchaseBillNo" v-model.trim="queryParam.purchaseBillNo" allowClear placeholder="请输入采购单号"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col flex="300px">
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
<a-form-item label="供应商">
|
|
|
<a-select
|
|
|
id="purchaseOrderList-purchaseTargetSn"
|
|
@@ -30,7 +30,7 @@
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col flex="200px">
|
|
|
+ <a-col :md="6" :sm="24" v-show="advanced">
|
|
|
<a-form-item label="业务状态">
|
|
|
<a-select id="purchaseOrderList-billStatus" allowClear v-model="queryParam.billStatus" placeholder="请选择业务状态">
|
|
|
<a-select-option value="">全部</a-select-option>
|
|
@@ -39,7 +39,7 @@
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col flex="200px">
|
|
|
+ <a-col :md="6" :sm="24" v-show="advanced">
|
|
|
<a-form-item label="财务状态">
|
|
|
<v-select
|
|
|
v-model="queryParam.financialStatus"
|
|
@@ -50,7 +50,7 @@
|
|
|
allowClear></v-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col flex="200px">
|
|
|
+ <a-col :md="6" :sm="24" v-show="advanced">
|
|
|
<a-form-item label="单据来源">
|
|
|
<v-select
|
|
|
v-model="queryParam.purchaseBillSource"
|
|
@@ -61,9 +61,24 @@
|
|
|
allowClear></v-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
- <a-col :span="24" style="display:flex;justify-content: center;align-items: center;">
|
|
|
+ <a-col :md="6" :sm="24" v-show="advanced">
|
|
|
+ <a-form-item label="促销单">
|
|
|
+ <v-select
|
|
|
+ v-model="queryParam.promotionFlag"
|
|
|
+ ref="promotionFlag"
|
|
|
+ id="purchaseOrderList-promotionFlag"
|
|
|
+ code="FLAG"
|
|
|
+ placeholder="请选择是否促销单"
|
|
|
+ allowClear></v-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="purchaseOrderList-refresh">查询</a-button>
|
|
|
<a-button style="margin-left: 8px" @click="resetSearchForm()" :disabled="disabled" id="purchaseOrderList-reset">重置</a-button>
|
|
|
+ <a @click="advanced=!advanced" style="margin-left: 8px">
|
|
|
+ {{ advanced ? '收起' : '展开' }}
|
|
|
+ <a-icon :type="advanced ? 'up' : 'down'"/>
|
|
|
+ </a>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</a-form>
|
|
@@ -157,7 +172,7 @@ export default {
|
|
|
const _this = this
|
|
|
return {
|
|
|
spinning: false,
|
|
|
- advanced: false, // 高级搜索 展开/关闭
|
|
|
+ advanced: true, // 高级搜索 展开/关闭
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
openModal: false, // 基本信息弹框是否显示
|
|
|
supplierList: [],
|
|
@@ -174,6 +189,7 @@ export default {
|
|
|
billStatus: undefined,
|
|
|
financialStatus: undefined,
|
|
|
purchaseBillSource: undefined,
|
|
|
+ promotionFlag: undefined,
|
|
|
beginDate: getDate.getCurrMonthDays().starttime,
|
|
|
endDate: getDate.getCurrMonthDays().endtime
|
|
|
},
|
|
@@ -299,6 +315,7 @@ export default {
|
|
|
this.queryParam.billStatus = undefined
|
|
|
this.queryParam.financialStatus = undefined
|
|
|
this.queryParam.purchaseBillSource = undefined
|
|
|
+ this.queryParam.promotionFlag = undefined
|
|
|
if (!flag) {
|
|
|
this.$refs.table.refresh(true)
|
|
|
this.setIsHomeNav(this.$route.name, null)
|