|
|
@@ -62,9 +62,9 @@
|
|
|
</el-col>
|
|
|
<el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
|
|
<el-form-item label="生产状态:">
|
|
|
- <el-select v-model="where.proStu" placeholder="请选择" class="w100">
|
|
|
+ <el-select v-model="where.proStu" placeholder="请选择">
|
|
|
<el-option
|
|
|
- v-if="chooseName == 'first'"
|
|
|
+ v-if="activeName == 'first'"
|
|
|
v-for="item in awaitProcuct"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
@@ -72,7 +72,7 @@
|
|
|
>
|
|
|
</el-option>
|
|
|
<el-option
|
|
|
- v-if="chooseName == 'second'"
|
|
|
+ v-if="activeName == 'second'"
|
|
|
v-for="item in alreadyProcuct"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
@@ -84,12 +84,15 @@
|
|
|
</el-col>
|
|
|
<el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
|
|
<el-form-item label="按单按库:">
|
|
|
- <DictSelection
|
|
|
- dictName="按单按库"
|
|
|
- clearable
|
|
|
- v-model="where.orderLibraryType"
|
|
|
- >
|
|
|
- </DictSelection>
|
|
|
+ <el-select v-model="where.orderLibraryType" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in orderTypeList"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
|
|
@@ -180,7 +183,8 @@
|
|
|
import { pullSalesOrder, deleteOrder } from '@/api/saleOrder';
|
|
|
export default {
|
|
|
props: {
|
|
|
- selection: Array
|
|
|
+ selection: Array,
|
|
|
+ activeName:String
|
|
|
},
|
|
|
components: {
|
|
|
ImportException,
|
|
|
@@ -196,15 +200,16 @@
|
|
|
lineNumber: '',
|
|
|
model: '',
|
|
|
brandNo: '',
|
|
|
- orderSource: '',
|
|
|
- orderType: '',
|
|
|
+ orderSource: 0,
|
|
|
+ orderType: 0,
|
|
|
proStu: '',
|
|
|
- orderLibraryType: '',
|
|
|
+ orderLibraryType: 0,
|
|
|
salesman: ''
|
|
|
};
|
|
|
return {
|
|
|
fileUrl,
|
|
|
// 表单数据
|
|
|
+ defaultWhere,
|
|
|
where: { ...defaultWhere },
|
|
|
time: [],
|
|
|
fileList: [],
|
|
|
@@ -218,7 +223,11 @@
|
|
|
{ value: 6, label: '已完成' },
|
|
|
{ value: 7, label: '已延期' }
|
|
|
],
|
|
|
- chooseName: 'first'
|
|
|
+ orderTypeList:[
|
|
|
+ { value: 0, label: '所有' },
|
|
|
+ { value: 1, label: '按单' },
|
|
|
+ { value: 2, label: '按库' },
|
|
|
+ ]
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -227,12 +236,20 @@
|
|
|
return this.$store.state.theme.styleResponsive;
|
|
|
}
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ activeName: {
|
|
|
+ handler () {
|
|
|
+ if (this.activeName=='first') {
|
|
|
+ this.where.proStu = 1
|
|
|
+ }else{
|
|
|
+ this.where.proStu = 0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ immediate: true
|
|
|
+ }
|
|
|
+ },
|
|
|
created () {},
|
|
|
methods: {
|
|
|
- setData (activeName) {
|
|
|
- this.chooseName = activeName;
|
|
|
- this.where.proStu = '';
|
|
|
- },
|
|
|
/* 搜索 */
|
|
|
search () {
|
|
|
if (this.time.length) {
|
|
|
@@ -245,6 +262,11 @@
|
|
|
reset () {
|
|
|
this.time = [];
|
|
|
this.where = { ...this.defaultWhere };
|
|
|
+ if (this.activeName=='first') {
|
|
|
+ this.where.proStu = 1
|
|
|
+ }else{
|
|
|
+ this.where.proStu = 0
|
|
|
+ }
|
|
|
this.search();
|
|
|
},
|
|
|
toImport () {
|