|
|
@@ -89,9 +89,12 @@
|
|
89
|
89
|
</el-row>
|
|
90
|
90
|
</el-form>
|
|
91
|
91
|
<div style="text-align: center; padding: 50px 0 20px">
|
|
92
|
|
- <button class="bottom-btn" v-if="!isShow" style="background-color: #676fe8" @click="handleAgree">通 过</button>
|
|
|
92
|
+ <!-- <button class="bottom-btn" v-if="!isShow" style="background-color: #676fe8" @click="handleAgree">通 过</button>
|
|
93
|
93
|
<button class="bottom-btn" v-if="!isShow" style="background-color: #e13434" @click="handleReturn">退 回</button>
|
|
94
|
|
- <button class="bottom-btn" style="background-color: #89aac4" @click="handleBack">返 回</button>
|
|
|
94
|
+ <button class="bottom-btn" style="background-color: #89aac4" @click="handleBack">返 回</button> -->
|
|
|
95
|
+ <el-button type="success" v-if="!isShow" @click="handleAgree" style="background-color: #676fe8;border:none">通过</el-button>
|
|
|
96
|
+ <el-button type="primary" v-if="!isShow" @click="handleReturn" style="background-color: #e13434;border:none">退回</el-button>
|
|
|
97
|
+ <el-button @click="handleBack">返回</el-button>
|
|
95
|
98
|
</div>
|
|
96
|
99
|
</div>
|
|
97
|
100
|
</basic-container>
|
|
|
@@ -105,12 +108,14 @@ import { Search } from "@element-plus/icons-vue";
|
|
105
|
108
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
106
|
109
|
import { useRouter, useRoute } from "vue-router";
|
|
107
|
110
|
import { useDict } from "@/hooks/dict";
|
|
108
|
|
-import { closeTagAndOpenLastTag } from "@/router/Routermethods";
|
|
|
111
|
+// import { closeTagAndOpenLastTag } from "@/router/Routermethods";
|
|
109
|
112
|
import store from "@/store";
|
|
110
|
113
|
import { useGetters } from "@/hooks/storeHooks";
|
|
111
|
|
-const { access_token } = useGetters(["access_token"])
|
|
|
114
|
+import { getQuery } from "@/hooks/detailQuery/index";
|
|
112
|
115
|
|
|
|
116
|
+const { access_token } = useGetters(["access_token"]);
|
|
113
|
117
|
const { outdound_type, is_available, province_ch } = useDict("outdound_type", "is_available", "province_ch");
|
|
|
118
|
+const queryData = getQuery("outWarehouseAuditDetail");
|
|
114
|
119
|
|
|
115
|
120
|
const router = useRouter();
|
|
116
|
121
|
const route = useRoute();
|
|
|
@@ -140,12 +145,12 @@ let { tableData, auditData, isShow, fileUrl, myHeader } = toRefs(data);
|
|
140
|
145
|
|
|
141
|
146
|
// 获取列表
|
|
142
|
147
|
const getList = () => {
|
|
143
|
|
- if (route.query.type == "show") {
|
|
|
148
|
+ if (queryData.type == "show") {
|
|
144
|
149
|
isShow.value = true;
|
|
145
|
150
|
} else {
|
|
146
|
151
|
isShow.value = false;
|
|
147
|
152
|
}
|
|
148
|
|
- getInAuditDetail(route.query.id).then((res: any) => {
|
|
|
153
|
+ getInAuditDetail(queryData.id).then((res: any) => {
|
|
149
|
154
|
if (res.code === 0) {
|
|
150
|
155
|
tableData.value = res.data.outboundMaterial;
|
|
151
|
156
|
auditData.value = res.data.outboundStatus;
|
|
|
@@ -165,7 +170,7 @@ const handleAgree = () => {
|
|
165
|
170
|
type: "warning"
|
|
166
|
171
|
})
|
|
167
|
172
|
.then(() => {
|
|
168
|
|
- let data = { ...formData, audi: "0", outboundId: route.query.id };
|
|
|
173
|
+ let data = { ...formData, audi: "0", outboundId: queryData.id };
|
|
169
|
174
|
audit(data).then((res: any) => {
|
|
170
|
175
|
if (res.code === 0) {
|
|
171
|
176
|
ElMessage({
|
|
|
@@ -191,7 +196,7 @@ const handleReturn = () => {
|
|
191
|
196
|
type: "warning"
|
|
192
|
197
|
})
|
|
193
|
198
|
.then(() => {
|
|
194
|
|
- let data = { ...formData, audi: "1", outboundId: route.query.id };
|
|
|
199
|
+ let data = { ...formData, audi: "1", outboundId: queryData.id };
|
|
195
|
200
|
audit(data).then((res: any) => {
|
|
196
|
201
|
if (res.code === 0) {
|
|
197
|
202
|
ElMessage({
|
|
|
@@ -211,9 +216,9 @@ const handleReturn = () => {
|
|
211
|
216
|
};
|
|
212
|
217
|
// 返回
|
|
213
|
218
|
const handleBack = () => {
|
|
214
|
|
- // store.commit("DEL_TAG", store.getters.tag);
|
|
215
|
|
- // router.push("/InformationAudit/outWarehouseAudit");
|
|
216
|
|
- closeTagAndOpenLastTag();
|
|
|
219
|
+ store.commit("DEL_TAG", store.getters.tag);
|
|
|
220
|
+ router.push("/InformationAudit/outWarehouseAudit");
|
|
|
221
|
+ // closeTagAndOpenLastTag();
|
|
217
|
222
|
};
|
|
218
|
223
|
|
|
219
|
224
|
// 附件相关
|
|
|
@@ -281,6 +286,7 @@ onMounted(() => {
|
|
281
|
286
|
border: none;
|
|
282
|
287
|
border-radius: 15px;
|
|
283
|
288
|
}
|
|
|
289
|
+
|
|
284
|
290
|
.bottom-btn + .bottom-btn {
|
|
285
|
291
|
margin-left: 20px;
|
|
286
|
292
|
}
|