更新
This commit is contained in:
@@ -161,6 +161,7 @@ export default {
|
||||
},
|
||||
tableProps,
|
||||
tableData: [],
|
||||
getTrayCode: undefined,
|
||||
formConfig: [
|
||||
{
|
||||
type: 'input',
|
||||
@@ -226,7 +227,11 @@ export default {
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
created() {},
|
||||
created() {
|
||||
this.listQuery.trayCode = this.$route.query && this.$route.query.trayCode
|
||||
this.formConfig[0].placeholder = this.listQuery.trayCode || '托盘编码'
|
||||
this.getDataList();
|
||||
},
|
||||
methods: {
|
||||
buttonClick(val) {
|
||||
switch (val.btnName) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2024-02-27 14:43:14
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2024-08-20 16:17:36
|
||||
* @LastEditTime: 2024-08-21 14:04:09
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -39,13 +39,14 @@
|
||||
:label="'第' + i + '页'"
|
||||
:name="i + '页'">
|
||||
<el-tag
|
||||
style="margin: 5px; border: 1px solid #67c23a"
|
||||
style="margin: 5px; border: 1px solid #67c23a;cursor: pointer;"
|
||||
v-for="(item, index) in containerCodeArr.slice(
|
||||
(i - 1) * pageSize,
|
||||
i * pageSize
|
||||
)"
|
||||
:key="index"
|
||||
effect="plain"
|
||||
@click="toRollMessagePage(item.containerCode)"
|
||||
size="small">
|
||||
{{ item.containerCode }}
|
||||
</el-tag>
|
||||
@@ -158,6 +159,23 @@ export default {
|
||||
})
|
||||
.catch(() => {});
|
||||
},
|
||||
/** 跳转膜卷信息页面 */
|
||||
toRollMessagePage(trayCode){
|
||||
this.$confirm(`是否跳转到膜卷信息页面? 托盘编码:[ ${trayCode} ]`, "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "success ",
|
||||
})
|
||||
.then(() => {
|
||||
this.$router.push({
|
||||
path: "rollMessage",
|
||||
query:{
|
||||
trayCode: trayCode
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch(() => { });
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user