From cb9cfdf0f282e3f76dd0d88c831978eaf9bfffdf Mon Sep 17 00:00:00 2001
From: zmj <1493694146@qq.com>
Date: Sat, 18 Nov 2023 20:17:42 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/examined/components/audit_other.vue | 37 ++++++++++++++++++-
src/views/examined/index_list.vue | 5 ++-
src/views/task_template/edit_admin.vue | 15 +++++++-
src/views/task_template/index.vue | 2 +-
src/views/task_template/list_two.vue | 2 +-
5 files changed, 56 insertions(+), 5 deletions(-)
diff --git a/src/views/examined/components/audit_other.vue b/src/views/examined/components/audit_other.vue
index 5f40a26..127f1bc 100644
--- a/src/views/examined/components/audit_other.vue
+++ b/src/views/examined/components/audit_other.vue
@@ -128,6 +128,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -162,7 +183,8 @@ const emit = defineEmits(["success", "close"]);
const formRef = shallowRef();
const popupRef = shallowRef>();
const mode = ref("add");
-
+const showInput=reactive([7,6,8])
+const InputTit=ref("销售金额")
// 弹窗标题
const popupTitle = computed(() => {
return mode.value == "edit" ? "审核" : "详情";
@@ -193,6 +215,8 @@ const formData = reactive({
area_manager: "",
check_status: 1,
remark: "",
+ amount:"",
+ type:-1
});
// 表单验证
@@ -243,11 +267,22 @@ const handleSubmit = async () => {
await formRef.value?.validate();
if (formData.check_status == 3 && formData.remark == "")
return ElMessage.error("驳回必须填写备注");
+if(showInput.includes(formData.type) ){
await apiApproveAudit({
id: formData.id,
check_status: formData.check_status,
remark: formData.remark,
+ amount:formData.amount
});
+}else{
+ await apiApproveAudit({
+ id: formData.id,
+ check_status: formData.check_status,
+ remark: formData.remark,
+
+ });
+}
+
popupRef.value?.close();
emit("success");
};
diff --git a/src/views/examined/index_list.vue b/src/views/examined/index_list.vue
index f64dad7..b7f1aaa 100644
--- a/src/views/examined/index_list.vue
+++ b/src/views/examined/index_list.vue
@@ -174,7 +174,7 @@ const checkStatusList = ref([
]);
// 显示默认审批界面的类型
-const showAuditTypeList = ref([1, 5, 6]);
+const showAuditTypeList = ref([1, 5, 6,7,8,9]);
const showAuditOther = computed(() => {
return showAuditTypeList.value.includes(openType.value);
});
@@ -205,6 +205,9 @@ const handleAdd = async () => {
// 编辑
const handleEdit = async (data: any, type = "edit") => {
+
+console.log(data.type)
+
openType.value = data.type;
showEdit.value = true;
await nextTick();
diff --git a/src/views/task_template/edit_admin.vue b/src/views/task_template/edit_admin.vue
index 72386e2..3ef3e74 100644
--- a/src/views/task_template/edit_admin.vue
+++ b/src/views/task_template/edit_admin.vue
@@ -76,6 +76,17 @@
+
+
+