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

对比sap,触发改动

parent 4726de7c
<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">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
......@@ -7,7 +8,7 @@
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<div class="queryTime">
当前数据查询时间:{{queryTime}}
当前数据查询时间:{{queryTime}}
</div>
</template>
......@@ -20,7 +21,7 @@
data() {
return {
queryTime:'暂无',
queryTime: '暂无',
power: {
add: false,
copy: false,
......@@ -68,17 +69,17 @@
{
title: "WMS库存总数",
field: "kcsl",
fieldType:"float"
fieldType: "float"
},
{
title: "SAP库存总数",
field: "sapKcsl",
fieldType:"float"
fieldType: "float"
},
{
title: "库存差异数量",
field: "cysl",
fieldType:"float"
fieldType: "float"
}
],
......@@ -108,7 +109,9 @@
"match": {
"value": "id",
"label": "name"
}
},
linkage:true,
linkParams:['hzid']
}
}, {
label: '是否差异',
......@@ -144,10 +147,30 @@
},
methods: {
/* 示例*/
pageQueryFinally(list,res){
let serverTime =res.data.serverTime
this.queryTime=this.$moment(serverTime).format('YYYY-MM-DD HH:mm:ss');
/**
* @description:触发搜索参数前校验是否存在参数
* @param {Object} params
* @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: {
......@@ -158,7 +181,7 @@
</script>
<style scoped lang="scss">
.queryTime{
.queryTime {
font-size: 13px;
color: #999;
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