对接标准/译文获取申请
This commit is contained in:
+17
-14
@@ -42,15 +42,15 @@
|
|||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="标准类型" prop="standType" label-width="100px" class="add-form-item">
|
<el-form-item label="标准类型" prop="standType" label-width="100px" class="add-form-item">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="StandardApplyForEO.standType"
|
v-model="StandardApplyForEO.standType"
|
||||||
:placeholder="'请选择标准类型'"
|
:placeholder="'请选择标准类型'"
|
||||||
clearable
|
clearable
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="opt in standTypeList"
|
v-for="opt in standTypeList"
|
||||||
:key="opt.value"
|
:key="opt.value"
|
||||||
:value="opt.value === undefined ? '' :opt.value"
|
:value="opt.value === undefined ? '' :opt.value"
|
||||||
:label="opt.label"
|
:label="opt.label"
|
||||||
>
|
>
|
||||||
{{ opt.label }}
|
{{ opt.label }}
|
||||||
</el-option>
|
</el-option>
|
||||||
@@ -61,15 +61,15 @@
|
|||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="标准类别" prop="standLb" label-width="100px" class="add-form-item">
|
<el-form-item label="标准类别" prop="standLb" label-width="100px" class="add-form-item">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="StandardApplyForEO.standLb"
|
v-model="StandardApplyForEO.standLb"
|
||||||
:placeholder="'请选择标准类别'"
|
:placeholder="'请选择标准类别'"
|
||||||
clearable
|
clearable
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="opt in standLbList"
|
v-for="opt in standLbList"
|
||||||
:key="opt.value"
|
:key="opt.value"
|
||||||
:value="opt.value === undefined ? '' :opt.value"
|
:value="opt.value === undefined ? '' :opt.value"
|
||||||
:label="opt.label"
|
:label="opt.label"
|
||||||
>
|
>
|
||||||
{{ opt.label }}
|
{{ opt.label }}
|
||||||
</el-option>
|
</el-option>
|
||||||
@@ -203,15 +203,18 @@ export default {
|
|||||||
submit () {
|
submit () {
|
||||||
this.$refs.addFormRef.validate((valid) => {
|
this.$refs.addFormRef.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.isSubmit = true
|
||||||
const url = this.id ? this.url.editUrl : this.url.addUrl
|
const url = this.id ? this.url.editUrl : this.url.addUrl
|
||||||
this.$http.postData(url, this.StandardApplyForEO, { _this: this },
|
this.$http.postData(url, this.StandardApplyForEO, { _this: this },
|
||||||
res => {
|
res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.$emit('updateList')
|
this.$emit('updateList')
|
||||||
|
this.$message.success(res.message)
|
||||||
this.visible = false
|
this.visible = false
|
||||||
}else{
|
}else{
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -4,7 +4,20 @@
|
|||||||
<div class="search-area">
|
<div class="search-area">
|
||||||
<el-form :inline="true" :model="StandardApplyForEOPage">
|
<el-form :inline="true" :model="StandardApplyForEOPage">
|
||||||
<el-form-item class="el-form-item search-item" label="类型">
|
<el-form-item class="el-form-item search-item" label="类型">
|
||||||
<el-select v-model="StandardApplyForEOPage.type" clearable placeholder="请选择类型" />
|
<el-select
|
||||||
|
v-model="StandardApplyForEOPage.type"
|
||||||
|
:placeholder="'请选择类型'"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="opt in typeList"
|
||||||
|
:key="opt.value"
|
||||||
|
:value="opt.value === undefined ? '' :opt.value"
|
||||||
|
:label="opt.label"
|
||||||
|
>
|
||||||
|
{{ opt.label }}
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="el-form-item search-item" label="申请单位">
|
<el-form-item class="el-form-item search-item" label="申请单位">
|
||||||
<el-select v-model="StandardApplyForEOPage.applyForUnitIds" clearable placeholder="请选择申请单位" />
|
<el-select v-model="StandardApplyForEOPage.applyForUnitIds" clearable placeholder="请选择申请单位" />
|
||||||
@@ -35,7 +48,20 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item class="el-form-item search-item" label="申请状态">
|
<el-form-item class="el-form-item search-item" label="申请状态">
|
||||||
<el-select v-model="StandardApplyForEOPage.status" clearable placeholder="请选择申请状态" />
|
<el-select
|
||||||
|
v-model="StandardApplyForEOPage.status"
|
||||||
|
:placeholder="'请选择申请状态'"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="opt in statusList"
|
||||||
|
:key="opt.value"
|
||||||
|
:value="opt.value === undefined ? '' :opt.value"
|
||||||
|
:label="opt.label"
|
||||||
|
>
|
||||||
|
{{ opt.label }}
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button size="mini" type="primary" @click="searchData">查询</el-button>
|
<el-button size="mini" type="primary" @click="searchData">查询</el-button>
|
||||||
@@ -173,7 +199,26 @@ export default {
|
|||||||
url: {
|
url: {
|
||||||
getList: '/lawss/standardApplyFor/queryByPage',
|
getList: '/lawss/standardApplyFor/queryByPage',
|
||||||
updateState: '/lawss/standardApplyFor/batchUpdateStatus'
|
updateState: '/lawss/standardApplyFor/batchUpdateStatus'
|
||||||
}
|
},
|
||||||
|
typeList: [],
|
||||||
|
statusList: [
|
||||||
|
{
|
||||||
|
label: '通过',
|
||||||
|
value: 'pass',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '驳回',
|
||||||
|
value: 'refuse',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '待审批',
|
||||||
|
value: 'pendingApproval',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '草稿',
|
||||||
|
value: 'draft',
|
||||||
|
}
|
||||||
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
@@ -182,8 +227,17 @@ export default {
|
|||||||
this.$router.replace({ query: { ...this.$route.query, tag: undefined } })
|
this.$router.replace({ query: { ...this.$route.query, tag: undefined } })
|
||||||
}
|
}
|
||||||
this.getList()
|
this.getList()
|
||||||
|
this.getDicTypeListCode()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getDicTypeListCode () {
|
||||||
|
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
this.typeList = res.data.BZJYWTYPE // 标准类别
|
||||||
|
}, e => {
|
||||||
|
})
|
||||||
|
},
|
||||||
searchData () {
|
searchData () {
|
||||||
this.page = 1
|
this.page = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
@@ -209,6 +263,8 @@ export default {
|
|||||||
this.StandardApplyForEO = []
|
this.StandardApplyForEO = []
|
||||||
this.total = 0
|
this.total = 0
|
||||||
}
|
}
|
||||||
|
this.selectedList = []
|
||||||
|
this.$refs.selections.clearSelection()
|
||||||
this.tableLoading = false
|
this.tableLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -224,11 +280,26 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
const ids = id.join(',')
|
const ids = id.join(',')
|
||||||
this.$http.postData(this.url.updateState, { status: 'pass', ids }, { _this: this }, res => {
|
this.$confirm('确定通过?', '提示', {
|
||||||
if(res.ok) {
|
confirmButtonText: '确定',
|
||||||
this.$message.success('操作成功')
|
confirmButtonClass: 'common-button-primary',
|
||||||
}
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning',
|
||||||
|
roundButton: false
|
||||||
|
}).then(() => {
|
||||||
|
this.$http.postData(this.url.updateState, { status: 'pass', ids: ids }, { _this: this }, res => {
|
||||||
|
if (res.ok) {
|
||||||
|
this.$message.success('操作成功')
|
||||||
|
this.getList()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}).catch(() => {
|
||||||
|
// 取消删除,清空选择
|
||||||
|
this.$refs.selections.clearSelection()
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
batchOverrule (id) {
|
batchOverrule (id) {
|
||||||
if (id.length === 0) {
|
if (id.length === 0) {
|
||||||
@@ -240,10 +311,24 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
const ids = id.join(',')
|
const ids = id.join(',')
|
||||||
this.$http.postData(this.url.updateState, { status: 'refuse', ids }, { _this: this }, res => {
|
this.$confirm('确定驳回?', '提示', {
|
||||||
if(res.ok) {
|
confirmButtonText: '确定',
|
||||||
this.$message.success('操作成功')
|
confirmButtonClass: 'common-button-primary',
|
||||||
}
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning',
|
||||||
|
roundButton: false
|
||||||
|
}).then(() => {
|
||||||
|
this.$http.postData(this.url.updateState, { status: 'refuse', ids }, { _this: this }, res => {
|
||||||
|
if (res.ok) {
|
||||||
|
this.$message.success('操作成功')
|
||||||
|
this.getList()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}).catch(() => {
|
||||||
|
// 取消删除,清空选择
|
||||||
|
this.$refs.selections.clearSelection()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user