|
|
@@ -56,6 +56,7 @@
|
|
56
|
56
|
</el-table-column>
|
|
57
|
57
|
<el-table-column label="操作" width="240" align="center" class-name="oparate_btn" fixed="right">
|
|
58
|
58
|
<template slot-scope="scope">
|
|
|
59
|
+ <el-button v-permission="'HY_submit'" type="text" @click="btn_submit(scope.row.F_Id)">提交</el-button>
|
|
59
|
60
|
<el-button v-permission="'HY_edit'" type="text" v-if="isEdit(scope.row.F_State)" @click="btn_edit(scope.row.F_Id)">编辑</el-button>
|
|
60
|
61
|
<el-button v-permission="'HY_add_remark'" type="text" @click="btn_add_remark(scope.row.F_Id)">备注</el-button>
|
|
61
|
62
|
</template>
|
|
|
@@ -75,6 +76,7 @@
|
|
75
|
76
|
<script>
|
|
76
|
77
|
import { getDictionaryValueList } from '@/api/commonAPI'
|
|
77
|
78
|
import { getAfterSaleOrderList } from "@/api/afterSaleManagement/afterSaleList";
|
|
|
79
|
+import { orderBulkSubmit } from "@/api/orderManagement/orderList";
|
|
78
|
80
|
import { pickerOptions, formatterContent } from "@/utils";
|
|
79
|
81
|
import edit from "./edit";
|
|
80
|
82
|
import addOrEditRemark from "./addOrEditRemark";
|
|
|
@@ -221,6 +223,36 @@ export default {
|
|
221
|
223
|
title: "添加备注"
|
|
222
|
224
|
});
|
|
223
|
225
|
},
|
|
|
226
|
+ // 提交
|
|
|
227
|
+ btn_submit(orderId) {
|
|
|
228
|
+ this.isDisable = true;
|
|
|
229
|
+ setTimeout(() => {
|
|
|
230
|
+ this.$confirm("您确定提交吗?", "提示", {
|
|
|
231
|
+ confirmButtonText: "确定",
|
|
|
232
|
+ cancelButtonText: "取消",
|
|
|
233
|
+ type: "warning",
|
|
|
234
|
+ })
|
|
|
235
|
+ .then(() => {
|
|
|
236
|
+ this.isDisable = false;
|
|
|
237
|
+ const data = {
|
|
|
238
|
+ orderids: orderId,
|
|
|
239
|
+ };
|
|
|
240
|
+ orderBulkSubmit(data).then((response) => {
|
|
|
241
|
+ if (response.state.toLowerCase() === "success") {
|
|
|
242
|
+ this.getList();
|
|
|
243
|
+ this.$message.success("提交成功!");
|
|
|
244
|
+ }
|
|
|
245
|
+ });
|
|
|
246
|
+ })
|
|
|
247
|
+ .catch(() => {
|
|
|
248
|
+ this.$message({
|
|
|
249
|
+ type: "info",
|
|
|
250
|
+ message: "已取消提交",
|
|
|
251
|
+ });
|
|
|
252
|
+ });
|
|
|
253
|
+ this.isDisable = false;
|
|
|
254
|
+ }, 300);
|
|
|
255
|
+ },
|
|
224
|
256
|
hadndleOrderCode(ordercode){
|
|
225
|
257
|
this.$layer.iframe({
|
|
226
|
258
|
content: {
|