|
@@ -7,6 +7,7 @@
|
|
|
:data="data"
|
|
|
:option="option"
|
|
|
v-model:page="page"
|
|
|
+ v-loading="loading2"
|
|
|
@row-save="createRow"
|
|
|
@row-update="updateRow"
|
|
|
@row-del="deleteRow"
|
|
@@ -37,6 +38,15 @@
|
|
|
@click="openDialog(0,row.id)"
|
|
|
type="primary"
|
|
|
:size="size">详情</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="row.state==='1' && row.sendState!='3' "
|
|
|
+ icon="el-icon-position"
|
|
|
+ text
|
|
|
+ @click="sendTdms(row.id)"
|
|
|
+ type="primary"
|
|
|
+ :size="size"
|
|
|
+ >发送TDM</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
<el-dialog
|
|
@@ -159,7 +169,7 @@ import { ref, getCurrentInstance } from "vue";
|
|
|
import { useCrud } from "@/hooks/userCrud";
|
|
|
import { checkPerm } from "@/directive/permission";
|
|
|
import ButtonPermKeys from "@/common/configs/buttonPermission";
|
|
|
-import {queryOutSourceDetails,updateOutSourceApply} from "@/api/process";
|
|
|
+import {queryOutSourceDetails,updateOutSourceApply,sendTdm} from "@/api/process";
|
|
|
import { useCommonStoreHook } from "@/store";
|
|
|
import dictDataUtil from "@/common/configs/dictDataUtil";
|
|
|
const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
@@ -300,6 +310,13 @@ option.value = Object.assign(option.value, {
|
|
|
prop: "auditUser",
|
|
|
},
|
|
|
{
|
|
|
+ label: "发送状态",
|
|
|
+ prop: "sendState",
|
|
|
+ width: 90,
|
|
|
+ hide:true,
|
|
|
+ display:false
|
|
|
+ },
|
|
|
+ {
|
|
|
label: "审核时间",
|
|
|
width: 120,
|
|
|
overHidden: true,
|
|
@@ -319,7 +336,26 @@ option.value = Object.assign(option.value, {
|
|
|
},
|
|
|
],
|
|
|
});
|
|
|
+const updateApply=ref({});
|
|
|
+const loading2=ref(false);
|
|
|
+const sendTdms=(rowId)=>{
|
|
|
+ loading2.value=true;
|
|
|
+ updateApply.value.id=rowId;
|
|
|
+ sendTdm(updateApply.value).then(
|
|
|
|
|
|
+ (data)=>{
|
|
|
+ if (data.code === "200") {
|
|
|
+ loading2.value=false;
|
|
|
+ ElMessage.success("操作成功");
|
|
|
+ dataList();
|
|
|
+ } else {
|
|
|
+ loading2.value=false;
|
|
|
+ ElMessage.error(data.msg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ )
|
|
|
+
|
|
|
+}
|
|
|
onMounted(() => {
|
|
|
// console.log("crudRef", crudRef)
|
|
|
dataList();
|