|
|
@@ -47,7 +47,7 @@
|
|
|
<template v-slot:opreation="scope">
|
|
|
<slot name="download" :data="scope.data"></slot>
|
|
|
<edit class="inline-16" btnTitle="编辑" btnType="text" v-if="mainData.status == '进行中' && scope.data.status == '新建'" :mainData="mainData" @onSuccess="listData" :list="list"></edit>
|
|
|
- <el-button type="text" size="mini" style="color: #67C23A" v-if="mainData.status == '进行中' && scope.data.status == '新建'">提交</el-button>
|
|
|
+ <el-button type="text" size="mini" style="color: #67C23A" v-if="mainData.status == '进行中' && scope.data.status == '新建'" @click="submitClick(scope.data)">提交</el-button>
|
|
|
<!-- <printTable :data="scope.data">
|
|
|
|
|
|
</printTable> -->
|
|
|
@@ -139,6 +139,19 @@ export default {
|
|
|
queryClick() {
|
|
|
this.listData();
|
|
|
},
|
|
|
+ async submitClick(data){
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "id": "20230211110003",
|
|
|
+ "content": {
|
|
|
+ "sa_workorder_confirmationid": data.sa_workorder_confirmationid
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (res.code == 0){
|
|
|
+ this.tool.showMessage(res,()=>{})
|
|
|
+ }else {
|
|
|
+ this.listData();
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
// this.listData()
|