小程序提交 #19
@@ -8,7 +8,7 @@ module.exports = {
|
||||
baseUrlTJ: 'https://api.xayunmei.com/tiaojieapitest',
|
||||
// baseUrlTJ:'https://api.xayunmei.com/tiaojieapi',
|
||||
// baseUrlZC: 'http://121.40.189.20:8001',
|
||||
// baseUrlTJ: 'http://121.40.189.20:6001',
|
||||
// baseUrlTJ: 'http://172.16.1.17:6001',
|
||||
// baseUrl: 'http://172.16.1.24:8001',
|
||||
// baseUrl: 'http://localhost:8080',
|
||||
// baseUrl: 'http://192.168.3.18:9001',
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
申请人姓名:
|
||||
</view>
|
||||
<view class="main">
|
||||
{{defalutVal.applicationOrganName}}
|
||||
{{defalutVal.applicationName}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="listItem" style="margin-top:22rpx">
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="申请人:" name="applicantName" label-width="120px" required>
|
||||
<uni-easyinput :inputBorder="false" :disabled='true'
|
||||
v-model="formData.affiliate.applicationOrganName" placeholder="" />
|
||||
v-model="formData.affiliate.applicationName" placeholder="" />
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="被申请人:" name="respondentName" label-width="120px" required>
|
||||
<uni-easyinput :inputBorder="false" :disabled='true'
|
||||
@@ -113,12 +113,6 @@
|
||||
:localdata="uploadEvidence"
|
||||
@change='maintenancetypeChange'></uni-data-checkbox>
|
||||
</uni-forms-item> -->
|
||||
<uni-forms-item label="预约时间" label-width="120px" name="respondentIsWrittenHear">
|
||||
<view class="example-body">
|
||||
<uni-datetime-picker type="date" v-model="timeData"
|
||||
@maskClick="maskClick" />
|
||||
</view>
|
||||
</uni-forms-item>
|
||||
</view>
|
||||
</uni-forms>
|
||||
<!-- 自定义弹窗层组件 -->
|
||||
@@ -381,7 +375,6 @@
|
||||
}],
|
||||
items: [],
|
||||
sysType: null,
|
||||
timeData: null,
|
||||
mediatorList: []
|
||||
}
|
||||
},
|
||||
@@ -434,20 +427,20 @@
|
||||
// }
|
||||
// },
|
||||
checkboxChange(e) {
|
||||
let params = parseInt(e.detail.value);
|
||||
let params = e.detail.value;
|
||||
params = params.map(Number);
|
||||
this.mediatorList = e.detail.value;
|
||||
let result = "";
|
||||
this.items.forEach(item => {
|
||||
if (item.mediatorId == params) {
|
||||
result = {
|
||||
userId: item.mediatorId,
|
||||
userName: item.mediatorName
|
||||
}
|
||||
}
|
||||
})
|
||||
let result = this.items.filter(element => params.includes(element.mediatorId));
|
||||
let userListArr = result.map(({
|
||||
mediatorId,
|
||||
mediatorName
|
||||
}) => ({
|
||||
mediatorId: mediatorId,
|
||||
mediatorName: mediatorName
|
||||
}));
|
||||
let arbitrators = {
|
||||
caseFlowId: this.formData.caseFlowId,
|
||||
userList: [result],
|
||||
mediatorList: userListArr,
|
||||
};
|
||||
this.subnitForm.arbitrators = arbitrators;
|
||||
console.log(this.subnitForm.arbitrators, "PPPPPPPPPPPPPP");
|
||||
@@ -539,17 +532,9 @@
|
||||
},
|
||||
submitImg() {
|
||||
if (this.sysType == 2) {
|
||||
if (this.mediatorList.length > 1) {
|
||||
if (this.mediatorList.length > 3) {
|
||||
uni.showToast({
|
||||
title: '只能选择一个调解员',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!this.timeData) {
|
||||
uni.showToast({
|
||||
title: '请选择时间',
|
||||
title: '最多选择三个调解员',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
@@ -573,15 +558,15 @@
|
||||
} else if (this.sysType == 2) {
|
||||
// TODO
|
||||
// 调解提交
|
||||
if (this.mediatorList.length > 1) {
|
||||
if (this.mediatorList.length > 3) {
|
||||
debugger
|
||||
uni.showToast({
|
||||
title: '只能选择一个调解员',
|
||||
title: '最多选择三个调解员',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
this.subnitForm.arbitrators.herDates = [this.timeData];
|
||||
this.subnitForm.arbitrators.id = this.formData.id;
|
||||
this.subnitForm.arbitrators.miniProgressFlag = 1;
|
||||
updateBooking(this.subnitForm.arbitrators).then(res => {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
申请人姓名:
|
||||
</view>
|
||||
<view class="main">
|
||||
{{defalutVal.applicationOrganName}}
|
||||
{{defalutVal.applicationName}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="listItem" style="margin-top:22rpx">
|
||||
|
||||
Reference in New Issue
Block a user