salary
qsh 5 months ago
parent 8df1f7d25a
commit 37818cb1e6
  1. 5
      src/api/clue/sign.js
  2. 2
      src/views/Clue/Order/Comp/AfterSales.vue
  3. 2
      src/views/Clue/Order/Comp/DialogAfterSaleDetail.vue
  4. 6
      src/views/Clue/Order/Comp/DialogFeeback.vue
  5. 2
      src/views/Clue/Order/Comp/DialogFeebackDetail.vue
  6. 30
      src/views/Clue/Order/Comp/OrderList.vue
  7. 2
      src/views/Clue/Order/Comp/Reback.vue
  8. 3
      src/views/Clue/Pool/Comp/DrawerClue.vue
  9. 1
      src/views/Clue/Pool/index.vue
  10. 8
      src/views/Clue/Set/index.vue

@ -14,3 +14,8 @@ export const getSign = async (id) => {
export const createSign = async (data) => {
return await request.post({ url: '/admin-api/crm/sign/create', data: data })
}
// 取消登记
export const cancelDeal = async (id) => {
return await request.delete({ url: '/admin-api/crm/sign/delete?id=' + id })
}

@ -189,7 +189,7 @@ async function getList() {
const batchIds = ref([])
function handleSelectionChange(val) {
batchIds.value = val
batchIds.value = val.map((it) => it.id)
}
const batchAuditDialog = ref()

@ -90,7 +90,7 @@ const auditSchema = [
span: 1
},
{
field: 'checkUserName',
field: 'checkUser',
label: '审核人',
span: 1
},

@ -18,8 +18,8 @@
</el-form-item>
<el-form-item label="是否结清" prop="isPayoff">
<el-radio-group v-model="form.isPayoff">
<el-radio label="结清"> 结清 </el-radio>
<el-radio label="未结清"> 未结清 </el-radio>
<el-radio :label="true"> 结清 </el-radio>
<el-radio :label="false"> 未结清 </el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="备注">
@ -69,7 +69,7 @@ function handleAdd() {
form.value = {
signId: orderId.value,
money: undefined,
isPayoff: '结清',
isPayoff: true,
remark: undefined
}
}

@ -80,7 +80,7 @@ const auditSchema = [
span: 1
},
{
field: 'checkUserName',
field: 'checkUser',
label: '审核人',
span: 1
},

@ -121,7 +121,7 @@
:label="item.label"
min-width="120px"
/>
<el-table-column label="操作" width="200px" fixed="right">
<el-table-column label="操作" width="240px" fixed="right">
<template #default="scope">
<el-button
type="primary"
@ -158,12 +158,22 @@
class="mr-10px"
link
style="padding: 0; margin-left: 0"
v-if="scope.row.isPayoff == '未结清'"
v-if="scope.row.isPayoff == false"
v-hasPermi="['clue:order:return']"
@click="feeBack(scope.row)"
>
回款
</el-button>
<el-button
type="primary"
class="mr-10px"
link
style="padding: 0; margin-left: 0"
v-hasPermi="['clue:pool:enroll']"
@click="cancelDeal(scope.row)"
>
取消登记
</el-button>
</template>
</el-table-column>
</SSTable>
@ -191,6 +201,7 @@ import { removeNullField } from '@/utils'
import { useAppStore } from '@/store/modules/app'
const appStore = useAppStore()
const message = useMessage() //
const allSchemas = ref({})
@ -297,6 +308,21 @@ function feeBack(row) {
feedbackDialog.value.open(row.signId)
}
//
async function cancelDeal(row) {
try {
//
await message.confirm('是否确认取消登记该线索?')
//
await SignApi.cancelDeal(row.signId)
message.success('取消登记成功!')
//
await getTableList()
} catch (err) {
console.log(err)
}
}
function changeSchool() {
searchForm.value.signPlace = undefined
searchForm.value.signClass = undefined

@ -188,7 +188,7 @@ async function getList() {
const batchIds = ref([])
function handleSelectionChange(val) {
batchIds.value = val
batchIds.value = val.map((it) => it.id)
}
const batchAuditDialog = ref()

@ -99,7 +99,8 @@
<span>操作人{{ item.operateUserName }}</span>
</div>
<div class="pt-5px pb-5px">
<span>{{ item.content }}</span>
<!-- <span>{{ item.content }}</span> -->
<span v-dompurify-html="item.content"></span>
</div>
<div class="flex" style="align-items: center">
<Icon icon="ep:clock" class="mr-5px" />

@ -109,6 +109,7 @@
<el-button
type="primary"
link
:disabled="scope.row.state"
@click="handleSuccess(scope.row)"
v-hasPermi="['clue:pool:enroll']"
>

@ -10,20 +10,20 @@
<el-tab-pane label="线索来源" :name="15" v-if="checkPermi(['clue:setting:clue-resource'])">
<ClueSource v-if="tabIndex == 15" />
</el-tab-pane>
<!-- <el-tab-pane
<el-tab-pane
label="线索获取规则"
:name="20"
v-if="checkPermi(['clue:setting:clue-get-rules'])"
>
<ClueGet v-if="tabIndex == 20" />
</el-tab-pane> -->
<!-- <el-tab-pane
</el-tab-pane>
<el-tab-pane
label="线索分配规则"
:name="30"
v-if="checkPermi(['clue:setting:clue-send-rules'])"
>
<ClueSend v-if="tabIndex == 30" />
</el-tab-pane> -->
</el-tab-pane>
<el-tab-pane label="意向状态" :name="35" v-if="checkPermi(['clue:setting:intention-status'])">
<IntentionStatus v-if="tabIndex == 35" />
</el-tab-pane>

Loading…
Cancel
Save