|
@@ -111,6 +111,25 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</template>
|
|
|
+ <template slot="handingUserName">
|
|
|
+ <el-select
|
|
|
+ v-model="form.handingUserName"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ allow-create
|
|
|
+ default-first-option
|
|
|
+ size="small"
|
|
|
+ placeholder="请选择"
|
|
|
+ :disabled="disabled || checkDisabled || form.chargeStatus == 0 || confirmDisabled"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item,index) in userList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.realName"
|
|
|
+ :value="item.realName"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </template>
|
|
|
<template slot="external">
|
|
|
<el-switch
|
|
|
v-model="form.external"
|
|
@@ -328,7 +347,7 @@ export default {
|
|
|
data() {
|
|
|
const validateHandingUser = (rule, value, callback) => {
|
|
|
if (this.form.chargeStatus == 1 && !this.form.handingUser) {
|
|
|
- callback(new Error('接手人不能为空'))
|
|
|
+ callback(new Error('接收人不能为空'))
|
|
|
} else {
|
|
|
callback()
|
|
|
}
|
|
@@ -392,7 +411,7 @@ export default {
|
|
|
span: 8,
|
|
|
},
|
|
|
{
|
|
|
- label: "接手人",
|
|
|
+ label: "接收人",
|
|
|
prop: "handingUser",
|
|
|
span: 8,
|
|
|
rules: [
|
|
@@ -738,9 +757,9 @@ export default {
|
|
|
chargeStatusChange(data) {
|
|
|
if (data === 0) this.form.handingUser = null;
|
|
|
},
|
|
|
- // 接手人选择触发
|
|
|
+ // 接收人选择触发
|
|
|
handingUserChange(data) {
|
|
|
- this.$set(this.form, 'handingUserName', this.userList.find(item => data == item.id).realName);
|
|
|
+ this.$set(this.form, 'handingUserName', this.userList.find(item => data == item.id)? this.userList.find(item => data == item.id).realName: null);
|
|
|
},
|
|
|
// 提交确认
|
|
|
submitConfirm() {
|