修改问题

master
sunzehua 1 year ago
parent d0b1acb1d6
commit e9521e1214

@ -233,3 +233,12 @@ export function StatusSkuBaseQueryList (parameter) {
params: parameter params: parameter
}) })
} }
// 服务流程
export function ServiceWorkFlowBaseGetPage (parameter) {
return axios({
url: '/ServiceWorkFlowBase/GetPage',
method: 'post',
data: parameter
})
}

@ -83,6 +83,7 @@ body {
} }
.topmenu { .topmenu {
overflow-x: hidden;
.ant-header-fixedHeader { .ant-header-fixedHeader {
position: fixed; position: fixed;
top: 0; top: 0;

@ -15,6 +15,7 @@
:details="bookingDetails" :details="bookingDetails"
:inChildLoading="inChildLoading" :inChildLoading="inChildLoading"
:class="scrollTop < 100 ? 'normal-nav' : 'fixed-nav'" :class="scrollTop < 100 ? 'normal-nav' : 'fixed-nav'"
:scrollTop="scrollTop"
@refresh="refreshPage" @refresh="refreshPage"
@save="saveFun" @save="saveFun"
@rules="getRules" @rules="getRules"
@ -450,7 +451,8 @@ export default {
window.addEventListener( window.addEventListener(
'scroll', 'scroll',
() => { () => {
this.scrollTop = document.getElementsByClassName('sidemenu')[0].scrollTop this.scrollTop = document.getElementsByClassName('sidemenu')[0] ? document.getElementsByClassName('sidemenu')[0].scrollTop : document.getElementsByClassName('topmenu')[0].scrollTop
console.log(this.scrollTop)
}, },
true true
) )

@ -72,6 +72,10 @@
<div class="btn-list single-view-4"> <div class="btn-list single-view-4">
<button @click="FnGoSendCar"><span class="iconfont icon-yunshu1"></span>派车</button> <button @click="FnGoSendCar"><span class="iconfont icon-yunshu1"></span>派车</button>
</div> </div>
<div v-if="scrollTop>100" class="btn-list single-view-2">
<div>提单号:{{ details.mblno }}</div>
<div>委托单位:{{ details.customername }}</div>
</div>
</a-card> </a-card>
<!-- 弹窗部分 start --> <!-- 弹窗部分 start -->
@ -716,7 +720,6 @@ import {
GetYardlist GetYardlist
} from '@/api/modular/main/BookingLedger' } from '@/api/modular/main/BookingLedger'
import { BookingTruckGetTruckListByBooking } from '@/api/modular/main/SendCar' import { BookingTruckGetTruckListByBooking } from '@/api/modular/main/SendCar'
import { DICT_TYPE_TREE_DATA } from '@/store/mutation-types'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import preOrder from './preOrder' import preOrder from './preOrder'
export default { export default {
@ -727,6 +730,10 @@ export default {
return {} return {}
} }
}, },
scrollTop: {
type: Number,
default: 0
},
inChildLoading: { inChildLoading: {
type: Boolean, type: Boolean,
default: false default: false

@ -87,6 +87,7 @@
<span v-else-if="item.title == ''">{{ FnRName(row[item.dataIndex]) }}</span> <span v-else-if="item.title == ''">{{ FnRName(row[item.dataIndex]) }}</span>
<span v-else-if="item.title == ''">{{ FnRCarrier(row[item.dataIndex]) }}</span> <span v-else-if="item.title == ''">{{ FnRCarrier(row[item.dataIndex]) }}</span>
<span v-else-if="item.title == ''">{{ FnRSendType(row[item.dataIndex]) }}</span> <span v-else-if="item.title == ''">{{ FnRSendType(row[item.dataIndex]) }}</span>
<span v-else-if="item.title == ''">{{ row[item.dataIndex]?'是':'否' }}</span>
<span v-else>{{ row[item.dataIndex] }}</span> <span v-else>{{ row[item.dataIndex] }}</span>
</template> </template>
</vxe-column> </vxe-column>
@ -327,6 +328,12 @@ export default {
align: 'center', align: 'center',
width: '100', width: '100',
dataIndex: 'notifypartytel' dataIndex: 'notifypartytel'
},
{
title: '主动模式',
align: 'center',
width: '100',
dataIndex: 'ftpModeActive'
} }
], ],
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' }, tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },

@ -0,0 +1,144 @@
<template>
<a-modal
title="服务项目编辑"
:width="900"
:visible="visible"
@cancel="handleCancel"
:confirmLoading="confirmLoading"
>
<a-spin :spinning="confirmLoading">
<a-form :form="form">
<a-form-item
label="状态名称"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
has-feedback
>
<a-input placeholder="状态名称" v-decorator="['statusSKUName', {rules: [{required: true, message: ''}]}]" />
</a-form-item>
<a-form-item
label="状态代码"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
has-feedback
>
<a-input placeholder="状态代码" v-decorator="['statusSKUCode', {rules: [{required: true, message: ''}]}]" />
</a-form-item>
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
label="显示颜色"
>
<a-input style="width: 85%;margin-right: 20px;" placeholder="显示颜色" v-decorator="['backgroundColor', {rules: [{required: true, message: ''}]}]" />
<input @input="handleColor($event)" type="color">
</a-form-item>
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
label="排序"
>
<a-input-number placeholder="请输入排序" style="width: 100%" v-decorator="['sortNo']" :min="1" :max="1000" />
</a-form-item>
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
label="状态说明"
>
<a-textarea placeholder="状态说明" v-decorator="['statusSKUNote', {rules: [{required: true, message: ''}]}]" :rows="4" />
</a-form-item>
</a-form>
</a-spin>
<template slot="footer">
<a-button @click="handleCancel" >
关闭
</a-button>
<a-button @click="handleSubmit" type="primary">
保存
</a-button>
<a-button @click="handleSubmitEnable" type="primary">
保存并启用
</a-button>
</template>
</a-modal>
</template>
<script>
import { StatusSkuBaseSave, StatusSkuBaseSavAndEnable } from '@/api/modular/system/appManage'
export default {
data () {
return {
labelCol: {
xs: { span: 24 },
sm: { span: 5 }
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 15 }
},
visible: false,
confirmLoading: false,
form: this.$form.createForm(this)
}
},
methods: {
//
add () {
this.visible = true
},
handleSubmit () {
const { form: { validateFields } } = this
this.confirmLoading = true
validateFields((errors, values) => {
if (!errors) {
values.pkId = null
StatusSkuBaseSave(values).then((res) => {
this.confirmLoading = false
if (res.data.succ) {
this.$message.success('新增成功')
this.handleCancel()
this.$emit('ok', values)
} else {
this.$message.error('新增失败:' + res.data.msg)
}
}).finally((res) => {
this.confirmLoading = false
})
} else {
this.confirmLoading = false
}
})
},
handleColor(e) {
this.form.setFieldsValue({
backgroundColor: e.target.value
})
},
handleSubmitEnable() {
const { form: { validateFields } } = this
this.confirmLoading = true
validateFields((errors, values) => {
if (!errors) {
values.pkId = null
StatusSkuBaseSavAndEnable(values).then((res) => {
this.confirmLoading = false
if (res.data.succ) {
this.$message.success('新增成功')
this.handleCancel()
this.$emit('ok', values)
} else {
this.$message.error('新增失败:' + res.data.msg)
}
}).finally((res) => {
this.confirmLoading = false
})
} else {
this.confirmLoading = false
}
})
},
handleCancel () {
this.form.resetFields()
this.visible = false
}
}
}
</script>

@ -0,0 +1,179 @@
<template>
<a-modal title="服务项目编辑" :width="900" :visible="visible" @cancel="handleCancel" :confirmLoading="confirmLoading">
<a-spin :spinning="confirmLoading">
<a-form :form="form">
<a-form-item label="状态名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-input
placeholder="状态名称"
v-decorator="['statusSKUName', { rules: [{ required: true, message: '请输入状态名称!' }] }]" />
</a-form-item>
<a-form-item label="状态代码" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-input
placeholder="状态代码"
v-decorator="['statusSKUCode', { rules: [{ required: true, message: '请输入状态代码!' }] }]" />
</a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="显示颜色">
<a-input
style="width: 85%;margin-right: 20px;"
placeholder="显示颜色"
v-decorator="['backgroundColor', { rules: [{ required: true, message: '请输入显示颜色!' }] }]" />
<input @input="handleColor($event)" type="color">
</a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="排序">
<a-input-number placeholder="请输入排序" style="width: 100%" v-decorator="['sortNo']" :min="1" :max="1000" />
</a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="状态说明">
<a-textarea
placeholder="状态说明"
v-decorator="['statusSKUNote', { rules: [{ required: true, message: '请输入状态说明!' }] }]"
:rows="4" />
</a-form-item>
</a-form>
</a-spin>
<template slot="footer">
<a-button @click="handleCancel">
关闭
</a-button>
<a-button @click="handleDelete" type="danger">
删除
</a-button>
<a-button @click="handleUnable">
取消启用
</a-button>
<a-button @click="handleAble" type="primary">
启用
</a-button>
<a-button @click="handleSubmit" type="primary">
保存
</a-button>
<a-button @click="handleSubmitEnable" type="primary">
保存并启用
</a-button>
</template>
</a-modal>
</template>
<script>
import { StatusSkuBaseSavAndEnable, StatusSkuBaseSave, StatusSkuBaseDelete, StatusSkuBaseSetUnEnable, StatusSkuBaseSetEnable } from '@/api/modular/system/appManage'
export default {
data() {
return {
labelCol: {
xs: { span: 24 },
sm: { span: 5 }
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 15 }
},
pkId: '',
visible: false,
confirmLoading: false,
form: this.$form.createForm(this)
}
},
methods: {
//
edit(record) {
this.visible = true
setTimeout(() => {
this.form.setFieldsValue(
{
statusSKUName: record.statusSKUName,
statusSKUCode: record.statusSKUCode,
sortNo: record.sortNo,
backgroundColor: record.backgroundColor,
statusSKUNote: record.statusSKUNote
}
)
this.pkId = record.pkId
}, 100)
},
handleColor(e) {
this.form.setFieldsValue({
backgroundColor: e.target.value
})
},
handleDelete() {
StatusSkuBaseDelete([this.pkId]).then(res => {
if (res.data.succ) {
this.$message.success('删除成功')
this.visible = false
this.$emit('ok')
} else {
this.$message.error(res.data.msg)
}
})
},
handleUnable() {
StatusSkuBaseSetUnEnable([this.pkId]).then(res => {
if (res.data.succ) {
this.$message.success('取消启用成功')
this.visible = false
} else {
this.$message.error(res.data.msg)
}
})
},
handleAble() {
StatusSkuBaseSetEnable([this.pkId]).then(res => {
if (res.data.succ) {
this.$message.success('启用成功')
this.visible = false
} else {
this.$message.error(res.data.msg)
}
})
},
handleSubmit() {
const { form: { validateFields } } = this
this.confirmLoading = true
validateFields((errors, values) => {
if (!errors) {
values.pkId = this.pkId
StatusSkuBaseSave(values).then((res) => {
this.confirmLoading = false
if (res.data.succ) {
this.$message.success('新增成功')
this.handleCancel()
this.$emit('ok')
} else {
this.$message.error('新增失败:' + res.data.msg)
}
}).finally((res) => {
this.confirmLoading = false
})
} else {
this.confirmLoading = false
}
})
},
handleSubmitEnable() {
const { form: { validateFields } } = this
this.confirmLoading = true
validateFields((errors, values) => {
if (!errors) {
values.pkId = this.pkId
StatusSkuBaseSavAndEnable(values).then((res) => {
this.confirmLoading = false
if (res.data.succ) {
this.$message.success('新增成功')
this.handleCancel()
this.$emit('ok', values)
} else {
this.$message.error('新增失败:' + res.data.msg)
}
}).finally((res) => {
this.confirmLoading = false
})
} else {
this.confirmLoading = false
}
})
},
handleCancel() {
this.form.resetFields()
this.visible = false
}
}
}
</script>

@ -0,0 +1,321 @@
<template>
<div>
<x-card>
<div slot="content" class="table-page-search-wrapper">
<a-form-model ref="query" layout="inline">
<a-row :gutter="10">
<a-col :md="6" :sm="24">
<a-form-item label="流程名称">
<a-input v-model="queryParam.statusSKUName" allow-clear placeholder="状态名称" />
</a-form-item>
</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>
</a-form-item>
</a-col>
<a-col :md="6" :sm="24">
<a-form-item label="是否启用">
<a-select v-model="queryParam.isEnable" default-value="lucy">
<a-select-option value="1">
</a-select-option>
<a-select-option value="2">
</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.createUser" allow-clear placeholder="创建人" />
</a-form-item>
</a-col>
<a-col :md="6" :sm="24">
<a-form-item label="流程说明">
<a-input v-model="queryParam.statusSKUNote" allow-clear placeholder="状态说明" />
</a-form-item>
</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>
</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>
</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>
</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">
<span class="table-page-search-submitButtons">
<a-button type="primary" @click="handleSearch"></a-button>
<a-button style="margin-left: 8px" @click="handleRefsh"></a-button>
</span>
</a-col>
</a-row>
</a-form-model>
</div>
</x-card>
<a-card :bordered="false">
<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="handleStop"></a-button>
<a-popconfirm title="确认作废吗?" @confirm="handleDelete">
<a-button type="danger">作废</a-button>
</a-popconfirm>
</div>
<a-spin :spinning="loading">
<a-table
ref="table"
:columns="columns"
:data-source="list"
:pagination="pagination"
@change="tablePaginationChange"
:rowKey="(record) => record.pkId"
:rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }">
<span slot="action" slot-scope="text, record">
<a @click="$refs.editForm.edit(record)"></a>
</span>
</a-table>
<add-form ref="addForm" @ok="handleOk" />
<edit-form ref="editForm" @ok="handleOk" />
</a-spin>
</a-card>
</div>
</template>
<script>
import {
STable,
XCard
} from '@/components'
import {
ServiceWorkFlowBaseGetPage,
StatusSkuBaseSetEnable,
StatusSkuBaseSetUnEnable,
StatusSkuBaseDelete
} from '@/api/modular/system/appManage'
import editForm from './editForm'
import addForm from './addForm'
export default {
components: {
XCard,
STable,
editForm,
addForm
},
data() {
return {
labelCol: {
xs: {
span: 24
},
sm: {
span: 5
}
},
wrapperCol: {
xs: {
span: 24
},
sm: {
span: 16
}
},
//
queryParam: {
create: [],
update: []
},
//
columns: [{
title: '服务流程名称',
dataIndex: 'serviceWorkflowName'
},
{
title: '服务流程代码',
dataIndex: 'serviceWorkflowCode'
},
{
title: '状态数量',
dataIndex: 'sortNo'
},
{
title: '版本号',
dataIndex: 'statusSKUNote'
},
{
title: '说明',
dataIndex: 'serviceWorkflowNote'
},
{
title: '是否启用',
dataIndex: 'isEnable'
},
{
title: '所属租户',
dataIndex: 'belongTenantName'
},
{
title: '发布日期',
dataIndex: 'createdTime1'
},
{
title: '创建日期',
dataIndex: 'createdTime'
},
{
title: '创建人',
dataIndex: 'createdUserName'
},
{
title: '更新日期',
dataIndex: 'updatedTime'
},
{
title: '更新人',
dataIndex: 'updatedUserName'
},
{
title: '操作',
width: '200px',
dataIndex: 'action',
scopedSlots: {
customRender: 'action'
}
}
],
loading: false,
list: [],
selectedRowKeys: [],
pagination: {
current: 1,
total: 0, //
showSizeChanger: true,
pageSizeOptions: ['1', '10', '20', '40', '80', '100'],
pageSize: 10
}
}
},
created() {
this.getList()
},
methods: {
handleOk() {
this.getList()
},
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)
}
})
} else {
this.$message.warning('请选择')
}
},
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)
}
})
} else {
this.$message.warning('请选择')
}
},
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)
}
})
} else {
this.$message.warning('请选择')
}
},
handleRefsh() {
this.$refs.query.resetFields()
this.queryParam = { create: [], update: [] }
this.getList()
},
handleSearch() {
if (this.queryParam.create.length > 0) {
this.queryParam.createBegin = this.queryParam.create[0]
this.queryParam.createEnd = this.queryParam.create[1]
}
if (this.queryParam.update.length > 0) {
this.queryParam.updateBegin = this.queryParam.update[0]
this.queryParam.updateEnd = this.queryParam.update[1]
}
this.getList()
},
getList() {
const data = {
pageNo: this.pagination.current,
pageSize: this.pagination.pageSize,
...this.queryParam
}
ServiceWorkFlowBaseGetPage(data).then(res => {
if (res.success) {
this.list = res.data.items
} else {
this.$message.error(res.message)
}
})
},
tablePaginationChange(pagination) {
this.pagination.current = pagination.current
this.pagination.pageSize = pagination.pageSize
this.getList()
},
onSelectChange(selectedRowKeys, selectedRows) {
this.selectedRowKeys = selectedRowKeys
this.selectedRows = selectedRows
}
}
}
</script>
<style scoped>
.table-operator {
margin-bottom: 18px;
}
button {
margin-right: 8px;
}
</style>

@ -62,7 +62,7 @@
</a-modal> </a-modal>
</template> </template>
<script> <script>
import { StatusSkuBaseSave,StatusSkuBaseSavAndEnable } from '@/api/modular/system/appManage' import { StatusSkuBaseSave, StatusSkuBaseSavAndEnable } from '@/api/modular/system/appManage'
export default { export default {
data () { data () {
return { return {

@ -2,23 +2,30 @@
<a-modal title="服务项目编辑" :width="900" :visible="visible" @cancel="handleCancel" :confirmLoading="confirmLoading"> <a-modal title="服务项目编辑" :width="900" :visible="visible" @cancel="handleCancel" :confirmLoading="confirmLoading">
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<a-form :form="form"> <a-form :form="form">
<a-form-item label="服务项目名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> <a-form-item label="状态名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-input <a-input
placeholder="服务项目名称" placeholder="状态名称"
v-decorator="['serviceProjectName', { rules: [{ required: true, message: '请输入服务项目名称!' }] }]" /> v-decorator="['statusSKUName', { rules: [{ required: true, message: '请输入状态名称!' }] }]" />
</a-form-item> </a-form-item>
<a-form-item label="服务项目代码" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback> <a-form-item label="状态代码" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
<a-input <a-input
placeholder="服务项目代码" placeholder="状态代码"
v-decorator="['serviceProjectCode', { rules: [{ required: true, message: '请输入服务项目代码!' }] }]" /> v-decorator="['statusSKUCode', { rules: [{ required: true, message: '请输入状态代码!' }] }]" />
</a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="显示颜色">
<a-input
style="width: 85%;margin-right: 20px;"
placeholder="显示颜色"
v-decorator="['backgroundColor', { rules: [{ required: true, message: '请输入显示颜色!' }] }]" />
<input @input="handleColor($event)" type="color">
</a-form-item> </a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="排序"> <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="排序">
<a-input-number placeholder="请输入排序" style="width: 100%" v-decorator="['sortNo']" :min="1" :max="1000" /> <a-input-number placeholder="请输入排序" style="width: 100%" v-decorator="['sortNo']" :min="1" :max="1000" />
</a-form-item> </a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="服务项目说明"> <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="状态说明">
<a-textarea <a-textarea
placeholder="服务项目说明" placeholder="状态说明"
v-decorator="['serviceProjectNote', { rules: [{ required: true, message: '请输入服务项目说明!' }] }]" v-decorator="['statusSKUNote', { rules: [{ required: true, message: '请输入状态说明!' }] }]"
:rows="4" /> :rows="4" />
</a-form-item> </a-form-item>
</a-form> </a-form>
@ -46,7 +53,7 @@
</a-modal> </a-modal>
</template> </template>
<script> <script>
import { ServiceProjectSavAndEnable, ServiceProjectSave, ServiceProjectDelete, ServiceProjectSetUnEnable, ServiceProjectSetEnable } from '@/api/modular/system/appManage' import { StatusSkuBaseSavAndEnable, StatusSkuBaseSave, StatusSkuBaseDelete, StatusSkuBaseSetUnEnable, StatusSkuBaseSetEnable } from '@/api/modular/system/appManage'
export default { export default {
data() { data() {
return { return {
@ -71,17 +78,23 @@ export default {
setTimeout(() => { setTimeout(() => {
this.form.setFieldsValue( this.form.setFieldsValue(
{ {
serviceProjectCode: record.serviceProjectCode, statusSKUName: record.statusSKUName,
serviceProjectName: record.serviceProjectName, statusSKUCode: record.statusSKUCode,
sortNo: record.sortNo, sortNo: record.sortNo,
serviceProjectNote: record.serviceProjectNote backgroundColor: record.backgroundColor,
statusSKUNote: record.statusSKUNote
} }
) )
this.pkId = record.pkId this.pkId = record.pkId
}, 100) }, 100)
}, },
handleColor(e) {
this.form.setFieldsValue({
backgroundColor: e.target.value
})
},
handleDelete() { handleDelete() {
ServiceProjectDelete([this.pkId]).then(res => { StatusSkuBaseDelete([this.pkId]).then(res => {
if (res.data.succ) { if (res.data.succ) {
this.$message.success('删除成功') this.$message.success('删除成功')
this.visible = false this.visible = false
@ -92,7 +105,7 @@ export default {
}) })
}, },
handleUnable() { handleUnable() {
ServiceProjectSetUnEnable([this.pkId]).then(res => { StatusSkuBaseSetUnEnable([this.pkId]).then(res => {
if (res.data.succ) { if (res.data.succ) {
this.$message.success('取消启用成功') this.$message.success('取消启用成功')
this.visible = false this.visible = false
@ -102,7 +115,7 @@ export default {
}) })
}, },
handleAble() { handleAble() {
ServiceProjectSetEnable([this.pkId]).then(res => { StatusSkuBaseSetEnable([this.pkId]).then(res => {
if (res.data.succ) { if (res.data.succ) {
this.$message.success('启用成功') this.$message.success('启用成功')
this.visible = false this.visible = false
@ -117,7 +130,7 @@ export default {
validateFields((errors, values) => { validateFields((errors, values) => {
if (!errors) { if (!errors) {
values.pkId = this.pkId values.pkId = this.pkId
ServiceProjectSave(values).then((res) => { StatusSkuBaseSave(values).then((res) => {
this.confirmLoading = false this.confirmLoading = false
if (res.data.succ) { if (res.data.succ) {
this.$message.success('新增成功') this.$message.success('新增成功')
@ -140,7 +153,7 @@ export default {
validateFields((errors, values) => { validateFields((errors, values) => {
if (!errors) { if (!errors) {
values.pkId = this.pkId values.pkId = this.pkId
ServiceProjectSavAndEnable(values).then((res) => { StatusSkuBaseSavAndEnable(values).then((res) => {
this.confirmLoading = false this.confirmLoading = false
if (res.data.succ) { if (res.data.succ) {
this.$message.success('新增成功') this.$message.success('新增成功')

@ -5,8 +5,8 @@
<a-form-model ref="query" layout="inline"> <a-form-model ref="query" layout="inline">
<a-row :gutter="10"> <a-row :gutter="10">
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<a-form-item label="服务名称"> <a-form-item label="状态名称">
<a-input v-model="queryParam.serviceProjectName" allow-clear placeholder="服务名称" /> <a-input v-model="queryParam.statusSKUName" allow-clear placeholder="状态名称" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
@ -33,8 +33,8 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<a-form-item label="服务说明"> <a-form-item label="状态说明">
<a-input v-model="queryParam.serviceProjectNote" allow-clear placeholder="服务说明" /> <a-input v-model="queryParam.statusSKUNote" allow-clear placeholder="状态说明" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">

Loading…
Cancel
Save