diff --git a/src/components/hzwlComponents/UploadFormItem.vue b/src/components/hzwlComponents/UploadFormItem.vue
index 3c5371ae9..4189bc8a2 100644
--- a/src/components/hzwlComponents/UploadFormItem.vue
+++ b/src/components/hzwlComponents/UploadFormItem.vue
@@ -123,11 +123,6 @@ export default {
FileList: [], // 用于回显
}
},
- watch: {
- ids (val) {
- this.initFileList()
- },
- },
created () {
this.initFileList()
},
diff --git a/src/pages/policyRegulation/standardTrackingList/Inventory.vue b/src/pages/policyRegulation/standardTrackingList/Inventory.vue
index ecf58e33b..06d17deba 100644
--- a/src/pages/policyRegulation/standardTrackingList/Inventory.vue
+++ b/src/pages/policyRegulation/standardTrackingList/Inventory.vue
@@ -210,7 +210,7 @@ export default {
diff --git a/src/pages/policyRegulation/standardTrackingList/addModel.vue b/src/pages/policyRegulation/standardTrackingList/addModel.vue
index 21f598b40..9b64e10ed 100644
--- a/src/pages/policyRegulation/standardTrackingList/addModel.vue
+++ b/src/pages/policyRegulation/standardTrackingList/addModel.vue
@@ -8,6 +8,7 @@
>
this.form[key] = this.initForm[key])
this.roleForm = JSON.parse(JSON.stringify(this.initRoleForm))
+ this.reloadForm = false
this.$nextTick(() => {
- this.$refs.form.clearValidate()
- this.$refs['roleForm'].$refs['userForm'].clearValidate()
+ this.reloadForm = true
+ this.$nextTick(() => {
+ this.$refs.form.clearValidate()
+ this.$refs['roleForm'].$refs['userForm'].clearValidate()
+ })
})
this.showDrawer = true
},
@@ -168,6 +175,10 @@ export default {
if (res.ok) {
this.form = res.data
this.roleForm = res.data.roleForm
+ this.reloadForm = false
+ this.$nextTick(() => {
+ this.reloadForm = true
+ })
}
})
},
diff --git a/src/pages/policyRegulation/standardTrackingList/index.vue b/src/pages/policyRegulation/standardTrackingList/index.vue
index 3dabb7280..ff89d03e9 100644
--- a/src/pages/policyRegulation/standardTrackingList/index.vue
+++ b/src/pages/policyRegulation/standardTrackingList/index.vue
@@ -139,7 +139,11 @@
label="创建人"
align="center"
sortable="custom"
- />
+ >
+
+ {{ row.createUserName }}({{ row.createUserId }})
+
+
-
+
+
+
+
+
- 取消
- 确定
+ 取消
+ 确定
@@ -202,6 +224,7 @@
import addModel from './addModel'
import ImportZip from '@/components/hzwlComponents/importZip'
import ExportDialog from '@/components/hzwlComponents/exportDialog'
+import DatePickerFormItem from '@/components/hzwlComponents/DatePickerFormItem'
export default {
name: 'StandardTrackingList',
@@ -209,6 +232,7 @@ export default {
addModel,
ImportZip,
ExportDialog,
+ DatePickerFormItem,
},
data () {
const searchForm = {
@@ -219,6 +243,19 @@ export default {
pageSize: this.$store.getters.userInfo.configContent,
total: 0,
}
+ const processDistributionForm = {
+ trackingChecklistId: '',
+ processDeadline: '',
+ feedbackDeadline: '',
+ }
+ const processDistributionRules = {
+ processDeadline: [
+ { required: true, message: '流程截止时间不能为空', trigger: 'change' }
+ ],
+ feedbackDeadline: [
+ { required: true, message: '责任单位意见反馈截止时间不能为空', trigger: 'change' }
+ ],
+ }
return {
searchForm,
initSearchForm: JSON.parse(JSON.stringify(searchForm)),
@@ -232,12 +269,16 @@ export default {
exportTemplateFile: 'api/standardTrackingCheckList/exportTemplateFile',
importExcelUrl: 'api/standardTrackingCheckList/importTrackingChecklist',
exportTrackingChecklist: 'api/standardTrackingCheckList/exportTrackingChecklist',
+ processDistribution: 'standardTrackingCheckList/processDistribution'
},
data: [],
selectedList: [],
// 导入
importModalShowFlag: false,
visible: false,
+ processDistributionForm,
+ processDistributionRules,
+ processDistributionLoading: false,
}
},
created () {
@@ -352,6 +393,31 @@ export default {
if (this.selectedList.length === 0) {
return this.$message.warning('请选择要下发的数据')
}
+ this.visible = true
+ Object.keys(this.processDistributionForm).forEach(key => {
+ this.processDistributionForm[key] = ''
+ })
+ this.$nextTick(() => {
+ // this.$refs.processDistributionRef.resetFields()
+ this.$refs.processDistributionRef.clearValidate()
+ })
+ },
+ handleProcessDistribution () {
+ this.$refs.processDistributionRef.validate(valid => {
+ if (valid) {
+ this.processDistributionForm.trackingChecklistId = this.selectedList.join(',')
+ const config = { _this: this, loading: 'processDistributionLoading' }
+ this.$http._post(this.url.processDistribution, this.processDistributionForm, config).then(res => {
+ if (res.ok) {
+ this.$message.success(res.message)
+ this.visible = false
+ this.getData()
+ } else {
+ this.$message.warning(res.message)
+ }
+ })
+ }
+ })
}
}
}
@@ -376,4 +442,29 @@ export default {
.container {
flex: 1;
}
+
+.processDistributionForm {
+ /deep/ .el-form-item{
+ margin-bottom: 10px;
+ color: #666;
+ .el-form-item__label {
+ line-height: 50px;
+ }
+ .el-form-item__content{
+ line-height: 50px;
+ }
+ .el-input__inner{
+ border: none;
+ }
+ .el-date-editor.el-input, .el-date-editor.el-input__inner {
+ width: 100%;
+ }
+ .el-input__inner{
+ color: #666 !important;
+ }
+ }
+ .form-item-first {
+
+ }
+}