前端修改

master
杨赟 10 months ago
parent a7d5126b9a
commit 1825a8fbb5

@ -164,6 +164,32 @@
</flexbox> </flexbox>
</flexbox> </flexbox>
</div> </div>
<el-dialog
:visible.sync="dialogVisible"
:title="dialogTitle"
:modal="false"
width="30%">
<p>{{ dialogMessage }}</p>
<el-input
v-model="commentContent"
type="textarea"
rows="4"
autocomplete="off"
placeholder="请输入内容"/>
<p>审核人</p>
<el-select
v-model="selectValue"
:clearable="true"
:filterable="true"
placeholder="请选择"
>
<el-option v-for="(item) in userOptions" :key="item.id" :value="item.id" :label="item.username"/>
</el-select>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false"> </el-button>
<el-button type="primary" @click="dialogConfirm()"> </el-button>
</span>
</el-dialog>
<el-button <el-button
class="firse-button" class="firse-button"
@ -248,7 +274,13 @@ export default {
data() { data() {
return { return {
// loading // loading
dialogVisible: false,
dialogTitle: '',
dialogMessage: '',
dialogData: {},
commentContent: '',
userOptions: [], userOptions: [],
selectValue: '',
value: '', value: '',
inputValue: '', inputValue: '',
loading: false, loading: false,
@ -599,148 +631,35 @@ export default {
// //
return return
} }
this.dialogVisible = true
this.dialogData = item
/** 输单 和 无效 */ /** 输单 和 无效 */
if (item.type == 2 || item.type == 3) { if (item.type == 2 || item.type == 3) {
var message = '请填写' + item.name + '原因:' this.dialogTitle = item.name + '原因'
var title = item.name + '原因' this.dialogMessage = '请填写' + item.name + '原因:'
const h = this.$createElement
const msgBoxContent = h('div', [
h('p', message),
h('textarea', {
attrs: {
class: 'el-textarea__inner',
autocomplete: 'off',
rows: 4,
id: 'commentContent'
},
domProps: {
value: this.commentContent
},
on: { input: v => {
this.commentContent = v.target.value
} }
}),
h('p', '审核人:'),
h('el-select', {
ref: 'selectView',
props: {
clearable: true,
filterable: true,
placeholder: '请选择',
value: this.value
},
on: {
input: val => {
this.value = val
// console.log(val)
},
change: e => {
this.value = e
this.$refs['selectView'].value = e
}
}
}, this.userOptions.map(option => {
return h('el-option', {
props: {
value: option.id,
label: option.username
}
})
}))
])
this.$msgbox({
title: title,
message: msgBoxContent,
showCancelButton: true,
confirmButtonText: '确定',
cancelButtonText: '取消'
})
.then(({ value }) => {
this.loading = true
const commentContent = document.getElementById('commentContent').value
crmBusinessAdvanceAPI({
check_user_id: this.$refs['selectView'].value,
business_id: this.id,
status_id: item.status_id,
is_end: item.type,
statusRemark: commentContent
})
.then(res => {
this.loading = false
this.$message.success('操作成功')
this.getDetial()
})
.catch(() => {
this.loading = false
})
})
.catch(() => {})
} else { } else {
var title = item.name this.dialogTitle = item.name
const h = this.$createElement
const msgBoxContent = h('div', [
h('p', '审核人:'),
h('el-select', {
ref: 'selectView',
props: {
clearable: true,
filterable: true,
placeholder: '请选择',
value: this.value
},
on: {
input: val => {
this.value = val
// console.log(val)
},
change: e => {
this.value = e
this.$refs['selectView'].value = e
}
}
}, this.userOptions.map(option => {
return h('el-option', {
props: {
value: option.id,
label: option.username
}
})
}))
])
this.$msgbox({
title: title,
message: msgBoxContent,
showCancelButton: true,
confirmButtonText: '确定',
cancelButtonText: '取消'
})
.then(() => {
this.isContract = true
this.createClick()
this.loading = true
crmBusinessAdvanceAPI({
check_user_id: this.$refs['selectView'].value,
business_id: this.id,
status_id: item.status_id,
is_end: item.type
})
.then(res => {
this.loading = false
this.$message.success('操作成功')
this.getDetial()
})
.catch(() => {
this.loading = false
})
// this.crmType = 'contract'
// this.action.type = 'save'
// this.createClick()
})
.catch(() => {})
} }
}, },
dialogConfirm() {
this.loading = true
crmBusinessAdvanceAPI({
check_user_id: this.selectValue,
business_id: this.id,
status_id: this.dialogData.status_id,
is_end: this.dialogData.type,
statusRemark: this.commentContent
})
.then(res => {
this.loading = false
this.$message.success('操作成功')
this.dialogVisible = false
this.getDetial()
})
.catch(() => {
this.loading = false
})
},
/** /**
* 审核操作 * 审核操作
*/ */

@ -69,7 +69,7 @@
show-overflow-tooltip /> show-overflow-tooltip />
<el-table-column <el-table-column
label="微信账号" label="微信账号"
prop="wxwork_name" prop="crm_lnxvis"
width="100" /> width="100" />
<el-table-column <el-table-column
label="操作" label="操作"
@ -252,7 +252,7 @@ export default {
label: '姓名' label: '姓名'
}) })
this.fieldList.push({ prop: 'mobile', width: '200', label: '手机' }) this.fieldList.push({ prop: 'mobile', width: '200', label: '手机' })
this.fieldList.push({ prop: 'post', width: '200', label: '职务' }) this.fieldList.push({ prop: 'crm_mlffgs', width: '200', label: '职务' })
}, },
/** /**

@ -150,11 +150,11 @@ export default {
}, },
getWin() { getWin() {
console.log('aa' + this.dataList) console.log('aa' + this.dataList)
this.$emit('chart-click', [], this.dataList[4]) this.$emit('chart-click', [], this.dataList[2])
}, },
getLose() { getLose() {
console.log('aa' + this.dataList) console.log('aa' + this.dataList)
this.$emit('chart-click', [], this.dataList[5]) this.$emit('chart-click', [], this.dataList[3])
}, },
/** /**
* 获取统计数据 * 获取统计数据

@ -162,11 +162,6 @@ export default {
divided: false, divided: false,
label: '基本信息', label: '基本信息',
icon: 'wk wk-user' icon: 'wk wk-user'
}, {
command: 'help',
divided: true,
label: '帮助中心',
icon: 'wk wk-help'
}, { }, {
command: 'logOut', command: 'logOut',
divided: false, divided: false,

@ -55,9 +55,6 @@
:style="{ 'background-color':variables.menuBg }" :style="{ 'background-color':variables.menuBg }"
class="sidebar-bottom"> class="sidebar-bottom">
<div class="sidebar-bottom-content"> <div class="sidebar-bottom-content">
<div v-if="!collapse" class="copyright">
<img src="@/assets/img/favicon.png" width="20px" >
</div>
<img <img
:style="{ 'right': buttonCollapse ? '3px' : '0' }" :style="{ 'right': buttonCollapse ? '3px' : '0' }"
:class="{ 'is-close': collapse }" :class="{ 'is-close': collapse }"

Loading…
Cancel
Save