|
@@ -96,7 +96,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="page-footer">
|
|
<div class="page-footer">
|
|
- <div class="footer" :class="classObj">
|
|
|
|
|
|
+ <div class="footer">
|
|
<el-button type="primary" @click="clickSubmitForm('SAVE')">保 存</el-button>
|
|
<el-button type="primary" @click="clickSubmitForm('SAVE')">保 存</el-button>
|
|
<el-button type="primary" @click="clickSubmitForm('WAIT')">提交审核</el-button>
|
|
<el-button type="primary" @click="clickSubmitForm('WAIT')">提交审核</el-button>
|
|
<el-popconfirm title="确定关闭吗?" @onConfirm="goBack" style="margin-left: 10px;">
|
|
<el-popconfirm title="确定关闭吗?" @onConfirm="goBack" style="margin-left: 10px;">
|
|
@@ -115,13 +115,13 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :xs="12" :sm="6" :lg="6">
|
|
|
|
|
|
+ <!-- <el-col :xs="12" :sm="6" :lg="6">
|
|
<el-form-item prop="type" label="产品大类">
|
|
<el-form-item prop="type" label="产品大类">
|
|
<el-select v-model="screenForm.type" placeholder="选择产品大类" style="width: 100%" :disabled="goodsList.length > 0 || tableSelection.length > 0">
|
|
<el-select v-model="screenForm.type" placeholder="选择产品大类" style="width: 100%" :disabled="goodsList.length > 0 || tableSelection.length > 0">
|
|
<el-option v-for="item in typeList" :key="item.dictCode" :label="item.dictValue" :value="item.dictCode"></el-option>
|
|
<el-option v-for="item in typeList" :key="item.dictCode" :label="item.dictValue" :value="item.dictCode"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- </el-col>
|
|
|
|
|
|
+ </el-col> -->
|
|
<el-col :xs="12" :sm="6" :lg="6">
|
|
<el-col :xs="12" :sm="6" :lg="6">
|
|
<el-form-item prop="orderNum" label="订单号">
|
|
<el-form-item prop="orderNum" label="订单号">
|
|
<el-input v-model="screenForm.orderNum" placeholder="请输入订单号"></el-input>
|
|
<el-input v-model="screenForm.orderNum" placeholder="请输入订单号"></el-input>
|
|
@@ -220,13 +220,13 @@ export default {
|
|
warehouseList: [],
|
|
warehouseList: [],
|
|
isShowDialog: false,
|
|
isShowDialog: false,
|
|
screenForm: {
|
|
screenForm: {
|
|
- warehouse: '',
|
|
|
|
- type: '',
|
|
|
|
|
|
+ warehouse: [],
|
|
|
|
+ // type: '',
|
|
orderNum: '',
|
|
orderNum: '',
|
|
},
|
|
},
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
listTotal: 0,
|
|
listTotal: 0,
|
|
- typeList: [],
|
|
|
|
|
|
+ // typeList: [],
|
|
stockList: [],
|
|
stockList: [],
|
|
|
|
|
|
tableGoodsList: [],
|
|
tableGoodsList: [],
|
|
@@ -234,18 +234,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
- computed: {
|
|
|
|
- sidebar() {
|
|
|
|
- return this.$store.state.app.sidebar
|
|
|
|
- },
|
|
|
|
- classObj() {
|
|
|
|
- return {
|
|
|
|
- hideSidebar: !this.sidebar.opened,
|
|
|
|
- openSidebar: this.sidebar.opened
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
created() {
|
|
created() {
|
|
this.getDictList();
|
|
this.getDictList();
|
|
this.getWarehouseList();
|
|
this.getWarehouseList();
|
|
@@ -284,7 +272,7 @@ export default {
|
|
// item.orderId = item.id;
|
|
// item.orderId = item.id;
|
|
// })
|
|
// })
|
|
this.goodsList = data.orders;
|
|
this.goodsList = data.orders;
|
|
- this.screenForm.type = data.mainId;
|
|
|
|
|
|
+ // this.screenForm.type = data.mainId;
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
@@ -299,9 +287,9 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
getDictList() {
|
|
getDictList() {
|
|
- getDictList({sysDictEnum: 'PRODUCT_TYPE'}).then(res => {
|
|
|
|
- this.typeList = res.data;
|
|
|
|
- })
|
|
|
|
|
|
+ // getDictList({sysDictEnum: 'PRODUCT_TYPE'}).then(res => {
|
|
|
|
+ // this.typeList = res.data;
|
|
|
|
+ // })
|
|
getDictList({sysDictEnum: 'STOCK_ORDER'}).then(res => {
|
|
getDictList({sysDictEnum: 'STOCK_ORDER'}).then(res => {
|
|
this.stockList = res.data;
|
|
this.stockList = res.data;
|
|
})
|
|
})
|
|
@@ -335,7 +323,7 @@ export default {
|
|
pageNum: this.currentPage,
|
|
pageNum: this.currentPage,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
correspondId: this.screenForm.warehouse,
|
|
correspondId: this.screenForm.warehouse,
|
|
- mainId: this.screenForm.type,
|
|
|
|
|
|
+ // mainId: this.screenForm.type,
|
|
id: this.screenForm.orderNum,
|
|
id: this.screenForm.orderNum,
|
|
}).then(res => {
|
|
}).then(res => {
|
|
let oldGoodsList = this.goodsList;
|
|
let oldGoodsList = this.goodsList;
|
|
@@ -371,15 +359,15 @@ export default {
|
|
return this.$errorMsg('请选择仓库');
|
|
return this.$errorMsg('请选择仓库');
|
|
}
|
|
}
|
|
this.isShowDialog = true;
|
|
this.isShowDialog = true;
|
|
- if(this.screenForm.warehouse && this.screenForm.type) {
|
|
|
|
|
|
+ if(this.screenForm.warehouse) {
|
|
this.getGoodsList();
|
|
this.getGoodsList();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
// 提交筛选表单
|
|
// 提交筛选表单
|
|
submitScreenForm() {
|
|
submitScreenForm() {
|
|
- if(!this.screenForm.warehouse || !this.screenForm.type) {
|
|
|
|
- return this.$errorMsg('请选择仓库和产品大类');
|
|
|
|
|
|
+ if(!this.screenForm.warehouse) {
|
|
|
|
+ return this.$errorMsg('请选择仓库');
|
|
}
|
|
}
|
|
this.currentPage = 1;
|
|
this.currentPage = 1;
|
|
this.getGoodsList();
|
|
this.getGoodsList();
|