|
@@ -27,6 +27,13 @@
|
|
|
@selection="selection_change"
|
|
|
><template #table-header="{}">
|
|
|
<div class="searchBox">
|
|
|
+ <el-button
|
|
|
+
|
|
|
+ class="btn entry"
|
|
|
+ @click="entry"
|
|
|
+ size="mini"
|
|
|
+ >订单导入</el-button
|
|
|
+ >
|
|
|
<el-form
|
|
|
ref="form"
|
|
|
:model="parmValue"
|
|
@@ -386,16 +393,22 @@ export default {
|
|
|
if (!this.selectStockIf()) {
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ let ids = [];
|
|
|
+ this.changeList.forEach((item)=>{
|
|
|
+ ids.push(item.id)
|
|
|
+ })
|
|
|
let model = {
|
|
|
- ids: this.changeList,
|
|
|
+ ids
|
|
|
};
|
|
|
let res = await asyncRequest.relationstockbatch(model);
|
|
|
if (res && res.code === 0) {
|
|
|
console.log(res)
|
|
|
+ this.$message.success(res.message);
|
|
|
+ this.searchList()
|
|
|
//成功展示弹窗
|
|
|
this.centerDialogVisible = true;
|
|
|
- this.$message.success(res.message);
|
|
|
+
|
|
|
} else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
await this.logout();
|
|
|
} else {
|
|
@@ -433,6 +446,10 @@ export default {
|
|
|
this.parmValue.page = 1;
|
|
|
this.searchList();
|
|
|
},
|
|
|
+ //订单导入入口
|
|
|
+ entry(){
|
|
|
+ this.$router.push("/orderEntry/orderImport")
|
|
|
+ },
|
|
|
|
|
|
//选中触发函数
|
|
|
selection_change(e) {
|
|
@@ -482,7 +499,12 @@ export default {
|
|
|
width: 100%;
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
-/deep/ .el-dropdown-selfdefine {
|
|
|
+.entry{
|
|
|
+ position: absolute;
|
|
|
+ top: 69px;
|
|
|
+ left: -1px;
|
|
|
+}
|
|
|
+/deep/ .el-dropdown-selfdefine ,.entry {
|
|
|
background: #63cbe7;
|
|
|
color: #fff;
|
|
|
font-weight: bold;
|