|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :md="6" :sm="24">
|
|
|
|
|
<a-form-item label="发布时间">
|
|
|
|
|
<a-range-picker valueFormat="YYYY-MM-DD" v-model="queryParam.create">
|
|
|
|
|
<a-range-picker valueFormat="YYYY-MM-DD" v-model="queryParam.pubDate">
|
|
|
|
|
</a-range-picker>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -39,7 +39,7 @@
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :md="6" :sm="24">
|
|
|
|
|
<a-form-item label="创建时间">
|
|
|
|
|
<a-range-picker valueFormat="YYYY-MM-DD" v-model="queryParam.update">
|
|
|
|
|
<a-range-picker valueFormat="YYYY-MM-DD" v-model="queryParam.create">
|
|
|
|
|
</a-range-picker>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
@ -54,18 +54,25 @@
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :md="6" :sm="24">
|
|
|
|
|
<a-form-item label="版本号">
|
|
|
|
|
<a-input v-model="queryParam.updateUser" allow-clear placeholder="更新人" />
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :md="6" :sm="24">
|
|
|
|
|
<a-form-item label="版本号">
|
|
|
|
|
<a-input v-model="queryParam.updateUser" allow-clear placeholder="更新人" />
|
|
|
|
|
<a-form-item label="所属租户">
|
|
|
|
|
<a-select
|
|
|
|
|
show-search
|
|
|
|
|
v-model="queryParam.belongTenantName"
|
|
|
|
|
@search="TenantHandleSearch"
|
|
|
|
|
:default-active-first-option="false"
|
|
|
|
|
:show-arrow="false"
|
|
|
|
|
:filter-option="false"
|
|
|
|
|
:not-found-content="null">
|
|
|
|
|
<a-select-option v-for="item in SysTenantData" :key="item.id" :value="item.name">
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :md="6" :sm="24">
|
|
|
|
|
<a-form-item label="版本号">
|
|
|
|
|
<a-input v-model="queryParam.updateUser" allow-clear placeholder="更新人" />
|
|
|
|
|
<a-form-item label="更新时间">
|
|
|
|
|
<a-range-picker valueFormat="YYYY-MM-DD" v-model="queryParam.update">
|
|
|
|
|
</a-range-picker>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :md="6" :sm="24">
|
|
|
|
@ -82,6 +89,7 @@
|
|
|
|
|
<div style="margin-bottom: 10px;">
|
|
|
|
|
<a-button @click="$refs.addForm.add()" type="primary">新增</a-button>
|
|
|
|
|
<a-button @click="handleStart" type="primary">启用</a-button>
|
|
|
|
|
<a-button @click="handlePub" type="primary">发布</a-button>
|
|
|
|
|
<a-button @click="handleStop">取消启用</a-button>
|
|
|
|
|
<a-popconfirm title="确认作废吗?" @confirm="handleDelete">
|
|
|
|
|
<a-button type="danger">作废</a-button>
|
|
|
|
@ -94,13 +102,18 @@
|
|
|
|
|
:data-source="list"
|
|
|
|
|
:pagination="pagination"
|
|
|
|
|
@change="tablePaginationChange"
|
|
|
|
|
:scroll="{ x: 1000 }"
|
|
|
|
|
:rowKey="(record) => record.pkId"
|
|
|
|
|
:rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }">
|
|
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
|
|
<a @click="$refs.addForm.edit(record)">编辑</a>
|
|
|
|
|
</span>
|
|
|
|
|
<span slot="isEnable" slot-scope="text, record">
|
|
|
|
|
{{ record.isEnable==1?'是':'否' }}
|
|
|
|
|
</span>
|
|
|
|
|
</a-table>
|
|
|
|
|
<add-form ref="addForm" @ok="handleOk" />
|
|
|
|
|
<manyModel ref="manyModel" :bcFile="modelObj"></manyModel>
|
|
|
|
|
</a-spin>
|
|
|
|
|
</a-card>
|
|
|
|
|
</div>
|
|
|
|
@ -112,16 +125,20 @@ import {
|
|
|
|
|
} from '@/components'
|
|
|
|
|
import {
|
|
|
|
|
ServiceWorkFlowBaseGetPage,
|
|
|
|
|
StatusSkuBaseSetEnable,
|
|
|
|
|
StatusSkuBaseSetUnEnable,
|
|
|
|
|
StatusSkuBaseDelete
|
|
|
|
|
workFlowSetEnable,
|
|
|
|
|
workFlowSetUnEnable,
|
|
|
|
|
workFlowSetUnDelete,
|
|
|
|
|
workFlowSetUnPublishRelease
|
|
|
|
|
} from '@/api/modular/system/appManage'
|
|
|
|
|
import manyModel from '@/components/manyModel'
|
|
|
|
|
import { SysTenantPage } from '@/api/modular/main/bookingprinttemplate'
|
|
|
|
|
import addForm from './addForm'
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
XCard,
|
|
|
|
|
STable,
|
|
|
|
|
addForm
|
|
|
|
|
addForm,
|
|
|
|
|
manyModel
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
@ -144,61 +161,79 @@ export default {
|
|
|
|
|
// 查询参数
|
|
|
|
|
queryParam: {
|
|
|
|
|
create: [],
|
|
|
|
|
update: []
|
|
|
|
|
update: [],
|
|
|
|
|
pubDate: []
|
|
|
|
|
},
|
|
|
|
|
modelObj:{},
|
|
|
|
|
// 表头
|
|
|
|
|
columns: [{
|
|
|
|
|
title: '服务流程名称',
|
|
|
|
|
dataIndex: 'serviceWorkflowName'
|
|
|
|
|
dataIndex: 'serviceWorkflowName',
|
|
|
|
|
width: '160px'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '服务流程代码',
|
|
|
|
|
dataIndex: 'serviceWorkflowCode'
|
|
|
|
|
dataIndex: 'serviceWorkflowCode',
|
|
|
|
|
width: '200px'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '状态数量',
|
|
|
|
|
dataIndex: 'sortNo'
|
|
|
|
|
dataIndex: 'statusNum',
|
|
|
|
|
width: 100
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '版本号',
|
|
|
|
|
dataIndex: 'statusSKUNote'
|
|
|
|
|
dataIndex: 'releaseVersion',
|
|
|
|
|
width: 100
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '说明',
|
|
|
|
|
dataIndex: 'serviceWorkflowNote'
|
|
|
|
|
dataIndex: 'serviceWorkflowNote',
|
|
|
|
|
width: 100
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '是否启用',
|
|
|
|
|
dataIndex: 'isEnable'
|
|
|
|
|
dataIndex: 'isEnable',
|
|
|
|
|
width: 100,
|
|
|
|
|
scopedSlots: {
|
|
|
|
|
customRender: 'isEnable'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '所属租户',
|
|
|
|
|
dataIndex: 'belongTenantName'
|
|
|
|
|
dataIndex: 'belongTenantName',
|
|
|
|
|
width: 200
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '发布日期',
|
|
|
|
|
dataIndex: 'createdTime1'
|
|
|
|
|
dataIndex: 'publishDate',
|
|
|
|
|
width: 160
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '创建日期',
|
|
|
|
|
dataIndex: 'createdTime'
|
|
|
|
|
dataIndex: 'createdTime',
|
|
|
|
|
width: 160
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '创建人',
|
|
|
|
|
dataIndex: 'createdUserName'
|
|
|
|
|
dataIndex: 'createdUserName',
|
|
|
|
|
width: 150
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '更新日期',
|
|
|
|
|
dataIndex: 'updatedTime'
|
|
|
|
|
dataIndex: 'updatedTime',
|
|
|
|
|
width: 160
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '更新人',
|
|
|
|
|
dataIndex: 'updatedUserName'
|
|
|
|
|
dataIndex: 'updatedUserName',
|
|
|
|
|
width: 150
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '操作',
|
|
|
|
|
width: '200px',
|
|
|
|
|
width: '70px',
|
|
|
|
|
dataIndex: 'action',
|
|
|
|
|
fixed: 'right',
|
|
|
|
|
scopedSlots: {
|
|
|
|
|
customRender: 'action'
|
|
|
|
|
}
|
|
|
|
@ -207,6 +242,7 @@ export default {
|
|
|
|
|
loading: false,
|
|
|
|
|
list: [],
|
|
|
|
|
selectedRowKeys: [],
|
|
|
|
|
SysTenantData: [],
|
|
|
|
|
pagination: {
|
|
|
|
|
current: 1,
|
|
|
|
|
total: 0, // 总数
|
|
|
|
@ -218,6 +254,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList()
|
|
|
|
|
SysTenantPage().then(res => {
|
|
|
|
|
this.SysTenantData = res.data.rows
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
handleOk() {
|
|
|
|
@ -225,13 +264,26 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
handleStart() {
|
|
|
|
|
if (this.selectedRowKeys.length > 0) {
|
|
|
|
|
StatusSkuBaseSetEnable(this.selectedRowKeys).then(res => {
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
this.$message.success('启用成功')
|
|
|
|
|
this.getList()
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.data.msg)
|
|
|
|
|
}
|
|
|
|
|
workFlowSetEnable(this.selectedRowKeys).then(res => {
|
|
|
|
|
this.getList()
|
|
|
|
|
this.modelObj = res.data
|
|
|
|
|
this.$refs.manyModel.bcFileFlag = true
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.warning('请选择')
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
TenantHandleSearch(data) {
|
|
|
|
|
SysTenantPage({ name: data }).then(res => {
|
|
|
|
|
this.SysTenantData = res.data.rows
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handlePub() {
|
|
|
|
|
if (this.selectedRowKeys.length > 0) {
|
|
|
|
|
workFlowSetUnPublishRelease(this.selectedRowKeys).then(res => {
|
|
|
|
|
this.getList()
|
|
|
|
|
this.modelObj = res.data
|
|
|
|
|
this.$refs.manyModel.bcFileFlag = true
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.warning('请选择')
|
|
|
|
@ -239,13 +291,10 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
handleStop() {
|
|
|
|
|
if (this.selectedRowKeys.length > 0) {
|
|
|
|
|
StatusSkuBaseSetUnEnable(this.selectedRowKeys).then(res => {
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
this.$message.success('取消启用成功')
|
|
|
|
|
this.getList()
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.data.msg)
|
|
|
|
|
}
|
|
|
|
|
workFlowSetUnEnable(this.selectedRowKeys).then(res => {
|
|
|
|
|
this.getList()
|
|
|
|
|
this.modelObj = res.data
|
|
|
|
|
this.$refs.manyModel.bcFileFlag = true
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.warning('请选择')
|
|
|
|
@ -253,13 +302,10 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
handleDelete() {
|
|
|
|
|
if (this.selectedRowKeys.length > 0) {
|
|
|
|
|
StatusSkuBaseDelete(this.selectedRowKeys).then(res => {
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
this.$message.success('删除成功')
|
|
|
|
|
this.getList()
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.data.msg)
|
|
|
|
|
}
|
|
|
|
|
workFlowSetUnDelete(this.selectedRowKeys).then(res => {
|
|
|
|
|
this.getList()
|
|
|
|
|
this.modelObj = res.data
|
|
|
|
|
this.$refs.manyModel.bcFileFlag = true
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.warning('请选择')
|
|
|
|
@ -267,7 +313,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
handleRefsh() {
|
|
|
|
|
this.$refs.query.resetFields()
|
|
|
|
|
this.queryParam = { create: [], update: [] }
|
|
|
|
|
this.queryParam = { create: [], update: [], pubDate: [] }
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
handleSearch() {
|
|
|
|
@ -279,6 +325,10 @@ export default {
|
|
|
|
|
this.queryParam.updateBegin = this.queryParam.update[0]
|
|
|
|
|
this.queryParam.updateEnd = this.queryParam.update[1]
|
|
|
|
|
}
|
|
|
|
|
if (this.queryParam.pubDate.length > 0) {
|
|
|
|
|
this.queryParam.publishBegin = this.queryParam.pubDate[0]
|
|
|
|
|
this.queryParam.publishEnd = this.queryParam.pubDate[1]
|
|
|
|
|
}
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
getList() {
|
|
|
|
@ -287,12 +337,14 @@ export default {
|
|
|
|
|
pageSize: this.pagination.pageSize,
|
|
|
|
|
...this.queryParam
|
|
|
|
|
}
|
|
|
|
|
this.loading = true
|
|
|
|
|
ServiceWorkFlowBaseGetPage(data).then(res => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.list = res.data.items
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
this.loading = false
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
tablePaginationChange(pagination) {
|
|
|
|
|