|
@@ -70,15 +70,15 @@
|
|
|
<avue-crud ref="crudBox" :option="boxOption" :data="form.boxTypeList"
|
|
<avue-crud ref="crudBox" :option="boxOption" :data="form.boxTypeList"
|
|
|
@selection-change="boxSelectionChange">
|
|
@selection-change="boxSelectionChange">
|
|
|
<template slot="menuLeft">
|
|
<template slot="menuLeft">
|
|
|
- <el-button type="info" plain size="small" :disabled="editDisabled || !form.id"
|
|
|
|
|
|
|
+ <el-button type="info" plain size="small" :disabled="editDisabled || !form.id||form.buxStaus != '录入'"
|
|
|
@click="allClick('box一键保存')">一键保存</el-button>
|
|
@click="allClick('box一键保存')">一键保存</el-button>
|
|
|
- <el-button type="info" plain size="small" :disabled="editDisabled || form.boxTypeList.length == 0"
|
|
|
|
|
|
|
+ <el-button type="info" plain size="small" :disabled="editDisabled || form.boxTypeList.length == 0||form.buxStaus != '录入'"
|
|
|
@click="allClick('box一键编辑')">一键编辑</el-button>
|
|
@click="allClick('box一键编辑')">一键编辑</el-button>
|
|
|
- <el-button type="danger" plain size="small" :disabled="editDisabled || boxSelectionList.length == 0"
|
|
|
|
|
|
|
+ <el-button type="danger" plain size="small" :disabled="editDisabled || boxSelectionList.length == 0||form.buxStaus != '录入'"
|
|
|
@click="allClick('box批量删除')">批量删除</el-button>
|
|
@click="allClick('box批量删除')">批量删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<template slot="indexHeader" slot-scope="{row,index}">
|
|
<template slot="indexHeader" slot-scope="{row,index}">
|
|
|
- <el-button type="primary" size="mini" icon="el-icon-plus" :disabled="editDisabled" circle
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" icon="el-icon-plus" :disabled="editDisabled||form.buxStaus != '录入'" circle
|
|
|
@click="boxAddRow()">
|
|
@click="boxAddRow()">
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</template>
|
|
</template>
|
|
@@ -129,12 +129,12 @@
|
|
|
@resetColumn="resetColumn('crud', 'option', 'optionBack', 473)"
|
|
@resetColumn="resetColumn('crud', 'option', 'optionBack', 473)"
|
|
|
@saveColumn="saveColumn('crud', 'option', 'optionBack', 473)">
|
|
@saveColumn="saveColumn('crud', 'option', 'optionBack', 473)">
|
|
|
<template slot="menuLeft">
|
|
<template slot="menuLeft">
|
|
|
- <el-button type="info" plain size="small" :disabled="editDisabled || !form.id"
|
|
|
|
|
|
|
+ <el-button type="info" plain size="small" :disabled="editDisabled || !form.id||form.buxStaus != '录入'"
|
|
|
@click="allClick('一键保存')">一键保存</el-button>
|
|
@click="allClick('一键保存')">一键保存</el-button>
|
|
|
<el-button type="info" plain size="small"
|
|
<el-button type="info" plain size="small"
|
|
|
- :disabled="editDisabled || form.tradingBoxItemsList.length == 0"
|
|
|
|
|
|
|
+ :disabled="editDisabled || form.tradingBoxItemsList.length == 0||form.buxStaus != '录入'"
|
|
|
@click="allClick('一键编辑')">一键编辑</el-button>
|
|
@click="allClick('一键编辑')">一键编辑</el-button>
|
|
|
- <el-button type="danger" plain size="small" :disabled="editDisabled || selectionList.length == 0"
|
|
|
|
|
|
|
+ <el-button type="danger" plain size="small" :disabled="editDisabled || selectionList.length == 0||form.buxStaus != '录入'"
|
|
|
@click="allClick('批量删除')">批量删除</el-button>
|
|
@click="allClick('批量删除')">批量删除</el-button>
|
|
|
<el-button type="primary" plain size="small" @click="allClick('起租')"
|
|
<el-button type="primary" plain size="small" @click="allClick('起租')"
|
|
|
:disabled="form.buxStaus != '录入' || form.tradingBoxItemsList.length == 0">起租</el-button>
|
|
:disabled="form.buxStaus != '录入' || form.tradingBoxItemsList.length == 0">起租</el-button>
|
|
@@ -146,7 +146,7 @@
|
|
|
:disabled="form.buxStaus != '已启租'">退租</el-button>
|
|
:disabled="form.buxStaus != '已启租'">退租</el-button>
|
|
|
<el-button type="danger" plain size="small" @click="allClick('撤销退租')"
|
|
<el-button type="danger" plain size="small" @click="allClick('撤销退租')"
|
|
|
:disabled="form.buxStaus != '已退租'">撤销退租</el-button>
|
|
:disabled="form.buxStaus != '已退租'">撤销退租</el-button>
|
|
|
- <el-button type="success" size="small">导入</el-button>
|
|
|
|
|
|
|
+ <el-button type="success" size="small" :disabled="form.buxStaus != '录入'">导入</el-button>
|
|
|
<el-button type="info" size="small" @click="allClick('启用')"
|
|
<el-button type="info" size="small" @click="allClick('启用')"
|
|
|
:disabled="selectionList.length == 0 || form.buxStaus != '已启租'">启用</el-button>
|
|
:disabled="selectionList.length == 0 || form.buxStaus != '已启租'">启用</el-button>
|
|
|
<!-- <el-button type="primary" size="small" @click="allClick('卖箱')">卖箱</el-button> -->
|
|
<!-- <el-button type="primary" size="small" @click="allClick('卖箱')">卖箱</el-button> -->
|
|
@@ -155,7 +155,7 @@
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<template slot="indexHeader" slot-scope="{row,index}">
|
|
<template slot="indexHeader" slot-scope="{row,index}">
|
|
|
- <el-button type="primary" size="mini" icon="el-icon-plus" :disabled="editDisabled" circle
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" icon="el-icon-plus" :disabled="editDisabled||form.buxStaus != '录入'" circle
|
|
|
@click="addRow()">
|
|
@click="addRow()">
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</template>
|
|
</template>
|