Commit 87544991 authored by 李苏's avatar 李苏 💬

对比sap,触发改动

parent 4726de7c
<template> <template>
<BasePage @pageQueryFinally='pageQueryFinally' :power='power' :fePage='true' class="min_full" :config="config"> <BasePage :autoQuery='false' :changeQueryParams='checkQueryParams' @pageQueryFinally='pageQueryFinally' :power='power'
:fePage='true' class="min_full" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
...@@ -7,7 +8,7 @@ ...@@ -7,7 +8,7 @@
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> --> <!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<div class="queryTime"> <div class="queryTime">
当前数据查询时间:{{queryTime}} 当前数据查询时间:{{queryTime}}
</div> </div>
</template> </template>
...@@ -20,7 +21,7 @@ ...@@ -20,7 +21,7 @@
data() { data() {
return { return {
queryTime:'暂无', queryTime: '暂无',
power: { power: {
add: false, add: false,
copy: false, copy: false,
...@@ -68,17 +69,17 @@ ...@@ -68,17 +69,17 @@
{ {
title: "WMS库存总数", title: "WMS库存总数",
field: "kcsl", field: "kcsl",
fieldType:"float" fieldType: "float"
}, },
{ {
title: "SAP库存总数", title: "SAP库存总数",
field: "sapKcsl", field: "sapKcsl",
fieldType:"float" fieldType: "float"
}, },
{ {
title: "库存差异数量", title: "库存差异数量",
field: "cysl", field: "cysl",
fieldType:"float" fieldType: "float"
} }
], ],
...@@ -108,7 +109,9 @@ ...@@ -108,7 +109,9 @@
"match": { "match": {
"value": "id", "value": "id",
"label": "name" "label": "name"
} },
linkage:true,
linkParams:['hzid']
} }
}, { }, {
label: '是否差异', label: '是否差异',
...@@ -144,10 +147,30 @@ ...@@ -144,10 +147,30 @@
}, },
methods: { methods: {
/* 示例*/ /**
pageQueryFinally(list,res){ * @description:触发搜索参数前校验是否存在参数
let serverTime =res.data.serverTime * @param {Object} params
this.queryTime=this.$moment(serverTime).format('YYYY-MM-DD HH:mm:ss'); * @param {Object} tbapp
* @return {*}
* @author: lisu
*/
checkQueryParams(params, tbapp) {
if (!params.hzid) {
this.$warning('请选择工厂')
tbapp.loading = false
tbapp.isactive = false
throw new Error('请选择工厂')
}
if (!params.sapCkid) {
this.$warning('请选择库存地点')
tbapp.loading = false
tbapp.isactive = false
throw new Error('请选择库存地点')
}
},
pageQueryFinally(list, res) {
let serverTime = res.data.serverTime
this.queryTime = this.$moment(serverTime).format('YYYY-MM-DD HH:mm:ss');
} }
}, },
components: { components: {
...@@ -158,7 +181,7 @@ ...@@ -158,7 +181,7 @@
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.queryTime{ .queryTime {
font-size: 13px; font-size: 13px;
color: #999; color: #999;
float: right; float: right;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment