|
|
@ -602,15 +602,15 @@ |
|
|
|
<template slot="header" slot-scope="scope"> |
|
|
|
<template slot="header" slot-scope="scope"> |
|
|
|
<template v-if="viewDisabled || isEdit">使用期限</template> |
|
|
|
<template v-if="viewDisabled || isEdit">使用期限</template> |
|
|
|
<template v-else> |
|
|
|
<template v-else> |
|
|
|
<el-input class="batch-time" :disabled="viewDisabled || isEdit" maxlength="4" |
|
|
|
<el-input class="batch-time" :disabled="viewDisabled || isEdit" maxlength="4" |
|
|
|
@change="batchDeadlineChange(2)" |
|
|
|
@change="batchDeadlineChange(2)" |
|
|
|
@input="productProps[2].deadline = productProps[2].deadline.replace(/[^0-9.]/g, '')" |
|
|
|
@input="productProps[2].deadline = productProps[2].deadline.replace(/[^0-9.]/g, '')" |
|
|
|
v-model="productProps[2].deadline" placeholder="批量输入时间" /> |
|
|
|
v-model="productProps[2].deadline" placeholder="批量输入时间" /> |
|
|
|
<el-select class="batch-unit" v-model="productProps[2].unit" :disabled="viewDisabled || isEdit" |
|
|
|
<el-select class="batch-unit" v-model="productProps[2].unit" :disabled="viewDisabled || isEdit" |
|
|
|
placeholder="请选择" @change="batchUnitChange(2)"> |
|
|
|
placeholder="请选择" @change="batchUnitChange(2)"> |
|
|
|
<el-option v-for="(item, i) in units" :key="i" :label="item.name" :value="item.id"></el-option> |
|
|
|
<el-option v-for="(item, i) in units" :key="i" :label="item.name" :value="item.id"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
@ -741,15 +741,15 @@ |
|
|
|
<template slot="header" slot-scope="scope"> |
|
|
|
<template slot="header" slot-scope="scope"> |
|
|
|
<template v-if="viewDisabled || isEdit">使用期限</template> |
|
|
|
<template v-if="viewDisabled || isEdit">使用期限</template> |
|
|
|
<template v-else> |
|
|
|
<template v-else> |
|
|
|
<el-input class="batch-time" :disabled="viewDisabled || isEdit" maxlength="4" |
|
|
|
<el-input class="batch-time" :disabled="viewDisabled || isEdit" maxlength="4" |
|
|
|
@change="batchDeadlineChange(3)" |
|
|
|
@change="batchDeadlineChange(3)" |
|
|
|
@input="productProps[3].deadline = productProps[3].deadline.replace(/[^0-9.]/g, '')" |
|
|
|
@input="productProps[3].deadline = productProps[3].deadline.replace(/[^0-9.]/g, '')" |
|
|
|
v-model="productProps[3].deadline" placeholder="批量输入时间" /> |
|
|
|
v-model="productProps[3].deadline" placeholder="批量输入时间" /> |
|
|
|
<el-select class="batch-unit" v-model="productProps[3].unit" :disabled="viewDisabled || isEdit" |
|
|
|
<el-select class="batch-unit" v-model="productProps[3].unit" :disabled="viewDisabled || isEdit" |
|
|
|
placeholder="请选择" @change="batchUnitChange(3)"> |
|
|
|
placeholder="请选择" @change="batchUnitChange(3)"> |
|
|
|
<el-option v-for="(item, i) in units" :key="i" :label="item.name" :value="item.id"></el-option> |
|
|
|
<el-option v-for="(item, i) in units" :key="i" :label="item.name" :value="item.id"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
@ -888,15 +888,15 @@ |
|
|
|
<template slot="header" slot-scope="scope"> |
|
|
|
<template slot="header" slot-scope="scope"> |
|
|
|
<template v-if="viewDisabled || isEdit">使用期限</template> |
|
|
|
<template v-if="viewDisabled || isEdit">使用期限</template> |
|
|
|
<template v-else> |
|
|
|
<template v-else> |
|
|
|
<el-input class="batch-time" :disabled="viewDisabled || isEdit" maxlength="4" |
|
|
|
<el-input class="batch-time" :disabled="viewDisabled || isEdit" maxlength="4" |
|
|
|
@change="batchDeadlineChange(5)" |
|
|
|
@change="batchDeadlineChange(5)" |
|
|
|
@input="productProps[5].deadline = productProps[5].deadline.replace(/[^0-9.]/g, '')" |
|
|
|
@input="productProps[5].deadline = productProps[5].deadline.replace(/[^0-9.]/g, '')" |
|
|
|
v-model="productProps[5].deadline" placeholder="批量输入时间" /> |
|
|
|
v-model="productProps[5].deadline" placeholder="批量输入时间" /> |
|
|
|
<el-select class="batch-unit" v-model="productProps[5].unit" :disabled="viewDisabled || isEdit" |
|
|
|
<el-select class="batch-unit" v-model="productProps[5].unit" :disabled="viewDisabled || isEdit" |
|
|
|
placeholder="请选择" @change="batchUnitChange(5)"> |
|
|
|
placeholder="请选择" @change="batchUnitChange(5)"> |
|
|
|
<el-option v-for="(item, i) in units" :key="i" :label="item.name" :value="item.id"></el-option> |
|
|
|
<el-option v-for="(item, i) in units" :key="i" :label="item.name" :value="item.id"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
@ -1906,7 +1906,8 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 处理orderRepeat里的id |
|
|
|
// 处理orderRepeat里的id |
|
|
|
handleOrderRepeat (id) { |
|
|
|
handleOrderRepeat (id) { |
|
|
|
this.orderRepeat.includes(id) && this.orderRepeat.splice(this.orderRepeat.findIndex(e => e == id), 1) |
|
|
|
const i = this.orderRepeat.findIndex(e => e == id) |
|
|
|
|
|
|
|
i !== -1 && this.orderRepeat.splice(i, 1) |
|
|
|
}, |
|
|
|
}, |
|
|
|
/* 处理0开头的期限 */ |
|
|
|
/* 处理0开头的期限 */ |
|
|
|
zero (e, row) { |
|
|
|
zero (e, row) { |
|
|
@ -1965,7 +1966,7 @@ export default { |
|
|
|
// if (this.renewDisabled && this.coursePermissions.length === 1) { |
|
|
|
// if (this.renewDisabled && this.coursePermissions.length === 1) { |
|
|
|
// return this.$message.warning("续费至少保留一条课程权限"); |
|
|
|
// return this.$message.warning("续费至少保留一条课程权限"); |
|
|
|
// } else { |
|
|
|
// } else { |
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
this.handleOrderRepeat(row.mallId) |
|
|
|
this.coursePermissions.splice(index, 1); |
|
|
|
this.coursePermissions.splice(index, 1); |
|
|
|
// } |
|
|
|
// } |
|
|
|
}); |
|
|
|
}); |
|
|
@ -1978,7 +1979,7 @@ export default { |
|
|
|
// if (this.renewDisabled && this.theoryCourseList.length === 1) { |
|
|
|
// if (this.renewDisabled && this.theoryCourseList.length === 1) { |
|
|
|
// return this.$message.warning("续费至少保留一条课程权限"); |
|
|
|
// return this.$message.warning("续费至少保留一条课程权限"); |
|
|
|
// } else { |
|
|
|
// } else { |
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
this.handleOrderRepeat(row.mallId) |
|
|
|
this.theoryCourseList.splice(index, 1); |
|
|
|
this.theoryCourseList.splice(index, 1); |
|
|
|
// } |
|
|
|
// } |
|
|
|
}); |
|
|
|
}); |
|
|
@ -1992,7 +1993,7 @@ export default { |
|
|
|
// if (this.renewDisabled && this.dataPlatformPermissions.length === 1) { |
|
|
|
// if (this.renewDisabled && this.dataPlatformPermissions.length === 1) { |
|
|
|
// return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
// return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
// } else { |
|
|
|
// } else { |
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
this.handleOrderRepeat(row.mallId) |
|
|
|
this.dataPlatformPermissions.splice(index, 1); |
|
|
|
this.dataPlatformPermissions.splice(index, 1); |
|
|
|
// } |
|
|
|
// } |
|
|
|
}); |
|
|
|
}); |
|
|
@ -2006,7 +2007,7 @@ export default { |
|
|
|
// if (this.renewDisabled && this.valuePermissions.length === 1) { |
|
|
|
// if (this.renewDisabled && this.valuePermissions.length === 1) { |
|
|
|
// return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
// return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
// } else { |
|
|
|
// } else { |
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
this.handleOrderRepeat(row.mallId) |
|
|
|
this.valuePermissions.splice(index, 1); |
|
|
|
this.valuePermissions.splice(index, 1); |
|
|
|
// } |
|
|
|
// } |
|
|
|
}); |
|
|
|
}); |
|
|
@ -2165,7 +2166,7 @@ export default { |
|
|
|
// if (this.renewDisabled && this.practicalCourses.length === 1) { |
|
|
|
// if (this.renewDisabled && this.practicalCourses.length === 1) { |
|
|
|
// return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
// return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
// } else { |
|
|
|
// } else { |
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
this.handleOrderRepeat(row.mallId) |
|
|
|
this.practicalCourses.splice(index, 1); |
|
|
|
this.practicalCourses.splice(index, 1); |
|
|
|
// } |
|
|
|
// } |
|
|
|
}); |
|
|
|
}); |
|
|
@ -2179,7 +2180,7 @@ export default { |
|
|
|
if (this.renewDisabled && this.expTools.length === 1) { |
|
|
|
if (this.renewDisabled && this.expTools.length === 1) { |
|
|
|
return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
return this.$message.warning("续费至少保留一条产品信息"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.handleOrderRepeat(row.dataOrCourseId) |
|
|
|
this.handleOrderRepeat(row.mallId) |
|
|
|
this.expTools.splice(index, 1); |
|
|
|
this.expTools.splice(index, 1); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|