From b5d3561a2e06106ed9cce2c6bcc9c2463951e998 Mon Sep 17 00:00:00 2001
From: 819527061@qq.com <123456>
Date: 星期五, 15 十一月 2024 11:06:26 +0800
Subject: [PATCH] 新增申请页面不显示发运通知单的问题修改
---
pages/new-application-form-data/new-application-form-data.vue | 43 ++++++++++++++++++++++++++++++++++++++-----
1 files changed, 38 insertions(+), 5 deletions(-)
diff --git a/pages/new-application-form-data/new-application-form-data.vue b/pages/new-application-form-data/new-application-form-data.vue
index 0760daa..beedf8c 100644
--- a/pages/new-application-form-data/new-application-form-data.vue
+++ b/pages/new-application-form-data/new-application-form-data.vue
@@ -5,7 +5,7 @@
<!-- <page-meta :page-style="spanStyle"></page-meta> -->
<!-- 琛ㄥ崟 -->
- <combination-title class="newApplicationTitle" title="鏂板"></combination-title>
+ <combination-title class="newApplicationTitle" :title="newFormData.id?'鏌ョ湅':'鏂板'"></combination-title>
<!-- 娉ㄦ剰锛屽鏋滈渶瑕佸吋瀹瑰井淇″皬绋嬪簭锛屾渶濂介�氳繃setRules鏂规硶璁剧疆rules瑙勫垯 -->
<!-- <u-notify :message="accountMsg" :show="trueMsg" :type="accountMsgType"></u-notify> -->
<!-- <u-alert :title="accountMsg" :type="accountMsgType" :description="accountMsgType"></u-alert> -->
@@ -590,7 +590,12 @@
<u-swipe-action>
<u-swipe-action-item @click="deleteContractCardClick" :options="options1" v-for="(item, index) in newFormData.contractOrders" :key="index">
<view class="cardList">
- <view class="cardListIcon" @click="editApplicationClick(index)"><u-icon name="edit-pen" color="#2979ff" size="35"></u-icon></view>
+ <view
+ v-if="!newFormData.id"
+ class="cardListIcon"
+ @click="editApplicationClick(index)">
+ <u-icon name="edit-pen" color="#2979ff" size="35"></u-icon>
+ </view>
<view class="cardList-container">
<view class="cardList_item">
鏀惰揣浜猴細
@@ -635,12 +640,12 @@
</u-swipe-action-item>
</u-swipe-action>
- <view class="addCard" @click="addContractClick">
+ <view class="addCard" @click="addContractClick" v-if="!newFormData.id">
<view class="addCard-icon"><u-icon name="plus" size="100"></u-icon></view>
</view>
</view>
- <view class="new-application-button">
+ <view class="new-application-button" v-if="!newFormData.id">
<u-button text="鍙栨秷" :plain="true" type="primary" @click="backPage"></u-button>
<u-button text="纭畾" type="primary" @click="newApplicationFormDataClick"></u-button>
</view>
@@ -959,6 +964,10 @@
popupMenu,
combinationTitle
},
+ onLoad(e) {
+ console.log('鎴戞槸璇﹁杩樻槸鏂板----',e)
+ this.newFormData.id = e.id || 0
+ },
methods: {
async jisuanAmount() {
if (this.addContractFormdata.trainType == 2) {
@@ -990,6 +999,30 @@
this.selectContractTypeData[0].push(item.value);
});
});
+ this.$nextTick(() => {
+ if(this.newFormData.id) {
+ this.$reqGet('formData',{},this.newFormData.id).then(res => {
+ console.log(res,'res====鏌ョ湅====')
+ this.newFormData = res.data
+ console.log(this.newFormData,'this.newFormData====----')
+ if(this.actions.length > 0) { //浠樻鏂瑰紡鍥炴樉
+ this.actions.forEach(item => {
+ console.log(item,'item=====-----')
+ console.log(this.newFormData.payType,'payType')
+ if(this.newFormData.payType == item.value) {
+ this.selectValue = item.name
+ }
+ })
+ }
+ if(this.newFormData.startDate && this.newFormData.endDate) { //鏃ユ湡
+ this.timeDataStr = `${this.newFormData.startDate} - ${this.newFormData.endDate}`
+ }
+
+ })
+ }else {
+
+ }
+ })
},
/**
* 鑾峰彇鍒嗙被璐﹀
@@ -1769,7 +1802,7 @@
.searchResultList {
margin-top: vww(16);
}
-
+
// 婊氬姩閫氱煡
.tapStyle{
margin-top: vww(30);
--
Gitblit v1.9.1