Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ce3a82e6
authored
Apr 18, 2023
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
fc070c34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
src/views/clientManage/index.vue
src/views/clientManage/index.vue
View file @
ce3a82e
...
...
@@ -626,6 +626,10 @@ export default {
},
//重置表格
resetTable
()
{
Object
.
assign
(
this
.
keys
,
{
subject
:
''
,
festival
:
''
})
this
.
orderform
.
result
=
''
this
.
gptRequest
=
false
this
.
disabled
=
false
this
.
searchForm
=
{}
this
.
$refs
.
clientManage
.
refreshTable
()
// 点击之后强制页面刷新
...
...
@@ -678,7 +682,7 @@ export default {
const
order
=
this
.
orderform
.
order
// const content = '帮我查询从2023-3-29日至2023-04-05日期间西安飞广州或者深圳的机票,从上面一句话中提取出发日期,命名为date,出发地,命名为start,目的地,命名为end,输出json格式。'
const
content
=
`
${
order
}
,针对上面这段文字,
提取出营销
关键字,命名为subject,输出字符串
格式;
提取出营销
相关的关键字,命名为subject,输出数组
格式;
如果有提到购车时间,则提取出购车时间范围,命名为beginDate和endDate,格式为:yyyy-MM-dd,例如:2022-11-12;
提取出节日,命名为festival,如果是数字,转化成大写,例如:五一节;
提取出车主归属地,命名为carNumber,如广东的车主,则取值为"粤",广州的车主取值"粤A";
...
...
@@ -696,8 +700,8 @@ export default {
this
.
$message
.
error
(
'生成查询异常,请重试!'
)
return
}
const
{
subject
,
festival
,
beginDate
,
endDate
,
...
others
}
=
data
this
.
keys
=
{
subject
,
festival
}
const
{
subject
=
[]
,
festival
,
beginDate
,
endDate
,
...
others
}
=
data
this
.
keys
=
{
subject
:
subject
.
join
(
','
)
,
festival
}
//searchForm
this
.
searchForm
=
{
...
others
,
customerSex
:
data
.
customerSex
==
0
||
data
.
customerSex
==
null
?
null
:
Number
(
data
.
customerSex
)
}
if
(
beginDate
&&
endDate
)
{
...
...
@@ -713,9 +717,6 @@ export default {
},
async
handleResetOrder
()
{
this
.
orderform
.
result
=
''
this
.
gptRequest
=
false
this
.
disabled
=
false
await
this
.
resetTable
()
},
...
...
@@ -748,7 +749,7 @@ export default {
// cutomerInfo.push(`客户${index + 1},姓名:${customerName},性别:${{ 1: '男', 2: '女' }[customerSex] || '先生/女士'},电话:${customerPhone},购车日期:${buyDate},车牌号:${carNumber}`)
// }
// content += `${cutomerInfo.join(';')};请根据客户的特征,分别为每个客户生成一条50字左右关于${this.keys.subject || ''}的营销文案。字段命名为content;整条结果以数组输出,命名为customers。输出json格式.`
let
content
=
`今天是
${
dayjs
(
new
Date
()).
format
(
'YYYY年MM月DD日'
)}
。请帮我生成一条50字左右
关于
${
this
.
keys
.
festival
||
''
}
${
this
.
keys
.
subject
||
''
}
为主题的营销文案。字段命名为content;输出json格式.:
`
let
content
=
`今天是
${
dayjs
(
new
Date
()).
format
(
'YYYY年MM月DD日'
)}
。请帮我生成一条50字左右
的营销文案。关键字:
${
this
.
keys
.
festival
||
''
}
${
this
.
keys
.
subject
||
''
}
;字段命名为content;输出json格式.
`
// this.$apis.crowdManage.gpt(content).then(result => {
// const { code, success, message, data } = result
// if (code == '000000' && success) {
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment