|
@@ -16,6 +16,7 @@
|
|
|
<van-cell title="备注" :value="info.remark" />
|
|
|
</div>
|
|
|
<div class="bottomButton">
|
|
|
+ <van-button type="primary" class="w-full block" v-if="info.inchargerName" @click="transformBusinessOpportunities()">线索转商机</van-button>
|
|
|
<van-button type="warning" class="w-full block" v-if="info.inchargerName" @click="showDialogCli()">转移线索</van-button>
|
|
|
<van-button type="primary" class="w-full block" v-if="!info.inchargerName" @click="claimAndClaim()">认领线索</van-button>
|
|
|
<van-button type="default" class="w-full block" v-permission="[routingInformation.jurisdiction.edit]" @click="jumpEdit()">编辑线索</van-button>
|
|
@@ -70,6 +71,23 @@ const showDialog = ref(false);
|
|
|
const showSelect = ref(false);
|
|
|
const dialogSelection = ref({});
|
|
|
|
|
|
+function transformBusinessOpportunities() {
|
|
|
+ const InfoJson = routingInfos['business']
|
|
|
+ const formJson = fixedData.formJson[InfoJson.key] || []
|
|
|
+ const formList = resetListData(formJson?.list)
|
|
|
+ const filedObj = getListFieldKey(formList, props.info)
|
|
|
+ const formVal = { ...filedObj, inchargerId: '', name: props.info?.clueName, clueId: props.info?.id }
|
|
|
+ router.redirectTo({
|
|
|
+ pathName: 'addEditor',
|
|
|
+ success: () => {
|
|
|
+ router.emit('addEditorParameter', {
|
|
|
+ routerInfo: JSON.stringify(InfoJson),
|
|
|
+ filedValue: JSON.stringify(formVal)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
function deleteRow() {
|
|
|
const { name = '', searchFiled = {}, deteleFiled = '' } = routingInformation
|
|
|
const row = props.info
|