|
@@ -1,12 +1,25 @@
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
- <basicLayout
|
|
|
|
|
|
|
+ <basicLayout
|
|
|
ref="basicLayout"
|
|
ref="basicLayout"
|
|
|
- tableName="orderMxTable"
|
|
|
|
|
- idName="sa_orderid"
|
|
|
|
|
|
|
+ tableName="orderMxTable"
|
|
|
|
|
+ idName="sa_orderid"
|
|
|
:apiId="{query:20230508111703}"
|
|
:apiId="{query:20230508111703}"
|
|
|
:options="options">
|
|
:options="options">
|
|
|
|
|
+ <template #setSort>
|
|
|
|
|
+
|
|
|
|
|
+ <el-dropdown @command="handleCommand">
|
|
|
|
|
+ <span class="el-dropdown-link">
|
|
|
|
|
+ <i class="el-icon-sort inline-16" ></i>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
|
|
+ <el-dropdown-item command="默认">默认</el-dropdown-item>
|
|
|
|
|
+ <el-dropdown-item command="未发数量">未发数量</el-dropdown-item>
|
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
|
+ </el-dropdown>
|
|
|
|
|
+
|
|
|
|
|
+ </template>
|
|
|
<template #custom>
|
|
<template #custom>
|
|
|
<div class="mt-10">
|
|
<div class="mt-10">
|
|
|
<label class="search__label" >单据日期:</label>
|
|
<label class="search__label" >单据日期:</label>
|
|
@@ -101,7 +114,7 @@ export default {
|
|
|
"isfreeze":''
|
|
"isfreeze":''
|
|
|
},
|
|
},
|
|
|
dateSelect:[]
|
|
dateSelect:[]
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
@@ -123,6 +136,32 @@ export default {
|
|
|
routeToOrder (id) {
|
|
routeToOrder (id) {
|
|
|
this.$store.dispatch('changeDetailDrawer',true)
|
|
this.$store.dispatch('changeDetailDrawer',true)
|
|
|
this.$router.push({path:'/orderdetail',query:{id:id}})
|
|
this.$router.push({path:'/orderdetail',query:{id:id}})
|
|
|
|
|
+ },
|
|
|
|
|
+ /*筛选排序*/
|
|
|
|
|
+ handleCommand(command){
|
|
|
|
|
+ let sort = [
|
|
|
|
|
+ {
|
|
|
|
|
+ reversed : 0,
|
|
|
|
|
+ sorted: 1,
|
|
|
|
|
+ sortid: 137,
|
|
|
|
|
+ sortname: "默认"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ reversed : 0,
|
|
|
|
|
+ sorted: 1,
|
|
|
|
|
+ sortid: 145,
|
|
|
|
|
+ sortname: "未发数量"
|
|
|
|
|
+ },
|
|
|
|
|
+ ]
|
|
|
|
|
+ switch (command) {
|
|
|
|
|
+ case '默认':
|
|
|
|
|
+ this.$refs.basicLayout.param.content.sort = [sort[0]]
|
|
|
|
|
+ break
|
|
|
|
|
+ case '未发数量':
|
|
|
|
|
+ this.$refs.basicLayout.param.content.sort = [sort[1]]
|
|
|
|
|
+ break
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$refs.basicLayout.listData()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created () {
|
|
created () {
|
|
@@ -147,4 +186,4 @@ export default {
|
|
|
.search__label{
|
|
.search__label{
|
|
|
/* width: 120px; */
|
|
/* width: 120px; */
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|