Commit d4661695 authored by lanbaoming's avatar lanbaoming

Merge branch 'master' into dev

parents 350b9ddc b383e324
...@@ -293,4 +293,4 @@ ...@@ -293,4 +293,4 @@
"选取文件": "选取文件", "选取文件": "选取文件",
"查看提单 {selfNo} 柜号:{cubNo} 柜型:{cabinetLabel}": "查看提单 {selfNo} 柜号:{cubNo} 柜型:{cabinetLabel}", "查看提单 {selfNo} 柜号:{cubNo} 柜型:{cabinetLabel}": "查看提单 {selfNo} 柜号:{cubNo} 柜型:{cabinetLabel}",
"退仓/已混箱品名":"退仓/已混箱品名" "退仓/已混箱品名":"退仓/已混箱品名"
} }
...@@ -222,6 +222,32 @@ export default { ...@@ -222,6 +222,32 @@ export default {
if (this.list.findIndex((item) => item.editMode) > -1) return false; if (this.list.findIndex((item) => item.editMode) > -1) return false;
return true; return true;
}; };
computed:{
isChinese() {
return this.$i18n.locale === "zh_CN";
},
feeList(){
return this.list.filter(item => item.status === 0)
},
// 正在编辑的费用申请
currentItem(){
return this.list.find(item => item.editMode)
},
// 是否修改模式
editMode(){
return !!this.currentItem
},
modifable(){
return (index) => {
// 审核中不允许修改
if(this.processInstanceId) return false
// 有未提交的不允许修改
if(this.feeList.length) return false
// 有修改中的不允许修改
if(this.list.findIndex(item => item.editMode) > -1) return false
return true
}
}
}, },
}, },
created() { created() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment