|
@@ -268,7 +268,7 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
// 判断“退回”按钮
|
|
// 判断“退回”按钮
|
|
- judgeIsSendBack() {
|
|
|
|
|
|
+ judgeIsAllSendBack() {
|
|
|
|
|
|
if (this.checkedList.length == 1) {
|
|
if (this.checkedList.length == 1) {
|
|
|
|
|
|
@@ -281,8 +281,22 @@ export default {
|
|
return true;
|
|
return true;
|
|
},
|
|
},
|
|
// 退回
|
|
// 退回
|
|
- handleSendBack() {
|
|
|
|
- console.log(this.checkedList[0].id);
|
|
|
|
|
|
+ handleAllSendBack() {
|
|
|
|
+ let data = {
|
|
|
|
+ id: this.checkedList[0].id,
|
|
|
|
+ documentIds: [],
|
|
|
|
+ baskCause: ''
|
|
|
|
+ }
|
|
|
|
+ console.log(data);
|
|
|
|
+ try {
|
|
|
|
+ this.loading = true;
|
|
|
|
+ // let { code, msg } = orderApi.documentsReturn(data);
|
|
|
|
+
|
|
|
|
+ } catch (error) {
|
|
|
|
+
|
|
|
|
+ } finally {
|
|
|
|
+ this.loading = false;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
handleSelect(selection, row) {
|
|
handleSelect(selection, row) {
|
|
this.checkedList = selection;
|
|
this.checkedList = selection;
|
|
@@ -335,8 +349,8 @@ export default {
|
|
</el-button-group>
|
|
</el-button-group>
|
|
|
|
|
|
<el-button-group style="margin-left: 10px">
|
|
<el-button-group style="margin-left: 10px">
|
|
- <el-button size="mini" @click="handleSendBack" :key="checkedList.length"
|
|
|
|
- :disabled="judgeIsSendBack()">退回</el-button>
|
|
|
|
|
|
+ <el-button size="mini" @click="handleAllSendBack" :key="checkedList.length"
|
|
|
|
+ :disabled="judgeIsAllSendBack()">整单退回</el-button>
|
|
</el-button-group>
|
|
</el-button-group>
|
|
|
|
|
|
<el-button-group style="margin-left: 10px">
|
|
<el-button-group style="margin-left: 10px">
|
|
@@ -378,7 +392,7 @@ export default {
|
|
<el-tabs v-model="tabName" @tab-click="handleTabClick" style="width: 100%;padding: 20px 10px">
|
|
<el-tabs v-model="tabName" @tab-click="handleTabClick" style="width: 100%;padding: 20px 10px">
|
|
<el-tab-pane v-for="(column, index) in tabColumns" :key="index" :label="column.title" :name="column.key">
|
|
<el-tab-pane v-for="(column, index) in tabColumns" :key="index" :label="column.title" :name="column.key">
|
|
<el-table :data="tabTableDatas[column.key]" style="width: 100%" highlight-current-row
|
|
<el-table :data="tabTableDatas[column.key]" style="width: 100%" highlight-current-row
|
|
- :height="tabTableDatas[column.key].length ? 300 : 100">
|
|
|
|
|
|
+ :height="tabTableDatas[column.key].length>5 ? 300 : ''">
|
|
<el-table-column type="index" width="50" label="序号"></el-table-column>
|
|
<el-table-column type="index" width="50" label="序号"></el-table-column>
|
|
<el-table-column v-for="(cColumn, cIndex) in column.tableColumns" :key="cIndex" :prop="cColumn.key"
|
|
<el-table-column v-for="(cColumn, cIndex) in column.tableColumns" :key="cIndex" :prop="cColumn.key"
|
|
:label="cColumn.title" :width="cColumn.width || 100" show-overflow-tooltip>
|
|
:label="cColumn.title" :width="cColumn.width || 100" show-overflow-tooltip>
|