From 5b7028bdc3788f832e6bdfaef3344a1b9d43ffdf Mon Sep 17 00:00:00 2001
From: xy <271556543@qq.com>
Date: Mon, 6 May 2024 17:36:54 +0800
Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=B7=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/away/index.js | 37 ++++
src/views/away/addAway.vue | 155 +++++++++++++++++
src/views/away/index.vue | 159 ++++++++++++++++--
.../contract/components/addContractLedger.vue | 3 +-
src/views/contract/contractEdit.vue | 34 +++-
src/views/contract/contractList.vue | 8 +
6 files changed, 382 insertions(+), 14 deletions(-)
create mode 100644 src/api/away/index.js
create mode 100644 src/views/away/addAway.vue
diff --git a/src/api/away/index.js b/src/api/away/index.js
new file mode 100644
index 0000000..84cb7b5
--- /dev/null
+++ b/src/api/away/index.js
@@ -0,0 +1,37 @@
+import request from '@/utils/request';
+
+export function index(params,noloading=false) {
+ return request({
+ method: "get",
+ url: "/api/admin/away/index",
+ params,
+ noloading
+ })
+}
+
+export function show (params,noloading=false) {
+ return request({
+ method: "get",
+ url: "/api/admin/away/show",
+ params,
+ noloading
+ })
+}
+
+export function save (data,noloading=false) {
+ return request({
+ method: "post",
+ url: "/api/admin/away/save",
+ data,
+ noloading
+ })
+}
+
+export function destroy(params,noloading=false) {
+ return request({
+ method: "get",
+ url: "/api/admin/away/destroy",
+ params,
+ noloading
+ })
+}
diff --git a/src/views/away/addAway.vue b/src/views/away/addAway.vue
new file mode 100644
index 0000000..2b28842
--- /dev/null
+++ b/src/views/away/addAway.vue
@@ -0,0 +1,155 @@
+
+
+
+
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+ 重置
+ 提交
+
+
+
+
+
+
+
+
+
diff --git a/src/views/away/index.vue b/src/views/away/index.vue
index 39e6494..e9bc2e7 100644
--- a/src/views/away/index.vue
+++ b/src/views/away/index.vue
@@ -51,14 +51,11 @@
+ @click="$router.push('/contract/away/addAway')">新增
-
-
-
@@ -66,9 +63,70 @@
+
+
+
+ deleteAway(row.id)"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -92,7 +150,7 @@
diff --git a/src/views/contract/components/addContractLedger.vue b/src/views/contract/components/addContractLedger.vue
index 88b1712..65d69bf 100644
--- a/src/views/contract/components/addContractLedger.vue
+++ b/src/views/contract/components/addContractLedger.vue
@@ -257,7 +257,8 @@ export default {
//join_status: 3,
invite_status: 3,
outcome_type: 1,
- files: []
+ files: [],
+ is_purchase: 0
}
this.$refs["dialog"].clearValidate();
},
diff --git a/src/views/contract/contractEdit.vue b/src/views/contract/contractEdit.vue
index 78ccf68..48bf9ff 100644
--- a/src/views/contract/contractEdit.vue
+++ b/src/views/contract/contractEdit.vue
@@ -273,6 +273,21 @@
+
+
+
+
+
+
{
this.departments = res;
@@ -1482,7 +1510,8 @@ export default {
use_framework_buy: 0,
content: "",
contract_to_contracts: [],
- outcome_type: 1
+ outcome_type: 1,
+ is_purchase: 1
};
this.$refs["form"].clearValidate();
@@ -1799,6 +1828,7 @@ export default {
this.window.height = screen.availHeight * 0.95;
this.window.top = (window.screen.height - 30 - this.window.height) / 2;
this.window.left = (window.screen.width - 10 - this.window.width) / 2;
+ this.getGroupType();
this.getPlanTypes();
this.getDepartment();
this.getBudgets();
diff --git a/src/views/contract/contractList.vue b/src/views/contract/contractList.vue
index b9c54ee..89192ab 100644
--- a/src/views/contract/contractList.vue
+++ b/src/views/contract/contractList.vue
@@ -1686,6 +1686,14 @@ export default {
},
],
},
+ {
+ label: "组织形式",
+ width: 120,
+ prop: "group_type_detail.value",
+ formatter: (cell, data, value) => {
+ return value ? value : "无";
+ },
+ },
{
label: "采购方式",
width: 120,