Commit 84f45303 authored by dcy's avatar dcy

费用申请,申请调仓修改为弹窗

parent 3b15b096
...@@ -288,6 +288,13 @@ export function getCargoControlOrderPage(params){ ...@@ -288,6 +288,13 @@ export function getCargoControlOrderPage(params){
params params
}) })
} }
export function getAdjustInfo(params){
return request({
url:'/order/order-warehouse-in/get-adjust-info',
method:'get',
params,
})
}
export function warehouseAdjustArrived(data){ export function warehouseAdjustArrived(data){
return request({ return request({
url:'/order/order-warehouse-in/warehouse-adjust-arrived', url:'/order/order-warehouse-in/warehouse-adjust-arrived',
......
...@@ -308,30 +308,6 @@ export const constantRoutes = [ ...@@ -308,30 +308,6 @@ export const constantRoutes = [
noCache:true, noCache:true,
} }
}, },
{
path: 'batch-single-application',
component:(resolve)=> require(['@/views/ecw/order/batchSingleApplication'],resolve),
name: 'batchSingleApplication',
props: route => ({orderList:route.query.list}),
meta: {
title: '批量调仓申请',
icon:'',
activeMenu: '/order/batchSingleApplication',
noCache:true
}
},
{
path: 'fee-application/:orderId',
component:(resolve)=> require(['@/views/ecw/order/feeApplication'],resolve),
name: 'feeApplication',
props: true,
meta: {
title: '费用申请',
icon:'',
activeMenu: '/order/feeApplication'
}
},
{ {
path: 'mutex-order/:orderId', path: 'mutex-order/:orderId',
component:()=> import('@/views/ecw/order/mutexOrder'), component:()=> import('@/views/ecw/order/mutexOrder'),
......
<template> <template>
<div class="batch-single-application"> <el-dialog
<h1 class="title">调仓申请</h1> :visible.sync="dialogVisible"
<el-table :data="list"> width="80%"
<el-table-column label="订单编号" prop="orderNo"></el-table-column> :before-close="()=>{
<el-table-column label="唛头" prop="marks"></el-table-column> $emit('update:dialogVisible',false)
<el-table-column label="已到箱数/总箱数"> }">
<template v-slot = {row}> <div class="batch-single-application">
{{row.sumQuantity || 0}}/{{row.totalNum}} <h1 class="title">调仓申请</h1>
</template> <el-table :data="list">
</el-table-column> <el-table-column label="订单编号" prop="orderNo"></el-table-column>
<el-table-column label="下单统计"> <el-table-column label="唛头" prop="marks"></el-table-column>
<template v-slot="{row}"> <el-table-column label="已到箱数/总箱数">
<div v-if="row.costVO"> <template v-slot = {row}>
箱数:{{row.costVO.totalNum}} {{row.sumQuantity || 0}}/{{row.totalNum}}
{{row.costVO.totalVolume}} </template>
{{row.costVO.totalWeight}}kg </el-table-column>
</div> <el-table-column label="下单统计">
</template> <template v-slot="{row}">
</el-table-column> <div v-if="row.costVO">
<el-table-column label="入仓统计" width="150"> 箱数:{{row.costVO.totalNum}}
<template v-slot="{row}"> {{row.costVO.totalVolume}}
<div>总箱数:{{row.sumNum || 0}}</div> {{row.costVO.totalWeight}}kg
<div>体积:{{row.sumVolume || 0}}CBM</div> </div>
<div>重量:{{row.sumWeight || 0}}KG</div> </template>
</template> </el-table-column>
</el-table-column> <el-table-column label="入仓统计" width="150">
<el-table-column label="入仓时间"> <template v-slot="{row}">
<div>总箱数:{{row.sumNum || 0}}</div>
<div>体积:{{row.sumVolume || 0}}CBM</div>
<div>重量:{{row.sumWeight || 0}}KG</div>
</template>
</el-table-column>
<el-table-column label="入仓时间">
</el-table-column> </el-table-column>
<el-table-column label="运输方式"> <el-table-column label="运输方式">
<template v-slot = {row}> <template v-slot = {row}>
<dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="row.transportId"></dict-tag> <dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="row.transportId"></dict-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="出货渠道"> <el-table-column label="出货渠道">
</el-table-column> </el-table-column>
<!-- <el-table-column label="始发仓" prop="startWarehouseName"></el-table-column>--> <!-- <el-table-column label="始发仓" prop="startWarehouseName"></el-table-column>-->
<el-table-column label="目的地" prop="objectiveName"></el-table-column> <el-table-column label="目的地" prop="objectiveName"></el-table-column>
<el-table-column label="发货人"> <el-table-column label="发货人">
<template v-slot="{row}"> <template v-slot="{row}">
<div> <div>
<p> <div>
</p> <p>
</div> {{row.consignorName}}
</template> </p>
</el-table-column> <p>
<el-table-column label="收货人"> </p>
<template v-slot="{row}"> </div>
<div> </div>
<p> </template>
{{row.consigneeName}} </el-table-column>
</p> <el-table-column label="收货人">
<p> <template v-slot="{row}">
{{row.consigneePhone}} <div>
</p> <p>
</div> {{row.consigneeName}}
</template> </p>
</el-table-column> <p>
</el-table> {{row.consigneePhone}}
<div style="display: flex;justify-content:center; margin-top: 20px"> </p>
<div style="width: 200px; margin: 0 10px"> </div>
{{list[0].startWarehouseName}} </template>
</el-table-column>
<el-table-column>
<template v-slot="{row}">
<el-button type="text" v-if="row.inWarehouseState === 10">
取消审核
</el-button>
</template>
</el-table-column>
</el-table>
<div style="display: flex;justify-content:center; margin-top: 20px">
<div style="width: 200px; margin: 0 10px">
{{ list[0] && list[0].startWarehouseName ? list[0].startWarehouseName : '' }}
</div>
<div style="width: 200px;">
<el-select v-model="params.warehouseInId">
<el-option v-for="(item ,index) in availableWarehouse" :value="item.id" :label="item.titleZh" :key="index"></el-option>
</el-select>
</div>
</div> </div>
<div style="width: 200px;"> <el-divider></el-divider>
<el-select v-model="params.warehouseInId"> <h1 class="title">
<el-option v-for="(item ,index) in availableWarehouse" :value="item.id" :label="item.titleZh" :key="index"></el-option> 审批流程
</el-select> </h1>
<div style="padding: 20px">
<work-flow xmlkey="warehouse_transfer" v-model="params.copyUserId" />
</div> </div>
<div style="text-align: center">
<el-button style="margin-right: 50px" @click="submit" :disabled="isSubmit">提交申请</el-button>
<el-button @click="$emit('update:dialogVisible',false)">取消</el-button>
</div>
<!-- <warehouseDetails></warehouseDetails>-->
</div> </div>
<el-divider></el-divider> </el-dialog>
<h1 class="title">
审批流程
</h1>
<div style="padding: 20px">
<work-flow xmlkey="warehouse_transfer" v-model="params.copyUserId" />
</div>
<div style="text-align: center">
<el-button style="margin-right: 50px" @click="submit" :disabled="isSubmit">提交申请</el-button>
<el-button @click="$router.push('/order/order')">取消</el-button>
</div>
<!-- <warehouseDetails></warehouseDetails>-->
</div>
</template> </template>
<script> <script>
...@@ -95,20 +114,30 @@ import {getProcessDefinitionBpmnXMLByKey} from "@/api/bpm/definition"; ...@@ -95,20 +114,30 @@ import {getProcessDefinitionBpmnXMLByKey} from "@/api/bpm/definition";
import warehouseDetails from "@/views/ecw/order/components/warehouseDetails"; import warehouseDetails from "@/views/ecw/order/components/warehouseDetails";
import {getOrderPage} from "@/api/ecw/order"; import {getOrderPage} from "@/api/ecw/order";
import workFlow from "@/components/WorkFlow"; import workFlow from "@/components/WorkFlow";
import Template from "@/views/cms/template";
export default { export default {
name: "batchSingleApplication", name: "batchSingleApplication",
props:{ props:{
orderList:String, orderList:[String,Number],
dialogVisible:{
type:Boolean,
default:false,
}
}, },
components:{ components:{
Template,
warehouseDetails, warehouseDetails,
workFlow workFlow
}, },
created() { watch:{
getOrderPage({orderIdList:this.orderList}).then(r =>{ dialogVisible(val){
this.list = r.data.list if(val){
warehouseAdjustmentList({id:this.list[0].startWarehouseId}).then( r => this.availableWarehouse = r.data) getOrderPage({orderIdList:this.orderList}).then(r =>{
}) this.list = r.data.list
warehouseAdjustmentList({id:this.list[0].startWarehouseId}).then( r => this.availableWarehouse = r.data)
})
}
}
}, },
computed:{ computed:{
isSubmit(){ isSubmit(){
...@@ -146,6 +175,7 @@ export default { ...@@ -146,6 +175,7 @@ export default {
this.params.orderNo = this.list[0].orderNo this.params.orderNo = this.list[0].orderNo
orderWarehouseInAdjustApply(this.params).then( r=>{ orderWarehouseInAdjustApply(this.params).then( r=>{
if(r.code === 0){ if(r.code === 0){
this.$emit('update:dialogVisible',false)
this.$message.success('调仓成功'); this.$message.success('调仓成功');
} }
}) })
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<el-form-item label="订单号" prop="field101"> <el-form-item label="订单号" prop="field101">
111 111
</el-form-item> </el-form-item>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="收货人" prop="field104"> <el-form-item label="收货人" prop="field104">
...@@ -20,11 +20,11 @@ ...@@ -20,11 +20,11 @@
<el-form-item label="总控货箱数" prop="field105"> <el-form-item label="总控货箱数" prop="field105">
111 111
</el-form-item> </el-form-item>
<el-form-item label="原放货箱数" prop="field106"> <el-form-item label="原放货箱数" prop="field106">
111 111
</el-form-item> </el-form-item>
<el-form-item label="现放货箱数" prop="field106"> <el-form-item label="现放货箱数" prop="field106">
<el-input v-model="formData.cnt" placeholder=""></el-input> <el-input v-model="formData.cnt" placeholder=""></el-input>
</el-form-item> </el-form-item>
...@@ -32,22 +32,22 @@ ...@@ -32,22 +32,22 @@
<el-form-item label="备注" prop="field106"> <el-form-item label="备注" prop="field106">
<el-input v-model="formData.cnt" placeholder=""></el-input> <el-input v-model="formData.cnt" placeholder=""></el-input>
</el-form-item> </el-form-item>
<el-form-item label="控货手机号" prop="field106"> <el-form-item label="控货手机号" prop="field106">
13000000000 13000000000
</el-form-item> </el-form-item>
<el-form-item label="手机验证码" prop="field106"> <el-form-item label="手机验证码" prop="field106">
<el-input v-model="formData.cnt" placeholder="" style="width: 100px; margin-right:10px"></el-input> <el-input v-model="formData.cnt" placeholder="" style="width: 100px; margin-right:10px"></el-input>
<el-button type="default">获取验证码</el-button> <el-button type="default">获取验证码</el-button>
</el-form-item> </el-form-item>
<div class="title">审批流程</div> <div class="title">审批流程</div>
<work-flow bmpkey="free_apple" /> <work-flow bmpkey="free_apple" />
<el-form-item label=""> <el-form-item label="">
<el-button type="primary" @click="$alert('// TODO')">提交申请</el-button> <el-button type="primary" @click="$alert('// TODO')">提交申请</el-button>
<el-button @click="closeDialog">关闭</el-button> <el-button @click="closeDialog">关闭</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div v-else> <div v-else>
<release-agreement /> <release-agreement />
...@@ -86,13 +86,13 @@ export default { ...@@ -86,13 +86,13 @@ export default {
}, },
methods:{ methods:{
loadData(){ loadData(){
}, },
closeDialog(){ closeDialog(){
this.show = false this.show = false
this.$emit('close'); this.$emit('close');
}, },
} }
} }
</script> </script>
...@@ -110,4 +110,4 @@ export default { ...@@ -110,4 +110,4 @@ export default {
margin-right:10px; margin-right:10px;
} }
} }
</style> </style>
\ No newline at end of file
<template> <template>
<div class="fee-application"> <el-dialog :visible.sync="dialogVisible" width="80%" :before-close="()=>{
<h1>费用申请-{{orderDetails.orderNo}} $emit('update:dialogVisible',false)
</h1> }">
<el-divider></el-divider> <div class="fee-application">
<el-form label-width="100px" inline> <h1>费用申请-{{orderDetails.orderNo}}
<el-form-item label="订单号:"><div class="content"> </h1>
<el-divider></el-divider>
<el-form label-width="100px" inline>
<el-form-item label="订单号:"><div class="content">
{{orderDetails.orderNo}} {{orderDetails.orderNo}}
</div></el-form-item> </div></el-form-item>
<el-form-item label="发货人:"><div class="content">{{orderDetails.consignorVO ? orderDetails.consignorVO.name :''}}</div></el-form-item> <el-form-item label="发货人:"><div class="content">{{orderDetails.consignorVO ? orderDetails.consignorVO.name :''}}</div></el-form-item>
<el-form-item label="唛头"><div class="content">{{orderDetails.marks}}</div></el-form-item> <el-form-item label="唛头"><div class="content">{{orderDetails.marks}}</div></el-form-item>
<el-form-item> <el-button @click="addCost">添加申请</el-button></el-form-item> <el-form-item> <el-button @click="addCost">添加申请</el-button></el-form-item>
</el-form> </el-form>
<el-table :data="list"> <el-table :data="list">
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="费用类型"> <el-table-column label="费用类型">
<template v-slot:default = "scope"> <template v-slot:default = "scope">
<dict-selector :disabled="isModify[forbidden(scope.row)]" :type="DICT_TYPE.FEE_TYPE" v-model="scope.row.feeType" /> <dict-selector :disabled="isModify[forbidden(scope.row)]" :type="DICT_TYPE.FEE_TYPE" v-model="scope.row.feeType" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="金额"> <el-table-column label="金额">
<template v-slot:default = 'scope'> <template v-slot:default = 'scope'>
<el-input :disabled="isModify[forbidden(scope.row)]" v-model="scope.row.applicationFee" ></el-input> <el-input :disabled="isModify[forbidden(scope.row)]" v-model="scope.row.applicationFee" ></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="货币类型"> <el-table-column label="货币类型">
<template v-slot:default = 'scope'> <template v-slot:default = 'scope'>
<dict-selector :disabled="isModify[forbidden(scope.row)]" :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" v-model="scope.row.applicationFeeCurrency" /> <dict-selector :disabled="isModify[forbidden(scope.row)]" :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" v-model="scope.row.applicationFeeCurrency" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="付款类型"> <el-table-column label="付款类型">
<template v-slot = {row}> <template v-slot = {row}>
<dict-selector :disabled="isModify[forbidden(row)]" :type="DICT_TYPE.PAYMENT_TYPE" v-model="row.payType" /> <dict-selector :disabled="isModify[forbidden(row)]" :type="DICT_TYPE.PAYMENT_TYPE" v-model="row.payType" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注"> <el-table-column label="备注">
<template v-slot:default="scope"> <template v-slot:default="scope">
<el-input :disabled="isModify[forbidden(scope.row)]" v-model="scope.row.remarks" type="textarea"></el-input> <el-input :disabled="isModify[forbidden(scope.row)]" v-model="scope.row.remarks" type="textarea"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="确认收款"> <el-table-column label="确认收款">
<template v-slot:default ="scope"> <template v-slot:default ="scope">
<dict-tag :type="DICT_TYPE.RECEIVE_FLAG" :value="scope.row.receiveFlag" /> <dict-tag :type="DICT_TYPE.RECEIVE_FLAG" :value="scope.row.receiveFlag" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="申请人"> <el-table-column label="申请人">
<template v-slot:default ="scope"> <template v-slot:default ="scope">
{{scope.row.status === 0 ?'未提交': scope.row.applicationAuthor}} {{scope.row.status === 0 ?'未提交': scope.row.applicationAuthor}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作">
<template v-slot:default = 'scope'> <template v-slot:default = 'scope'>
<el-button type="text" v-if="scope.row.status !== 0">{{STATUS[scope.row.status]}}</el-button> <el-button type="text" v-if="scope.row.status !== 0">{{STATUS[scope.row.status]}}</el-button>
<el-button type="text" v-if="scope.row.status === 2" @click="modify(scope.row)">修改</el-button> <el-button type="text" v-if="scope.row.status === 2" @click="modify(scope.row)">修改</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div style="padding: 20px"> <div style="padding: 20px">
<work-flow xmlkey="free_apply" v-model="selectedUsers" /> <work-flow xmlkey="free_apply" v-model="selectedUsers" />
</div> </div>
<div style="text-align: center;margin-top: 20px;"> <div style="text-align: center;margin-top: 20px;">
<el-button style="margin-right: 30px;" @click="submit">提交</el-button> <el-button style="margin-right: 30px;" @click="submit">提交</el-button>
<el-button>取消</el-button> <el-button>取消</el-button>
</div>
</div> </div>
</div> </el-dialog>
</template> </template>
<script> <script>
...@@ -75,6 +80,10 @@ export default { ...@@ -75,6 +80,10 @@ export default {
components: {Template,workFlow}, components: {Template,workFlow},
props:{ props:{
orderId:[Number, String], orderId:[Number, String],
dialogVisible:{
type:Boolean,
default:false,
}
}, },
data(){ data(){
return { return {
...@@ -89,12 +98,6 @@ export default { ...@@ -89,12 +98,6 @@ export default {
} }
}, },
created() { created() {
getOrder(this.orderId).then(r =>{
if(r.code === 0){
this.orderDetails = r.data
}
})
this.getOrderList()
this.getDictDatas(this.DICT_TYPE.AUDIT_STATUS).forEach( e =>{ this.getDictDatas(this.DICT_TYPE.AUDIT_STATUS).forEach( e =>{
this.STATUS[e.value] = e.label this.STATUS[e.value] = e.label
}) })
...@@ -128,11 +131,10 @@ export default { ...@@ -128,11 +131,10 @@ export default {
this.isModifyIf = false; this.isModifyIf = false;
}, },
submit(){ submit(){
if(this.isModifyIf){ if(this.isModifyIf){
applicationUpdate({...this.list[this.isModify.findIndex(e => e === false)],status:1}).then(r => { applicationUpdate({...this.list[this.isModify.findIndex(e => e === false)],status:1}).then(r => {
if(r.code === 0){ if(r.code === 0){
this.getOrderList(); this.$emit('update:dialogVisible',false)
this.$message.success('修改成功'); this.$message.success('修改成功');
} }
}) })
...@@ -140,7 +142,7 @@ export default { ...@@ -140,7 +142,7 @@ export default {
if(this.list[this.list.length - 1].status === 0){ if(this.list[this.list.length - 1].status === 0){
feeApplicationCreate( {...this.list[this.list.length - 1],status:1,copyUserId:this.selectedUsers}).then(r=>{ feeApplicationCreate( {...this.list[this.list.length - 1],status:1,copyUserId:this.selectedUsers}).then(r=>{
if(r.code === 0){ if(r.code === 0){
this.getOrderList(); this.$emit('update:dialogVisible',false)
this.$message.success('添加成功'); this.$message.success('添加成功');
this.selectedUsers = []; this.selectedUsers = [];
} }
...@@ -163,6 +165,18 @@ export default { ...@@ -163,6 +165,18 @@ export default {
this.isModifyIf = true; this.isModifyIf = true;
this.$set(this.isModify, this.list.findIndex(e => e.id = row.id), false ) this.$set(this.isModify, this.list.findIndex(e => e.id = row.id), false )
}, },
},
watch:{
dialogVisible(val){
if(val){
this.getOrderList()
getOrder(this.orderId).then(r =>{
if(r.code === 0){
this.orderDetails = r.data
}
})
}
},
} }
} }
</script> </script>
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
v-hasPermi="['ecw:order:create']">新增</el-button> v-hasPermi="['ecw:order:create']">新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-setting" size="mini" @click="handleEdit" :disabled="multiple">批量调仓 <el-button type="primary" plain icon="el-icon-setting" size="mini" @click="handleEdit" :disabled="!batchWarehouseAdjustment">批量调仓
</el-button> </el-button>
<el-button type="primary" plain icon="el-icon-setting" size="mini" @click="showBatchPickup=true">批量提货 <el-button type="primary" plain icon="el-icon-setting" size="mini" @click="showBatchPickup=true">批量提货
</el-button> </el-button>
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
<el-button v-if="scope.row.status < 5" size="mini" type="text" icon="el-icon-delete" @click="oprateOrder(scope.row.orderId, 'cancelOrder')">取消订单</el-button> <el-button v-if="scope.row.status < 5" size="mini" type="text" icon="el-icon-delete" @click="oprateOrder(scope.row.orderId, 'cancelOrder')">取消订单</el-button>
<el-button v-if="scope.row.status == 88" size="mini" type="text" icon="el-icon-delete" @click="oprateOrder(scope.row.orderId, 'recoveryOrder')">恢复订单</el-button> <el-button v-if="scope.row.status == 88" size="mini" type="text" icon="el-icon-delete" @click="oprateOrder(scope.row.orderId, 'recoveryOrder')">恢复订单</el-button>
<el-button type="text" size="mini" @click="$router.push(`/order/fee-application/${scope.row.orderId}`)">费用申请</el-button> <el-button type="text" size="mini" @click="feeApplicationBol = true; orderId = scope.row.orderId">费用申请</el-button>
<el-button type="text" size="mini" @click="orderId = scope.row.orderId;isShow = true" >特需</el-button> <el-button type="text" size="mini" @click="orderId = scope.row.orderId;isShow = true" >特需</el-button>
<el-button type="text" size="mini" @click="$router.push(`/order/associated-order/${scope.row.orderId}`)" >关联</el-button> <el-button type="text" size="mini" @click="$router.push(`/order/associated-order/${scope.row.orderId}`)" >关联</el-button>
<el-button type="text" size="mini" @click="$router.push(`/order/mutex-order/${scope.row.orderId}`)" >互斥</el-button> <el-button type="text" size="mini" @click="$router.push(`/order/mutex-order/${scope.row.orderId}`)" >互斥</el-button>
...@@ -201,8 +201,8 @@ ...@@ -201,8 +201,8 @@
v-hasPermi="['ecw:order:update']">入仓</el-button> v-hasPermi="['ecw:order:update']">入仓</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="show = true;orderId = scope.row.orderId; " <el-button size="mini" type="text" icon="el-icon-edit" @click="show = true;orderId = scope.row.orderId; "
v-hasPermi="['ecw:order:update']">退仓</el-button> v-hasPermi="['ecw:order:update']">退仓</el-button>
<el-button type="text" v-if="scope.row.status === 5" size="mini" @click="$router.push({path:'/order/batch-single-application',query:{list:scope.row.orderId}})" >调仓</el-button> <el-button type="text" v-if="scope.row.status === 5 && [11,13,18].indexOf(scope.row.inWarehouseState) > -1" size="mini" @click="orderId = scope.row.orderId;warehouseBol=true;">调仓</el-button>
<el-button type="text" size="mini" @click="$router.push({path:'/order/transfer-warehousing/' + scope.row.orderId + '/' + 1 })" >调拨出仓</el-button> <el-button type="text" v-if="scope.row.status === 5 && scope.row.inWarehouseState === 13" size="mini" @click="$router.push({path:'/order/transfer-warehousing/' + scope.row.orderId + '/' + 1 })" >调拨出仓</el-button>
<el-button type="text" size="mini" @click="$router.push({path:'/order/transfer-to-warehouse/' + scope.row.orderId + '/' + 2 })" >调拨到仓</el-button> <el-button type="text" size="mini" @click="$router.push({path:'/order/transfer-to-warehouse/' + scope.row.orderId + '/' + 2 })" >调拨到仓</el-button>
</div> </div>
...@@ -239,6 +239,8 @@ ...@@ -239,6 +239,8 @@
<print-lading-bill v-if="printLadingBillInfo !== null" v-bind="printLadingBillInfo" @close="printLadingBillInfo=null" /> <print-lading-bill v-if="printLadingBillInfo !== null" v-bind="printLadingBillInfo" @close="printLadingBillInfo=null" />
<batch-pickup v-if="showBatchPickup" @close="showBatchPickup=false"/> <batch-pickup v-if="showBatchPickup" @close="showBatchPickup=false"/>
<withdrawal v-if="show" :dialog-visible="show" :orderId="orderId" ></withdrawal> <withdrawal v-if="show" :dialog-visible="show" :orderId="orderId" ></withdrawal>
<batch-single-application :order-list="orderId" :dialog-visible.sync="warehouseBol"></batch-single-application>
<fee-application :order-id="orderId" :dialog-visible.sync="feeApplicationBol"></fee-application>
</div> </div>
</template> </template>
...@@ -267,9 +269,13 @@ import PrintWarehouseReceipt from './components/PrintWarehouseReceipt' ...@@ -267,9 +269,13 @@ import PrintWarehouseReceipt from './components/PrintWarehouseReceipt'
import PrintLadingBill from './components/PrintLadingBill' import PrintLadingBill from './components/PrintLadingBill'
import BatchPickup from './components/BatchPickup' import BatchPickup from './components/BatchPickup'
import withdrawal from "@/views/ecw/order/withdrawal"; import withdrawal from "@/views/ecw/order/withdrawal";
import BatchSingleApplication from "@/views/ecw/order/batchSingleApplication";
import FeeApplication from "@/views/ecw/order/feeApplication";
export default { export default {
name: "Order", name: "Order",
components: { components: {
FeeApplication,
BatchSingleApplication,
CustomerSelector, ProductSelector, Selector,specialNeeds,PrintTag, PrintWarehouseReceipt, PrintLadingBill, BatchPickup,withdrawal CustomerSelector, ProductSelector, Selector,specialNeeds,PrintTag, PrintWarehouseReceipt, PrintLadingBill, BatchPickup,withdrawal
}, },
props: { props: {
...@@ -351,7 +357,9 @@ export default { ...@@ -351,7 +357,9 @@ export default {
getDictDatas */ getDictDatas */
adjustmentList:[], adjustmentList:[],
show:false, show:false,
warehouseBol:false,//调仓申请
feeApplicationBol:false,//费用申请
multipleSelection:[]
}; };
}, },
computed: { computed: {
...@@ -368,7 +376,11 @@ export default { ...@@ -368,7 +376,11 @@ export default {
timeParams['end' + this.dateFilterType] = this.dateFilter[1] timeParams['end' + this.dateFilterType] = this.dateFilter[1]
} }
return Object.assign({}, this.queryParams, timeParams) return Object.assign({}, this.queryParams, timeParams)
} },
batchWarehouseAdjustment(){
return this.multipleSelection.length > 0 && this.multipleSelection.every(e => e.status === 5)
},
}, },
created() { created() {
this.getList(); this.getList();
...@@ -456,15 +468,14 @@ export default { ...@@ -456,15 +468,14 @@ export default {
}, },
// 表格多选 // 表格多选
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.multipleSelection = selection
this.ids = selection.map(item => item.orderId) this.ids = selection.map(item => item.orderId)
this.single = selection.length !== 1 this.single = selection.length !== 1
this.multiple = !selection.length this.multiple = !selection.length
}, },
handleEdit() { handleEdit() {
this.$router.push({ this.warehouseBol = true
path:'/order/batch-single-application', this.orderId = this.ids.join(',')
query:{list:this.ids.join(',')}
})
}, },
moleculeChange() { }, moleculeChange() { },
denominatorChange() { }, denominatorChange() { },
......
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