Commit 1982e993 by wangql

操作栏改成拉下方式

1 parent d816630b
...@@ -96,8 +96,8 @@ ...@@ -96,8 +96,8 @@
<el-table-column prop="bsAddressDto.name" label="收货联系人" :width="tdWidth" /> <el-table-column prop="bsAddressDto.name" label="收货联系人" :width="tdWidth" />
<el-table-column prop="bsAddressDto.mobile" label="收货联系电话" :width="tdWidth" /> <el-table-column prop="bsAddressDto.mobile" label="收货联系电话" :width="tdWidth" />
<el-table-column prop="subjectName" label="项目" :width="tdWidth" /> <el-table-column prop="subjectName" label="项目" :width="tdWidth" />
<el-table-column label="操作" fixed="right" align="center" width="360"> <el-table-column label="操作" fixed="right" align="center" width="150">
<template slot-scope="scope"> <!-- <template slot-scope="scope">
<el-button type="primary" size="mini" v-if="scope.row.status == '8'" @click="assignShipment(scope.row)">分配发货</el-button> <el-button type="primary" size="mini" v-if="scope.row.status == '8'" @click="assignShipment(scope.row)">分配发货</el-button>
<el-button type="primary" size="mini" v-if="scope.row.status == '8' && scope.row.deviceScanType == 'N'" @click="directDelivery(scope.row)">直接发货</el-button> <el-button type="primary" size="mini" v-if="scope.row.status == '8' && scope.row.deviceScanType == 'N'" @click="directDelivery(scope.row)">直接发货</el-button>
<el-button type="primary" size="mini" v-if="scope.row.status == '3' && scope.row.deviceScanType == 'N'" @click="continueDelivery(scope.row)">继续发货</el-button> <el-button type="primary" size="mini" v-if="scope.row.status == '3' && scope.row.deviceScanType == 'N'" @click="continueDelivery(scope.row)">继续发货</el-button>
...@@ -105,6 +105,20 @@ ...@@ -105,6 +105,20 @@
<el-button type="danger" size="mini" v-if="scope.row.status == '2'" @click="withdraw(scope.row)">撤回</el-button> <el-button type="danger" size="mini" v-if="scope.row.status == '2'" @click="withdraw(scope.row)">撤回</el-button>
<el-button type="success" size="mini" v-if="scope.row.status == '3'" @click="advanceOver(scope.row)">提前结束</el-button> <el-button type="success" size="mini" v-if="scope.row.status == '3'" @click="advanceOver(scope.row)">提前结束</el-button>
<el-button type="primary" size="mini" v-if="scope.row.urlDispatchBills" @click="downloadInvoice(scope.row)">下载发货单</el-button> <el-button type="primary" size="mini" v-if="scope.row.urlDispatchBills" @click="downloadInvoice(scope.row)">下载发货单</el-button>
</template> -->
<template slot-scope="scope">
<el-dropdown size="mini" split-button type="primary" @command="e => handleCommand(e,scope.row)">
操作
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="assignShipment" :disabled="scope.row.status == '8'?false:true">分配发货</el-dropdown-item>
<el-dropdown-item command="directDelivery" :disabled="scope.row.status == '8' && scope.row.deviceScanType == 'N'?false:true">直接发货</el-dropdown-item>
<el-dropdown-item command="continueDelivery" :disabled="scope.row.status == '3' && scope.row.deviceScanType == 'N'?false:true">继续发货</el-dropdown-item>
<el-dropdown-item command="reject" :disabled="scope.row.status == '8'?false:true">驳回</el-dropdown-item>
<el-dropdown-item command="withdraw" :disabled="scope.row.status == '2'?false:true">撤回</el-dropdown-item>
<el-dropdown-item command="advanceOver" :disabled="scope.row.status == '3'?false:true">提前结束</el-dropdown-item>
<el-dropdown-item command="downloadInvoice" :disabled="scope.row.urlDispatchBills?false:true">下载发货单</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -606,6 +620,10 @@ export default { ...@@ -606,6 +620,10 @@ export default {
// console.log(selection) // console.log(selection)
// }, // },
handleCommand: function(methodName,row){
this[methodName](row)
},
/** /**
* 复选框操作 * 复选框操作
*/ */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!