Commit e32d2198 authored by dragondean@qq.com's avatar dragondean@qq.com
parents 0a9ddf39 bc212d37
...@@ -111,6 +111,14 @@ export function specialNeedCreate(data){ ...@@ -111,6 +111,14 @@ export function specialNeedCreate(data){
data:data, data:data,
}) })
} }
// 创建特殊
export function getSpecialListByOrderId(orderId){
return request({
url: 'ecw/order-special-need/getListByOrderId',
method: 'get',
params: {orderId},
})
}
// 删除特需 // 删除特需
export function orderSpecialNeed(params){ export function orderSpecialNeed(params){
return request({ return request({
......
...@@ -3,17 +3,19 @@ ...@@ -3,17 +3,19 @@
<el-descriptions border v-if="order.orderId"> <el-descriptions border v-if="order.orderId">
<el-descriptions-item label="唛头">{{ order.marks }}</el-descriptions-item> <el-descriptions-item label="唛头">{{ order.marks }}</el-descriptions-item>
<el-descriptions-item label="已到箱数">{{ order.sumNum }}</el-descriptions-item> <el-descriptions-item label="已到箱数">{{ order.sumNum }}</el-descriptions-item>
<el-descriptions-item label="订单状态">{{ order.status }}</el-descriptions-item> <el-descriptions-item label="订单状态"><dict-tag :type="DICT_TYPE.ORDER_STATUS" :value="order.status" /></el-descriptions-item>
<el-descriptions-item label="送货时间">todo</el-descriptions-item> <el-descriptions-item label="送货时间">todo</el-descriptions-item>
<el-descriptions-item label="运输方式">{{ order.logisticsInfoDto.transportId }}</el-descriptions-item> <el-descriptions-item label="运输方式">
<dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="order.logisticsInfoDto.transportId"></dict-tag>
</el-descriptions-item>
<el-descriptions-item label="始发地">{{ order.logisticsInfoDto.startWarehouseId }}</el-descriptions-item> <el-descriptions-item label="始发地">{{ order.logisticsInfoDto.startWarehouseId }}</el-descriptions-item>
<el-descriptions-item label="目的地">{{ order.logisticsInfoDto.destWarehouseId }}</el-descriptions-item> <el-descriptions-item label="目的地">{{ order.logisticsInfoDto.destWarehouseId }}</el-descriptions-item>
<el-descriptions-item label="发货人姓名">{{ order.consignorVO.name }}</el-descriptions-item> <el-descriptions-item label="发货人姓名">{{ order.consignorVO && order.consignorVO.name}}</el-descriptions-item>
<el-descriptions-item label="发货人公司">{{ order.consignorVO.company }}</el-descriptions-item> <el-descriptions-item label="发货人公司">{{ order.consignorVO && order.consignorVO.company || '' }}</el-descriptions-item>
<el-descriptions-item label="发货人电话">{{ order.consignorVO.phone }}</el-descriptions-item> <el-descriptions-item label="发货人电话">{{ order.consignorVO && order.consignorVO.phone }}</el-descriptions-item>
<el-descriptions-item label="收货人姓名">{{ order.consigneeVO.name }}</el-descriptions-item> <el-descriptions-item label="收货人姓名">{{ order.consigneeVO && order.consigneeVO.name}}</el-descriptions-item>
<el-descriptions-item label="收货人公司">{{ order.consigneeVO.company }}</el-descriptions-item> <el-descriptions-item label="收货人公司">{{ order.consigneeVO && order.consigneeVO.company }}</el-descriptions-item>
<el-descriptions-item label="收货人电话">{{ order.consigneeVO.phone }}</el-descriptions-item> <el-descriptions-item label="收货人电话">{{ order.consigneeVO && order.consigneeVO.phone }}</el-descriptions-item>
<el-descriptions-item label="入仓类型">{{ order.warehouseType }}</el-descriptions-item> <el-descriptions-item label="入仓类型">{{ order.warehouseType }}</el-descriptions-item>
<el-descriptions-item label="订单号">{{ order.orderNo }}</el-descriptions-item> <el-descriptions-item label="订单号">{{ order.orderNo }}</el-descriptions-item>
</el-descriptions> </el-descriptions>
...@@ -21,10 +23,18 @@ ...@@ -21,10 +23,18 @@
</template> </template>
<script> <script>
import {DICT_TYPE} from "@/utils/dict"
export default { export default {
name: "orderBaseInfo", name: "orderBaseInfo",
props: { props: {
order: Object order: Object
},
data () {
return {
DICT_TYPE
}
} }
} }
</script> </script>
......
...@@ -147,6 +147,7 @@ export const DICT_TYPE = { ...@@ -147,6 +147,7 @@ export const DICT_TYPE = {
ORDER_ERROR_TYPE:'order_error_type',//订单异常类型 ORDER_ERROR_TYPE:'order_error_type',//订单异常类型
ORDER_EXCEPTION_STATUS:'order_exception_status',//异常订单状态 ORDER_EXCEPTION_STATUS:'order_exception_status',//异常订单状态
PAYMENT_TYPE:'payment_type',//收款类型 PAYMENT_TYPE:'payment_type',//收款类型
WAREHOUSE_IN_STATUS: 'warehouse_in_status', // 入仓状态
ECASH_INIT:'ecash_init', //e-cash ECASH_INIT:'ecash_init', //e-cash
FEE_TYPE:'receivable_fee_type', FEE_TYPE:'receivable_fee_type',
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</el-table-column> </el-table-column>
<el-table-column label="时间范围" align="center" prop="targetPeriodName"> <el-table-column label="时间范围" align="center" prop="targetPeriodName">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{scope.row.startTime}}~{{scope.row.endTime}}</span> <span>{{dateFormat(scope.row.startTime)}}~{{dateFormat(scope.row.endTime)}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="部门人数" align="center" prop="deptEmpCount"/> <el-table-column label="部门人数" align="center" prop="deptEmpCount"/>
...@@ -126,6 +126,7 @@ ...@@ -126,6 +126,7 @@
import { createDeptTarget, updateDeptTarget, deleteDeptTarget, getDeptTarget, getDeptTargetPage, exportDeptTargetExcel,getCreateInitData } from "@/api/ecw/deptTarget"; import { createDeptTarget, updateDeptTarget, deleteDeptTarget, getDeptTarget, getDeptTargetPage, exportDeptTargetExcel,getCreateInitData } from "@/api/ecw/deptTarget";
import { listSimpleDepts } from "@/api/system/dept"; import { listSimpleDepts } from "@/api/system/dept";
import { getChannelList } from '@/api/ecw/channel'; import { getChannelList } from '@/api/ecw/channel';
import dayjs from "dayjs";
export default { export default {
name: "DeptTarget", name: "DeptTarget",
...@@ -210,6 +211,11 @@ export default { ...@@ -210,6 +211,11 @@ export default {
}) })
}); });
getCreateInitData().then(res=>{
this.monthList = res.data.month;
this.quarterList = res.data.quarter;
this.yearList = res.data.year;
});
this.getChannelList(); this.getChannelList();
this.getList(); this.getList();
}, },
...@@ -217,6 +223,9 @@ export default { ...@@ -217,6 +223,9 @@ export default {
getChannelList(){ getChannelList(){
getChannelList().then(res => this.channelList = res.data) getChannelList().then(res => this.channelList = res.data)
}, },
dateFormat(val){
return dayjs(val).format("YYYY-MM-DD");
},
changeList(val){ changeList(val){
if(val===1){ if(val===1){
this.form.targetPeriodName=undefined; this.form.targetPeriodName=undefined;
...@@ -287,11 +296,6 @@ export default { ...@@ -287,11 +296,6 @@ export default {
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
getCreateInitData().then(res=>{
this.monthList = res.data.month;
this.quarterList = res.data.quarter;
this.yearList = res.data.year;
})
this.targetPeriod = this.monthList; this.targetPeriod = this.monthList;
this.reset(); this.reset();
this.open = true; this.open = true;
...@@ -303,6 +307,13 @@ export default { ...@@ -303,6 +307,13 @@ export default {
const id = row.id; const id = row.id;
getDeptTarget(id).then(response => { getDeptTarget(id).then(response => {
this.form = response.data; this.form = response.data;
if(response.data.targetType===1){
this.targetPeriod = this.monthList;
} else if (response.data.targetType ===2 ){
this.targetPeriod = this.quarterList;
} else{
this.targetPeriod = this.yearList;
}
this.open = true; this.open = true;
this.title = "修改部门业绩目标设置"; this.title = "修改部门业绩目标设置";
}); });
......
...@@ -6,17 +6,17 @@ ...@@ -6,17 +6,17 @@
<div class="content"> <div class="content">
<el-form label-width="180px" label-position="left"> <el-form label-width="180px" label-position="left">
<el-form-item label="特殊要求"> <el-form-item label="特殊要求">
<dict-selector v-if="show" v-model="form.advanceType" formType="radio" :type="DICT_TYPE.ORDER_SPECIAL_NEEDS" ></dict-selector> <dict-selector v-if="show" v-model="form.advanceType" multiple formType="checkbox" :type="DICT_TYPE.ORDER_SPECIAL_NEEDS" ></dict-selector>
</el-form-item> </el-form-item>
<el-form-item label="特殊要求备注"><el-input type="textarea" style="width: 300px;" v-model="form.todoDetail"></el-input></el-form-item> <el-form-item label="特殊要求备注"><el-input type="textarea" style="width: 300px;" v-model="form.todoDetail"></el-input></el-form-item>
<el-form-item label="内陆运费垫付预计金额" v-if="form.advanceType == 6"> <el-form-item label="内陆运费垫付预计金额" v-if="form.advanceType.indexOf('6') > -1">
<el-input style="width: 300px;" v-model="form.transFee"> <el-input style="width: 300px;" v-model="form.transFee">
<div style="width: 100px;" slot="append" > <div style="width: 100px;" slot="append" >
<dict-selector v-model="form.transCurrency" :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" ></dict-selector> <dict-selector v-model="form.transCurrency" :type="DICT_TYPE.COMMISSION_CURRENCY_TYPE" ></dict-selector>
</div> </div>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="付款类型" v-if="form.advanceType == 6"> <el-form-item label="付款类型" v-if="form.advanceType.indexOf('6') > -1">
<div style="width: 300px;"> <div style="width: 300px;">
<dict-selector v-model="form.payType" :type="DICT_TYPE.PAYMENT_TYPE" ></dict-selector> <dict-selector v-model="form.payType" :type="DICT_TYPE.PAYMENT_TYPE" ></dict-selector>
</div> </div>
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
methods:{ methods:{
clearFrom(){ clearFrom(){
this.form = { this.form = {
advanceType:undefined, advanceType:[],
advanceWho: undefined, advanceWho: undefined,
payType: undefined, payType: undefined,
todoDetail: undefined, todoDetail: undefined,
......
...@@ -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: {
......
...@@ -50,30 +50,32 @@ ...@@ -50,30 +50,32 @@
<template v-slot="{r,c,$index}"> <template v-slot="{r,c,$index}">
<span v-if="tableData[$index].id">{{ tableData[$index].cartonsNum }}</span> <span v-if="tableData[$index].id">{{ tableData[$index].cartonsNum }}</span>
<el-input v-else v-model="tableData[$index].cartonsNum" placeholder=""></el-input> <el-input v-else v-model="tableData[$index].cartonsNum" placeholder=""></el-input>
<span>{{ getDictDataLabel(DICT_TYPE.ECW_PACKAGE_TYPE, tableData[$index].boxGauge) }}</span> <span>{{ getDictDataLabel(DICT_TYPE.ECW_PACKAGE_TYPE, tableData[$index].unit) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="包装类型"> <el-table-column label="包装类型">
<template v-slot="{r,c,$index}"> <template v-slot="{r,c,$index}">
<span v-if="tableData[$index].id">{{ getDictDataLabel(DICT_TYPE.ECW_PACKAGE_TYPE, tableData[$index].boxGauge) }}</span> <span v-if="tableData[$index].id">{{ getDictDataLabel(DICT_TYPE.ECW_PACKAGE_TYPE, tableData[$index].unit) }}</span>
<!-- <el-input v-else v-model="tableData[$index].boxGauge" placeholder=""></el-input>--> <dict-selector v-else :type="DICT_TYPE.ECW_PACKAGE_TYPE" v-model="tableData[$index].unit"></dict-selector>
<dict-selector v-else :type="DICT_TYPE.ECW_PACKAGE_TYPE" v-model="tableData[$index].boxGauge"></dict-selector>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="长(cm)"> <el-table-column label="长(cm)">
<!-- <template v-slot="{r,c,$index}">--> <template v-slot="{r,c,$index}">
<!-- <el-input v-model="tableData[$index].cartonsNum" placeholder=""></el-input>--> <span v-if="tableData[$index].id">{{ tableData[$index].boxGauge ? tableData[$index].boxGauge.split('*')[0] : '' }}</span>
<!-- </template>--> <el-input v-else v-model="tableData[$index].boxGauge1" placeholder=""></el-input>
</template>
</el-table-column> </el-table-column>
<el-table-column label="宽(cm)"> <el-table-column label="宽(cm)">
<!-- <template v-slot="{r,c,$index}">--> <template v-slot="{r,c,$index}">
<!-- <el-input v-model="tableData[$index].cartonsNum" placeholder=""></el-input>--> <span v-if="tableData[$index].id">{{ tableData[$index].boxGauge ? tableData[$index].boxGauge.split('*')[1] : '' }}</span>
<!-- </template>--> <el-input v-else v-model="tableData[$index].boxGauge2" placeholder=""></el-input>
</template>
</el-table-column> </el-table-column>
<el-table-column label="高(cm)"> <el-table-column label="高(cm)">
<!-- <template v-slot="{r,c,$index}">--> <template v-slot="{r,c,$index}">
<!-- <el-input v-model="tableData[$index].cartonsNum" placeholder=""></el-input>--> <span v-if="tableData[$index].id">{{ tableData[$index].boxGauge ? tableData[$index].boxGauge.split('*')[2] : '' }}</span>
<!-- </template>--> <el-input v-else v-model="tableData[$index].boxGauge3" placeholder=""></el-input>
</template>
</el-table-column> </el-table-column>
<el-table-column label="体积(m³)"> <el-table-column label="体积(m³)">
<template v-slot="{r,c,$index}"> <template v-slot="{r,c,$index}">
...@@ -143,7 +145,15 @@ export default { ...@@ -143,7 +145,15 @@ export default {
mounted() { mounted() {
getProductBrankPage({pageSize: 100000}).then(r => { getProductBrankPage({pageSize: 100000}).then(r => {
this.brandList = r.data.list this.brandList = r.data.list.map(e => {
const boxGauge = e.boxGauge
if (boxGauge && boxGauge.length > 0) {
const boxGaugeList = boxGauge.split('*')
const [boxGauge1, boxGauge2, boxGauge3] = boxGaugeList
return {...e, boxGauge1, boxGauge2, boxGauge3}
}
return e
})
}) })
}, },
...@@ -203,27 +213,19 @@ export default { ...@@ -203,27 +213,19 @@ export default {
} }
}, },
handleSubmit() { handleSubmit() {
// Promise.all( const orderWarehouseInItemDoList = this.form.orderWarehouseInItemDoList.map(e => {
// this.form.orderWarehouseInItemDoList.map(e => { return {
// return orderWarehouseIn({ ...e,
// ...e, boxGauge: e.boxGauge1 + '*' + e.boxGauge2 + '*' + e.boxGauge3
// inTime: this.form.inTime, }
// material: this.form.material, })
// brandType: this.warehousing.brandType,
// orderId: this.warehousing.orderId,
// orderItemId: this.warehousing.orderItemId,
// orderNo: this.warehousing.orderNo
// })
// })
// ).then(() => {
// this.handleClose()
// })
return orderWarehouseIn({ return orderWarehouseIn({
...this.form, ...this.form,
brandType: this.form.brand ? 1 : 0, brandType: this.form.brand ? 1 : 0,
orderId: this.warehousing.orderId, orderId: this.warehousing.orderId,
orderItemId: this.warehousing.orderItemId, orderItemId: this.warehousing.orderItemId,
orderNo: this.warehousing.orderNo orderNo: this.warehousing.orderNo,
orderWarehouseInItemDoList
}).then(r => { }).then(r => {
if (r.data){ if (r.data){
this.$message.success('入仓成功') this.$message.success('入仓成功')
...@@ -242,7 +244,9 @@ export default { ...@@ -242,7 +244,9 @@ export default {
}, },
handleAdd() { handleAdd() {
this.form.orderWarehouseInItemDoList.push({ this.form.orderWarehouseInItemDoList.push({
"boxGauge": "", "boxGauge1": "",
"boxGauge2": "",
"boxGauge3": "",
"cartonsNum": "", "cartonsNum": "",
"expressNo": "", "expressNo": "",
"quantityAll": "", "quantityAll": "",
......
...@@ -40,8 +40,10 @@ ...@@ -40,8 +40,10 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="address" prop="expressNo"
v-slot="{row}"
label="快递单号"> label="快递单号">
{{ row.warehouseInInfoVO ? row.warehouseInInfoVO.expressNo : '' }}
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="updateTime" prop="updateTime"
...@@ -51,97 +53,27 @@ ...@@ -51,97 +53,27 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="address" prop="diffType"
v-slot="{row}"
label="状态"> label="状态">
<dict-tag :type="DICT_TYPE.WAREHOUSE_IN_STATUS" :value="row.warehouseInInfoVO.diffType" />
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="address" prop="address"
label="操作"> label="操作">
<template v-slot="{ row, column, $index }"> <template v-slot="{ row, column, $index }">
<el-button v-if="orderItemList[$index].orderWarehouseInBackItemDoList && orderItemList[$index].orderWarehouseInBackItemDoList.length > 0" size="mini" type="text" @click="handleWarehousing($index)">追加</el-button> <el-button v-if="orderItemList[$index] && orderItemList[$index].orderWarehouseInBackItemDoList && orderItemList[$index].orderWarehouseInBackItemDoList.length > 0" size="mini" type="text" @click="handleWarehousing($index)">追加</el-button>
<el-button v-else size="mini" type="text" @click="handleWarehousing($index)">入仓</el-button> <el-button v-else size="mini" type="text" @click="handleWarehousing($index)">入仓</el-button>
<el-button size="mini" type="text" @click="handleWarehousingReturn(row)">退仓</el-button> <el-button size="mini" type="text" @click="handleWarehousingReturn(row)">退仓</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<h2>特殊需求</h2> <h2 v-if="orderSpecialNeeds.length > 0">特殊需求</h2>
<el-form ref="form" :model="form" label-width="180px" style="max-width: 600px;"> <el-form ref="form" :model="form" label-width="180px" style="max-width: 600px;">
<el-form-item label="套编织袋费"> <el-form-item :label="item.label" v-for="(item, index) in orderSpecialNeeds" :key="item.value">
<el-input v-model="form.a" placeholder="请输入套编织袋费"> <el-input v-model="form.orderSpecialNeedReceivableReqVoList[index].receivableMoney" :placeholder="'请输入' + item.label">
<el-select v-model="form.b" placeholder="请选择" slot="append" style="width: 100px"> <el-select v-model="form.orderSpecialNeedReceivableReqVoList[index].receivableMoneyCurrency" placeholder="请选择" slot="append" style="width: 100px">
<el-option
v-for="item in currencyList"
:key="item.id"
:label="item.titleZh"
:value="item.id">
</el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item label="木架包装费">
<el-input v-model="form.a" placeholder="请输入木架包装费">
<el-select v-model="form.b" placeholder="请选择" slot="append" style="width: 100px">
<el-option
v-for="item in currencyList"
:key="item.id"
:label="item.titleZh"
:value="item.id">
</el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item label="纸箱包装费">
<el-input v-model="form.a" placeholder="请输入纸箱包装费">
<el-select v-model="form.b" placeholder="请选择" slot="append" style="width: 100px">
<el-option
v-for="item in currencyList"
:key="item.id"
:label="item.titleZh"
:value="item.id">
</el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item label="内陆运输费">
<el-input v-model="form.a" placeholder="请输入内陆运输费">
<el-select v-model="form.b" placeholder="请选择" slot="append" style="width: 100px">
<el-option
v-for="item in currencyList"
:key="item.id"
:label="item.titleZh"
:value="item.id">
</el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item label="打包费">
<el-input v-model="form.a" placeholder="请输入打包费">
<el-select v-model="form.b" placeholder="请选择" slot="append" style="width: 100px">
<el-option
v-for="item in currencyList"
:key="item.id"
:label="item.titleZh"
:value="item.id">
</el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item label="易碎标签">
<el-input v-model="form.a" placeholder="请输入易碎标签">
<el-select v-model="form.b" placeholder="请选择" slot="append" style="width: 100px">
<el-option
v-for="item in currencyList"
:key="item.id"
:label="item.titleZh"
:value="item.id">
</el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item label="其他费用">
<el-input v-model="form.a" placeholder="请输入其他费用">
<el-select v-model="form.b" placeholder="请选择" slot="append" style="width: 100px">
<el-option <el-option
v-for="item in currencyList" v-for="item in currencyList"
:key="item.id" :key="item.id"
...@@ -152,7 +84,7 @@ ...@@ -152,7 +84,7 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<div style="text-align: center"> <div style="text-align: center;margin-top: 15px">
<el-button type="primary">转异</el-button> <el-button type="primary">转异</el-button>
<el-button type="primary" @click="finishVisible = true">完成入仓</el-button> <el-button type="primary" @click="finishVisible = true">完成入仓</el-button>
</div> </div>
...@@ -181,10 +113,17 @@ ...@@ -181,10 +113,17 @@
<script> <script>
import {getCurrencyList} from "@/api/ecw/currency" import {getCurrencyList} from "@/api/ecw/currency"
import {getOrder, getOrderWarehouseIn, orderWarehouseInFinish, rollbackApply} from "@/api/ecw/order" import {
getOrder,
getOrderWarehouseIn,
getSpecialListByOrderId,
orderWarehouseInFinish,
rollbackApply
} from "@/api/ecw/order"
import orderBaseInfo from "@/components/OrderBaseInfo" import orderBaseInfo from "@/components/OrderBaseInfo"
import WarehouseAreaDialog from '@/components/WarehouseAreaDialog' import WarehouseAreaDialog from '@/components/WarehouseAreaDialog'
import editDialog from '@/views/ecw/order/warehousing/components/editDialog' import editDialog from '@/views/ecw/order/warehousing/components/editDialog'
import {DICT_TYPE} from "@/utils/dict"
export default { export default {
name: "Warehousing", name: "Warehousing",
...@@ -200,23 +139,25 @@ export default { ...@@ -200,23 +139,25 @@ export default {
this.orderId = this.$route.query.id this.orderId = this.$route.query.id
getOrder(this.orderId).then(r => this.order = r.data) getOrder(this.orderId).then(r => this.order = r.data)
getOrderWarehouseIn(this.orderId).then(r => this.orderItemList = r.data) getOrderWarehouseIn(this.orderId).then(r => this.orderItemList = r.data)
getSpecialListByOrderId(this.orderId).then(r => this.specialList = r.data)
} }
getCurrencyList().then(res => this.currencyList = res.data) getCurrencyList().then(res => this.currencyList = res.data)
}, },
data() { data() {
return { return {
DICT_TYPE,
areaVisible: false, areaVisible: false,
finishVisible: false, finishVisible: false,
locationName: '', locationName: '',
warehousingVisible: false, warehousingVisible: false,
form: { form: {
a: '', orderSpecialNeedReceivableReqVoList: []
b: 3
}, },
currencyList:[], currencyList:[],
order: {}, order: {},
orderItemList: [], orderItemList: [],
specialList: [],
warehousing: undefined warehousing: undefined
} }
}, },
...@@ -224,6 +165,7 @@ export default { ...@@ -224,6 +165,7 @@ export default {
methods: { methods: {
handleSubmit() { handleSubmit() {
orderWarehouseInFinish({ orderWarehouseInFinish({
orderSpecialNeedReceivableReqVoList: this.form.orderSpecialNeedReceivableReqVoList,
"locationName": this.locationName, "locationName": this.locationName,
"orderId": this.order.orderId "orderId": this.order.orderId
}).then(r => { }).then(r => {
...@@ -275,6 +217,31 @@ export default { ...@@ -275,6 +217,31 @@ export default {
getOrder(this.orderId).then(r => this.order = r.data) getOrder(this.orderId).then(r => this.order = r.data)
getOrderWarehouseIn(this.orderId).then(r => this.orderItemList = r.data) getOrderWarehouseIn(this.orderId).then(r => this.orderItemList = r.data)
} }
},
orderSpecialNeeds(val){
val.forEach(e => {
this.form.orderSpecialNeedReceivableReqVoList.push( {
"id": e.id,
"receivableMoney": '',
"receivableMoneyCurrency": 3
})
})
}
},
computed: {
orderSpecialNeedsDict() {
return this.$store.state.dict.dictDatas.order_special_needs
},
orderSpecialNeeds(){
const result = []
this.specialList.forEach(e => {
const t = this.orderSpecialNeedsDict.find(f => f.value === e.advanceType)
if(t) {
result.push({...e, label: t.label})
}
})
return result
} }
} }
} }
......
<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
} }
}) })
} }
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" @click="typeProductList(scope.row)" <el-button size="mini" type="text" @click="typeProductList(scope.row)"
v-hasPermi="['ecw:product:query']">品列表</el-button> v-hasPermi="['ecw:product:query']">品列表</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
v-hasPermi="['ecw:product-type:update']">修改</el-button> v-hasPermi="['ecw:product-type:update']">修改</el-button>
......
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