| | |
| | | <!-- <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> --> |
| | |
| | | <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"> |
| | | 收货人: |
| | |
| | | </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> |
| | |
| | | popupMenu, |
| | | combinationTitle |
| | | }, |
| | | onLoad(e) { |
| | | console.log('我是详请还是新增----',e) |
| | | this.newFormData.id = e.id || 0 |
| | | }, |
| | | methods: { |
| | | async jisuanAmount() { |
| | | if (this.addContractFormdata.trainType == 2) { |
| | |
| | | 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 { |
| | | |
| | | } |
| | | }) |
| | | }, |
| | | /** |
| | | * 获取分类账套 |