|
@@ -1,6 +1,6 @@
|
|
|
<!-- 搜索表单 -->
|
|
<!-- 搜索表单 -->
|
|
|
<template>
|
|
<template>
|
|
|
- <el-form
|
|
|
|
|
|
|
+ <!-- <el-form
|
|
|
label-width="80px"
|
|
label-width="80px"
|
|
|
class="ele-form-search"
|
|
class="ele-form-search"
|
|
|
@keyup.enter.native="search"
|
|
@keyup.enter.native="search"
|
|
@@ -98,42 +98,6 @@
|
|
|
/>
|
|
/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <!-- <el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
|
|
|
|
- <el-form-item label="调拨类型" prop="type">
|
|
|
|
|
- <el-select
|
|
|
|
|
- filterable
|
|
|
|
|
- placeholder="请选择"
|
|
|
|
|
- v-model="where.type"
|
|
|
|
|
- clearable
|
|
|
|
|
- class="w100"
|
|
|
|
|
- >
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="item in allocationType"
|
|
|
|
|
- :key="item.code"
|
|
|
|
|
- :label="item.label"
|
|
|
|
|
- :value="item.code"
|
|
|
|
|
- ></el-option>
|
|
|
|
|
- </el-select>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col> -->
|
|
|
|
|
- <!-- <el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
|
|
|
|
- <el-form-item label="调拨状态" prop="status">
|
|
|
|
|
- <el-select
|
|
|
|
|
- filterable
|
|
|
|
|
- placeholder="请选择"
|
|
|
|
|
- v-model="where.status"
|
|
|
|
|
- clearable
|
|
|
|
|
- class="w100"
|
|
|
|
|
- >
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="item in stutusOptions"
|
|
|
|
|
- :key="item.value"
|
|
|
|
|
- :label="item.label"
|
|
|
|
|
- :value="item.value"
|
|
|
|
|
- ></el-option>
|
|
|
|
|
- </el-select>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col> -->
|
|
|
|
|
<el-col v-bind="styleResponsive ? { lg: 18, md: 12 } : { span: 18 }">
|
|
<el-col v-bind="styleResponsive ? { lg: 18, md: 12 } : { span: 18 }">
|
|
|
<div class="ele-form-actions">
|
|
<div class="ele-form-actions">
|
|
|
<el-button
|
|
<el-button
|
|
@@ -155,7 +119,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
- </el-form>
|
|
|
|
|
|
|
+ </el-form> -->
|
|
|
|
|
+ <seekPage :seekList="seekList" :formLength="3" @search="search"></seekPage>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -205,6 +170,78 @@
|
|
|
// 是否开启响应式布局
|
|
// 是否开启响应式布局
|
|
|
styleResponsive() {
|
|
styleResponsive() {
|
|
|
return this.$store.state.theme.styleResponsive;
|
|
return this.$store.state.theme.styleResponsive;
|
|
|
|
|
+ },
|
|
|
|
|
+ seekList() {
|
|
|
|
|
+ return [
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '所属工厂:',
|
|
|
|
|
+ value: 'factoryId',
|
|
|
|
|
+ type: 'select',
|
|
|
|
|
+ placeholder: '请选择',
|
|
|
|
|
+ planList: this.factoryList.map(item => ({
|
|
|
|
|
+ value: item.id,
|
|
|
|
|
+ label: item.name
|
|
|
|
|
+ }
|
|
|
|
|
+ ))
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '调出仓库:',
|
|
|
|
|
+ value: 'sourceWarehouse',
|
|
|
|
|
+ type: 'select',
|
|
|
|
|
+ placeholder: '请选择',
|
|
|
|
|
+ planList: this.warehouseList.map(item => ({
|
|
|
|
|
+ value: item.id,
|
|
|
|
|
+ label: item.name
|
|
|
|
|
+ }
|
|
|
|
|
+ ))
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '调入仓库:',
|
|
|
|
|
+ value: 'targetWarehouse',
|
|
|
|
|
+ type: 'select',
|
|
|
|
|
+ placeholder: '请选择',
|
|
|
|
|
+ planList: this.warehouseList.map(item => ({
|
|
|
|
|
+ value: item.id,
|
|
|
|
|
+ label: item.name
|
|
|
|
|
+ }
|
|
|
|
|
+ ))
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '物品名称:',
|
|
|
|
|
+ value: 'categoryName',
|
|
|
|
|
+ type: 'input',
|
|
|
|
|
+ placeholder: '请输入'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '物品编码:',
|
|
|
|
|
+ value: 'categoryCode',
|
|
|
|
|
+ type: 'input',
|
|
|
|
|
+ placeholder: '请输入'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '调拨名称:',
|
|
|
|
|
+ value: 'name',
|
|
|
|
|
+ type: 'input',
|
|
|
|
|
+ placeholder: '请输入'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '调拨单号:',
|
|
|
|
|
+ value: 'allotCode',
|
|
|
|
|
+ type: 'input',
|
|
|
|
|
+ placeholder: '请输入'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '发运状态',
|
|
|
|
|
+ value: 'logisticStatus',
|
|
|
|
|
+ type: 'select',
|
|
|
|
|
+ placeholder: '请选择',
|
|
|
|
|
+ width: 360,
|
|
|
|
|
+ planList: [
|
|
|
|
|
+ { value: 0, label: '未发运' },
|
|
|
|
|
+ { value: 1, label: '已发运' }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ ];
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -252,9 +289,14 @@
|
|
|
);
|
|
);
|
|
|
},
|
|
},
|
|
|
/* 搜索 */
|
|
/* 搜索 */
|
|
|
- search() {
|
|
|
|
|
- console.log(this.where);
|
|
|
|
|
- this.$emit('search', this.where);
|
|
|
|
|
|
|
+ // search() {
|
|
|
|
|
+ // console.log(this.where);
|
|
|
|
|
+ // this.$emit('search', this.where);
|
|
|
|
|
+ // },
|
|
|
|
|
+ search(e) {
|
|
|
|
|
+ this.$emit('search', {
|
|
|
|
|
+ ...e
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
/* 重置 */
|
|
/* 重置 */
|
|
|
reset() {
|
|
reset() {
|