Commit fca5a726 by wangql
2 parents 865902a7 bbd62bb8
......@@ -20,7 +20,13 @@ html {
padding: 15px 20px;
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.10);
}
//输入框后置文字(如 “元”)
.suffix-label{
font-size: 14px;
font-weight: 400;
color: #333333;
margin-right: 5px;
}
// 单行省略
.ellipsis-1 {
overflow: hidden;
......
......@@ -36,7 +36,7 @@
</div>
</el-form-item>
<el-form-item label="选择客户" prop="selectType">
<el-radio-group @change="selectChange" v-model="basicForm.selectType">
<el-radio-group v-model="basicForm.selectType">
<el-radio :label="1">全部成员</el-radio>
<el-radio :label="2">筛选成员</el-radio>
</el-radio-group>
......@@ -56,6 +56,7 @@
<el-select
v-model="basicForm.condition.chatId"
@change="valueChange"
@focus="groupFocus"
multiple
collapse-tags
placeholder="请选择"
......@@ -425,14 +426,21 @@ export default {
// this.$refs.selectLabel.init(this.tagging)
},
valueChange(val) {
console.log(val)
this.isUpdate = true
},
getGroupList() {
this.$apis.customerTransform.groupList({}).then(res => {
console.log(res)
this.groupList = res
})
if (this.basicForm.userList && this.basicForm.userList.length != 0) {
const staffIds = this.basicForm.userList.map(item => item.staffId)
console.log(staffIds)
this.$apis.customerTransform.groupList({ staffIds }).then(res => {
this.groupList = res
})
} else {
this.$message({
type: 'error',
message: '请选择群发账号'
})
}
},
getSiftMembers() {
const params = {
......@@ -457,7 +465,6 @@ export default {
},
// 查看群发人数
viewMembers() {
console.log(this.basicForm)
if (!this.basicForm.userList || this.basicForm.userList.length == 0) {
this.$message({
type: 'error',
......@@ -466,9 +473,7 @@ export default {
return
}
const params = this.getSiftMembers()
console.log(params)
this.$apis.customerTransform.customerCount(params).then(res => {
console.log(res)
this.groupNumber = res
this.isUpdate = false
})
......@@ -489,11 +494,13 @@ export default {
}
}
},
selectChange(val) {
console.log(val)
if (val == 2) {
this.getGroupList()
groupFocus() {
if (this.basicForm.condition && this.basicForm.condition.chatId) {
this.basicForm.condition.chatId = []
this.groupList = []
this.isUpdate = true
}
this.getGroupList()
}
}
}
......
......@@ -32,13 +32,15 @@
</el-form-item>
<el-form-item label="售价" size="small" prop="price" style="width: 300px">
<el-input v-model="ruleForm.price" size="small" placeholder="请输入合理价格" @keyup.native="ruleForm.price = oninput(ruleForm.price)">
<template slot="append">元</template>
<!-- <template slot="append">元</template> -->
<span slot="suffix">元</span>
</el-input>
</el-form-item>
<el-form-item label="市场价" prop="marketPrice" size="small" style="width: 300px">
<!-- :onkeyup="(ruleForm.marketPrice = ruleForm.marketPrice.replace(/[^\-\d.]/g, ''))" -->
<el-input v-model="ruleForm.marketPrice" size="small" placeholder="请输入合理价格" @keyup.native="ruleForm.marketPrice = oninput(ruleForm.marketPrice)">
<template slot="append">元</template>
<!-- <template slot="append">元</template> -->
<span slot="suffix" class="suffix-label">元</span>
</el-input>
</el-form-item>
</el-form>
......
......@@ -77,12 +77,14 @@
</el-form-item>
<el-form-item size="small" label="会员价" prop="vipPrice" style="width: 315px">
<el-input size="small" :disabled="disabledContent" maxlength="9" v-model="ruleForm.vipPrice" placeholder="请输入" @keyup.native="ruleForm.vipPrice = oninput(ruleForm.vipPrice)">
<template slot="append">元</template>
<!-- <template slot="append">元</template> -->
<span slot="suffix" class="suffix-label">元</span>
</el-input>
</el-form-item>
<el-form-item size="small" label="门店价" prop="shopPrice" style="width: 315px">
<el-input size="small" :disabled="disabledContent" maxlength="9" v-model="ruleForm.shopPrice" placeholder="请输入" @keyup.native="ruleForm.shopPrice = oninput(ruleForm.shopPrice)">
<template slot="append">元</template>
<!-- <template slot="append">元</template> -->
<span slot="suffix" class="suffix-label">元</span>
</el-input>
</el-form-item>
<el-form-item size="small" label="库存" prop="stock" style="width: 315px">
......
......@@ -28,7 +28,8 @@
<el-form-item size="small" label="售价" prop="packagePrice" style="width: 315px">
<el-input size="small" v-model="ruleForm.packagePrice" placeholder="请输入" @keyup.native="ruleForm.packagePrice = oninput(ruleForm.packagePrice)">
<template slot="append">元</template>
<!-- <template slot="append">元</template> -->
<span slot="suffix" class="suffix-label">元</span>
</el-input>
</el-form-item>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!