|
|
|
|
@ -12,12 +12,12 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select> -->
|
|
|
|
|
<Select v-model="select.guanliancangku" style="width:200px;margin-right: 10px;" placeholder="所在仓库" clearable>
|
|
|
|
|
<Option v-for="item in cangkuList" :value="item.id" :key="item.value">{{ item.cangkumingchengquyu }}</Option>
|
|
|
|
|
<Option v-for="item in cangkuList" :value="item.id" :key="item.value">{{ item.cangkumingcheng }}</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
<Select @on-change="clearArea" v-model="select.area" style="width: 200px;margin-right: 10px;" placeholder="所在区域" clearable>
|
|
|
|
|
<Option v-for="item in areaList" :key="item.id" :value="item.id">{{ item.value }}</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
<Button type="primary" @click="getindex">查询</Button>
|
|
|
|
|
<Button type="primary" @click="getindex('page')">查询</Button>
|
|
|
|
|
<Button type="primary" style="margin-left: 10px;"
|
|
|
|
|
@click="$refs['addMater'].isShow = true,$refs['addMater'].type = 'add',$refs['addMater'].setCkList(cangkuList)">添加</Button>
|
|
|
|
|
<Button type="primary" style="margin-left: 10px;"
|
|
|
|
|
@ -118,15 +118,15 @@
|
|
|
|
|
{
|
|
|
|
|
label: "仓库名称",
|
|
|
|
|
width: 220,
|
|
|
|
|
prop: 'cangkumingcheng',
|
|
|
|
|
prop: 'flood_storages_details.cangkumingcheng',
|
|
|
|
|
align: 'left',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "所在区域",
|
|
|
|
|
width: 120,
|
|
|
|
|
prop: 'suozaiquyu',
|
|
|
|
|
align: 'center',
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// label: "所在区域",
|
|
|
|
|
// width: 120,
|
|
|
|
|
// prop: 'suozaiquyu',
|
|
|
|
|
// align: 'center',
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
label: "物资代码",
|
|
|
|
|
width: 120,
|
|
|
|
|
@ -265,8 +265,11 @@
|
|
|
|
|
})
|
|
|
|
|
this.cangkuList = res.data
|
|
|
|
|
},
|
|
|
|
|
async getindex() {
|
|
|
|
|
this.loading = true
|
|
|
|
|
async getindex(page) {
|
|
|
|
|
this.loading = true
|
|
|
|
|
if(page=='page'){
|
|
|
|
|
this.select.pageIndex = 1
|
|
|
|
|
}
|
|
|
|
|
const res = await index({
|
|
|
|
|
page_size: this.select.pageSize,
|
|
|
|
|
page: this.select.pageIndex,
|
|
|
|
|
@ -274,15 +277,15 @@
|
|
|
|
|
filter: [{
|
|
|
|
|
"key": "xianwuzimingcheng",
|
|
|
|
|
"op": "like",
|
|
|
|
|
"value": this.select.keyword
|
|
|
|
|
"value": this.select.keyword?this.select.keyword:''
|
|
|
|
|
},{
|
|
|
|
|
"key": "guanliancangku",
|
|
|
|
|
"op": "eq",
|
|
|
|
|
"value": this.select.guanliancangku
|
|
|
|
|
"value": this.select.guanliancangku?this.select.guanliancangku:''
|
|
|
|
|
},{
|
|
|
|
|
key:'quyu_id',
|
|
|
|
|
op:'eq',
|
|
|
|
|
value:this.select.area
|
|
|
|
|
value:this.select.area?this.select.area:''
|
|
|
|
|
}],
|
|
|
|
|
})
|
|
|
|
|
this.list = res.data
|
|
|
|
|
|