|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
<div class="oing pagePadding">
|
|
|
+ {{ powers }}
|
|
|
<ex-table
|
|
|
v-loading="loading"
|
|
|
v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
|
|
@@ -25,10 +26,7 @@
|
|
|
<div style="width: 100%; height: 30px">
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="24">
|
|
|
- <el-col
|
|
|
- :span="3"
|
|
|
- style="width: 66px; float: right"
|
|
|
- >
|
|
|
+ <el-col :span="3" style="width: 66px; float: right">
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
:size="searchSize"
|
|
@@ -56,7 +54,7 @@
|
|
|
</el-row>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template #status="{ scope }">
|
|
|
+ <!-- <template #status="{ scope }">
|
|
|
<el-tag
|
|
|
:size="tablebtnSize"
|
|
|
:type="scope.row.status == '0' ? 'warning' : ''"
|
|
@@ -65,7 +63,7 @@
|
|
|
.label || '--'
|
|
|
"
|
|
|
></el-tag>
|
|
|
- </template>
|
|
|
+ </template> -->
|
|
|
|
|
|
<template #operation="{ scope }">
|
|
|
<el-tooltip
|
|
@@ -76,7 +74,7 @@
|
|
|
>
|
|
|
<i
|
|
|
class="el-icon-view tb-icon"
|
|
|
- @click="openModal(scope.row.id, true)"
|
|
|
+ @click="getRouter(scope.row.order_type, scope.row.order_code)"
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip
|
|
@@ -171,10 +169,12 @@ export default {
|
|
|
size: 15, // 每页显示条数
|
|
|
},
|
|
|
// 状态
|
|
|
- statusOptions: [
|
|
|
- { id: 0, label: "禁用" },
|
|
|
- { id: 1, label: "启用" },
|
|
|
- ],
|
|
|
+ // statusOptions: [
|
|
|
+ // { id: 3, label: "完成" },
|
|
|
+ // { id: 2, label: "流程中" },
|
|
|
+ // { id: 1, label: "未操作" },
|
|
|
+ // { id: 0, label: "未操作" },
|
|
|
+ // ],
|
|
|
// 角色等级
|
|
|
authOptions: [
|
|
|
{ id: "1", label: "管理员" },
|
|
@@ -197,51 +197,120 @@ export default {
|
|
|
// 表格 - 列参数
|
|
|
columns: [
|
|
|
{
|
|
|
- prop: "id",
|
|
|
- label: "待办编号",
|
|
|
+ prop: "order_code",
|
|
|
+ label: "订单编号",
|
|
|
},
|
|
|
{
|
|
|
- prop: "title",
|
|
|
- label: "流程名称",
|
|
|
+ prop: "order_type",
|
|
|
+ label: "订单类型",
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: "orderNo",
|
|
|
- label: "单据号",
|
|
|
+ prop: "apply_name",
|
|
|
+ label: "申请人",
|
|
|
},
|
|
|
{
|
|
|
- prop: "type",
|
|
|
- label: "当前节点",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "timestamp",
|
|
|
- label: "停留时间",
|
|
|
- // sortable: true,
|
|
|
- // _slot_: "status",
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "author",
|
|
|
- label: "发起人",
|
|
|
+ prop: "action_process",
|
|
|
+ label: "订单流程",
|
|
|
// sortable: true,
|
|
|
},
|
|
|
+ // {
|
|
|
+ // prop: "order_status",
|
|
|
+ // label: "状态",
|
|
|
+ // fixed: "right",
|
|
|
+ // // _noset_: true,
|
|
|
+ // _slot_: "status",
|
|
|
+ // },
|
|
|
{
|
|
|
- prop: "reviewer",
|
|
|
- label: "发起人部门",
|
|
|
- // fixed: "right",
|
|
|
- // _noset_: true,
|
|
|
- // _slot_: "operation",
|
|
|
+ prop: "addtime",
|
|
|
+ label: "申请时间",
|
|
|
},
|
|
|
{
|
|
|
- prop: "addTime",
|
|
|
- label: "申请时间",
|
|
|
+ prop: "",
|
|
|
+ label: "操作",
|
|
|
+ fixed: "right",
|
|
|
+ _noset_: true,
|
|
|
+ _slot_: "operation",
|
|
|
+ width: "50",
|
|
|
},
|
|
|
],
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.searchProList();
|
|
|
this.searchList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ getRouter(type, code, id) {
|
|
|
+ console.log(type, code, id);
|
|
|
+ let list = [
|
|
|
+ {
|
|
|
+ type: "CGD", //采购单
|
|
|
+ rname: "purchaseOrderDetail",
|
|
|
+ to: "id",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "RKD", //入库单
|
|
|
+ rname: "",
|
|
|
+ to: "id",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "FKD", //反馈单流程
|
|
|
+ rname: "storeManageFlow",
|
|
|
+ to: "id",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "BHD", //备货流程
|
|
|
+ rname: "storeManageFlow",
|
|
|
+ to: "id",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "PDD", //盘点流程
|
|
|
+ rname: "checkDetail",
|
|
|
+ to: "id",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "DBD", //调拨流程
|
|
|
+ rname: "allotDetail",
|
|
|
+ to: "id",
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // type: "RKTHD",//入库单退货流程
|
|
|
+ // rname: "storeManageFlow",
|
|
|
+ // to: "id",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // type: "CGDTHD",//采购单单流程
|
|
|
+ // rname: "storeManageFlow",
|
|
|
+ // to: "id",
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ type: "XSQRD", //销售确认单流程
|
|
|
+ rname: "salesOrderDetail",
|
|
|
+ to: "id",
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // type: "CKD",//出库单流程
|
|
|
+ // rname: "storeManageFlow",
|
|
|
+ // to: "id",
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ type: "SHD", //售后流程
|
|
|
+ rname: "serviceDetail",
|
|
|
+ to: "code",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ let item = list.find((v) => {
|
|
|
+ return v.type == type;
|
|
|
+ });
|
|
|
+ console.log(item, "item");
|
|
|
+ if (item && item.type) {
|
|
|
+ console.log("1212");
|
|
|
+ console.log(this.routeGoto);
|
|
|
+ this.routeGoto(item.rname, { id: item.to === "id" ? id : code });
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
restSearch() {
|
|
|
// 表格 - 分页
|
|
|
this.pageInfo = {
|
|
@@ -253,6 +322,7 @@ export default {
|
|
|
page: 1, // 页码
|
|
|
size: 15, // 每页显示条数
|
|
|
};
|
|
|
+ this.searchProList();
|
|
|
this.searchList();
|
|
|
},
|
|
|
// 新建/编辑/详情
|
|
@@ -304,6 +374,25 @@ export default {
|
|
|
// const res = await asyncRequest.list(this.parmValue);
|
|
|
const res = await asyncRequest.list(this.parmValue);
|
|
|
// console.log(...res.data.list);
|
|
|
+ if (res && res.code === 0 && res.data) {
|
|
|
+ console.log(res.data);
|
|
|
+ this.tableData = res.data.list;
|
|
|
+ // console.log(this.tableData);
|
|
|
+ this.pageInfo.total = Number(res.data.count);
|
|
|
+ } else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
+ await this.logout();
|
|
|
+ } else {
|
|
|
+ this.tableData = [];
|
|
|
+ this.pageInfo.total = 0;
|
|
|
+ }
|
|
|
+ this.loading = false;
|
|
|
+ },
|
|
|
+ // 刷新表格
|
|
|
+ async searchProList() {
|
|
|
+ this.loading = true;
|
|
|
+ // const res = await asyncRequest.list(this.parmValue);
|
|
|
+ const res = await asyncRequest.processList(this.parmValue);
|
|
|
+ // console.log(...res.data.list);
|
|
|
if (res && res.code === 0 && res.data) {
|
|
|
console.log(res.data);
|
|
|
// this.tableData = res.data.list;
|