|
@@ -291,6 +291,14 @@ export default {
|
|
|
|
|
|
methods: {
|
|
|
/**
|
|
|
+ * 检查是否可以编辑
|
|
|
+ * @param {ForecastRecord} row - 预测记录行数据
|
|
|
+ * @returns {boolean} 是否可以编辑
|
|
|
+ */
|
|
|
+ canEdit(row) {
|
|
|
+ return canEdit(row.approvalStatus || APPROVAL_STATUS.PENDING)
|
|
|
+ },
|
|
|
+ /**
|
|
|
* 加载客户选项
|
|
|
* @this {Vue & {customerLoading: boolean, customerOptions: Array<CustomerOption>, $message: any}}
|
|
|
* @returns {Promise<void>}
|
|
@@ -621,7 +629,6 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- console.log('编辑预测申报', row, index)
|
|
|
this.editMode = 'edit'
|
|
|
this.editTitle = '编辑预测申报'
|
|
|
this.currentForecastId = row.id
|