| | |
| | | return PageResult.ok(ftCategoryService.page(queryFilter)); |
| | | } |
| | | |
| | | @GetMapping("getList") |
| | | public Result<List<FtCategory>> getList(){ |
| | | List<FtCategory> data = ftCategoryService.getList(); |
| | | return Result.ok(data); |
| | | } |
| | | |
| | | @GetMapping("{id}") |
| | | @ApiOperation("信息") |
| | | public Result<FtCategory> get(@PathVariable("id") Long id){ |
| | |
| | | |
| | | List<FtCategory> getList(Map<String, Object> params); |
| | | |
| | | List<FtCategory> getList2(); |
| | | } |
| | |
| | | super.deleteLogic(ids); |
| | | } |
| | | |
| | | public List<FtCategory> getList() { |
| | | return baseDao.getList2(); |
| | | } |
| | | } |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getList2" resultType="com.zt.life.modules.mainPart.ftCategory.model.FtCategory"> |
| | | select a.* |
| | | from ft_category a |
| | | <where> |
| | | a.is_delete = 0 |
| | | <if test="whereSql!=null"> |
| | | and ${whereSql} |
| | | </if> |
| | | </where> |
| | | <if test="orderBySql!=null"> |
| | | ORDER BY ${orderBySql} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | value: [String, Array], |
| | | modelId: { |
| | | type: String, |
| | | default: "" |
| | | default: '' |
| | | }, |
| | | shipId: { |
| | | type: String, |
| | | default: "" |
| | | default: '' |
| | | }, |
| | | projectId: { |
| | | type: String, |
| | | default: "" |
| | | default: '' |
| | | }, |
| | | multiple: { |
| | | type: Boolean, |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | url:'/sys/major/getList?modelId='+this.modelId+'&shipId='+this.shipId+'&projectId='+this.projectId, |
| | | url: '/sys/major/getList?modelId=' + this.modelId + '&shipId=' + this.shipId + '&projectId=' + this.projectId, |
| | | selectValue: this.value || '' |
| | | } |
| | | }, |
| | | watch: { |
| | | 'selectValue'(){ |
| | | 'selectValue'() { |
| | | if (this.multiple) { |
| | | this.$emit('input', (this.selectValue || []).join(',')) |
| | | } else { |
| | |
| | | this.selectValue = val |
| | | }, |
| | | 'projectId'() { |
| | | this.url = '/sys/major/getList?modelId='+this.modelId+'&shipId='+this.shipId+'&projectId='+this.projectId |
| | | this.url = '/sys/major/getList?modelId=' + this.modelId + '&shipId=' + this.shipId + '&projectId=' + this.projectId |
| | | } |
| | | }, |
| | | |
| | |
| | | clearable: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | import MenuTreeSelector from './components/menu-tree-selector' |
| | | import SelectTree from './components/select-tree' |
| | | import MajorSelector from './components/major-selector' |
| | | import ZtBoatTree from './components/zt-boat-tree' |
| | | import ColumnSelect from './components/column-select' |
| | | import ZtEquipmentConfig from './components/zt-equipment-config' |
| | | import ZtEquipmentSelect from './components/zt-equipment-select' |
| | |
| | | Vue.use(MenuTreeSelector) |
| | | Vue.use(SelectTree) |
| | | Vue.use(MajorSelector) |
| | | Vue.use(ZtBoatTree) |
| | | Vue.use(ColumnSelect) |
| | | Vue.use(ZtEquipmentConfig) |
| | | Vue.use(ZtEquipmentSelect) |
| | |
| | | let minutes = ' ' |
| | | let seconds = ' ' |
| | | if (data != null) { |
| | | const dateObject = new Date(data); |
| | | const dateObject = new Date(data) |
| | | year = dateObject.getFullYear() |
| | | months = (dateObject.getMonth() + 1).toString().padStart(2, '0') |
| | | days = dateObject.getDate() |
| | |
| | | minutes = (dateObject.getMinutes() + 1).toString().padStart(2, '0') |
| | | seconds = (dateObject.getSeconds() + 1).toString().padStart(2, '0') |
| | | } |
| | | return format.replace('YYYY', year).replace('MM', months).replace('DD', days).replace('hh', hours).replace('mm', minutes).replace('ss', seconds); |
| | | return format.replace('YYYY', year).replace('MM', months).replace('DD', days).replace('hh', hours).replace('mm', minutes).replace('ss', seconds) |
| | | }) |
| | | // 默认主题 浅版light 深版hight |
| | | store.state.theme = Cookies.get('systemTheme') || 'light' |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AccountBalanceAddOrUpdate from './accountBalance-AddOrUpdate.vue' |
| | | import AccountBalanceAddOrUpdate from './accountBalance-AddOrUpdate.vue' |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | dataForm: { |
| | | year: '', |
| | | accountCode: '', |
| | | export default { |
| | | data() { |
| | | return { |
| | | dataForm: { |
| | | year: '', |
| | | accountCode: '' |
| | | } |
| | | } |
| | | }, |
| | | components: { |
| | | AddOrUpdate: AccountBalanceAddOrUpdate |
| | | } |
| | | }, |
| | | components: { |
| | | AddOrUpdate: AccountBalanceAddOrUpdate |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <template> |
| | | <zt-table-wraper query-url="/ftCategory/FtCategory/page" delete-url="/ftCategory/FtCategory" v-slot="{ table }"> |
| | | <zt-table-wraper query-url="/ftCategory/FtCategory/getList" v-bind:paging='false' delete-url="/ftCategory/FtCategory" v-slot="{ table }"> |
| | | <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()"> |
| | | <el-form-item> |
| | | <el-input v-model="dataForm.name" placeholder="请输入分摊名目" clearable></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-input v-model="dataForm.year" placeholder="请输入年份" clearable></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <zt-button type="query" @click="table.query()"/> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | return |
| | | } |
| | | if (numVal > balance) { |
| | | this.$message.error('分摊费用不能超过科目余额') |
| | | row.ftExpense = balance |
| | | this.$message.warning('分摊费用不能超过科目余额') |
| | | } else { |
| | | row.ftExpense = numVal |
| | | } |