|
@@ -101,7 +101,7 @@
|
|
<!-- 品种编辑弹窗 -->
|
|
<!-- 品种编辑弹窗 -->
|
|
<el-dialog
|
|
<el-dialog
|
|
:modal-append-to-body='false'
|
|
:modal-append-to-body='false'
|
|
- :title="!editBreedData.id?$t('ReportManage.CommodityConfiguration.edit_variety'):$t('ReportManage.CommodityConfiguration.add_variety')"
|
|
|
|
|
|
+ :title="!editBreedData.id?$t('ReportManage.CommodityConfiguration.add_variety'):$t('ReportManage.CommodityConfiguration.edit_variety')"
|
|
:visible.sync="showEditBreed"
|
|
:visible.sync="showEditBreed"
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
:center="true"
|
|
:center="true"
|
|
@@ -143,7 +143,7 @@
|
|
</div>
|
|
</div>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
<div class="auth-list-box">
|
|
<div class="auth-list-box">
|
|
- <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
|
|
|
|
|
|
+ <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">{{ $t('Common.all_select') }}</el-checkbox>
|
|
<el-checkbox-group style="padding:20px" v-model="checkedList" @change="handleCheckedAuthChange">
|
|
<el-checkbox-group style="padding:20px" v-model="checkedList" @change="handleCheckedAuthChange">
|
|
<el-checkbox style="display:block;margin-bottom:10px" v-for="item in checkOpts" :label="item.PermissionId" :key="item.PermissionId">{{item.PermissionName}}</el-checkbox>
|
|
<el-checkbox style="display:block;margin-bottom:10px" v-for="item in checkOpts" :label="item.PermissionId" :key="item.PermissionId">{{item.PermissionName}}</el-checkbox>
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
@@ -151,8 +151,8 @@
|
|
</div>
|
|
</div>
|
|
</el-form>
|
|
</el-form>
|
|
<div style="text-align: center;margin-top:40px">
|
|
<div style="text-align: center;margin-top:40px">
|
|
- <el-button type="primary" plain @click="showEditBreed=false">取消</el-button>
|
|
|
|
- <el-button type="primary" @click="handleConfirmEidtBreed">确定</el-button>
|
|
|
|
|
|
+ <el-button type="primary" plain @click="showEditBreed=false">{{ $t('Dialog.cancel_btn') }}</el-button>
|
|
|
|
+ <el-button type="primary" @click="handleConfirmEidtBreed">{{ $t('Dialog.confirm_btn') }}</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -278,7 +278,7 @@ export default {
|
|
}
|
|
}
|
|
const res=this.typeVal==1?await reportVarietyInterence.editVariety(params):await reportVarietyENInterence.editVariety(params)
|
|
const res=this.typeVal==1?await reportVarietyInterence.editVariety(params):await reportVarietyENInterence.editVariety(params)
|
|
if(res.Ret===200){
|
|
if(res.Ret===200){
|
|
- this.$message.success(`编辑成功`)
|
|
|
|
|
|
+ this.$message.success(this.$t('ReportManage.CommodityConfiguration.variety_edit_succ_msg'))
|
|
this.getList()
|
|
this.getList()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -291,7 +291,7 @@ export default {
|
|
}
|
|
}
|
|
const res=this.typeVal==1?await reportVarietyInterence.setEnable(params):await reportVarietyENInterence.setEnable(params)
|
|
const res=this.typeVal==1?await reportVarietyInterence.setEnable(params):await reportVarietyENInterence.setEnable(params)
|
|
if(res.Ret===200){
|
|
if(res.Ret===200){
|
|
- this.$message.success(`设置成功`)
|
|
|
|
|
|
+ this.$message.success(this.$t('ReportManage.CategoryList.setup_successful'))
|
|
this.getList()
|
|
this.getList()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -386,7 +386,7 @@ export default {
|
|
}
|
|
}
|
|
const res=this.typeVal==1?await reportVarietyInterence.sortVariety(params):await reportVarietyENInterence.sortVariety(params)
|
|
const res=this.typeVal==1?await reportVarietyInterence.sortVariety(params):await reportVarietyENInterence.sortVariety(params)
|
|
if(res.Ret===200){
|
|
if(res.Ret===200){
|
|
- this.$message.success('移动成功')
|
|
|
|
|
|
+ this.$message.success(this.$t('ReportManage.CategoryList.move_successful'))
|
|
}
|
|
}
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
@@ -402,7 +402,7 @@ export default {
|
|
|
|
|
|
async handleConfirmEidtBreed(){
|
|
async handleConfirmEidtBreed(){
|
|
if(!this.editBreedData.name){
|
|
if(!this.editBreedData.name){
|
|
- this.$message.warning('请填写品种名称')
|
|
|
|
|
|
+ this.$message.warning($t('ReportManage.CommodityConfiguration.variety_name_check_hint'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
let params={
|
|
let params={
|
|
@@ -427,7 +427,12 @@ export default {
|
|
res=this.editBreedData.id?await reportVarietyENInterence.editVariety(params):await reportVarietyENInterence.addVariety(params)
|
|
res=this.editBreedData.id?await reportVarietyENInterence.editVariety(params):await reportVarietyENInterence.addVariety(params)
|
|
}
|
|
}
|
|
if(res.Ret===200){
|
|
if(res.Ret===200){
|
|
- this.$message.success(`${this.editBreedData.id?'编辑':"新增"}成功`)
|
|
|
|
|
|
+ //this.$message.success(`${this.editBreedData.id?'编辑':"新增"}成功`)
|
|
|
|
+ this.$message.success(
|
|
|
|
+ this.editBreedData.id
|
|
|
|
+ ?this.$t('ReportManage.CommodityConfiguration.variety_edit_succ_msg')
|
|
|
|
+ :this.$t('ReportManage.CommodityConfiguration.variety_add_succ_msg')
|
|
|
|
+ )
|
|
this.getList()
|
|
this.getList()
|
|
this.showEditBreed=false
|
|
this.showEditBreed=false
|
|
}
|
|
}
|