Compare commits
2 Commits
53dc363736
...
9041591d98
Author | SHA1 | Date | |
---|---|---|---|
|
9041591d98 | ||
|
dc27f047f3 |
|
@ -122,12 +122,8 @@
|
|||
style="margin-bottom: 0.5rem"
|
||||
>
|
||||
<t-radio-group v-model="dialogData.Status">
|
||||
<t-radio value="1" @change="refuse === false"
|
||||
>审核通过</t-radio
|
||||
>
|
||||
<t-radio value="2" @change="refuse === true"
|
||||
>审核拒绝</t-radio
|
||||
>
|
||||
<t-radio value="1" @click="refuse = false">审核通过</t-radio>
|
||||
<t-radio value="2" @click="refuse = true">审核拒绝</t-radio>
|
||||
</t-radio-group>
|
||||
</t-form-item>
|
||||
<t-form-item />
|
||||
|
@ -172,6 +168,7 @@ const destroyList = useDestroy();
|
|||
const tableData = ref([]);
|
||||
const data = ref([]);
|
||||
const headerTitle = ref("");
|
||||
const rowItem = ref({});
|
||||
// 表格表头
|
||||
const columns = ref([
|
||||
{
|
||||
|
@ -254,7 +251,7 @@ const refresh = () => {
|
|||
// 弹出框表单
|
||||
const dialogData = ref({
|
||||
refuseInfo: "",
|
||||
status: "",
|
||||
Status: "",
|
||||
});
|
||||
|
||||
// 查询表单
|
||||
|
@ -322,7 +319,7 @@ const breakageAdd = () => {
|
|||
visiblePost.value = true;
|
||||
dialogData.value = {
|
||||
refuseInfo: "",
|
||||
status: "",
|
||||
Status: "",
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -339,8 +336,10 @@ const FORM_RULES = {
|
|||
// 新增
|
||||
const breakSub = async ({ validateResult, firstError }) => {
|
||||
if (validateResult === true) {
|
||||
dialogData.value.breakStatus = 0;
|
||||
await breakageList.addBreakageList(dialogData.value);
|
||||
dialogData.value = {
|
||||
...rowItem.row.value,
|
||||
};
|
||||
await destroyList.auditDestroyList(dialogData.value);
|
||||
getNewTable();
|
||||
MessagePlugin.success("提交成功");
|
||||
visiblePost.value = false;
|
||||
|
@ -352,6 +351,7 @@ const breakSub = async ({ validateResult, firstError }) => {
|
|||
// 审核
|
||||
const breakEdit = (item) => {
|
||||
visiblePost.value = true;
|
||||
rowItem.value = item;
|
||||
};
|
||||
|
||||
// 弹出框表单重置
|
||||
|
|
|
@ -14,6 +14,10 @@ export const useDestroy = defineStore("destroyList", {
|
|||
console.log(this.destroyList);
|
||||
return this.destroyList;
|
||||
},
|
||||
auditDestroyList(item) {
|
||||
console.log(item);
|
||||
// let arr = thisz
|
||||
},
|
||||
},
|
||||
persist: true,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user