From bf8563de9b72b359252f92e5eb65c28170b4e898 Mon Sep 17 00:00:00 2001 From: yyy <2605810609@qq.com> Date: Tue, 11 Mar 2025 16:36:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=AF=B7=E5=8F=91=E7=A5=A8=20?= =?UTF-8?q?=E5=90=88=E5=90=8C=E9=80=89=E6=8B=A9=E6=94=B9=E4=B8=BA=E6=88=91?= =?UTF-8?q?=E7=9A=84=E5=90=88=E5=90=8C=E5=92=8C=E4=B8=8B=E5=B1=9E=E5=90=88?= =?UTF-8?q?=E5=90=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/transfer/transfer.vue | 2 +- pages/components/pages/invoice/add.vue | 143 +++++++++++++++++-------- 2 files changed, 101 insertions(+), 44 deletions(-) diff --git a/components/transfer/transfer.vue b/components/transfer/transfer.vue index 4a2659b..1f39dff 100644 --- a/components/transfer/transfer.vue +++ b/components/transfer/transfer.vue @@ -2,7 +2,7 @@ - 选择目标员工 + 选择目标员工 diff --git a/pages/components/pages/invoice/add.vue b/pages/components/pages/invoice/add.vue index 58cdf8c..8f7b7ff 100644 --- a/pages/components/pages/invoice/add.vue +++ b/pages/components/pages/invoice/add.vue @@ -126,23 +126,28 @@ - - - 选择合同 - - + 选择合同 + + - + + + + + + + + - - - {{item.contractName}} - - - + + + {{item.contractNo}} + + {{item.contractName}} @@ -159,7 +164,9 @@ import { ref, unref, - computed + computed, + reactive, + nextTick } from 'vue' import { onLoad, @@ -189,21 +196,12 @@ } from '@/utils/util' const title = ref('申请发票') const labelPosition = ref('left') - const listStatus3 = ref('loadmore') const customerList = ref([]) - const accountName = ref('') const page = ref(1) - const page3 = ref(1) const pageSize = ref(10) - const lastPage = ref(false) - const lastPage3 = ref(false) - const selectList = ref([]) - const businessData = ref({}) const type = ref('add') const contractId = ref(0) const customerId = ref(0) - const nextTime = ref('') - const returnTime = ref(formatDateTime(new Date())) const content = ref('') const customerName = ref('') const form = ref({ @@ -227,7 +225,6 @@ contractInstanceId: undefined, // 关联合同审批单编号 fileItems: [] }) - const timeText = ref('') const errorType = ref('message') const rules = ref({ contractName: [{ @@ -261,11 +258,7 @@ trigger: ['change', 'blur'] }], }) - const customerContacts = ref([]) const userList = ref([]) - const username = ref('') - const keyword3 = ref('') - const businessList = ref([]) const isCheck = ref(false) const form2 = ref({ id: 0, @@ -311,8 +304,13 @@ } const selectShowRef = ref() + const uvTabsRef = ref() const selectShow = () => { unref(selectShowRef).open() + + nextTick(() => { + uvTabsRef.value.init() + }) } const selectShowClose = () => { unref(selectShowRef).close() @@ -344,8 +342,32 @@ } //获取合同 + const tabCurrent = ref(0) + const customerParams = reactive({ + contractName: '', //合同名称 + relation: 'my', + }) + const tabList = ref([{ + name: '我的合同', + value: 'my' + }, { + name: '下属合同', + value: 'sub' + }]) + const tabListClick = (e) => { + tabCurrent.value = e.index + customerParams.relation = e.value + getCustomerList() + } + const searchContract = () => { + getCustomerList() + } + const clearSearchContract = () => { + customerParams.contractName = '' + getCustomerList() + } const getCustomerList = async () => { - await getListByDeptId().then(res => { + await getListByDeptId(customerParams).then(res => { customerList.value = res }) } @@ -362,7 +384,9 @@ form.value.contractId = val.id form.value.contractName = val.contractName form.value.contractInstanceId = val.processInstanceId - selectShowClose() + setTimeout(() => { + selectShowClose() + }, 400) } const selectShowRef5 = ref() @@ -596,35 +620,68 @@ .popup-content { width: 750rpx; + .customer-params { + padding-bottom: 10rpx; + + .search { + display: flex; + align-items: center; + padding: 8rpx 24rpx 10rpx 24rpx; + + .search-btn { + color: #fff; + font-size: 28rpx; + width: 120rpx; + height: 74rpx; + line-height: 74rpx; + text-align: center; + background-color: #09b4f1; + margin-left: 14rpx; + } + } + } + .popup-title { display: flex; align-items: center; - justify-content: space-between; + justify-content: center; position: relative; font-size: 35rpx; font-weight: 600; text-align: center; - height: 50px; - padding-right: 25rpx; + height: 46px; + margin-top: 14rpx; + box-sizing: border-box; + + .close { + position: absolute; + right: 40rpx; + } } .list { - margin-bottom: 45rpx; .item { - padding: 0 25rpx; - justify-content: space-between; - height: 45px; + padding: 14rpx 26rpx; - .title { - flex: 1; - font-size: 28rpx; - font-weight: 600; + .top-view { + display: flex; + align-items: center; } - .check-icon { - text-align: center; - width: 100rpx; + .contract-no { + font-size: 28rpx; + color: #000; + font-weight: bold; + } + + .contract-name { + font-size: 28rpx; + color: #333; + margin-top: 2rpx; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; } } }