|
@@ -12,7 +12,11 @@
|
|
|
<el-button type="primary" class="bt" icon="edit" @click="oncbcreate">成本数据创建</el-button>
|
|
<el-button type="primary" class="bt" icon="edit" @click="oncbcreate">成本数据创建</el-button>
|
|
|
<!-- <el-button type="primary" class="bt" icon="edit" @click="onsdqcreate">创建</el-button> -->
|
|
<!-- <el-button type="primary" class="bt" icon="edit" @click="onsdqcreate">创建</el-button> -->
|
|
|
<el-button type="primary" class="bt" icon="edit" :disabled="tableStates.showrgdownTable === false" @click="onartificial">月度人工维护</el-button>
|
|
<el-button type="primary" class="bt" icon="edit" :disabled="tableStates.showrgdownTable === false" @click="onartificial">月度人工维护</el-button>
|
|
|
|
|
+ <el-button type="primary" class="bt" icon="edit" :disabled="tableStates.showsdqzjupTable === false" @click="onsdqzj">水电气直接费用增加</el-button>
|
|
|
<el-button type="primary" class="bt" icon="edit" :disabled="tableStates.showsdqftupTable === false" @click="onsdqft">水电气分摊批量维护</el-button>
|
|
<el-button type="primary" class="bt" icon="edit" :disabled="tableStates.showsdqftupTable === false" @click="onsdqft">水电气分摊批量维护</el-button>
|
|
|
|
|
+ <el-button type="primary" class="bt" icon="edit" :disabled="tableStates.showqtdtTable === false" @click="onqtdt">其他待摊费用增加</el-button>
|
|
|
|
|
+ <el-button type="primary" class="bt" icon="edit" :disabled="tableStates.showqtdtTable === false" @click="onqtdtcopy">其他待摊费用复制</el-button>
|
|
|
|
|
+ <el-button type="primary" class="bt" icon="edit" :disabled="tableStates.showsdsupTable === false" @click="onsds">车间色度数添加</el-button>
|
|
|
<!-- <el-button type="primary" class="bt" icon="edit" @click="onout">分摊清单设置</el-button> -->
|
|
<!-- <el-button type="primary" class="bt" icon="edit" @click="onout">分摊清单设置</el-button> -->
|
|
|
<el-button type="primary" class="bt" icon="download" @click="hzToExcel" >导出到Excel(汇总)</el-button>
|
|
<el-button type="primary" class="bt" icon="download" @click="hzToExcel" >导出到Excel(汇总)</el-button>
|
|
|
<el-button type="primary" class="bt" icon="download" @click="mxToExcel" >导出到Excel(明细)</el-button>
|
|
<el-button type="primary" class="bt" icon="download" @click="mxToExcel" >导出到Excel(明细)</el-button>
|
|
@@ -192,16 +196,16 @@
|
|
|
highlight-current-row="true" @row-dblclick="updateCompanyFunc"
|
|
highlight-current-row="true" @row-dblclick="updateCompanyFunc"
|
|
|
@row-click="tableRowClick" :show-overflow-tooltip="true"
|
|
@row-click="tableRowClick" :show-overflow-tooltip="true"
|
|
|
@selection-change="handleSelectionChange">
|
|
@selection-change="handleSelectionChange">
|
|
|
- <el-table-column sortable align="center" label="部门一线工资" prop="部门一线工资" width="120" />
|
|
|
|
|
- <el-table-column sortable align="center" label="管理人员工资" prop="管理人员工资" width="120" />
|
|
|
|
|
- <el-table-column sortable align="center" label="工资成本占比" prop="工资成本占比" width="200" />
|
|
|
|
|
- <el-table-column sortable align="center" label="场地租金" prop="工序场地租金号" width="100" />
|
|
|
|
|
|
|
+ <el-table-column sortable align="center" label="部门一线工资" prop="部门人员工资" width="140" />
|
|
|
|
|
+ <el-table-column sortable align="center" label="管理人员工资" prop="管理人员工资" width="140" />
|
|
|
|
|
+ <el-table-column sortable align="center" label="工资成本占比" prop="工资成本占比" width="130" />
|
|
|
|
|
+ <el-table-column sortable align="center" label="场地租金" prop="场地租金" width="100" />
|
|
|
<el-table-column sortable align="center" label="待摊折旧" prop="待摊折旧" width="100" />
|
|
<el-table-column sortable align="center" label="待摊折旧" prop="待摊折旧" width="100" />
|
|
|
<el-table-column sortable align="center" label="其他" prop="其他" width="100" />
|
|
<el-table-column sortable align="center" label="其他" prop="其他" width="100" />
|
|
|
<el-table-column sortable align="center" label="年月" prop="年月" width="100" />
|
|
<el-table-column sortable align="center" label="年月" prop="年月" width="100" />
|
|
|
<el-table-column sortable align="center" label="创建用户" prop="创建用户" width="100" />
|
|
<el-table-column sortable align="center" label="创建用户" prop="创建用户" width="100" />
|
|
|
- <el-table-column sortable align="center" label="创建时间" prop="创建时间" width="100" />
|
|
|
|
|
- <el-table-column sortable align="center" label="修改时间" prop="修改时间" width="100" />
|
|
|
|
|
|
|
+ <el-table-column sortable align="center" label="创建时间" prop="创建时间" width="160" />
|
|
|
|
|
+ <el-table-column sortable align="center" label="修改时间" prop="修改时间" width="160" />
|
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
|
|
<el-table v-if="tableStates.showsdsupTable"
|
|
<el-table v-if="tableStates.showsdsupTable"
|
|
@@ -375,6 +379,217 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ v-model="qtdtlist"
|
|
|
|
|
+ title="添加其他待摊费用"
|
|
|
|
|
+ width="600px"
|
|
|
|
|
+ :before-close="handleClose"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-form
|
|
|
|
|
+ ref="formRef"
|
|
|
|
|
+ :model="qtdtformData"
|
|
|
|
|
+ label-width="120px"
|
|
|
|
|
+ label-position="right"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-form-item label="年月" prop="month">
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="qtdtformData.month"
|
|
|
|
|
+ type="month"
|
|
|
|
|
+ placeholder="选择年月"
|
|
|
|
|
+ format="YYYYMM"
|
|
|
|
|
+ value-format="YYYYMM"
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+
|
|
|
|
|
+ <el-form-item label="部门人员工资" prop="salary1">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="qtdtformData.salary1"
|
|
|
|
|
+ placeholder="请输入部门人员工资"
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ @input="calculateTotalCost"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #append>元</template>
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+
|
|
|
|
|
+ <el-form-item label="管理人员工资" prop="salary2">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="qtdtformData.salary2"
|
|
|
|
|
+ placeholder="请输入管理人员工资"
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ @input="calculateTotalCost"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #append>元</template>
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+
|
|
|
|
|
+ <el-form-item label="场地租金" prop="rental">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="qtdtformData.rental"
|
|
|
|
|
+ placeholder="请输入场地租金"
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ @input="calculateTotalCost"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #append>元</template>
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+
|
|
|
|
|
+ <el-form-item label="待摊折旧" prop="depreciation">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="qtdtformData.depreciation"
|
|
|
|
|
+ placeholder="请输入待摊折旧"
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ @input="calculateTotalCost"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #append>元</template>
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+
|
|
|
|
|
+ <el-form-item label="工资成本占比" prop="proportion">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="qtdtformData.proportion"
|
|
|
|
|
+ placeholder="请输入工资成本占比"
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ step="0.01"
|
|
|
|
|
+ @input="calculateTotalCost"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #append>%</template>
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ <div class="form-tip">例如:0.25 表示 25%</div>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+
|
|
|
|
|
+ <el-form-item label="其他费用" prop="rest">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="qtdtformData.rest"
|
|
|
|
|
+ placeholder="请输入其他费用"
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ @input="calculateTotalCost"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #append>元</template>
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+
|
|
|
|
|
+ <el-form-item label="后勤人员工资" prop="profit">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="qtdtformData.profit"
|
|
|
|
|
+ placeholder="请输入后勤人员工资"
|
|
|
|
|
+ type="number"
|
|
|
|
|
+ @input="calculateTotalCost"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template #append>元</template>
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <span class="dialog-footer">
|
|
|
|
|
+ <el-button @click="qtdthandleClose">取消</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="qtdthandleSubmit">添加</el-button>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ v-model="qtdtcopylist"
|
|
|
|
|
+ title="其他待摊费用复制"
|
|
|
|
|
+ width="500px"
|
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
|
+ >
|
|
|
|
|
+ <!-- 月份选择器 -->
|
|
|
|
|
+ <div class="date-picker-container">
|
|
|
|
|
+ <div class="date-picker-item">
|
|
|
|
|
+ <span class="label">参考月份:</span>
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="qtdtformMonth"
|
|
|
|
|
+ type="month"
|
|
|
|
|
+ placeholder="选择参考月份"
|
|
|
|
|
+ format="YYYY年MM月"
|
|
|
|
|
+ value-format="YYYYMM"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="date-picker-item">
|
|
|
|
|
+ <span class="label">创建月份:</span>
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="qtdttoMonth"
|
|
|
|
|
+ type="month"
|
|
|
|
|
+ placeholder="选择创建月份"
|
|
|
|
|
+ format="YYYY年MM月"
|
|
|
|
|
+ value-format="YYYYMM"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 底部按钮 -->
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <span class="dialog-footer">
|
|
|
|
|
+ <el-button @click="qtdtcopylist = false">取消</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="qtdtcopyhandleConfirm">确定</el-button>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ v-model="sdqzjlist"
|
|
|
|
|
+ title="水电气直接费用增加"
|
|
|
|
|
+ width="500px"
|
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
|
+ >
|
|
|
|
|
+ <!-- 月份选择器 -->
|
|
|
|
|
+ <div class="date-picker-container">
|
|
|
|
|
+ <div class="date-picker-item">
|
|
|
|
|
+ <span class="label">创建月份:</span>
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="sdqzjMonth"
|
|
|
|
|
+ type="month"
|
|
|
|
|
+ placeholder="选择创建月份"
|
|
|
|
|
+ format="YYYY年MM月"
|
|
|
|
|
+ value-format="YYYYMM"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 底部按钮 -->
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <span class="dialog-footer">
|
|
|
|
|
+ <el-button @click="sdqzjlist = false">取消</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="sdqzjhandleConfirm">确定</el-button>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ v-model="sdslist"
|
|
|
|
|
+ title="车间色度数增加"
|
|
|
|
|
+ width="500px"
|
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
|
+ >
|
|
|
|
|
+ <!-- 月份选择器 -->
|
|
|
|
|
+ <div class="date-picker-container">
|
|
|
|
|
+ <div class="date-picker-item">
|
|
|
|
|
+ <span class="label">创建月份:</span>
|
|
|
|
|
+ <el-date-picker
|
|
|
|
|
+ v-model="sdsMonth"
|
|
|
|
|
+ type="month"
|
|
|
|
|
+ placeholder="选择创建月份"
|
|
|
|
|
+ format="YYYY年MM月"
|
|
|
|
|
+ value-format="YYYYMM"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 底部按钮 -->
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <span class="dialog-footer">
|
|
|
|
|
+ <el-button @click="sdslist = false">取消</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="sdshandleConfirm">确定</el-button>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+
|
|
|
</el-main>
|
|
</el-main>
|
|
|
</layout-content>
|
|
</layout-content>
|
|
|
</layout>
|
|
</layout>
|
|
@@ -392,7 +607,8 @@
|
|
|
import * as XLSX from 'xlsx'
|
|
import * as XLSX from 'xlsx'
|
|
|
import dayjs, { Dayjs } from 'dayjs';
|
|
import dayjs, { Dayjs } from 'dayjs';
|
|
|
import {GetZzTab,ArtificialAdd,ArtificialAddList,ArtificialEdit,ArtificialList,ArtificialDetailList,shuidianqiList,shuidianqiDetailList,
|
|
import {GetZzTab,ArtificialAdd,ArtificialAddList,ArtificialEdit,ArtificialList,ArtificialDetailList,shuidianqiList,shuidianqiDetailList,
|
|
|
- shuidianqifentanList,ChromaticityAdd,ChromaticityDetailAdd,ChromaticityDetailList,MonochromaticDetailList,UtilitiesList,UtilitiesAdd,shuidianqiMachineDetailList
|
|
|
|
|
|
|
+ shuidianqifentanList,ChromaticityAdd,ChromaticityDetailAdd,ChromaticityDetailList,MonochromaticDetailList,UtilitiesList,UtilitiesAdd,shuidianqiMachineDetailList,
|
|
|
|
|
+ PrepaidExpensesListEdit,PrepaidExpensesList,PrepaidExpensesDetailCopy,shuidianqiDetailAdd,CostCalculation
|
|
|
} from '@/api/jixiaoguanli/caiwubaobiao'
|
|
} from '@/api/jixiaoguanli/caiwubaobiao'
|
|
|
import {ElMessage,ElMessageBox} from "element-plus";
|
|
import {ElMessage,ElMessageBox} from "element-plus";
|
|
|
defineOptions({name: 'Company'})
|
|
defineOptions({name: 'Company'})
|
|
@@ -551,14 +767,21 @@ const loadSdqftDetailData = async (rq,category,item) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// const loadQtdtData = async (rq,category,item) => {
|
|
|
|
|
-// try {
|
|
|
|
|
-// const res = await ArtificialList({month: rq})
|
|
|
|
|
-// rguptableData.value = res.data
|
|
|
|
|
-// } catch (error) {
|
|
|
|
|
-// console.error('加载其他分摊数据失败:', error)
|
|
|
|
|
-// }
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+const loadQtdtData = async (rq, category, item) => {
|
|
|
|
|
+ try {
|
|
|
|
|
+ const qtdtres = await PrepaidExpensesList({ month: rq })
|
|
|
|
|
+
|
|
|
|
|
+ if (qtdtres.code === 0 && qtdtres.data) {
|
|
|
|
|
+ // 将对象转换为表格需要的数组格式
|
|
|
|
|
+ qtdttableData.value = [qtdtres.data]
|
|
|
|
|
+ } else {
|
|
|
|
|
+ qtdttableData.value = []
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ console.error('加载其他分摊数据失败:', error)
|
|
|
|
|
+ qtdttableData.value = []
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
const loadSdsDetailData = async (rq,category,item) => {
|
|
const loadSdsDetailData = async (rq,category,item) => {
|
|
|
try {
|
|
try {
|
|
@@ -588,14 +811,15 @@ const sdqzjuptableRowClick = async (row) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
// 水电费分摊上方数据行点击事件
|
|
// 水电费分摊上方数据行点击事件
|
|
|
-// const sdqftuptableRowClick = async (row) => {
|
|
|
|
|
-// console.log(row)
|
|
|
|
|
-// const res = await ArtificialDetailList({month: row.年月,machine: row.设备编号})
|
|
|
|
|
-// if(res.code === 0){
|
|
|
|
|
-// console.log(res)
|
|
|
|
|
-// rgdowntableData.value = res.data
|
|
|
|
|
-// }
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+const sdqftuptableRowClick = async (row) => {
|
|
|
|
|
+ console.log(row)
|
|
|
|
|
+ const res = await shuidianqiMachineDetailList({month: _noderq.value,sist: row.部门名称,search: '待分摊总额'})
|
|
|
|
|
+ if(res.code === 0){
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ rgdowntableData.value = res.data
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// 色度数上方数据行点击事件
|
|
// 色度数上方数据行点击事件
|
|
|
const sdsuptableRowClick = async (row) => {
|
|
const sdsuptableRowClick = async (row) => {
|
|
|
console.log(row)
|
|
console.log(row)
|
|
@@ -648,6 +872,7 @@ const rgsj_tableColumns = ref(
|
|
|
const DEFAULT_WORKSHOPS = ['胶印车间', '凹丝印车间', '印后车间', '检验车间'];
|
|
const DEFAULT_WORKSHOPS = ['胶印车间', '凹丝印车间', '印后车间', '检验车间'];
|
|
|
const onartificial = () => {
|
|
const onartificial = () => {
|
|
|
rgsjlist.value = true
|
|
rgsjlist.value = true
|
|
|
|
|
+ rgsjgetProductValue()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const rgsjgetProductValue = () => {
|
|
const rgsjgetProductValue = () => {
|
|
@@ -766,6 +991,7 @@ const onsdqcreate = () => {
|
|
|
|
|
|
|
|
const onsdqft = () => {
|
|
const onsdqft = () => {
|
|
|
sdqftlist.value = true
|
|
sdqftlist.value = true
|
|
|
|
|
+ sdqftgetProductValue()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const sdqcopyonDialog = () => {
|
|
const sdqcopyonDialog = () => {
|
|
@@ -893,6 +1119,129 @@ const sdqftCancel = () => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+const qtdtlist = ref(false)
|
|
|
|
|
+const onqtdt = () => {
|
|
|
|
|
+ qtdtlist.value = true
|
|
|
|
|
+ qtdtformData.value.month = _noderq.value;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+const qtdtformData = ref({
|
|
|
|
|
+ month: '',
|
|
|
|
|
+ salary1: '',
|
|
|
|
|
+ salary2: '',
|
|
|
|
|
+ rental: '',
|
|
|
|
|
+ depreciation: '',
|
|
|
|
|
+ proportion: '',
|
|
|
|
|
+ rest: '',
|
|
|
|
|
+ profit: '',
|
|
|
|
|
+ sys_id: ''
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
|
|
+const qtdthandleSubmit = async () => {
|
|
|
|
|
+ qtdtformData.value.sys_id = userStore.userInfo.nickName;
|
|
|
|
|
+ try {
|
|
|
|
|
+ const qtdtAdds = await PrepaidExpensesListEdit(qtdtformData.value);
|
|
|
|
|
+ if (qtdtAdds.code === 0) {
|
|
|
|
|
+ qtdtlist.value = false;
|
|
|
|
|
+ ElMessage({type: 'success',message: '添加成功'})
|
|
|
|
|
+ loadQtdtData(_noderq.value);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({type: 'error',message: '添加失败'})
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ console.error(error);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+const qtdthandleClose = () => {
|
|
|
|
|
+ qtdtlist.value = false;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+//其他待摊费用复制
|
|
|
|
|
+const qtdtcopylist = ref(false)
|
|
|
|
|
+const onqtdtcopy = () => {
|
|
|
|
|
+ qtdtcopylist.value = true
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 月份数据
|
|
|
|
|
+const qtdtformMonth = ref('')
|
|
|
|
|
+const qtdttoMonth = ref('')
|
|
|
|
|
+const qtdtcopyhandleConfirm = async () => {
|
|
|
|
|
+ try {
|
|
|
|
|
+ const qtdtAdds = await PrepaidExpensesDetailCopy({
|
|
|
|
|
+ formMonth: qtdtformMonth.value,
|
|
|
|
|
+ toMonth: qtdttoMonth.value,
|
|
|
|
|
+ sys_id: userStore.userInfo.nickName
|
|
|
|
|
+ });
|
|
|
|
|
+ if (qtdtAdds.code === 0) {
|
|
|
|
|
+ qtdtcopylist.value = false;
|
|
|
|
|
+ ElMessage({type: 'success',message: '复制成功'})
|
|
|
|
|
+ loadQtdtData(_noderq.value);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({type: 'error',message: '复制失败'})
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ console.error(error);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+const sdqzjlist = ref(false)
|
|
|
|
|
+const onsdqzj = () => {
|
|
|
|
|
+ sdqzjlist.value = true
|
|
|
|
|
+ sdqzjMonth.value = _noderq.value
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+const sdqzjMonth = ref('')
|
|
|
|
|
+
|
|
|
|
|
+const sdqzjhandleConfirm = async () => {
|
|
|
|
|
+ try {
|
|
|
|
|
+ const sdqzjAdds = await shuidianqiDetailAdd({
|
|
|
|
|
+ month: sdqzjMonth.value,
|
|
|
|
|
+ sys_id: userStore.userInfo.nickName
|
|
|
|
|
+ });
|
|
|
|
|
+ if (sdqzjAdds.code === 0) {
|
|
|
|
|
+ sdqzjlist.value = false;
|
|
|
|
|
+ ElMessage({type: 'success',message: '增加成功'})
|
|
|
|
|
+ loadSdqzjData(_noderq.value);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({type: 'error',message: '增加失败'})
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ console.error(error);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+const sdslist = ref(false)
|
|
|
|
|
+const onsds = () => {
|
|
|
|
|
+ sdslist.value = true
|
|
|
|
|
+ sdsMonth.value = _noderq.value
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+const sdsMonth = ref('')
|
|
|
|
|
+const sdshandleConfirm = async () => {
|
|
|
|
|
+ try {
|
|
|
|
|
+ const sdsAdds = await ChromaticityDetailAdd({
|
|
|
|
|
+ month: sdsMonth.value,
|
|
|
|
|
+ sys_id: userStore.userInfo.nickName
|
|
|
|
|
+ });
|
|
|
|
|
+ if (sdsAdds.code === 0) {
|
|
|
|
|
+ sdslist.value = false;
|
|
|
|
|
+ ElMessage({type: 'success',message: '增加成功'})
|
|
|
|
|
+ loadSdsData(_noderq.value);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({type: 'error',message: '增加失败'})
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ console.error(error);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
const exportExcel = async (isSummary) => {
|
|
const exportExcel = async (isSummary) => {
|
|
|
try {
|
|
try {
|
|
|
// 1. 获取当前显示的表格ID
|
|
// 1. 获取当前显示的表格ID
|