diff --git a/src/views/crm/business/Detail.vue b/src/views/crm/business/Detail.vue
index 78f331b..b109e38 100644
--- a/src/views/crm/business/Detail.vue
+++ b/src/views/crm/business/Detail.vue
@@ -164,6 +164,32 @@
+
+ {{ dialogMessage }}:
+
+ 审核人:
+
+
+
+
+
{
- 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(() => {})
+ this.dialogTitle = item.name + '原因'
+ this.dialogMessage = '请填写' + item.name + '原因:'
} else {
- var title = 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(() => {})
+ this.dialogTitle = item.name
}
},
+ 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
+ })
+ },
/**
* 审核操作
*/
diff --git a/src/views/crm/components/RelativeContacts.vue b/src/views/crm/components/RelativeContacts.vue
index 42481af..009cef2 100644
--- a/src/views/crm/components/RelativeContacts.vue
+++ b/src/views/crm/components/RelativeContacts.vue
@@ -69,7 +69,7 @@
show-overflow-tooltip />