BUG 优化

dev
xiepeng 2024-04-25 18:01:55 +08:00
parent d291a9b98e
commit 9a445bc29b
2 changed files with 37 additions and 28 deletions

View File

@ -409,7 +409,7 @@ const fnGetData = async () => {
data.form.DISPATCHER = data.form.DISPATCHER.split(",");
data.form.SHIPPINGADDRESS = data.form.SHIPPING_ADDR; //
data.form.DESTINATIONADDRESS = data.form.DESTINATION_ADDR; //
data.userList = data.form.names; // |
data.userList = data.form.deptList; //
data.form.CLIENTCONTACTPHONE = data.form.ENTRUST_PHONE;
data.form.CONFIRMINGPHONE = data.form.CONFIRM_PHONE;
data.form.STARTADMINISTRATIVEAREA = data.form.DEPARTURE_ADDR;
@ -624,6 +624,7 @@ const fnDepartmentChange = async () => {
};
const fnGetUser = async (DEPARTMENT_ID) => {
const resData = await getUserListAll({ DEPARTMENT_ID });
console.log(resData);
data.userList = resData.userList;
};

View File

@ -29,7 +29,7 @@
</el-col>
<el-col :span="12">
<el-form-item class="end">
<el-button v-print="'#printContent'"> </el-button>
<el-button v-print="'#printContent'"> </el-button>
</el-form-item>
</el-col>
</el-row>
@ -121,7 +121,7 @@
import useListData from "@/assets/js/useListData.js";
import {
getExtractionAndUseList,
setExtractionAndUseBatchDelete,
setExtractionAndUseBatchDelete
} from "@/request/security_investment.js";
import { debounce } from "throttle-debounce";
import { ElMessage, ElMessageBox } from "element-plus";
@ -147,15 +147,17 @@ const costItems = [
"应急管理、事故救援演练以及救援队伍建设",
"安全标志及标识",
"配备劳动防护用品",
"其它与安全生产直接相关的物品或者活动",
"其它与安全生产直接相关的物品或者活动"
];
const total = await getExtractionAndUseList();
console.log(total);
const addDialogVisible = ref(false);
const { list, searchForm, fnGetData, tableRef } = useListData(
getExtractionAndUseList,
{
usePagination: false,
defaultSearchForm: {
YEAR: new Date().getFullYear(),
YEAR: new Date().getFullYear()
},
callbackFn: (list) => {
for (let i = 0; i < list.length; i++) {
@ -168,7 +170,7 @@ const { list, searchForm, fnGetData, tableRef } = useListData(
else list[i].TOTAL = list[i - 1].TOTAL - list[i].AMOUNT;
}
}
},
}
}
);
const fnGetSummaries = ({ columns, data }) => {
@ -178,6 +180,13 @@ const fnGetSummaries = ({ columns, data }) => {
sums[index] = "合计";
return;
}
// var arr = ref([5, 6, 7, 8, 9, 10, 11, 12, 13, 14])
// if (arr.includes(index)) {
// sums[index] = total.allOutlayTotalList[index - 5].total;
// return;
// }
if (index !== columns.length - 1) {
sums[index] = "--";
return;
@ -212,7 +221,6 @@ const fnDelete = debounce(
await setExtractionAndUseBatchDelete({ DATA_IDS });
ElMessage.success("删除成功");
fnGetData();
},
{ atBegin: true }
);