|
@@ -33,9 +33,41 @@
|
|
}}</a-select-option>
|
|
}}</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
|
+ <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户类型">
|
|
|
|
+ <a-select
|
|
|
|
+ v-decorator="['advertiserType', validatorRules.advertiserId]"
|
|
|
|
+ >
|
|
|
|
+ <a-select-option :value="1">自拓客户</a-select-option>
|
|
|
|
+ <a-select-option :value="2">公司客户</a-select-option>
|
|
|
|
+ <a-select-option :value="3">代理商</a-select-option>
|
|
|
|
+ </a-select>
|
|
|
|
+ <!-- 1:自拓客户 2:公司客户 3:代理商 -->
|
|
|
|
+ </a-form-item>
|
|
|
|
+ <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="销售" v-if="getFormFieldValue('advertiserType')==1||getFormFieldValue('advertiserType')==2">
|
|
|
|
+ <a-select
|
|
|
|
+ showSearch
|
|
|
|
+ optionFilterProp="children"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ @focus="handleFocus"
|
|
|
|
+ @blur="handleBlur"
|
|
|
|
+ @change="handleChange"
|
|
|
|
+ :filterOption="filterOption"
|
|
|
|
+ v-decorator="['saleId', { rules: [{ required: true, message: '请选择销售' }] }]"
|
|
|
|
+ >
|
|
|
|
+ <a-select-option
|
|
|
|
+ v-for="appModel in options"
|
|
|
|
+ :key="appModel.userId + new Date().getTime()"
|
|
|
|
+ :value="appModel.userId"
|
|
|
|
+ >{{ appModel.realName }}  {{ appModel.roleName }}</a-select-option
|
|
|
|
+ >
|
|
|
|
+ </a-select>
|
|
|
|
+ </a-form-item>
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="最高出价">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="最高出价">
|
|
<a-input placeholder="请输入最高出价" v-decorator="['maxBid', validatorRules.maxBid]" addonAfter="元" />
|
|
<a-input placeholder="请输入最高出价" v-decorator="['maxBid', validatorRules.maxBid]" addonAfter="元" />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
|
+ <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="最高转化出价">
|
|
|
|
+ <a-input placeholder="最高转化出价" v-decorator="['maxDeepCpaBid', validatorRules.maxBid]" addonAfter="元" />
|
|
|
|
+ </a-form-item>
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="运营负责人">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="运营负责人">
|
|
<a-select
|
|
<a-select
|
|
showSearch
|
|
showSearch
|
|
@@ -182,6 +214,7 @@ export default {
|
|
this.form.resetFields()
|
|
this.form.resetFields()
|
|
this.model = Object.assign({}, params)
|
|
this.model = Object.assign({}, params)
|
|
this.model.maxBid = this.model.maxBid ? this.model.maxBid / 1000 : 0
|
|
this.model.maxBid = this.model.maxBid ? this.model.maxBid / 1000 : 0
|
|
|
|
+ this.model.maxDeepCpaBid = this.model.maxDeepCpaBid ? this.model.maxDeepCpaBid / 1000 : 0
|
|
this.visible = true
|
|
this.visible = true
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.form.setFieldsValue(
|
|
this.form.setFieldsValue(
|
|
@@ -191,9 +224,12 @@ export default {
|
|
'advertiserId',
|
|
'advertiserId',
|
|
'responsibleName',
|
|
'responsibleName',
|
|
'maxBid',
|
|
'maxBid',
|
|
|
|
+ 'maxDeepCpaBid',
|
|
'userId',
|
|
'userId',
|
|
'designResponsibleId',
|
|
'designResponsibleId',
|
|
- 'responsibleId'
|
|
|
|
|
|
+ 'responsibleId',
|
|
|
|
+ 'advertiserType',
|
|
|
|
+ 'saleId'
|
|
)
|
|
)
|
|
)
|
|
)
|
|
// this.resId = record.responsibleId
|
|
// this.resId = record.responsibleId
|
|
@@ -229,6 +265,7 @@ export default {
|
|
var data = values.advertiserId
|
|
var data = values.advertiserId
|
|
let formData = Object.assign(this.model, values)
|
|
let formData = Object.assign(this.model, values)
|
|
formData.maxBid = formData.maxBid * 1000
|
|
formData.maxBid = formData.maxBid * 1000
|
|
|
|
+ formData.maxDeepCpaBid = formData.maxDeepCpaBid*1000
|
|
//时间格式化
|
|
//时间格式化
|
|
formData.advertiserId = data.key
|
|
formData.advertiserId = data.key
|
|
formData.advertiserName = data.label
|
|
formData.advertiserName = data.label
|