|
|
@@ -64,7 +64,15 @@
|
|
64
|
64
|
<el-button size="" type="primary" style="backgroundcolor: #949aef" @click="handleShow(scope.row)"
|
|
65
|
65
|
>查看</el-button
|
|
66
|
66
|
>
|
|
67
|
|
- <el-button size="" v-if="scope.row.status == '2'||scope.row.status == '4'||scope.row.status == '6'" type="warning" style="backgroundcolor: #dbc262" @click="handleProcess(scope.row)"
|
|
|
67
|
+ <el-button
|
|
|
68
|
+ size=""
|
|
|
69
|
+ v-if="
|
|
|
70
|
+ (deptId == '9' && scope.row.status == '3') ||
|
|
|
71
|
+ (deptId == '10' && (scope.row.status == '2' || scope.row.status == '6'))
|
|
|
72
|
+ "
|
|
|
73
|
+ type="warning"
|
|
|
74
|
+ style="backgroundcolor: #dbc262"
|
|
|
75
|
+ @click="handleProcess(scope.row)"
|
|
68
|
76
|
>审核</el-button
|
|
69
|
77
|
>
|
|
70
|
78
|
</template>
|
|
|
@@ -82,7 +90,7 @@
|
|
82
|
90
|
</template>
|
|
83
|
91
|
|
|
84
|
92
|
<script setup lang="ts">
|
|
85
|
|
-import { reactive, toRefs } from "vue";
|
|
|
93
|
+import { reactive, toRefs, onMounted } from "vue";
|
|
86
|
94
|
import { getInAuditList } from "@/api/inAndOut/outAudit/index";
|
|
87
|
95
|
import { getDictItemList } from "@/api/admin/index";
|
|
88
|
96
|
import { Search } from "@element-plus/icons-vue";
|
|
|
@@ -96,7 +104,8 @@ const data = reactive({
|
|
96
|
104
|
dysfObject: {}, //调用省份
|
|
97
|
105
|
spjdObject: {}, //审批节点
|
|
98
|
106
|
dqspjdOptions: [],
|
|
99
|
|
- spjdOptions: []
|
|
|
107
|
+ spjdOptions: [],
|
|
|
108
|
+ deptId: ""
|
|
100
|
109
|
});
|
|
101
|
110
|
let page = reactive({
|
|
102
|
111
|
currentPage: 1,
|
|
|
@@ -110,7 +119,7 @@ let formData = reactive({
|
|
110
|
119
|
// spjd: ""
|
|
111
|
120
|
});
|
|
112
|
121
|
|
|
113
|
|
-let { tableData, cklxOptions, cklxObject, dqspjdOptions, spjdOptions, dysfObject, spjdObject } = toRefs(data);
|
|
|
122
|
+let { tableData, cklxOptions, cklxObject, dqspjdOptions, spjdOptions, dysfObject, spjdObject, deptId } = toRefs(data);
|
|
114
|
123
|
|
|
115
|
124
|
// 获取列表
|
|
116
|
125
|
const getList = () => {
|
|
|
@@ -132,7 +141,7 @@ const getOutboundTypeList = () => {
|
|
132
|
141
|
const data = reactive({
|
|
133
|
142
|
size: 100,
|
|
134
|
143
|
current: 1,
|
|
135
|
|
- dictId: '214124'
|
|
|
144
|
+ dictId: "214124"
|
|
136
|
145
|
});
|
|
137
|
146
|
getDictItemList(data).then((res: any) => {
|
|
138
|
147
|
if (res.code === 0) {
|
|
|
@@ -149,7 +158,7 @@ const getStatusList = () => {
|
|
149
|
158
|
const data = reactive({
|
|
150
|
159
|
size: 100,
|
|
151
|
160
|
current: 1,
|
|
152
|
|
- dictId: '423059273'
|
|
|
161
|
+ dictId: "423059273"
|
|
153
|
162
|
});
|
|
154
|
163
|
getDictItemList(data).then((res: any) => {
|
|
155
|
164
|
if (res.code === 0) {
|
|
|
@@ -166,7 +175,7 @@ const getProvinceList = () => {
|
|
166
|
175
|
const data = reactive({
|
|
167
|
176
|
size: 100,
|
|
168
|
177
|
current: 1,
|
|
169
|
|
- dictId: '1763408141744652289'
|
|
|
178
|
+ dictId: "1763408141744652289"
|
|
170
|
179
|
});
|
|
171
|
180
|
getDictItemList(data).then((res: any) => {
|
|
172
|
181
|
if (res.code === 0) {
|
|
|
@@ -199,28 +208,32 @@ const handleReSearch = () => {
|
|
199
|
208
|
// 审核
|
|
200
|
209
|
const handleProcess = (row: any) => {
|
|
201
|
210
|
router.push({
|
|
202
|
|
- name:"outWarehouseAuditDetail",
|
|
203
|
|
- query:{
|
|
|
211
|
+ name: "outWarehouseAuditDetail",
|
|
|
212
|
+ query: {
|
|
204
|
213
|
id: row.outboundId,
|
|
205
|
|
- type: "audit",
|
|
|
214
|
+ type: "audit"
|
|
206
|
215
|
}
|
|
207
|
216
|
});
|
|
208
|
217
|
};
|
|
209
|
218
|
// 查看
|
|
210
|
219
|
const handleShow = (row: any) => {
|
|
211
|
220
|
router.push({
|
|
212
|
|
- name:"outWarehouseAuditDetail",
|
|
213
|
|
- query:{
|
|
|
221
|
+ name: "outWarehouseAuditDetail",
|
|
|
222
|
+ query: {
|
|
214
|
223
|
id: row.outboundId,
|
|
215
|
|
- type: "show",
|
|
|
224
|
+ type: "show"
|
|
216
|
225
|
}
|
|
217
|
226
|
});
|
|
218
|
227
|
};
|
|
219
|
228
|
|
|
220
|
|
-getList();
|
|
221
|
229
|
getOutboundTypeList();
|
|
222
|
230
|
getStatusList();
|
|
223
|
231
|
getProvinceList();
|
|
|
232
|
+onMounted(() => {
|
|
|
233
|
+ getList();
|
|
|
234
|
+ let deptObj: any = sessionStorage.getItem("userInfo");
|
|
|
235
|
+ deptId = deptObj ? JSON.parse(deptObj).deptId : "";
|
|
|
236
|
+});
|
|
224
|
237
|
</script>
|
|
225
|
238
|
|
|
226
|
239
|
<style lang="scss" scoped></style>
|