Commit 1c36876d by 张立顺

路由 修复

1 parent 82e5bf94
...@@ -211,7 +211,7 @@ export const routerName = { ...@@ -211,7 +211,7 @@ export const routerName = {
handle: "handlePrint" handle: "handlePrint"
}, },
{ {
authId: "9040604", authId: "9040605",
parentId: "90406", parentId: "90406",
label: "打印合同", label: "打印合同",
handle: "handlePrintContract" handle: "handlePrintContract"
......
...@@ -2,59 +2,45 @@ ...@@ -2,59 +2,45 @@
<template> <template>
<div> <div>
<d2-container> <d2-container>
<div class="header" <div class="header" slot="header" style="padding: 10px 20px">
slot="header" <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData" />
style="padding: 10px 20px">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData" />
<div class="up-btns"> <div class="up-btns">
<el-button @click="handleSearch" <el-button @click="handleSearch" size="small" type="primary">
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset"> 重置 </el-button>
@click="handleReset"> 重置 </el-button>
</div> </div>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header> <d2-table-header>
<el-button class="default-blue-btn" <el-button class="default-blue-btn" plain @click="handleExport" size="small">导出</el-button>
plain
@click="handleExport"
size="small">导出</el-button>
</d2-table-header> </d2-table-header>
<d2-table ref="damageTable" <d2-table ref="damageTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:get-list-api="getListApi" :before-search-fn="beforeSearchFn">
:search-form="searchFormSearch" <div slot-scope="scope" slot="auth-button" class="btnClass">
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<div slot-scope="scope"
slot="auth-button"
class="btnClass">
<!-- 查看 --> <!-- 查看 -->
<auth-button v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)" :show-btn-ids="['9040601']" :data="scope.scope" /> <auth-button
v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
:show-btn-ids="['9040601']" :data="scope.scope" />
<!-- 打印报价单 --> <!-- 打印报价单 -->
<auth-button v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)" :show-btn-ids="['9040603']" :data="scope.scope" /> <auth-button
v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
:show-btn-ids="['9040603']" :data="scope.scope" />
<!-- 打印合同 --> <!-- 打印合同 -->
<auth-button v-if="[2].includes(scope.scope.equityOrderStatus) && [3, 5].includes(scope.scope.orderStatus)" <auth-button v-if="[2].includes(scope.scope.equityOrderStatus) && [3, 5].includes(scope.scope.orderStatus)"
:show-btn-ids="['9040604']" :show-btn-ids="['9040605']" :data="scope.scope" />
:data="scope.scope" /> <auth-button :show-btn-ids="['9040602']" :data="scope.scope" />
<auth-button :show-btn-ids="['9040602']"
:data="scope.scope" />
</div> </div>
</d2-table> </d2-table>
</div> </div>
</d2-container> </d2-container>
<!-- 查看 --> <!-- 查看 -->
<!-- <stock-month-dialog <!-- <stock-month-dialog
:stock-month-visible="stockMonthVisible" :stock-month-visible="stockMonthVisible"
:recordInfo="recordInfo" :recordInfo="recordInfo"
v-if="stockMonthVisible" v-if="stockMonthVisible"
@dialogClose="dialogClose" @dialogClose="dialogClose"
/> --> /> -->
</div> </div>
</template> </template>
...@@ -338,7 +324,7 @@ export default { ...@@ -338,7 +324,7 @@ export default {
detail: row detail: row
} }
}) })
}, }
} }
} }
</script> </script>
...@@ -354,6 +340,7 @@ export default { ...@@ -354,6 +340,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
margin-right: 10px; margin-right: 10px;
} }
.btnClass { .btnClass {
span { span {
margin-right: 5px; margin-right: 5px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!