|
|
@@ -11,6 +11,11 @@
|
|
|
<el-option v-for="item in memberList" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
|
|
|
+ <div v-if="type === typeList[0].type" class="end-date">
|
|
|
+ <span>交稿日期:</span>
|
|
|
+ <el-date-picker v-model="editEndDate" type="date" value-format="yyyy-MM-dd" placeholder="选择日期" />
|
|
|
+ </div>
|
|
|
+
|
|
|
<div slot="footer">
|
|
|
<el-button @click="dialogClose">取消</el-button>
|
|
|
<el-button type="primary" @click="addChapterNode">确定</el-button>
|
|
|
@@ -54,6 +59,7 @@ export default {
|
|
|
{ type: 'auditor', label: '设置审校人', placeholder: '请选择审校人', bindKey: 'id_list', isMultiple: true },
|
|
|
{ type: 'mainAuditor', label: '设置主审校人', placeholder: '请选择主审校人', bindKey: 'id', isMultiple: false },
|
|
|
],
|
|
|
+ editEndDate: '',
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -100,7 +106,15 @@ export default {
|
|
|
},
|
|
|
addChapterNode() {
|
|
|
if (this.type === this.typeList[0].type) {
|
|
|
- this.$emit('chapterSetProducer', { node_id: this.id, producer_id_list: this.user.id_list });
|
|
|
+ if (this.editEndDate.length === 0) {
|
|
|
+ this.$message.error('请选择交稿日期');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.$emit('chapterSetProducer', {
|
|
|
+ node_id: this.id,
|
|
|
+ producer_id_list: this.user.id_list,
|
|
|
+ edit_end_date: this.editEndDate,
|
|
|
+ });
|
|
|
}
|
|
|
if (this.type === this.typeList[1].type) {
|
|
|
this.$emit('SetAuditor', { flow_node_id: this.id, user_id_list: this.user.id_list });
|
|
|
@@ -118,4 +132,20 @@ export default {
|
|
|
.el-select {
|
|
|
width: 100%;
|
|
|
}
|
|
|
+
|
|
|
+.el-dialog {
|
|
|
+ .end-date {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-top: 16px;
|
|
|
+
|
|
|
+ span {
|
|
|
+ width: 80px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-date-picker {
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|