库存查询,文件导入导出等

master
anthonywj 3 years ago
parent 87527aeaf8
commit 77ab482a99

@ -1,7 +1,7 @@
{ {
"BASE_URL":"http://139.159.187.130:8080/UDI_WMS_MC", "BASE_URL":"http://127.0.0.1:9991",
"SERVER_IP": "http://139.159.187.130:8080/", "SERVER_IP": "http://127.0.0.1:9991/",
"WEBSOCKET_URL": "ws://139.159.187.130:8080/UDI_WMS_MC/api/websocket/" "BASE_URL2": "ws://127.0.0.1:9991/api/websocket/"
} }

@ -8,7 +8,13 @@
style="width: 400px" style="width: 400px"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="filterQuery.enable" placeholder="启用状态" clearable>
<el-option label="全部" value=""></el-option>
<el-option label="已启用" value="1"></el-option>
<el-option label="未启用" value="0"></el-option>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
@ -97,19 +103,20 @@
</div> </div>
</template> </template>
<script> <script>
import { import {
getJoinBussinessType, getJoinBussinessType,
deleteBussinessType, deleteBussinessType,
updateBussinessType, updateBussinessType,
insertBussinessType, insertBussinessType,
} from "../../api/basic/bussinessType"; } from "../../api/basic/bussinessType";
import modifyDialog from "./BussinessTypeModify"; import modifyDialog from "./BussinessTypeModify";
export default { export default {
data() { data() {
return { return {
filterQuery: { filterQuery: {
enable: "1",
udiwmsType: "", udiwmsType: "",
thirdType: "", thirdType: "",
page: 1, page: 1,
@ -144,6 +151,7 @@
path: "", path: "",
}); });
this.filterQuery = { this.filterQuery = {
enable: null,
udiwmsType: "", udiwmsType: "",
thirdType: "", thirdType: "",
page: 1, page: 1,
@ -170,7 +178,10 @@
this.total = 0; this.total = 0;
}); });
}, },
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
onAddSubmit() { onAddSubmit() {
insertBussinessType(this.inputQuery) insertBussinessType(this.inputQuery)
@ -207,7 +218,7 @@
name: row.name, name: row.name,
enable: row.enable, enable: row.enable,
mainAction: row.mainAction, mainAction: row.mainAction,
localAction:row.localAction, localAction: row.localAction,
thirdSysFk: row.thirdSysFk, thirdSysFk: row.thirdSysFk,
}; };
}, },
@ -251,5 +262,5 @@
created() { created() {
this.getList(); this.getList();
}, },
}; };
</script> </script>

@ -160,6 +160,10 @@
}; };
return statusMap[status]; return statusMap[status];
}, },
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
}, },
mounted() { mounted() {
}, },

@ -104,11 +104,11 @@
</template> </template>
<script> <script>
import { import {
filterDetail, filterDetail,
} from "../../api/basic/udiinfolog"; } from "../../api/basic/udiinfolog";
export default { export default {
name: "udiImportDetail", name: "udiImportDetail",
props: { props: {
currentRow: { currentRow: {
@ -121,8 +121,8 @@
return { return {
filterQuery: { filterQuery: {
genKey: null, genKey: null,
udiCode:null, udiCode: null,
status:null, status: null,
page: 1, page: 1,
limit: 10, limit: 10,
}, },
@ -144,8 +144,8 @@
}); });
this.filterQuery = { this.filterQuery = {
genKey: null, genKey: null,
udiCode:null, udiCode: null,
status:null, status: null,
page: 1, page: 1,
limit: 10, limit: 10,
}; };
@ -153,7 +153,7 @@
}, },
getList() { getList() {
this.loading = true; this.loading = true;
console.log(" this.genKey = "+ this.currentRow.genKey) console.log(" this.genKey = " + this.currentRow.genKey)
this.filterQuery.genKey = this.currentRow.genKey; this.filterQuery.genKey = this.currentRow.genKey;
filterDetail(this.filterQuery) filterDetail(this.filterQuery)
.then((response) => { .then((response) => {
@ -175,38 +175,41 @@
}; };
return statusMap[status]; return statusMap[status];
}, },
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
}, },
mounted() { mounted() {
}, },
created() { created() {
this.getList(); this.getList();
}, },
filters: { filters: {},
};
},
};
</script> </script>
<style> <style>
.itemTag { .itemTag {
float: left; float: left;
text-align: left; text-align: left;
margin-top: 10px; margin-top: 10px;
width: 100px; width: 100px;
} }
.text { .text {
font-size: 13px; font-size: 13px;
font-family: "Microsoft YaHei"; font-family: "Microsoft YaHei";
} }
.el-row { .el-row {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.el-col { .el-col {
border-radius: 4px; border-radius: 4px;
flex-wrap: wrap; flex-wrap: wrap;
} }
</style> </style>

@ -148,6 +148,10 @@
this.total = 0; this.total = 0;
}); });
}, },
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
}, },
mounted() { mounted() {
}, },

@ -158,6 +158,10 @@
console.log("----" + val); console.log("----" + val);
this.multipleSelection = val; this.multipleSelection = val;
}, },
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
} }
} }

@ -196,6 +196,10 @@
console.log("----" + val); console.log("----" + val);
this.multipleSelection = val; this.multipleSelection = val;
}, },
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
} }
} }

Loading…
Cancel
Save