Commit 5e699b90 authored by dragondean@qq.com's avatar dragondean@qq.com

改bug

parent 6e3467db
...@@ -108,11 +108,11 @@ export function batchReview(data){ ...@@ -108,11 +108,11 @@ export function batchReview(data){
} }
// 获得可调货的控货订单列表 // 获得可调货的控货订单列表
export function seasoningCondimentsSelect(data){ export function seasoningCondimentsSelect(params){
return request({ return request({
url: '/ecw/order-cargo-control-pick/seasoning-condiments/cargo-control/order/select', url: '/ecw/order-cargo-control-pick/seasoning-condiments/cargo-control/order/select',
method: 'put', method: 'get',
data params
}) })
} }
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
<template v-if="scope.row.cargoControlStatus == 1"> <template v-if="scope.row.cargoControlStatus == 1">
<el-button type="text" size="mini" @click="toDetail(scope.row)" >查看</el-button> <el-button type="text" size="mini" @click="toDetail(scope.row)" >查看</el-button>
<el-button type="text" size="mini" @click="showTransferCargoOrderId=scope.row.orderId" >调货</el-button> <el-button type="text" size="mini" @click="showTransferCargoOrderId=scope.row.orderId" >调货</el-button>
<el-button type="text" size="mini" @click="$alert('//TODO')">反复核</el-button> <el-button type="text" size="mini" @click="showFallbackOrder=scope.row">反复核</el-button>
</template> </template>
<!-- <el-button type="text" size="mini" >取消</el-button> <!-- <el-button type="text" size="mini" >取消</el-button>
...@@ -136,6 +136,7 @@ ...@@ -136,6 +136,7 @@
<transfer v-if="showTransferOrder" v-bind="showTransferOrder" @close="showTransferOrder=null" /> <transfer v-if="showTransferOrder" v-bind="showTransferOrder" @close="showTransferOrder=null" />
<release v-if="showReleaseOrderId" :order-id="showReleaseOrderId" @close="showReleaseOrderId=null" @success="onReleaseSuccess" /> <release v-if="showReleaseOrderId" :order-id="showReleaseOrderId" @close="showReleaseOrderId=null" @success="onReleaseSuccess" />
<transfer-cargo v-if="showTransferCargoOrderId" :order-id="showTransferCargoOrderId" @close="showTransferCargoOrderId=null" /> <transfer-cargo v-if="showTransferCargoOrderId" :order-id="showTransferCargoOrderId" @close="showTransferCargoOrderId=null" />
<fallback v-if="showFallbackOrder !== null" :order="showFallbackOrder" :index="null" @close="showFallbackOrder=null" @success="onFallbackSuccess" />
</div> </div>
</template> </template>
...@@ -150,11 +151,12 @@ import Release from './components/Release' ...@@ -150,11 +151,12 @@ import Release from './components/Release'
import CargoControlEdit from './components/CargoControlEdit' import CargoControlEdit from './components/CargoControlEdit'
import { getCargoControlOrderPage, batchReview } from "@/api/ecw/orderCargoControl" import { getCargoControlOrderPage, batchReview } from "@/api/ecw/orderCargoControl"
import TransferCargo from '@/views/ecw/order/components/TransferCargo' import TransferCargo from '@/views/ecw/order/components/TransferCargo'
import Fallback from './components/Fallback'
export default { export default {
name: "OrderCargonControl", name: "OrderCargonControl",
components: { components: {
CustomerSelector, ProductSelector, Selector, Transfer, Release,CargoControlEdit, TransferCargo CustomerSelector, ProductSelector, Selector, Transfer, Release,CargoControlEdit, TransferCargo, Fallback
}, },
data() { data() {
return { return {
...@@ -190,6 +192,7 @@ export default { ...@@ -190,6 +192,7 @@ export default {
showTransferOrder: null, // 控制权转移操作订单 showTransferOrder: null, // 控制权转移操作订单
showReleaseOrderId: null, // 放货ID showReleaseOrderId: null, // 放货ID
showTransferCargoOrderId: null, // 调货ID showTransferCargoOrderId: null, // 调货ID
showFallbackOrder: null, // 调货订单
}; };
}, },
computed: { computed: {
...@@ -275,15 +278,22 @@ export default { ...@@ -275,15 +278,22 @@ export default {
// 批量复核 // 批量复核
batchReview(){ batchReview(){
this.$confirm('确定复核选中的订单么?').then(() => { this.$confirm('确定复核选中的订单么?').then(() => {
return batchReview({orderIds: this.ids.join(',')}) return batchReview("orderIds=" + this.ids.join(','))
}).then(() => { }).then(() => {
this.$message.error('操作成功') this.$message.success('操作成功')
this.handleQuery() this.handleQuery()
}) })
},
// 反复核
unReview(row){
}, },
onReleaseSuccess(){ onReleaseSuccess(){
this.showReleaseOrderId = null this.showReleaseOrderId = null
this.handleQuery() this.handleQuery()
},
onFallbackSuccess(){
this.showFallbackOrder = null
} }
} }
}; };
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="原放货箱数"> <el-form-item label="原放货箱数">
{{info.pickNum}} {{index == null ? order.releaseNum : info.pickNum}}
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -37,7 +37,13 @@ ...@@ -37,7 +37,13 @@
</el-form-item> </el-form-item>
<el-form-item label="控货手机号"> <el-form-item label="控货手机号">
+{{info.countryCode}} {{info.phone}} <template v-if="index !== null">
+ {{info.countryCode}} {{info.phone}}
</template>
<template v-else>
+{{order.cargoControlCountryCode}} {{order.cargoControlPhone}}
</template>
</el-form-item> </el-form-item>
<el-form-item label="手机验证码" prop="code"> <el-form-item label="手机验证码" prop="code">
<el-input v-model="formData.code" placeholder="" style="width: 100px; margin-right:10px"></el-input> <el-input v-model="formData.code" placeholder="" style="width: 100px; margin-right:10px"></el-input>
...@@ -82,7 +88,9 @@ export default { ...@@ -82,7 +88,9 @@ export default {
return t return t
}, },
info(){ info(){
return this.order.cargoControlPickBackVOList[this.index] if(this.index !== null)
return this.order.cargoControlPickBackVOList[this.index]
return this.order
} }
}, },
watch:{ watch:{
......
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