Commit 432e3090 authored by Smile's avatar Smile

需求133 后台-集运-包裹列表-批量修改

parent 07e3a6e6
......@@ -17,6 +17,7 @@ export function updateCons(data) {
data: data
})
}
//批量签收
export function updateConsBatchSignOff(data) {
return request({
url: '/ecw/cons/updateConsBatchSignOff',
......@@ -24,6 +25,14 @@ export function updateConsBatchSignOff(data) {
data: data
})
}
//批量修改
export function updateConsBatch(data) {
return request({
url: '/ecw/cons/updateConsBatch',
method: 'put',
data: data
})
}
// 删除集运包裹主
export function deleteCons(id) {
......
This diff is collapsed.
......@@ -74,7 +74,7 @@
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleBatchSignOff">批量签收</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="success" plain icon="el-icon-plus" size="mini" @click="handleAdd">批量更新货运信息</el-button>
<el-button type="success" plain icon="el-icon-plus" size="mini" @click="handleBatchConsEdit">批量更新货运信息</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="success" plain icon="el-icon-plus" size="mini" >转运</el-button>
......@@ -284,6 +284,7 @@
<fee-application-cons v-if="feeApplicationBol" :consId="id" :currencys="JSON.stringify(currencyList)" :dialog-visible.sync="feeApplicationBol "@refresh="getList"></fee-application-cons>
<ConsFollowupEdit :showConsFollowupEdit.sync="showConsFollowupEdit" :consId="id" @determine="getList"></ConsFollowupEdit>
<batch-sign-off :showConsBatchSignOff.sync="showConsBatchSignOff" @determine="getList" :consIds="consIds"></batch-sign-off>
<batch-cons-edit :showConsBatchEdit.sync="showConsBatchEdit" @determine="getList" :consIds="consIds"></batch-cons-edit>
</div>
</template>
......@@ -303,6 +304,7 @@ import FeeApplication from "@/views/ecw/order/feeApplication.vue"
import {getChannelList} from "@/api/ecw/channel";
import ConsFollowupEdit from "@/views/ecw/consFollowup/components/ConsFollowupEdit.vue"
import BatchSignOff from "@/views/ecw/cons/batchSignOff.vue";
import BatchConsEdit from "@/views/ecw/cons/batchConsEdit.vue";
export default {
name: "Cons",
......@@ -314,7 +316,8 @@ export default {
SpecialNeedsConsLook,
ConsFollowupEdit,
SpecialNeedsCons,
BatchSignOff
BatchSignOff,
BatchConsEdit
},
data() {
return {
......@@ -381,6 +384,7 @@ export default {
showSpecialNeedsConsLook: false,
showConsFollowupEdit: false,
showConsBatchSignOff: false,
showConsBatchEdit: false,
id: null,
currencyList: [],
consNum: null,
......@@ -558,6 +562,12 @@ export default {
this.showConsBatchSignOff=true;
},
handleBatchConsEdit(){
if(!this.consIds.length){
return this.$message.error(this.$t('最少选择一个包裹'))
}
this.showConsBatchEdit=true;
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment