|
|
@@ -18,13 +18,13 @@
|
|
18
|
18
|
</el-select>
|
|
19
|
19
|
</el-form-item>
|
|
20
|
20
|
<el-form-item label="物资名称">
|
|
21
|
|
- <el-input v-model="searchList.materialNameVo" style="width: 200px" clearable />
|
|
|
21
|
+ <el-input v-model="searchList.materialName" style="width: 200px" clearable />
|
|
22
|
22
|
</el-form-item>
|
|
23
|
23
|
<el-form-item label="调令名称">
|
|
24
|
|
- <el-input v-model="searchList.materialNameVo" style="width: 200px" clearable />
|
|
|
24
|
+ <el-input v-model="searchList.orderName" style="width: 200px" clearable />
|
|
25
|
25
|
</el-form-item>
|
|
26
|
26
|
<el-form-item label="调用省份">
|
|
27
|
|
- <el-select v-model="searchList.provinceSiteIdList" multiple filterable style="width: 250px" clearable>
|
|
|
27
|
+ <el-select v-model="searchList.province" multiple filterable style="width: 250px" clearable>
|
|
28
|
28
|
<el-option v-for="item in province_ch" :key="item.id" :label="item.label" :value="item.value" />
|
|
29
|
29
|
</el-select>
|
|
30
|
30
|
</el-form-item>
|
|
|
@@ -44,9 +44,9 @@
|
|
44
|
44
|
>
|
|
45
|
45
|
<el-button :icon="Upload" type="primary">导入</el-button>
|
|
46
|
46
|
</el-upload> -->
|
|
47
|
|
- <el-button type="primary" :icon="Download" @click="exportTemplate" v-if="hasBtn('ck:xf:export')"
|
|
|
47
|
+ <!-- <el-button type="primary" :icon="Download" @click="exportTemplate" v-if="hasBtn('ck:xf:export')"
|
|
48
|
48
|
>导出</el-button
|
|
49
|
|
- >
|
|
|
49
|
+ > -->
|
|
50
|
50
|
</el-form-item>
|
|
51
|
51
|
</el-form>
|
|
52
|
52
|
<el-table :data="tableData" style="width: 100%" stripe border>
|
|
|
@@ -55,24 +55,16 @@
|
|
55
|
55
|
{{ (page.currentPage - 1) * page.pageSize + scope.$index + 1 }}
|
|
56
|
56
|
</template>
|
|
57
|
57
|
</el-table-column>
|
|
58
|
|
- <el-table-column prop="warehouse" label="调令名称" align="center" />
|
|
|
58
|
+ <el-table-column prop="orderName" label="调令名称" align="center" />
|
|
59
|
59
|
<el-table-column prop="warehouse" label="调出仓库" align="center" />
|
|
60
|
60
|
<el-table-column prop="outboundType" label="出库类型" align="center">
|
|
61
|
61
|
<template #default="scope">
|
|
62
|
62
|
{{ scope.row.outboundType ? showCh(scope.row.outboundType, outdound_type) : scope.row.outboundType }}
|
|
63
|
63
|
</template>
|
|
64
|
64
|
</el-table-column>
|
|
65
|
|
- <!-- <el-table-column prop="materialGroup" label="物资大类" align="center" /> -->
|
|
66
|
|
- <!-- <el-table-column prop="materialType" label="物资类别" align="center" /> -->
|
|
67
|
65
|
<el-table-column prop="materialName" label="物资名称" align="center" />
|
|
68
|
66
|
<el-table-column prop="quantity" label="数量" align="center" width="80" />
|
|
69
|
|
- <el-table-column prop="totalPrice" label="价值(万元)" align="center" width="110" />
|
|
70
|
|
- <el-table-column prop="calledProvince" label="调用省份" align="center">
|
|
71
|
|
- <template #default="scope">
|
|
72
|
|
- {{ scope.row.calledProvince ? showCh(scope.row.calledProvince, province_ch) : scope.row.calledProvince }}
|
|
73
|
|
- </template>
|
|
74
|
|
- </el-table-column>
|
|
75
|
|
- <el-table-column prop="outboundTime" label="出库日期" align="center" width="115" />
|
|
|
67
|
+ <el-table-column prop="province" label="调用省份" align="center"></el-table-column>
|
|
76
|
68
|
<el-table-column prop="submitTime" label="填写时间" align="center" width="115" />
|
|
77
|
69
|
<el-table-column fixed="right" label="操作" width="150" align="center">
|
|
78
|
70
|
<template #default="{ row }">
|
|
|
@@ -97,9 +89,9 @@
|
|
97
|
89
|
<script setup lang="ts">
|
|
98
|
90
|
import { Plus, Search, RefreshRight, Upload, Download } from "@element-plus/icons-vue";
|
|
99
|
91
|
import { ref, reactive, onMounted } from "vue";
|
|
100
|
|
-import { getOutPage, deleteOutData, getDeptTypeList, exportcjxxxf } from "@/api/inAndOut/formationFilling/out";
|
|
|
92
|
+import { deleteOutDataNew, getDeptTypeList, exportcjxxxf, getOutPageNew } from "@/api/inAndOut/formationFilling/out";
|
|
101
|
93
|
import router from "@/router";
|
|
102
|
|
-import { ElMessage, UploadProps } from "element-plus";
|
|
|
94
|
+import { ElMessage, UploadProps, ElMessageBox } from "element-plus";
|
|
103
|
95
|
import { useDict } from "@/hooks/dict";
|
|
104
|
96
|
import store from "@/store";
|
|
105
|
97
|
import { errorUpload, beforeUploadFun, fileNameDispose } from "@/global/importFile";
|
|
|
@@ -113,9 +105,11 @@ const { outdound_type, province_ch } = useDict("outdound_type", "province_ch");
|
|
113
|
105
|
const dcckOptions = ref([]);
|
|
114
|
106
|
const searchList = ref({
|
|
115
|
107
|
outboundType: "",
|
|
116
|
|
- materialNameVo: "",
|
|
|
108
|
+ materialName: "",
|
|
117
|
109
|
deptId: "", //调出仓库id
|
|
118
|
|
- provinceSiteIdList: []
|
|
|
110
|
+ provinceSiteIdList: [],
|
|
|
111
|
+ orderName: "",
|
|
|
112
|
+ province: ""
|
|
119
|
113
|
});
|
|
120
|
114
|
const tableData: any = ref([]);
|
|
121
|
115
|
const page = reactive({
|
|
|
@@ -136,15 +130,17 @@ const showCh = (value, option) => {
|
|
136
|
130
|
const clearSearch = () => {
|
|
137
|
131
|
searchList.value = {
|
|
138
|
132
|
outboundType: "",
|
|
139
|
|
- materialNameVo: "",
|
|
|
133
|
+ materialName: "",
|
|
140
|
134
|
deptId: "", //调出仓库id
|
|
141
|
|
- provinceSiteIdList: []
|
|
|
135
|
+ provinceSiteIdList: [],
|
|
|
136
|
+ orderName: "",
|
|
|
137
|
+ province: ""
|
|
142
|
138
|
};
|
|
143
|
139
|
getList();
|
|
144
|
140
|
};
|
|
145
|
141
|
/** 添加/修改/查看进入详情操作 */
|
|
146
|
|
-const openDetail = (row: any, type) => {
|
|
147
|
|
- setQuery("/InformationFilling/outIssueDetail", { id: row.outboundId, type: type });
|
|
|
142
|
+const openDetail = (row: any, type: string) => {
|
|
|
143
|
+ setQuery("/InformationFilling/outIssueDetail", { id: row.orderId, type: type });
|
|
148
|
144
|
// router.push({
|
|
149
|
145
|
// path: "/InformationFilling/outIssueDetail",
|
|
150
|
146
|
// query: {id: row.outboundId, type: type}
|
|
|
@@ -156,18 +152,17 @@ const getList = () => {
|
|
156
|
152
|
store.commit("SET_SEARCH_QUERY", {
|
|
157
|
153
|
outIssue: {
|
|
158
|
154
|
outboundType: searchList.value.outboundType,
|
|
159
|
|
- materialNameVo: searchList.value.materialNameVo,
|
|
|
155
|
+ materialName: searchList.value.materialName,
|
|
160
|
156
|
deptId: searchList.value.deptId
|
|
161
|
157
|
}
|
|
162
|
158
|
});
|
|
163
|
159
|
const data = reactive({
|
|
164
|
160
|
// status: 7,
|
|
165
|
|
- lower: 1,
|
|
166
|
161
|
size: page.pageSize,
|
|
167
|
162
|
current: page.currentPage,
|
|
168
|
163
|
...searchList.value
|
|
169
|
164
|
});
|
|
170
|
|
- getOutPage(data).then((res: any) => {
|
|
|
165
|
+ getOutPageNew(data).then((res: any) => {
|
|
171
|
166
|
if (res.code === 0) {
|
|
172
|
167
|
tableData.value = res.data.records;
|
|
173
|
168
|
page.total = res.data.total;
|
|
|
@@ -175,15 +170,26 @@ const getList = () => {
|
|
175
|
170
|
});
|
|
176
|
171
|
};
|
|
177
|
172
|
/** 删除操作 */
|
|
178
|
|
-const deleteClick = (row) => {
|
|
179
|
|
- deleteOutData(row.outboundId).then((res: any) => {
|
|
180
|
|
- if (res.code === 0) {
|
|
181
|
|
- getList();
|
|
182
|
|
- ElMessage({
|
|
183
|
|
- message: "删除成功!",
|
|
184
|
|
- type: "success"
|
|
185
|
|
- });
|
|
186
|
|
- }
|
|
|
173
|
+const deleteClick = (row: any) => {
|
|
|
174
|
+ ElMessageBox.confirm(`是否删除此条数据?`, "提示", {
|
|
|
175
|
+ confirmButtonText: "确定",
|
|
|
176
|
+ cancelButtonText: "取消",
|
|
|
177
|
+ type: "warning"
|
|
|
178
|
+ }).then(() => {
|
|
|
179
|
+ deleteOutDataNew(row.orderId).then((res: any) => {
|
|
|
180
|
+ if (res.code === 0) {
|
|
|
181
|
+ getList();
|
|
|
182
|
+ ElMessage({
|
|
|
183
|
+ message: "删除成功!",
|
|
|
184
|
+ type: "success"
|
|
|
185
|
+ });
|
|
|
186
|
+ } else {
|
|
|
187
|
+ ElMessage({
|
|
|
188
|
+ message: "删除失败!",
|
|
|
189
|
+ type: "error"
|
|
|
190
|
+ });
|
|
|
191
|
+ }
|
|
|
192
|
+ });
|
|
187
|
193
|
});
|
|
188
|
194
|
};
|
|
189
|
195
|
//导入模板
|