|
|
|
@ -387,6 +387,38 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
addSaleHandle() {
|
|
|
|
|
if (!this.multipleSelectionItem.length) {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'error',
|
|
|
|
|
message: '请选择一条数据',
|
|
|
|
|
duration: 1500,
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
const selectData = this.multipleSelectionItem
|
|
|
|
|
if (!this.saleFlowList.length) {
|
|
|
|
|
this.$message({ type: 'error', message: '流程不存在' });
|
|
|
|
|
} else if (this.saleFlowList.length === 1) {
|
|
|
|
|
this.selectSaleFlow(this.saleFlowList[0], selectData)
|
|
|
|
|
} else {
|
|
|
|
|
this.flowListVisible = true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
selectSaleFlow(item, selectData) {
|
|
|
|
|
let data = {
|
|
|
|
|
id: '',
|
|
|
|
|
formType: 1,
|
|
|
|
|
flowId: item.id,
|
|
|
|
|
opType: '-1',
|
|
|
|
|
selectData: selectData
|
|
|
|
|
}
|
|
|
|
|
this.flowListVisible = false
|
|
|
|
|
this.saleFlowVisible = true
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.SaleFlowBox.init(data)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
toDetail(defaultValue, modelId) {
|
|
|
|
|
if (!defaultValue) return
|
|
|
|
|
getConfigData(modelId).then(res => {
|
|
|
|
@ -672,7 +704,7 @@ export default {
|
|
|
|
|
this.jnpf.downloadFile(res.data.url)
|
|
|
|
|
this.$refs.ExportBox.visible = false
|
|
|
|
|
this.exportBoxVisible = false
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
search() {
|
|
|
|
|
this.listQuery.currentPage = 1
|
|
|
|
@ -686,7 +718,7 @@ export default {
|
|
|
|
|
let data = {
|
|
|
|
|
id: row.id,
|
|
|
|
|
flowId: row.flowId || this.flowList[0].id,
|
|
|
|
|
opType: flowState ? 0 : '-1',
|
|
|
|
|
opType: flowState ? 0 : '-1',
|
|
|
|
|
status: flowState
|
|
|
|
|
}
|
|
|
|
|
this.flowVisible = true
|
|
|
|
@ -729,38 +761,6 @@ export default {
|
|
|
|
|
this.$refs.FlowBox.init(data)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
addSaleHandle() {
|
|
|
|
|
if (!this.multipleSelectionItem.length) {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'error',
|
|
|
|
|
message: '请选择一条数据',
|
|
|
|
|
duration: 1500,
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
const selectData = this.multipleSelectionItem
|
|
|
|
|
if (!this.saleFlowList.length) {
|
|
|
|
|
this.$message({ type: 'error', message: '流程不存在' });
|
|
|
|
|
} else if (this.saleFlowList.length === 1) {
|
|
|
|
|
this.selectSaleFlow(this.saleFlowList[0], selectData)
|
|
|
|
|
} else {
|
|
|
|
|
this.flowListVisible = true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
selectSaleFlow(item, selectData) {
|
|
|
|
|
let data = {
|
|
|
|
|
id: '',
|
|
|
|
|
formType: 1,
|
|
|
|
|
flowId: item.id,
|
|
|
|
|
opType: '-1',
|
|
|
|
|
selectData: selectData
|
|
|
|
|
}
|
|
|
|
|
this.flowListVisible = false
|
|
|
|
|
this.saleFlowVisible = true
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.SaleFlowBox.init(data)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
refresh(isrRefresh) {
|
|
|
|
|
this.formVisible = false
|
|
|
|
|
if (isrRefresh) this.reset()
|
|
|
|
|