|
@@ -41,9 +41,25 @@
|
|
|
<el-button type="primary" link size="small" @click="openDialog(2, row)"
|
|
|
><i-ep-edit />{{ row.state === "0" ? "编辑" : "流程" }}</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ v-if="row.state === '8'"
|
|
|
+ link
|
|
|
+ size="small"
|
|
|
+ @click="openDialog1(row)"
|
|
|
+ ><i-ep-position />导出物料信息</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
<el-dialog
|
|
|
+ v-model="dialog1.visible"
|
|
|
+ :title="dialog1.title"
|
|
|
+ @close="dialog1.visible = false"
|
|
|
+ width="90%"
|
|
|
+ >
|
|
|
+ <ExportInfo :excelRow />
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog
|
|
|
v-model="dialog.visible"
|
|
|
:title="dialog.title"
|
|
|
width="75%"
|
|
@@ -58,16 +74,19 @@
|
|
|
>打印</el-button
|
|
|
>
|
|
|
</template>
|
|
|
- <div style="width:100%; height: 30px;">
|
|
|
-<!-- <el-steps :active="1" finish-status="success">-->
|
|
|
- <el-steps :active="form.state === '8' ? 3: (form.state === '9' ? 2 : 1)" finish-status="success">
|
|
|
+ <div style="width: 100%; height: 30px">
|
|
|
+ <!-- <el-steps :active="1" finish-status="success">-->
|
|
|
+ <el-steps
|
|
|
+ :active="form.state === '8' ? 3 : form.state === '9' ? 2 : 1"
|
|
|
+ finish-status="success"
|
|
|
+ >
|
|
|
<el-step :title="form.sendOrg" />
|
|
|
<el-step title="运输中" />
|
|
|
<el-step :title="form.applyOrg" />
|
|
|
</el-steps>
|
|
|
</div>
|
|
|
<div class="card-container">
|
|
|
- <el-card style="width: 70%;margin-top:30px;" shadow="always">
|
|
|
+ <el-card style="width: 70%; margin-top: 30px" shadow="always">
|
|
|
<div ref="toPrintRef">
|
|
|
<el-row style="text-align: center">
|
|
|
<el-col :span="24"
|
|
@@ -210,7 +229,7 @@
|
|
|
</div>
|
|
|
</el-card>
|
|
|
|
|
|
- <el-card style="width: 28%;margin-top:30px;" shadow="always">
|
|
|
+ <el-card style="width: 28%; margin-top: 30px" shadow="always">
|
|
|
<template #header>
|
|
|
<div class="card-header">
|
|
|
<span>领用流程</span>
|
|
@@ -437,10 +456,7 @@
|
|
|
<el-form-item label="审批结果">
|
|
|
<el-text
|
|
|
tag="p"
|
|
|
- v-if="
|
|
|
- dialogType === 1 ||
|
|
|
- form.state > 5
|
|
|
- "
|
|
|
+ v-if="dialogType === 1 || form.state > 5"
|
|
|
>{{
|
|
|
form.state === "5"
|
|
|
? "待审批"
|
|
@@ -497,6 +513,7 @@ import {
|
|
|
} from "@/api/order";
|
|
|
import { getUserList } from "@/api/system/user";
|
|
|
import { useCommonStoreHook } from "@/store";
|
|
|
+import ExportInfo from "./exportInfo.vue";
|
|
|
const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
|
const test = () => {
|
|
|
isShowTable.value = true;
|
|
@@ -525,6 +542,11 @@ const changeOrder = (val) => {
|
|
|
tableDataList.value = data.data;
|
|
|
});
|
|
|
};
|
|
|
+const excelRow = ref(null);
|
|
|
+const openDialog1 = (row) => {
|
|
|
+ dialog1.visible = true;
|
|
|
+ excelRow.value = row;
|
|
|
+};
|
|
|
const saveForm = (type) => {
|
|
|
let state = type;
|
|
|
let step = null;
|
|
@@ -630,6 +652,10 @@ const dialog = reactive({
|
|
|
title: "领用单",
|
|
|
visible: false,
|
|
|
});
|
|
|
+const dialog1 = reactive({
|
|
|
+ title: "物料信息配置(请使用谷歌浏览器实现)",
|
|
|
+ visible: false,
|
|
|
+});
|
|
|
const tableDataList = ref([]);
|
|
|
const openDialog = (type, row) => {
|
|
|
dialogType.value = type;
|