Commit 47f96cc6 authored by dragondean@qq.com's avatar dragondean@qq.com
parents b9d19d8c ec9c03db
<template> <template>
<div class="app-container"> <div class="app-container">
<doc-alert title="工作流" url="https://doc.iocoder.cn/bpm" />
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="流程名" prop="processName"> <el-form-item label="流程名" prop="processName">
...@@ -20,8 +18,8 @@ ...@@ -20,8 +18,8 @@
<!-- 列表 --> <!-- 列表 -->
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list">
<el-table-column label="任务编号" align="center" prop="taskId" width="320" /> <el-table-column label="任务编号" align="center" prop="taskId" width="320" />
<el-table-column label="任务名称" align="center" prop="title" /> <el-table-column label="流程分类" align="center" prop="title" />
<el-table-column label="所属流程" align="center" prop="processName" /> <el-table-column label="流程名称" align="center" prop="processName" />
<el-table-column label="流程发起人" align="center" prop="originatorName" /> <el-table-column label="流程发起人" align="center" prop="originatorName" />
<el-table-column label="创建时间" align="center" prop="createTime" width="180"> <el-table-column label="创建时间" align="center" prop="createTime" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
......
<template> <template xmlns="">
<div> <div>
<el-row type="flex" style="margin-top: 15px;margin-bottom: 15px" justify="center"> <el-row type="flex" style="margin-top: 15px;margin-bottom: 15px" justify="center">
...@@ -264,6 +264,11 @@ ...@@ -264,6 +264,11 @@
prop="" prop=""
label="关联账号" label="关联账号"
> >
<template v-slot = "{row}">
<el-select v-model="row.userid" @change="selectBD">
<el-option v-for="(item,index) in memberList" :value="item.id" :key="item.id" :label="item.nickname + '(' + item.mobile + ')'" ></el-option>
</el-select>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="social" prop="social"
...@@ -370,7 +375,7 @@ ...@@ -370,7 +375,7 @@
<script> <script>
import { getDictDatas, DICT_TYPE } from '@/utils/dict'; import { getDictDatas, DICT_TYPE } from '@/utils/dict';
import upload from '@/components/ImageUpload' import upload from '@/components/ImageUpload'
import {createCustomer, getCustomer, updateCustomer, } from '@/api/ecw/customer' import {createCustomer, getCustomer, updateCustomer, userMemberUserList,} from '@/api/ecw/customer'
import {getNodeList} from "@/api/ecw/node" import {getNodeList} from "@/api/ecw/node"
import { getProductTypeList } from '@/api/ecw/productType' import { getProductTypeList } from '@/api/ecw/productType'
import { getProductList } from '@/api/ecw/product' import { getProductList } from '@/api/ecw/product'
...@@ -382,6 +387,7 @@ import {listServiceUser} from "@/api/system/user" ...@@ -382,6 +387,7 @@ import {listServiceUser} from "@/api/system/user"
import {getZhongPaoPage} from '@/api/ecw/zhongPao' import {getZhongPaoPage} from '@/api/ecw/zhongPao'
import { getCustomerContactsListByCustomer } from '@/api/ecw/customerContacts' import { getCustomerContactsListByCustomer } from '@/api/ecw/customerContacts'
import { getCountryListAll } from '@/api/ecw/country' import { getCountryListAll } from '@/api/ecw/country'
import Template from "@/views/cms/template";
export default { export default {
name: "edit", name: "edit",
...@@ -389,6 +395,7 @@ export default { ...@@ -389,6 +395,7 @@ export default {
customerId: String customerId: String
}, },
components: { components: {
Template,
upload, upload,
CustomerLineTable CustomerLineTable
}, },
...@@ -426,6 +433,9 @@ export default { ...@@ -426,6 +433,9 @@ export default {
getCountryListAll().then(r => { getCountryListAll().then(r => {
this.countryList = r.data this.countryList = r.data
}) })
userMemberUserList().then(r => {
this.memberList = r.data
})
this.getZhongPao() this.getZhongPao()
}, },
...@@ -464,10 +474,14 @@ export default { ...@@ -464,10 +474,14 @@ export default {
zhongLines: [], // 重货线路 zhongLines: [], // 重货线路
paoLines: [], // 泡货线路 paoLines: [], // 泡货线路
memberList:[],//会员列表
} }
}, },
methods: { methods: {
selectBD(){
this.$forceUpdate();
},
/** 取消按钮 */ /** 取消按钮 */
cancel() { cancel() {
this.open = false; this.open = false;
...@@ -479,6 +493,9 @@ export default { ...@@ -479,6 +493,9 @@ export default {
if (!valid) { if (!valid) {
return; return;
} }
this.form.customerContacts.forEach(e => {
e.userid = e.userid.join(',')
})
// 修改的提交 // 修改的提交
if (this.form.id != null) { if (this.form.id != null) {
this.form.customerContacts.forEach(e => { this.form.customerContacts.forEach(e => {
...@@ -572,7 +589,7 @@ export default { ...@@ -572,7 +589,7 @@ export default {
"position": "", "position": "",
"social": undefined, "social": undefined,
"socialNumber": "", "socialNumber": "",
// "userid": 0, "userid": [],
// "username": "" // "username": ""
}) })
}, },
...@@ -592,7 +609,7 @@ export default { ...@@ -592,7 +609,7 @@ export default {
computed: { computed: {
productListFilter(){ productListFilter(){
return this.productList.filter((p) => p.typeId === this.form.productType) return this.productList.filter((p) => p.typeId === this.form.productType)
} },
}, },
watch: { watch: {
zhongLines() { zhongLines() {
......
...@@ -25,7 +25,13 @@ ...@@ -25,7 +25,13 @@
<el-table-column label="订单号" prop="orderNo"></el-table-column> <el-table-column label="订单号" prop="orderNo"></el-table-column>
<el-table-column label="唛头" prop="marks"></el-table-column> <el-table-column label="唛头" prop="marks"></el-table-column>
<el-table-column label="货物数据"> <el-table-column label="货物数据">
<template v-slot="{row}">
<div v-if="row.costVO">
箱数:{{row.costVO.totalNum}}
{{row.costVO.totalVolume}}
{{row.costVO.totalWeight}}kg
</div>
</template>
</el-table-column> </el-table-column>
<el-table-column label="入仓时间" prop="rucangTime"></el-table-column> <el-table-column label="入仓时间" prop="rucangTime"></el-table-column>
<el-table-column label="状态"> <el-table-column label="状态">
......
...@@ -32,13 +32,13 @@ ...@@ -32,13 +32,13 @@
width="55"> width="55">
</el-table-column> </el-table-column>
<el-table-column type="index" label="序号"></el-table-column> <el-table-column type="index" label="序号"></el-table-column>
<el-table-column label="订单号" prop="orderNo"></el-table-column> <el-table-column label="订单号" prop="orderBackVO.orderNo"></el-table-column>
<el-table-column label="唛头" prop="marks"></el-table-column> <el-table-column label="唛头" prop="marks"></el-table-column>
<el-table-column label="货物数据"></el-table-column> <el-table-column label="货物数据"></el-table-column>
<el-table-column label="入仓时间" prop="remarks"></el-table-column> <el-table-column label="入仓时间"></el-table-column>
<el-table-column label="状态" prop="status" > <el-table-column label="状态" prop="status" >
<template v-slot:default="scope"> <template v-slot:default="scope">
<dict-tag :value="scope.row.status" :type="DICT_TYPE.ORDER_STATUS" ></dict-tag> <dict-tag :value="scope.row.orderBackVO.status" :type="DICT_TYPE.ORDER_STATUS" ></dict-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作人"></el-table-column> <el-table-column label="操作人"></el-table-column>
......
...@@ -10,7 +10,13 @@ ...@@ -10,7 +10,13 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="下单统计"> <el-table-column label="下单统计">
<template v-slot="{row}">
<div v-if="row.costVO">
箱数:{{row.costVO.totalNum}}
{{row.costVO.totalVolume}}
{{row.costVO.totalWeight}}kg
</div>
</template>
</el-table-column> </el-table-column>
<el-table-column label="入仓统计" width="150"> <el-table-column label="入仓统计" width="150">
<template v-slot="{row}"> <template v-slot="{row}">
...@@ -30,7 +36,7 @@ ...@@ -30,7 +36,7 @@
<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}">
...@@ -68,13 +74,8 @@ ...@@ -68,13 +74,8 @@
审批流程 审批流程
</h1> </h1>
<div style="padding: 20px"> <div style="padding: 20px">
<my-process-viewer key="designer" v-model="bpmnXML" v-bind="bpmnControlForm" /> <work-flow xmlkey="warehouse_transfer" v-model="params.copyUserId" />
</div> </div>
<div style="height: 100px"></div>
<!-- <el-form label-width="200px">-->
<!-- <el-form-item label="抄送"></el-form-item>-->
<!-- <el-form-item label="抄送人"></el-form-item>-->
<!-- </el-form>-->
<div style="text-align: center"> <div style="text-align: center">
<el-button style="margin-right: 50px" @click="submit" :disabled="isSubmit">提交申请</el-button> <el-button style="margin-right: 50px" @click="submit" :disabled="isSubmit">提交申请</el-button>
<el-button @click="$router.push('/order/order')">取消</el-button> <el-button @click="$router.push('/order/order')">取消</el-button>
...@@ -93,22 +94,21 @@ import { ...@@ -93,22 +94,21 @@ import {
import {getProcessDefinitionBpmnXMLByKey} from "@/api/bpm/definition"; 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";
export default { export default {
name: "batchSingleApplication", name: "batchSingleApplication",
props:{ props:{
orderList:String, orderList:String,
}, },
components:{ components:{
warehouseDetails warehouseDetails,
workFlow
}, },
created() { created() {
getOrderPage({orderIdList:this.orderList}).then(r =>{ getOrderPage({orderIdList:this.orderList}).then(r =>{
this.list = r.data.list this.list = r.data.list
warehouseAdjustmentList({id:this.list[0].startWarehouseId}).then( r => this.availableWarehouse = r.data) warehouseAdjustmentList({id:this.list[0].startWarehouseId}).then( r => this.availableWarehouse = r.data)
}) })
getProcessDefinitionBpmnXMLByKey("warehouse_transfer").then(response => {
this.bpmnXML = response.data
})
}, },
computed:{ computed:{
isSubmit(){ isSubmit(){
...@@ -125,6 +125,7 @@ export default { ...@@ -125,6 +125,7 @@ export default {
data(){ data(){
return { return {
list:[], list:[],
selectedUsers:[],
availableWarehouse:[], availableWarehouse:[],
DICT_TYPE, DICT_TYPE,
departureWarehouse:undefined, departureWarehouse:undefined,
...@@ -132,11 +133,8 @@ export default { ...@@ -132,11 +133,8 @@ export default {
params:{ params:{
orderIds:undefined, orderIds:undefined,
warehouseInId:undefined, warehouseInId:undefined,
warehouseOutId: undefined warehouseOutId: undefined,
}, copyUserId:[],
bpmnXML: null,
bpmnControlForm: {
prefix: "activiti"
}, },
} }
}, },
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<el-button>取消</el-button> <el-button>取消</el-button>
</div> </div>
<div style="padding: 20px"> <div style="padding: 20px">
<my-process-viewer key="designer" v-model="bpmnXML" v-bind="bpmnControlForm" /> <work-flow xmlkey="free_apply" v-model="selectedUsers" />
</div> </div>
</div> </div>
</template> </template>
...@@ -69,10 +69,10 @@ ...@@ -69,10 +69,10 @@
import {getOrder, feeApplicationCreate, ApplicationListByOrderId, applicationUpdate} from "@/api/ecw/order"; import {getOrder, feeApplicationCreate, ApplicationListByOrderId, applicationUpdate} from "@/api/ecw/order";
import { getDictDatas, DICT_TYPE } from '@/utils/dict'; import { getDictDatas, DICT_TYPE } from '@/utils/dict';
import Template from "@/views/cms/template"; import Template from "@/views/cms/template";
import { getProcessDefinitionBpmnXMLByKey} from "@/api/bpm/definition"; import workFlow from "@/components/WorkFlow";
export default { export default {
name: "feeApplication", name: "feeApplication",
components: {Template}, components: {Template,workFlow},
props:{ props:{
orderId:[Number, String], orderId:[Number, String],
}, },
...@@ -85,10 +85,7 @@ export default { ...@@ -85,10 +85,7 @@ export default {
STATUS:{}, STATUS:{},
isModify:[], isModify:[],
isModifyIf:false, isModifyIf:false,
bpmnXML: null, selectedUsers:[]
bpmnControlForm: {
prefix: "activiti"
},
} }
}, },
created() { created() {
...@@ -100,10 +97,8 @@ export default { ...@@ -100,10 +97,8 @@ export default {
this.getOrderList() 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
}), })
getProcessDefinitionBpmnXMLByKey("free_apply").then(response => {
this.bpmnXML = response.data
})
}, },
computed:{ computed:{
forbidden(){ forbidden(){
...@@ -142,10 +137,11 @@ export default { ...@@ -142,10 +137,11 @@ 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}).then(r=>{ feeApplicationCreate( {...this.list[this.list.length - 1],status:1,copyUserId:this.selectedUsers.join(',')}).then(r=>{
if(r.code === 0){ if(r.code === 0){
this.getOrderList(); this.getOrderList();
this.$message.success('添加成功'); this.$message.success('添加成功');
this.selectedUsers = [];
} }
}) })
} }
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<el-divider></el-divider> <el-divider></el-divider>
<h2>审批流程</h2> <h2>审批流程</h2>
<div style="padding: 20px"> <div style="padding: 20px">
<my-process-viewer key="designer" v-model="bpmnXML" v-bind="bpmnControlForm" /> <work-flow xmlkey="retired_warehouse" v-model="params.copyUserId" />
</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>
...@@ -23,12 +23,16 @@ ...@@ -23,12 +23,16 @@
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 {getProcessDefinitionBpmnXMLByKey} from "@/api/bpm/definition";
import workFlow from "@/components/WorkFlow";
export default { export default {
name: "withdrawal", name: "withdrawal",
props:{ props:{
orderId:String orderId:String
}, },
components:{
workFlow
},
data(){ data(){
return { return {
orderDetails:{}, orderDetails:{},
...@@ -40,14 +44,12 @@ export default { ...@@ -40,14 +44,12 @@ export default {
orderId:undefined, orderId:undefined,
orderNo:undefined, orderNo:undefined,
reason:'', reason:'',
} copyUserId:[]
},
} }
}, },
created() { created() {
getOrder(this.orderId).then(r => this.orderDetails = r.data); getOrder(this.orderId).then(r => this.orderDetails = r.data);
getProcessDefinitionBpmnXMLByKey("retired_warehouse").then(response => {
this.bpmnXML = response.data
})
}, },
methods:{ methods:{
submit(){ submit(){
......
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