add:合同导出功能
This commit is contained in:
@@ -19,8 +19,8 @@ module.exports = {
|
||||
rules: {
|
||||
// allow async-await
|
||||
'generator-star-spacing': 'off',
|
||||
// allow debugger during development
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
||||
// allow during development
|
||||
'no- ': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
||||
},
|
||||
global:{
|
||||
PubSub:true
|
||||
|
||||
@@ -99,7 +99,7 @@ export default {
|
||||
var formdata = new FormData()
|
||||
formdata.append('file', this.file1.raw)
|
||||
// excelImport:请求接口 formdata:传递参数
|
||||
debugger
|
||||
|
||||
this.$http({
|
||||
url: this.$http.adornUrl(this.urlApi),
|
||||
method: 'post',
|
||||
|
||||
@@ -509,7 +509,7 @@ export default {
|
||||
})
|
||||
},
|
||||
reLoad (row) {
|
||||
debugger
|
||||
|
||||
let price = JSON.parse(row.data)
|
||||
this.dataForm.priceType = String(price.priceType)
|
||||
this.dataForm.contractCode = price.contractCode
|
||||
@@ -670,7 +670,7 @@ export default {
|
||||
this.$refs.upload.submit();
|
||||
},
|
||||
submitPrice () {
|
||||
debugger
|
||||
|
||||
if (this.fileList.length > 0) {
|
||||
this.fileList.forEach(a => {
|
||||
if (a.size > 10 * 1024 * 1024) {
|
||||
|
||||
@@ -414,7 +414,7 @@ export default {
|
||||
})
|
||||
},
|
||||
reLoad (row) {
|
||||
debugger
|
||||
|
||||
let price = JSON.parse(row.data)
|
||||
this.dataForm.priceType = String(price.priceType)
|
||||
this.dataForm.fileNo = price.fileNo
|
||||
@@ -651,16 +651,16 @@ export default {
|
||||
this.$message.error('请选择审批结果')
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
// 验证是否填写了处理意见
|
||||
if (!this.approvalForm.remark) {
|
||||
this.$message.error('请输入处理意见')
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
// 根据审批结果设置status值:同意为2,驳回为3
|
||||
const status = this.approvalForm.result === '同意' ? '2' : '3'
|
||||
|
||||
|
||||
// 调用后端接口
|
||||
this.$http({
|
||||
url: this.$http.adornUrl('/flow/price/approval'),
|
||||
|
||||
@@ -407,7 +407,7 @@ export default {
|
||||
})
|
||||
},
|
||||
reLoad (row) {
|
||||
debugger
|
||||
|
||||
let price = JSON.parse(row.data)
|
||||
this.dataForm.priceType = String(price.priceType)
|
||||
this.dataForm.fileNo = price.fileNo
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
</el-input>
|
||||
|
||||
<!-- 外层容器控制对齐方式 -->
|
||||
<div v-if= "ticketsData.processInstanceUser === '销售经理'" style="text-align: left; margin: 4px 0;"> <!-- 左对齐 + 更紧凑间距 -->
|
||||
<div v-if= "ticketsData.processInstanceUser.includes('经理')" style="text-align: left; margin: 4px 0;"> <!-- 左对齐 + 更紧凑间距 -->
|
||||
<el-button type="text" size="small"
|
||||
class="custom-assign-btn"
|
||||
@click="startFlowUser()"
|
||||
@@ -155,23 +155,16 @@
|
||||
<div v-if="assignedUsername" class="assigned-username">
|
||||
指派:{{ assignedUsername }}
|
||||
</div>
|
||||
<el-radio-group v-if= "ticketsData.processInstanceUser === '销售专员'" v-model="approvalForm.result">
|
||||
<el-radio label="同意" border size="small">同意</el-radio>
|
||||
<el-radio-group v-if= "ticketsData.processInstanceUser.includes('专员线上') ||ticketsData.processInstanceUser.includes('专员确认')" v-model="approvalForm.result">
|
||||
<el-radio label="同意" border size="small">提交</el-radio>
|
||||
<el-radio label="完结" border size="small">完结</el-radio>
|
||||
</el-radio-group>
|
||||
<!-- 附加选项 -->
|
||||
<div class="approval-options">
|
||||
<el-checkbox v-model="approvalForm.hideOpinion">意见隐藏</el-checkbox>
|
||||
<div class="option-item">
|
||||
<el-checkbox v-model="approvalForm.track">跟踪</el-checkbox>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 底部操作按钮(固定在底部) -->
|
||||
<div class="approval-actions">
|
||||
<el-button size="small" @click="saveAsDraft">存为草稿</el-button>
|
||||
<el-button size="small" @click="saveForLater">暂存待办</el-button>
|
||||
<div v-if ="!ticketsData.processInstanceUser.includes('完结')" class="approval-actions">
|
||||
<el-button type="primary" size="small" @click="submitApproval">提交</el-button>
|
||||
</div>
|
||||
<div v-if= "ticketsData.processInstanceUser.includes('完结')" class="approval-actions">
|
||||
<el-button type="primary" size="small" @click="submitApproval">完结</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -254,7 +247,7 @@ export default {
|
||||
assignedUsername: '',
|
||||
// 审批表单数据
|
||||
approvalForm: {
|
||||
result: '指派', // 默认为同意
|
||||
result: '', // 默认为同意
|
||||
remark: '', // 处理意见
|
||||
hideOpinion: false, // 意见隐藏
|
||||
track: false, // 跟踪
|
||||
@@ -409,9 +402,14 @@ export default {
|
||||
this.ticketsData = data.tickets;
|
||||
}
|
||||
const user = this.ticketsData.processInstanceUser;
|
||||
if (user && (user.includes('指派') || user.includes('完结'))) {
|
||||
this.approvalForm.result = '提交'; // 自动选中“同意”
|
||||
if (user.includes('完结')) {
|
||||
this.approvalForm.result = '提交' // 自动选中“同意”
|
||||
} else if (user.includes('指派')) {
|
||||
this.approvalForm.result = '指派' // 自动选中“同意”
|
||||
}else if (user.includes('技术员')|| user.includes('维修员')) {
|
||||
this.approvalForm.result = '提交' // 自动选中“同意”
|
||||
}
|
||||
|
||||
this.$http({
|
||||
url: this.$http.adornUrl(`/flw/instance/flowProcessList`),
|
||||
method: 'get',
|
||||
@@ -423,7 +421,6 @@ export default {
|
||||
},
|
||||
// 提交审批
|
||||
submitApproval() {
|
||||
debugger
|
||||
if (!this.approvalForm.remark && this.approvalForm.result === '完结') {
|
||||
this.$message.warning('完结时请填写处理意见');
|
||||
return;
|
||||
@@ -434,7 +431,7 @@ export default {
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
debugger
|
||||
|
||||
var formdata = new FormData()
|
||||
this.fileList.forEach(a => {
|
||||
formdata.append('file', a.raw)
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
</el-input>
|
||||
|
||||
<!-- 外层容器控制对齐方式 -->
|
||||
<div v-if= "ticketsData.processInstanceUser === '销售经理'" style="text-align: left; margin: 4px 0;"> <!-- 左对齐 + 更紧凑间距 -->
|
||||
<div v-if= "ticketsData.processInstanceUser === '销售经理指派人员对接'" style="text-align: left; margin: 4px 0;"> <!-- 左对齐 + 更紧凑间距 -->
|
||||
<el-button type="text" size="small"
|
||||
class="custom-assign-btn"
|
||||
@click="startFlowUser()"
|
||||
@@ -155,8 +155,8 @@
|
||||
<div v-if="assignedUsername" class="assigned-username">
|
||||
指派:{{ assignedUsername }}
|
||||
</div>
|
||||
<el-radio-group v-if= "ticketsData.processInstanceUser === '销售专员'" v-model="approvalForm.result">
|
||||
<el-radio label="同意" border size="small">同意</el-radio>
|
||||
<el-radio-group v-if= "ticketsData.processInstanceUser === '售后专员线上处理'" v-model="approvalForm.result">
|
||||
<el-radio label="同意" border size="small">提交</el-radio>
|
||||
<el-radio label="完结" border size="small">完结</el-radio>
|
||||
</el-radio-group>
|
||||
<!-- 附加选项 -->
|
||||
@@ -423,7 +423,7 @@ export default {
|
||||
},
|
||||
// 提交审批
|
||||
submitApproval() {
|
||||
debugger
|
||||
|
||||
if (!this.approvalForm.remark && this.approvalForm.result === '完结') {
|
||||
this.$message.warning('完结时请填写处理意见');
|
||||
return;
|
||||
@@ -434,7 +434,7 @@ export default {
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
debugger
|
||||
|
||||
var formdata = new FormData()
|
||||
this.fileList.forEach(a => {
|
||||
formdata.append('file', a.raw)
|
||||
|
||||
@@ -4414,12 +4414,12 @@ vjs.SeekBar.prototype.onMouseMove = function(event){
|
||||
};
|
||||
|
||||
vjs.SeekBar.prototype.onMouseUp = function(event){
|
||||
debugger
|
||||
|
||||
vjs.Slider.prototype.onMouseUp.call(this, event);
|
||||
|
||||
this.player_.scrubbing = false;
|
||||
if (this.videoWasPlaying) {
|
||||
debugger
|
||||
|
||||
this.player_.play();
|
||||
}
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user