上传
This commit is contained in:
@@ -35,5 +35,5 @@ export const updatePlaceStatus = async (id, status) => {
|
|||||||
id,
|
id,
|
||||||
status
|
status
|
||||||
}
|
}
|
||||||
return request.put({ url: '/admin-api/crm/sch-place/update-status', data: data })
|
return request.put({ url: '/admin-api/crm/sch-place/status/update', data: data })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -233,6 +233,7 @@ export default defineComponent({
|
|||||||
vModel={formModel.value[item.field]}
|
vModel={formModel.value[item.field]}
|
||||||
{...(autoSetPlaceholder && setTextPlaceholder(item))}
|
{...(autoSetPlaceholder && setTextPlaceholder(item))}
|
||||||
{...setComponentProps(item)}
|
{...setComponentProps(item)}
|
||||||
|
filterable
|
||||||
format={item.component == 'DatePicker' ? 'YYYY-MM-DD' : null}
|
format={item.component == 'DatePicker' ? 'YYYY-MM-DD' : null}
|
||||||
value-format={item.component == 'DatePicker' ? 'YYYY-MM-DD' : null}
|
value-format={item.component == 'DatePicker' ? 'YYYY-MM-DD' : null}
|
||||||
style={baseSty + item.componentProps?.style}
|
style={baseSty + item.componentProps?.style}
|
||||||
|
|||||||
@@ -152,7 +152,7 @@
|
|||||||
class="mr-10px"
|
class="mr-10px"
|
||||||
link
|
link
|
||||||
style="padding: 0; margin-left: 0"
|
style="padding: 0; margin-left: 0"
|
||||||
v-if="scope.row.isPayoff == false"
|
v-if="scope.row.isPayoff == '未结清'"
|
||||||
v-hasPermi="['clue:order:return']"
|
v-hasPermi="['clue:order:return']"
|
||||||
@click="feeBack(scope.row)"
|
@click="feeBack(scope.row)"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -115,12 +115,22 @@
|
|||||||
class="mr-10px"
|
class="mr-10px"
|
||||||
link
|
link
|
||||||
style="padding: 0; margin-left: 0"
|
style="padding: 0; margin-left: 0"
|
||||||
v-if="scope.row.isPayoff == false"
|
v-if="scope.row.isPayoff == '未结清'"
|
||||||
v-hasPermi="['clue:order:return']"
|
v-hasPermi="['clue:order:return']"
|
||||||
@click="feeBack(scope.row)"
|
@click="feeBack(scope.row)"
|
||||||
>
|
>
|
||||||
回款
|
回款
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
class="mr-10px"
|
||||||
|
link
|
||||||
|
style="padding: 0; margin-left: 0"
|
||||||
|
v-hasPermi="['clue:order:add-fee']"
|
||||||
|
@click="handleAddFee(scope.row)"
|
||||||
|
>
|
||||||
|
添加支出
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
class="mr-10px"
|
class="mr-10px"
|
||||||
@@ -139,6 +149,7 @@
|
|||||||
<DialogOrder ref="orderDetailDialog" />
|
<DialogOrder ref="orderDetailDialog" />
|
||||||
<DialogFeeback ref="feedbackDialog" />
|
<DialogFeeback ref="feedbackDialog" />
|
||||||
<DialogAfterSale ref="afterSaleDialog" />
|
<DialogAfterSale ref="afterSaleDialog" />
|
||||||
|
<DialogExtraFee ref="extraFeeDialog" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -152,6 +163,7 @@ import { getClassTypePage } from '@/api/school/class'
|
|||||||
import DialogOrder from './DialogOrder.vue'
|
import DialogOrder from './DialogOrder.vue'
|
||||||
import DialogFeeback from './DialogFeeback.vue'
|
import DialogFeeback from './DialogFeeback.vue'
|
||||||
import DialogAfterSale from './DialogAfterSale.vue'
|
import DialogAfterSale from './DialogAfterSale.vue'
|
||||||
|
import DialogExtraFee from './DialogExtraPay.vue'
|
||||||
|
|
||||||
import { removeNullField } from '@/utils'
|
import { removeNullField } from '@/utils'
|
||||||
|
|
||||||
@@ -257,6 +269,11 @@ function feeBack(row) {
|
|||||||
feedbackDialog.value.open(row.signId)
|
feedbackDialog.value.open(row.signId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const extraFeeDialog = ref()
|
||||||
|
function handleAddFee(row) {
|
||||||
|
extraFeeDialog.value.open(row.signId)
|
||||||
|
}
|
||||||
|
|
||||||
// 取消登记
|
// 取消登记
|
||||||
async function cancelDeal(row) {
|
async function cancelDeal(row) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
</el-radio>
|
</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="getConfig('deliveryAutoStartPurchaseConfig')">
|
<el-form-item v-if="getConfig('deliveryAutoStartPurchaseConfig') && props.appType == 2">
|
||||||
<template #label>
|
<template #label>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
v-if="getConfig('deliveryAutoStartPurchaseConfig').remark"
|
v-if="getConfig('deliveryAutoStartPurchaseConfig').remark"
|
||||||
@@ -66,6 +66,13 @@ import * as ConfigApi from '@/api/system/set'
|
|||||||
|
|
||||||
const message = useMessage()
|
const message = useMessage()
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
appType: {
|
||||||
|
type: Number,
|
||||||
|
default: 1
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
const form = ref({})
|
const form = ref({})
|
||||||
|
|
||||||
const configList = ref([])
|
const configList = ref([])
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
<OtherPayType v-if="tabIndex == 37" />
|
<OtherPayType v-if="tabIndex == 37" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="常规设置" :name="40" v-if="checkPermi(['clue:setting:general-setting'])">
|
<el-tab-pane label="常规设置" :name="40" v-if="checkPermi(['clue:setting:general-setting'])">
|
||||||
<GeneralSet v-if="tabIndex == 40" />
|
<GeneralSet v-if="tabIndex == 40" :appType="appStore.getAppInfo?.instanceType" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<!-- <el-tab-pane label="消息通知" :name="50" v-if="checkPermi(['mall:setting:prod'])">
|
<!-- <el-tab-pane label="消息通知" :name="50" v-if="checkPermi(['mall:setting:prod'])">
|
||||||
<MsgSend v-if="tabIndex == 50" />
|
<MsgSend v-if="tabIndex == 50" />
|
||||||
@@ -56,6 +56,10 @@ import OtherPayType from './Comp/OtherPayType.vue'
|
|||||||
import GeneralSet from './Comp/GeneralSet.vue'
|
import GeneralSet from './Comp/GeneralSet.vue'
|
||||||
import { checkPermi } from '@/utils/permission'
|
import { checkPermi } from '@/utils/permission'
|
||||||
|
|
||||||
|
import { useAppStore } from '@/store/modules/app'
|
||||||
|
|
||||||
|
const appStore = useAppStore()
|
||||||
|
|
||||||
const tabIndex = ref(0)
|
const tabIndex = ref(0)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -190,8 +190,10 @@
|
|||||||
<el-table-column label="启用" width="100">
|
<el-table-column label="启用" width="100">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="scope.row.showInMap"
|
v-model="scope.row.status"
|
||||||
:disabled="checkPermi(['school:place:update'])"
|
:active-value="0"
|
||||||
|
:inactive-value="1"
|
||||||
|
:disabled="!checkPermi(['school:place:update'])"
|
||||||
@change="changePlaceStatus(scope.row)"
|
@change="changePlaceStatus(scope.row)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
@@ -531,11 +533,21 @@ function closePlaceList() {
|
|||||||
fullScreenPlaceList.value = false
|
fullScreenPlaceList.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
async function changePlaceStatus() {
|
async function changePlaceStatus(row) {
|
||||||
// const resp = await updatePlace(item);
|
try {
|
||||||
// if (resp.code == 200) {
|
// 修改状态的二次确认
|
||||||
resetMarkers()
|
const text = row.status == 0 ? '启用' : '停用'
|
||||||
// }
|
await message.confirm('确认要"' + text + '""' + row.name + '"场地吗?')
|
||||||
|
// 发起修改状态
|
||||||
|
await PlaceApi.updatePlaceStatus({ placeId: row.placeId, status: row.status })
|
||||||
|
message.success('修改成功')
|
||||||
|
// 刷新列表
|
||||||
|
// await getList()
|
||||||
|
resetMarkers()
|
||||||
|
} catch {
|
||||||
|
// 取消后,进行恢复按钮
|
||||||
|
row.status = row.status == 0 ? 1 : 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// const isRanging = ref(false)
|
// const isRanging = ref(false)
|
||||||
|
|||||||
Reference in New Issue
Block a user