commit
a835573022
File diff suppressed because it is too large
Load Diff
@ -1,156 +0,0 @@
|
||||
<template>
|
||||
<el-dialog title="选择库区" :close-on-click-modal="false" :visible.sync="visible" class="JNPF-dialog JNPF-dialog_center"
|
||||
lock-scroll append-to-body width="1000px">
|
||||
<el-row class="JNPF-common-search-box" :gutter="16">
|
||||
<el-form @submit.native.prevent>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="库区编码">
|
||||
<el-input v-model="areacode" placeholder="请输入库区编码查询" clearable @keyup.enter.native="init()" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="库区名称">
|
||||
<el-input v-model="areaname" placeholder="请输入库区名称查询" clearable @keyup.enter.native="init()" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" @click="init()">{{$t('common.search')}}
|
||||
</el-button>
|
||||
<el-button icon="el-icon-refresh-right" @click="refresh()">{{$t('common.reset')}}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-form>
|
||||
<div class="JNPF-common-search-box-right">
|
||||
<el-tooltip effect="dark" :content="$t('common.refresh')" placement="top">
|
||||
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" @click="init()" />
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</el-row>
|
||||
<JNPF-table v-loading="listLoading" :data="list" @row-click="rowClick" @row-dblclick="rowdbClick" :border="false" :hasNO="false">
|
||||
<el-table-column width="35">
|
||||
<template slot-scope="scope">
|
||||
<el-radio :label="scope.row.id" v-model="checkedRow.id"> </el-radio>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column type="index" width="50" label="序号" align="center" />
|
||||
<el-table-column prop="areacode" label="库区编码" />
|
||||
<el-table-column prop="areaname" label="库区名称" />
|
||||
<el-table-column prop="maximum" label="最高库存" />
|
||||
<el-table-column prop="safety" label="安全库存" />
|
||||
<el-table-column prop="minimum" label="最低库存" />
|
||||
<el-table-column prop="warehouseId" label="仓库名称" />
|
||||
</JNPF-table>
|
||||
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize"
|
||||
@pagination="refresh" />
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="visible = false">{{$t('common.cancelButton')}}</el-button>
|
||||
<el-button type="primary" @click="select()">{{$t('common.confirmButton')}}</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import request from '@/utils/request'
|
||||
import {
|
||||
getDictionaryDataSelector
|
||||
} from '@/api/systemData/dictionary'
|
||||
import {
|
||||
getDataInterfaceRes
|
||||
} from '@/api/systemData/dataInterface'
|
||||
import {
|
||||
GoodsList
|
||||
} from '@/api/extend/order'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
listLoading: true,
|
||||
areacode: '',
|
||||
areaname: '',
|
||||
list: [],
|
||||
total: 0,
|
||||
checkedRow: {},
|
||||
listQuery: {
|
||||
currentPage: 1,
|
||||
pageSize: 20,
|
||||
sort: "desc",
|
||||
sidx: "creatorTime",
|
||||
areacode: '',
|
||||
areaname: '',
|
||||
},
|
||||
total: 0,
|
||||
checked: '',
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
menuId() {
|
||||
return this.$route.meta.modelId || ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
rowdbClick(row){
|
||||
this.checked = row.id
|
||||
this.checkedRow = row
|
||||
this.select();
|
||||
},
|
||||
rowClick(row) {
|
||||
this.checked = row.id
|
||||
this.checkedRow = row
|
||||
},
|
||||
init() {
|
||||
this.visible = true
|
||||
this.listLoading = true
|
||||
this.listQuery.areacode = this.areacode
|
||||
this.listQuery.areaname = this.areaname
|
||||
this.listQuery.menuId = this.menuId
|
||||
let listQuery = this.listQuery
|
||||
request({
|
||||
url: `/api/example/Reservoirarea/getList`,
|
||||
method: 'post',
|
||||
data: listQuery
|
||||
}).then(res => {
|
||||
this.list = res.data.list
|
||||
this.total = res.data.pagination.total
|
||||
this.listLoading = false
|
||||
})
|
||||
/* GoodsList(query).then(res => {
|
||||
this.list = res.data.list
|
||||
this.total = res.data.pagination.total
|
||||
this.listLoading = false
|
||||
}) */
|
||||
},
|
||||
refresh() {
|
||||
this.areacode = ''
|
||||
this.areaname = ''
|
||||
this.init()
|
||||
},
|
||||
select() {
|
||||
if (this.checked == '') return
|
||||
this.$emit('refreshDataList', this.checkedRow)
|
||||
this.visible = false
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.checked = val
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
>>>.el-dialog__body {
|
||||
height: 70vh;
|
||||
padding: 0 0 10px !important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
|
||||
.JNPF-common-search-box {
|
||||
margin-bottom: 0;
|
||||
|
||||
.JNPF-common-search-box-right {
|
||||
padding: 10px 10px 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue