From 35b8f2e7b34875efebed526a7394ff50e65f8e90 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期三, 22 十一月 2023 10:50:15 +0800
Subject: [PATCH] #
---
pages/business/plan/modiPlan.vue | 77 ++++++++++++++++++++++++++------------
1 files changed, 53 insertions(+), 24 deletions(-)
diff --git a/pages/business/plan/modiPlan.vue b/pages/business/plan/modiPlan.vue
index 0258a29..4cca7d2 100644
--- a/pages/business/plan/modiPlan.vue
+++ b/pages/business/plan/modiPlan.vue
@@ -103,7 +103,7 @@
<uni-easyinput v-model="baseFormData.planLeaderBonus" placeholder="璇疯緭鍏ヨ鏍肩粍闀垮閲�" />
</uni-forms-item>
<uni-forms-item label="瀹屾垚鏃堕棿" name="finishTime">
- <uni-datetime-picker type="date" return-type="string" v-model="baseFormData.datetimesingle"/>
+ <uni-datetime-picker type="date" return-type="string" v-model="baseFormData.finishTime"/>
</uni-data-picker>
</uni-forms-item>
<uni-forms-item label="鏇存敼娆℃暟" name="changeTime">
@@ -142,8 +142,10 @@
changeTime: '',
planBonus: '',
planLeaderBonus: '',
- userXmlSelPhone: ''
+ userXmlSelPhone: '',
+ beItem: null
},
+ beItem: 0,
selList: ['妯寮�','椹跺叆寮�','鎮寮�','娴佸埄寮�','閲嶅姏寮�','鍏朵粬'],
rules: {
name: {
@@ -291,35 +293,35 @@
changeValue: [
{
text: '鏄�',
- value: '1'
+ value: 1
},
{
text: '鍚�',
- value: '0'
+ value: 0
}
],
// 鍗曢�夋暟鎹簮
beItem$: [{
text: '鏄�',
- value: '1'
+ value: 1
}, {
text: '鍚︼紙闇�鍞墠鎶�鏈窡杩涢」鐩紝涓庡鎴风洿鎺ユ矡閫氱瓑锛�',
- value: '0'
+ value: 0
}],
citysData: [],
citysDataTemp: '',
planNeeds: [
{
text: '绯荤粺 鏂规瑙勫垝璁捐',
- value: 1
+ value: '1'
},
{
text: '鎻愪緵閫夋潗娓呭崟',
- value: 2
+ value: '2'
},
{
text: '绔嬩綋搴撹璁℃柟妗�',
- value: 3
+ value: '3'
}
]
@@ -336,19 +338,20 @@
this.getDetail()
},
onLoad(option) {
- if (JSON.stringify(option) != "{}") {
- this.id = option.id
- this.init()
- this.autoLoad('follower','')
- } else {
- let _this = this
- const eventChannel = this.getOpenerEventChannel();
- eventChannel.on('cstmr', function(data) {
- _this.id = data.data
- _this.init()
- })
- this.autoLoad('follower','')
- }
+ this.$nextTick(() => {
+ if (JSON.stringify(option) != "{}") {
+ this.id = option.id
+ this.init()
+ } else {
+ let _this = this
+ const eventChannel = this.getOpenerEventChannel();
+ eventChannel.on('cstmr', function(data) {
+ _this.id = data.data
+ _this.init()
+ })
+ }
+ })
+
},
methods: {
@@ -360,7 +363,34 @@
method: 'GET',
success(res) {
res = res.data
+ console.log(res);
if (res.code === 200) {
+ let planNeed = res.data.planNeed.split('-')
+ res.data.planNeed = []
+ for (let k of planNeed) {
+ res.data.planNeed.push(k)
+ }
+ switch(res.data.select_2) {
+ case 'value1':
+ res.data.select_2 = '妯寮�'
+ break;
+ case 'value2':
+ res.data.select_2 = '椹跺叆寮�'
+ break;
+ case 'value3':
+ res.data.select_2 = '鎮寮�'
+ break;
+ case 'value4':
+ res.data.select_2 = '娴佸埄寮�'
+ break;
+ case 'value5':
+ res.data.select_2 = '閲嶅姏寮�'
+ break;
+ case 'value6':
+ res.data.select_2 = '鍏朵粬'
+ break;
+ }
+ // planNeed.push()
that.baseFormData = res.data
}
// that.saleManage = res.data
@@ -477,7 +507,6 @@
}
}
res['id'] = that.baseFormData.id
- // return
uni.request({
url: that.baseUrl + '/plan/update/auth',
header:{
@@ -489,7 +518,7 @@
success(result) {
var res = result.data
if (res.code === 200) {
- uni.navigateBack()
+ uni.navigateBack({delta:2})
} else if (res.code === 403) {
uni.showToast({title: res.msg, icon: "none", position: 'top'})
setTimeout(() => {
--
Gitblit v1.9.1