Commit 99e941ff authored by dcy's avatar dcy

费用申请,退仓改为弹窗

parent d18207b2
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
}) })
}else { }else {
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.join(',')}).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.getOrderList();
this.$message.success('添加成功'); this.$message.success('添加成功');
......
...@@ -198,9 +198,10 @@ ...@@ -198,9 +198,10 @@
<div style=" display:flex; flex-direction:column"> <div style=" display:flex; flex-direction:column">
<el-button size="mini" type="text" icon="el-icon-edit" @click="$router.push('/order/warehousing?id=' + scope.row.orderId)" <el-button size="mini" type="text" icon="el-icon-edit" @click="$router.push('/order/warehousing?id=' + scope.row.orderId)"
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= "$router.push(`/order/withdrawal/${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" size="mini" @click="$router.push({path:'/order/batch-single-application',query:{list:scope.row.orderId}})" >调仓</el-button>
<el-button type="text" size="mini" @click="$router.push({path:'/order/transfer-warehousing/' + scope.row.orderId + '/' + 1 })" >调拨出仓</el-button>
</div> </div>
</el-popover> </el-popover>
...@@ -235,6 +236,7 @@ ...@@ -235,6 +236,7 @@
<print-warehouse-receipt v-if="printWarehouseReceiptOrderId !== null" :order-id="printWarehouseReceiptOrderId" @close="printWarehouseReceiptOrderId=null" /> <print-warehouse-receipt v-if="printWarehouseReceiptOrderId !== null" :order-id="printWarehouseReceiptOrderId" @close="printWarehouseReceiptOrderId=null" />
<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>
</div> </div>
</template> </template>
...@@ -262,10 +264,11 @@ import PrintTag from './components/PrintTag' ...@@ -262,10 +264,11 @@ import PrintTag from './components/PrintTag'
import PrintWarehouseReceipt from './components/PrintWarehouseReceipt' 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";
export default { export default {
name: "Order", name: "Order",
components: { components: {
CustomerSelector, ProductSelector, Selector,specialNeeds,PrintTag, PrintWarehouseReceipt, PrintLadingBill, BatchPickup CustomerSelector, ProductSelector, Selector,specialNeeds,PrintTag, PrintWarehouseReceipt, PrintLadingBill, BatchPickup,withdrawal
}, },
props: { props: {
mine: Boolean mine: Boolean
...@@ -344,7 +347,9 @@ export default { ...@@ -344,7 +347,9 @@ export default {
orderId:undefined, orderId:undefined,
/* DICT_TYPE, /* DICT_TYPE,
getDictDatas */ getDictDatas */
adjustmentList:[] adjustmentList:[],
show:false,
}; };
}, },
computed: { computed: {
......
<template> <template>
<el-dialog
:visible.sync="dialogVisible"
:before-close="()=>{
$parent.show = false;
}"
width="80%">
<div style="padding: 0 20px"> <div style="padding: 0 20px">
<h1>申请退仓-{{orderDetails.orderNo}}</h1> <h1>申请退仓-{{orderDetails.orderNo}}</h1>
<el-divider></el-divider> <el-divider></el-divider>
...@@ -14,21 +21,22 @@ ...@@ -14,21 +21,22 @@
</div> </div>
<div> <div>
<el-button @click="submit" type="primary" style="margin-right: 20px;">确定退仓</el-button> <el-button @click="submit" type="primary" style="margin-right: 20px;">确定退仓</el-button>
<el-button @click="$router.push('/order/order')">不,再考虑考虑</el-button> <el-button @click="$parent.show = false;">不,再考虑考虑</el-button>
</div> </div>
</div> </div>
</el-dialog>
</template> </template>
<!--退仓--> <!--退仓-->
<script> <script>
import {getOrder} from "@/api/ecw/order"; import {getOrder} from "@/api/ecw/order";
import {orderWarehouseInDelete} from "@/api/ecw/batchSingleApplication"; import {orderWarehouseInDelete} from "@/api/ecw/batchSingleApplication";
import {getProcessDefinitionBpmnXMLByKey} from "@/api/bpm/definition";
import workFlow from "@/components/WorkFlow"; import workFlow from "@/components/WorkFlow";
export default { export default {
name: "withdrawal", name: "withdrawal",
props:{ props:{
orderId:String orderId:Number,
dialogVisible:Boolean
}, },
components:{ components:{
workFlow workFlow
...@@ -36,10 +44,6 @@ export default { ...@@ -36,10 +44,6 @@ export default {
data(){ data(){
return { return {
orderDetails:{}, orderDetails:{},
bpmnXML: null,
bpmnControlForm: {
prefix: "activiti"
},
params:{ params:{
orderId:undefined, orderId:undefined,
orderNo:undefined, orderNo:undefined,
...@@ -58,6 +62,8 @@ export default { ...@@ -58,6 +62,8 @@ export default {
orderWarehouseInDelete(this.params).then(r => { orderWarehouseInDelete(this.params).then(r => {
if(r.code === 0){ if(r.code === 0){
this.$message.success('退仓成功'); this.$message.success('退仓成功');
this.params = {}
this.$parent.show = false
} }
}) })
} }
......
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