|
@@ -50,25 +50,25 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
- <el-form-item label="咨询截止时间" prop="endtime" class="clear">
|
|
|
|
|
|
+ <el-form-item label="竞价截止时间" prop="endtime" class="clear">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="ruleForm.endtime"
|
|
v-model="ruleForm.endtime"
|
|
type="datetime"
|
|
type="datetime"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
:picker-options="pickerOptions"
|
|
:picker-options="pickerOptions"
|
|
- placeholder="咨询截止时间"
|
|
|
|
|
|
+ placeholder="竞价截止时间"
|
|
>
|
|
>
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
- <el-form-item label="咨询类型" prop="is_project" class="clear">
|
|
|
|
|
|
+ <el-form-item label="竞价类型" prop="is_project" class="clear">
|
|
<el-select
|
|
<el-select
|
|
v-model="ruleForm.is_project"
|
|
v-model="ruleForm.is_project"
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
:disabled="false"
|
|
:disabled="false"
|
|
- placeholder="咨询类型"
|
|
|
|
|
|
+ placeholder="竞价类型"
|
|
@change="is_project_change"
|
|
@change="is_project_change"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
@@ -111,13 +111,13 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8" v-if="ruleForm.is_project === '1'">
|
|
<el-col :span="8" v-if="ruleForm.is_project === '1'">
|
|
<el-form-item
|
|
<el-form-item
|
|
- label="项目咨询截止时间"
|
|
|
|
|
|
+ label="项目竞价截止时间"
|
|
class="clear"
|
|
class="clear"
|
|
required
|
|
required
|
|
label-width="140px"
|
|
label-width="140px"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
- placeholder="项目咨询截止时间"
|
|
|
|
|
|
+ placeholder="项目竞价截止时间"
|
|
v-model="ruleForm.pendtime"
|
|
v-model="ruleForm.pendtime"
|
|
disabled
|
|
disabled
|
|
maxlength="500"
|
|
maxlength="500"
|
|
@@ -214,7 +214,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-co :span="24">
|
|
<el-co :span="24">
|
|
- <el-form-item label="咨询商品要求" class="clear" required>
|
|
|
|
|
|
+ <el-form-item label="竞价商品要求" class="clear" required>
|
|
<el-table
|
|
<el-table
|
|
:data="tableData"
|
|
:data="tableData"
|
|
stripe
|
|
stripe
|
|
@@ -407,13 +407,13 @@ export default {
|
|
},
|
|
},
|
|
status: "", //存储详情接口返的状态
|
|
status: "", //存储详情接口返的状态
|
|
ruleForm: {
|
|
ruleForm: {
|
|
- is_project: "0", //咨询类型 1非项目2项目,
|
|
|
|
|
|
+ is_project: "0", //竞价类型 1非项目2项目,
|
|
projectNo: [], //项目编号
|
|
projectNo: [], //项目编号
|
|
khNo: [], //客户编号
|
|
khNo: [], //客户编号
|
|
customer_name: "", //客户名称
|
|
customer_name: "", //客户名称
|
|
companyNo: "",
|
|
companyNo: "",
|
|
- endtime: "", //咨询截止时间
|
|
|
|
- pendtime: "", //项目咨询截止时间
|
|
|
|
|
|
+ endtime: "", //竞价截止时间
|
|
|
|
+ pendtime: "", //项目竞价截止时间
|
|
platform_code: "", //平台id
|
|
platform_code: "", //平台id
|
|
use_desc: "",
|
|
use_desc: "",
|
|
budget_total: "",
|
|
budget_total: "",
|
|
@@ -447,7 +447,7 @@ export default {
|
|
endtime: [
|
|
endtime: [
|
|
{
|
|
{
|
|
required: true,
|
|
required: true,
|
|
- message: "咨询截止时间不能为空",
|
|
|
|
|
|
+ message: "竞价截止时间不能为空",
|
|
trigger: "change",
|
|
trigger: "change",
|
|
},
|
|
},
|
|
],
|
|
],
|
|
@@ -455,7 +455,7 @@ export default {
|
|
is_project: [
|
|
is_project: [
|
|
{
|
|
{
|
|
required: true,
|
|
required: true,
|
|
- message: "请选择咨询类型!",
|
|
|
|
|
|
+ message: "请选择竞价类型!",
|
|
trigger: "change",
|
|
trigger: "change",
|
|
},
|
|
},
|
|
],
|
|
],
|
|
@@ -568,7 +568,7 @@ export default {
|
|
}
|
|
}
|
|
this.showModel = false;
|
|
this.showModel = false;
|
|
},
|
|
},
|
|
- //咨询类型选择
|
|
|
|
|
|
+ //竞价类型选择
|
|
is_project_change() {
|
|
is_project_change() {
|
|
const { is_project } = this.ruleForm;
|
|
const { is_project } = this.ruleForm;
|
|
if (is_project === "0") {
|
|
if (is_project === "0") {
|
|
@@ -589,23 +589,23 @@ export default {
|
|
this.$refs.ruleForm.resetFields();
|
|
this.$refs.ruleForm.resetFields();
|
|
this.$refs.ruleForm.clearValidate();
|
|
this.$refs.ruleForm.clearValidate();
|
|
let {
|
|
let {
|
|
- is_project, //咨询类型 1销售2咨询,
|
|
|
|
|
|
+ is_project, //竞价类型 1销售2竞价,
|
|
projectNo, //项目编号
|
|
projectNo, //项目编号
|
|
khNo, //客户编号
|
|
khNo, //客户编号
|
|
customer_name, //客户名称
|
|
customer_name, //客户名称
|
|
companyNo,
|
|
companyNo,
|
|
- endtime, //咨询截止时间
|
|
|
|
|
|
+ endtime, //竞价截止时间
|
|
platform_code, //平台id
|
|
platform_code, //平台id
|
|
ladder,
|
|
ladder,
|
|
} = this.sitem;
|
|
} = this.sitem;
|
|
|
|
|
|
this.ruleForm = {
|
|
this.ruleForm = {
|
|
- is_project: is_project || "0", //咨询类型 1项目 0 非项目
|
|
|
|
|
|
+ is_project: is_project || "0", //竞价类型 1项目 0 非项目
|
|
projectNo: projectNo ? [projectNo] : [], //项目编号
|
|
projectNo: projectNo ? [projectNo] : [], //项目编号
|
|
khNo: khNo ? [khNo] : [], //客户编号
|
|
khNo: khNo ? [khNo] : [], //客户编号
|
|
customer_name: customer_name || "", //客户名称
|
|
customer_name: customer_name || "", //客户名称
|
|
companyNo: companyNo || this.business_companyNo || "",
|
|
companyNo: companyNo || this.business_companyNo || "",
|
|
- endtime: endtime || "", //咨询截止时间
|
|
|
|
|
|
+ endtime: endtime || "", //竞价截止时间
|
|
platform_code: platform_code || "", //平台id
|
|
platform_code: platform_code || "", //平台id
|
|
use_desc: "",
|
|
use_desc: "",
|
|
budget_total: "",
|
|
budget_total: "",
|
|
@@ -637,12 +637,12 @@ export default {
|
|
is_project === "1" &&
|
|
is_project === "1" &&
|
|
new Date(endtime).getTime() > new Date(pendtime).getTime()
|
|
new Date(endtime).getTime() > new Date(pendtime).getTime()
|
|
) {
|
|
) {
|
|
- this.$message.warning("咨询截止时间不能晚于项目咨询截止时间!");
|
|
|
|
|
|
+ this.$message.warning("竞价截止时间不能晚于项目竞价截止时间!");
|
|
this.loading = false;
|
|
this.loading = false;
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (new Date(endtime).getTime() <= new Date().getTime()) {
|
|
if (new Date(endtime).getTime() <= new Date().getTime()) {
|
|
- this.$message.warning("咨询截止时间应该大于当前时间!");
|
|
|
|
|
|
+ this.$message.warning("竞价截止时间应该大于当前时间!");
|
|
this.loading = false;
|
|
this.loading = false;
|
|
return;
|
|
return;
|
|
}
|
|
}
|