szh_zidingyibiaoti
lilu 2 years ago
commit 8ba2cc6425

@ -72,7 +72,7 @@ export default {
}, },
data() { data() {
return { return {
id: this.$route.query.id, // id: this.$route.query.id,
PrintModalVisible: false, PrintModalVisible: false,
templateType: [], templateType: [],
PrintType: '1', PrintType: '1',
@ -116,7 +116,7 @@ export default {
}) })
}, },
FSnhowPrintModal() { FSnhowPrintModal() {
if (this.details.id && this.details.id !== this.id) { if (this.details.id) {
this.cateCode = 'fendan_print' this.cateCode = 'fendan_print'
let printType = '' let printType = ''
if (this.printType == 4) { if (this.printType == 4) {
@ -144,7 +144,7 @@ export default {
let printType = this.PrintType == 4 ? 20 : 10 let printType = this.PrintType == 4 ? 20 : 10
BookingOrderPrintOrder({ BookingOrderPrintOrder({
templateId, templateId,
bookingId: this.id, bookingId: this.details.id,
cateCode: this.cateCode, cateCode: this.cateCode,
type: this.PrintType, type: this.PrintType,
printType printType

@ -419,14 +419,13 @@ export default {
tableRules: rules.tableRules, tableRules: rules.tableRules,
hasTableRules: false, hasTableRules: false,
inSave: false, inSave: false,
sedOrderList: JSON.parse(JSON.stringify(this.parSedOrderList)) || [], sedOrderList: JSON.parse(JSON.stringify(this.parSedOrderList)) || []
// inLoading: false // inLoading: false
} }
}, },
watch: { watch: {
parSedOrderList: { parSedOrderList: {
handler(nval, oval) { handler(nval, oval) {},
},
deep: true deep: true
}, },
editDetails: { editDetails: {
@ -470,7 +469,7 @@ export default {
if (Object.keys(data).length > 0) { if (Object.keys(data).length > 0) {
this.sedOrderList = JSON.parse(JSON.stringify(data)) this.sedOrderList = JSON.parse(JSON.stringify(data))
} else { } else {
this.sedOrderList = [] this.sedOrderList = []
} }
// else if (this.parSedOrderList.length > 0) { // else if (this.parSedOrderList.length > 0) {
// this.sedOrderList = JSON.parse(JSON.stringify(this.parSedOrderList)) // this.sedOrderList = JSON.parse(JSON.stringify(this.parSedOrderList))
@ -581,7 +580,9 @@ export default {
changeDetailFun(data) { changeDetailFun(data) {
// console.log('== 2 load ==', this.inSave, this.inSecLoad) // console.log('== 2 load ==', this.inSave, this.inSecLoad)
if (this.inSave || this.inSecLoad || this.sedOrderList.length === 0) { return false } if (this.inSave || this.inSecLoad || this.sedOrderList.length === 0) {
return false
}
const { detail, type } = data const { detail, type } = data
if (!detail.bookingEDIExt) { if (!detail.bookingEDIExt) {
detail.bookingEDIExt = bookingEDIExt detail.bookingEDIExt = bookingEDIExt
@ -758,32 +759,33 @@ export default {
changeParentTabs(type) { changeParentTabs(type) {
this.mainOrderActiveKey = type this.mainOrderActiveKey = type
}, },
removeSedOrderFun (data, index) { removeSedOrderFun(data, index) {
this.deleteBookingOrder(data.id, index) this.deleteBookingOrder(data.id, index)
}, },
removeFun () { removeFun() {
this.deleteBookingOrder(this.editDetails.id, this.editIndex) this.deleteBookingOrder(this.editDetails.id, this.editIndex)
}, },
deleteBookingOrder (id, index) { deleteBookingOrder(id, index) {
// eslint-disable-next-line eqeqeq // eslint-disable-next-line eqeqeq
if (id == 0) { if (id == 0) {
this.removeSucc(id, index) this.removeSucc(id, index)
return false return false
} }
this.inSecLoad = true this.inSecLoad = true
DeleteBookingOrder([id].toString()).then(res => { DeleteBookingOrder([id].toString())
if (res.success) { .then(res => {
this.$message.success('删除成功') if (res.success) {
this.removeSucc(id, index) this.$message.success('删除成功')
} else { this.removeSucc(id, index)
this.$message.error(res.message) } else {
} this.$message.error(res.message)
}) }
.catch(err => { })
console.log(err) .catch(err => {
}) console.log(err)
})
}, },
removeSucc (id, index) { removeSucc(id, index) {
const removeIndex = index const removeIndex = index
this.sedOrderList.splice(removeIndex, 1) this.sedOrderList.splice(removeIndex, 1)
this.$emit('sedOrderRemove', this.sedOrderList) this.$emit('sedOrderRemove', this.sedOrderList)
@ -804,7 +806,7 @@ export default {
}, 200) }, 200)
this.$forceUpdate() this.$forceUpdate()
}, },
cancelRemove () { cancelRemove() {
console.log('== 取消删除 ==') console.log('== 取消删除 ==')
} }
} }

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<!-- <a-card :bordered="false" :bodyStyle="tstyle"> <a-card :bordered="false" :bodyStyle="tstyle">
<div class="table-page-search-wrapper" :class="advanced ? 'Open' : 'Close'"> <div class="table-page-search-wrapper" :class="advanced ? 'Open' : 'Close'">
<a-form layout="inline"> <a-form layout="inline">
<a-row :gutter="48"> <a-row :gutter="48">
@ -8,7 +8,7 @@
<a-row :gutter="48"> <a-row :gutter="48">
<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.fieldName" allow-clear placeholder="请输入字段名称" /> <a-input v-model="queryParam.SearchValue" allow-clear placeholder="请输入字段名称" />
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
@ -17,16 +17,16 @@
<span class="table-page-search-submitButtons"> <span class="table-page-search-submitButtons">
<a-button type="primary" @click="FnQuery"></a-button> <a-button type="primary" @click="FnQuery"></a-button>
<a-button style="margin-left: 8px" @click="FnReset"></a-button> <a-button style="margin-left: 8px" @click="FnReset"></a-button>
<a @click="toggleAdvanced" style="margin-left: 8px"> <!-- <a @click="toggleAdvanced" style="margin-left: 8px">
{{ advanced ? '收起' : '展开' }} {{ advanced ? '收起' : '展开' }}
<a-icon :type="advanced ? 'up' : 'down'" /> <a-icon :type="advanced ? 'up' : 'down'" />
</a> </a> -->
</span> </span>
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form>
</div> </div>
</a-card> --> </a-card>
<a-card :bordered="false"> <a-card :bordered="false">
<vxe-toolbar> <vxe-toolbar>
<template #buttons> <template #buttons>
@ -77,6 +77,7 @@
import { DjyTenantConfigPage, DjyTenantConfigSave } from '@/api/modular/main/DjyTenantConfig' import { DjyTenantConfigPage, DjyTenantConfigSave } from '@/api/modular/main/DjyTenantConfig'
import addForm from './addForm.vue' import addForm from './addForm.vue'
import editForm from './editForm.vue' import editForm from './editForm.vue'
import { mapGetters } from 'vuex'
export default { export default {
components: { components: {
addForm, addForm,
@ -119,6 +120,9 @@ export default {
mounted() { mounted() {
this.init() this.init()
}, },
computed: {
...mapGetters(['userInfo'])
},
methods: { methods: {
FnQuery() { FnQuery() {
let Rdata = [] let Rdata = []
@ -168,6 +172,7 @@ export default {
this.loading = true this.loading = true
DjyTenantConfigPage(this.queryParam).then(res => { DjyTenantConfigPage(this.queryParam).then(res => {
if (res.code == 200) { if (res.code == 200) {
console.log(this.userInfo)
this.loadData = JSON.parse(res.data.rows[0].configJson) this.loadData = JSON.parse(res.data.rows[0].configJson)
this.DisplayLoadData = this.loadData this.DisplayLoadData = this.loadData
} else { } else {

Loading…
Cancel
Save