From d457a0f31290ba12273a51e75f6c2cc714659efc Mon Sep 17 00:00:00 2001
From: zhangback <zhangback@163.com>
Date: 星期四, 27 十一月 2025 13:26:07 +0800
Subject: [PATCH] 提交
---
ui/admin-ui3/src/views/tms/tmsContract/index.vue | 112 +++++++++++++++++++++++++++++++++++---------------------
1 files changed, 70 insertions(+), 42 deletions(-)
diff --git a/ui/admin-ui3/src/views/tms/tmsContract/index.vue b/ui/admin-ui3/src/views/tms/tmsContract/index.vue
index d35f60d..cab7a94 100644
--- a/ui/admin-ui3/src/views/tms/tmsContract/index.vue
+++ b/ui/admin-ui3/src/views/tms/tmsContract/index.vue
@@ -68,6 +68,7 @@
import dayjs from 'dayjs';
import {formatDate} from "@/utils/ruoyi";
import {getTmsSettlementEntity, listTmsSettlementEntity} from "@/api/tms/tmsSettlementEntity";
+import router from "@/router";
const {proxy} = useCurrentInstance();
const crudRef = ref();
@@ -110,6 +111,19 @@
{
required: true,
message: "绯荤粺缂栧彿涓嶈兘涓虹┖", trigger: "blur"
+ }
+ ],
+ },
+ isTempContract: {
+ label: '涓存椂鍚堝悓',
+ type: 'radio', dataType: 'string', dicUrl: '/system/dict/data/type/sys_number_is',
+ addDisplay: true,value:'1',
+ editDisplay: true,
+ viewDisplay: true,
+ rules: [
+ {
+ required: true,
+ message: "鏄惁涓存椂鍚堝悓涓嶈兘涓虹┖", trigger: "change"
}
],
},
@@ -156,12 +170,6 @@
addDisplay: true,
editDisplay: true,
viewDisplay: true,
- rules: [
- {
- required: true,
- message: "绛剧害鏃ユ湡涓嶈兘涓虹┖", trigger: "blur"
- }
- ],
},
contractDate: {
label: '鍚堝悓鏈熼檺',
@@ -217,7 +225,7 @@
type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/contract_status',
addDisplay: true,
editDisplay: true,
- viewDisplay: true,
+ viewDisplay: true,value: '0',
rules: [
{
required: true,
@@ -263,7 +271,7 @@
contactName: {
label: '鑱旂郴浜哄鍚�',minWidth: 120,
},
- signCompany: {
+ signCompanyName: {
label: '绛剧害鍏徃', minWidth: 150,
},
},
@@ -301,6 +309,8 @@
Object.assign(form.value, {
partyAId: active.id,
partyAName: active.customerShortName,
+ partyAContact: active.contactName,
+ partyAContactInfo: active.contactPhone,
});
}
},
@@ -390,22 +400,24 @@
Object.assign(form.value, {
partyBId: active.id,
partyBName: active.customerShortName,
+ partyBContact: active.contactName,
+ partyBContactInfo: active.contactPhone,
});
}
},
},
- partyBName: {
- label: '涔欐柟鍚嶇О',
- addDisplay: true,
- editDisplay: true,
- viewDisplay: true,
- rules: [
- {
- required: true,
- message: "涔欐柟鍚嶇О涓嶈兘涓虹┖", trigger: "blur"
- }
- ],
- },
+ // partyBName: {
+ // label: '涔欐柟鍚嶇О',
+ // addDisplay: true,
+ // editDisplay: true,
+ // viewDisplay: true,
+ // rules: [
+ // {
+ // required: true,
+ // message: "涔欐柟鍚嶇О涓嶈兘涓虹┖", trigger: "blur"
+ // }
+ // ],
+ // },
partyBContact: {
label: '涔欐柟鑱旂郴浜�',
addDisplay: true,
@@ -436,19 +448,19 @@
}
],
},
- paymentMethod: {
- label: '浠樻鏂瑰紡',
- type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/payment_method',
- addDisplay: true,
- editDisplay: true,
- viewDisplay: true,
- rules: [
- {
- required: true,
- message: "浠樻鏂瑰紡涓嶈兘涓虹┖", trigger: "change"
- }
- ],
- },
+ // paymentMethod: {
+ // label: '浠樻鏂瑰紡',
+ // type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/payment_method',
+ // addDisplay: true,
+ // editDisplay: true,
+ // viewDisplay: true,
+ // rules: [
+ // {
+ // required: true,
+ // message: "浠樻鏂瑰紡涓嶈兘涓虹┖", trigger: "change"
+ // }
+ // ],
+ // },
paymentCycle: {
label: '浠樻鍛ㄦ湡',
addDisplay: true,
@@ -525,7 +537,7 @@
// viewDisplay: true,
// },
attachmentPath: {
- label: '闄勪欢璺緞',
+ label: '闄勪欢',
addDisplay: true,
editDisplay: true,
viewDisplay: true,span: 24,
@@ -536,6 +548,12 @@
home:'url',
name:'newFileName',
},
+ rules: [
+ {
+ required: true,
+ message: "璇蜂笂浼犻檮浠�", trigger: "change"
+ }
+ ],
},
// uploadedBy: {
// label: '涓婁紶浜�',
@@ -619,6 +637,13 @@
hide: false,
search: true,
},
+ isTempContract: {
+ label: '涓存椂鍚堝悓',
+ type: 'radio', dataType: 'string', dicUrl: '/system/dict/data/type/sys_number_is',
+ display: false,minWidth:150,
+ hide: false,
+ search: true,
+ },
contractType: {
label: '鍚堝悓绫诲瀷',
type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/contract_type',
@@ -675,13 +700,13 @@
hide: false,minWidth:150,
search: false,
},
- paymentMethod: {
- label: '浠樻鏂瑰紡',
- type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/payment_method',
- display: false,
- hide: false,minWidth:150,
- search: true,
- },
+ // paymentMethod: {
+ // label: '浠樻鏂瑰紡',
+ // type: 'select', dataType: 'string', dicUrl: '/system/dict/data/type/payment_method',
+ // display: false,
+ // hide: false,minWidth:150,
+ // search: true,
+ // },
invoiceStatus: {
label: '鍙戠エ鐘舵��',
@@ -769,6 +794,9 @@
deleteApi: delTmsContract,
addApi: addTmsContract,
updateApi: updateTmsContract,
+ getBeginListFunc:()=>{
+ queryParams.value.contractStatus = <any>router.currentRoute.value.query.contactStatus || undefined;
+ },
handleUpdateFunc: () => {
crudRef.value.rowEdit(selectionList.value[0]);
},
@@ -776,7 +804,7 @@
selectionList.value = selection;
},
})
-
+console.log(router.currentRoute.value.query.contactStatus)
</script>
--
Gitblit v1.8.0