fix: BUG修改

This commit is contained in:
kun 2024-05-06 12:03:45 +08:00
parent e23d609a27
commit 8a83f84459
5 changed files with 326 additions and 7 deletions

View File

@ -9,7 +9,7 @@ export default {
temporaryVehicleEntryAndExitRecords:'临时车进出记录',
placeholder_select: '请输入',
carColor: '车牌颜色',
carColorArr: ['蓝色', '绿色', '黄色', '白色', '黑色'],
carColorArr: ['蓝色', '绿色', '黄色', '白色', '黑色', '红色', '橙色', '青色', '紫色', '灰色', '粉色', '棕色'],
carNumber: '车牌号',
inAndOutTime:'进出时间',
inAndOutPhoto:'进出场图片',

View File

@ -84,9 +84,9 @@ if (process.env.NODE_ENV == 'development') {
// axios.defaults.baseURL ='http://101.43.164.214:45011/' //上海优益(上海建工)
// axios.defaults.baseURL = 'http://192.168.34.221:28888/' //郭圣雄本地
// axios.defaults.baseURL = 'http://192.168.34.221:28889/' //郭圣雄本地
// axios.defaults.baseURL ='http://192.168.34.221:9111/' //郭圣雄本地
axios.defaults.baseURL ='http://192.168.34.221:9111/' //郭圣雄本地
// axios.defaults.baseURL = 'http://192.168.34.155:19111/' //彭洁本地
axios.defaults.baseURL = 'http://182.90.224.237:51234' //郭圣雄远程
// axios.defaults.baseURL = 'http://182.90.224.237:51234' //郭圣雄远程
// axios.defaults.baseURL ='http://101.43.164.214:45020/' //沈阳和盈
// axios.defaults.baseURL ='http://183.249.224.118:9000/' //嘉兴王江泾公用码头
// axios.defaults.baseURL ='http://101.43.164.214:11111/' // 百色三标段项目

View File

@ -1583,10 +1583,16 @@ const routes2 = [
},
{
path: "/project/materialManage/materialEntryManage",
name: "材料管理_材料入场记录台账",
name: "材料管理_材料入场记录台账",
component: () =>
import("@/views/projectFront/materialManage/materialEntryManage.vue"),
},
{
path: "/project/materialManage/materialExitManage",
name: "材料管理_材料出场记录台账",
component: () =>
import("@/views/projectFront/materialManage/materialExitManage.vue"),
},
{
path: "/project/materialManage/cooperationUnit",
name: "材料管理_资源中心_合作单位",

View File

@ -88,7 +88,7 @@
<el-table-column
v-if="COMPANY != 'neimenggu'"
prop="carColor"
:label="$t('message.carManage.carColor')"
label="车身颜色"
align="center"
></el-table-column>
<el-table-column
@ -619,9 +619,9 @@
><!--:on-preview="handlePictureCardPreview"-->
<!-- {{showImgUrl}}-->
</el-form-item>
<!-- 颜色 -->
<!-- 颜色 -->
<el-form-item
:label="$t('message.carManage.carColor')"
label="车身颜色"
prop="carColor"
v-if="COMPANY != 'neimenggu'"
>

View File

@ -0,0 +1,313 @@
<template>
<!-- 进度预警 -->
<div class="fullHeight">
<div class="searchBox whiteBlock">
<el-form
:inline="true"
size="medium"
:model="queryInfo"
class="demo-form-inline"
>
<el-form-item :label="$t('message.laborMange.companies')">
<el-select
ref="selectRef"
v-model="selectVal"
placeholder="请选择"
clearable
@change="selectChange"
>
<el-option style="height:auto" :value="[]">
<el-tree
:data="treeList"
node-key="enterpriseId"
ref="groupTree"
:default-expanded-keys="defaultExpandArr"
:props="defaultProps"
:default-expand-all="false"
@node-click="treeClick"
>
</el-tree>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="批次" prop="materialName">
<el-input
v-model="queryInfo.materialName"
placeholder="请输入"
clearable
></el-input>
</el-form-item>
<el-form-item label="入场时间" prop="materialName">
<el-date-picker
size="medium"
v-model="queryInfo.timeRange"
type="daterange"
range-separator="至"
value-format="yyyy-MM-dd"
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" plain @click="getWarningListData"
>查询</el-button
>
<el-button type="warning" plain @click="refresh">刷新</el-button>
</el-form-item>
</el-form>
</div>
<div class="table_wrap whiteBlock">
<vue-scroll>
<el-table class="tables" :data="tableList">
<el-table-column
type="index"
:label="$t('message.projectManage.serialNumber')"
align="center"
width="50"
>
</el-table-column>
<el-table-column
prop="enterpriseName"
align="center"
label="企业"
></el-table-column>
<el-table-column
prop="name"
align="center"
label="批次"
></el-table-column>
<el-table-column
prop="entryTime"
align="center"
label="入场时间"
></el-table-column>
<el-table-column align="center" label="操作" width="280">
<template slot-scope="scope">
<div
@click="showDetail(scope.row)"
class="operationText"
v-if="![2, 3].includes(scope.row.auditType)"
>
<img
src="@/assets/images/tableIcon/showReply.png"
width="15px"
height="15px"
/>
<span style="white-space: nowrap;color: #5678E8;"
>查看明细</span
>
</div>
</template>
</el-table-column>
</el-table>
</vue-scroll>
</div>
<el-pagination
class="pagerBox"
style="position: absolute; top: 85%; left: 40%"
@size-change="SizeChange"
@current-change="CurrentChange"
:current-page="pagInfo.pageNo"
:page-sizes="$store.state.PAGESIZRS"
:page-size="pagInfo.pageSize"
layout="total, sizes, prev, pager, next"
:total="Number(pagInfo.total)"
background
></el-pagination>
<!-- 更新总进度 -->
<el-dialog
:modal-append-to-body="false"
title="查看明细"
:visible.sync="dialogVisible"
width="1000px"
>
<div class="dialog_content">
<div class="update-record">
<el-table
:data="dialogTableData"
height="500"
style="width: 100%;">
<el-table-column
type="index"
width="50"
prop="updateDate"
align="center"
label="序号">
</el-table-column>
<el-table-column
prop="name"
align="center"
label="材料名称">
</el-table-column>
<el-table-column
prop="model"
align="center"
label="型号">
</el-table-column>
<el-table-column
prop="specifications"
align="center"
label="规格">
</el-table-column>
<el-table-column
prop="unit"
align="center"
label="单位">
</el-table-column>
<el-table-column
prop="num"
align="center"
label="数量">
</el-table-column>
<el-table-column
prop="remark"
align="center"
label="备注">
</el-table-column>
</el-table>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
import {
materialEntryRecordPageApi,
materialRecordDetailListApi
} from "@/assets/js/api/materialManage";
import { selectHierarchyEnterpriseListApi } from "@/assets/js/api/laborPerson";
export default {
mounted() {},
data() {
return {
selectTreeData: {},
defaultExpandArr: [],
//
defaultProps: {
children: "children",
label: "enterpriseName",
},
treeList: [],
selectVal: "",
dialogVisible: false,
dialogTableData: [],
projectSn: "",
tableList: [],
queryInfo: {
enterpriseId: "",
materialName: "",
timeRange: [],
id:''
},
pagInfo: {
pageNo: 1, //
pageSize: 10, //
total: 0, //
},
rowObj: {}
};
},
created() {
this.projectSn = this.$store.state.projectSn;
this.getWarningListData();
this.getTreeList();
},
methods: {
selectChange(val) {
console.log(val, 123);
if (!val) {
this.selectVal = "";
this.selectTreeData = {};
this.queryInfo.id = "";
}
},
//
treeClick(data) {
console.log(data);
if (data.status == 1) {
this.$message.warning("无法选中已禁用组织");
} else {
this.selectVal = data.enterpriseName;
this.queryInfo.id = data.id
this.selectTreeData = data;
this.queryInfo.id = data.enterpriseId;
this.$refs.selectRef.blur();
}
},
getTreeList() {
selectHierarchyEnterpriseListApi({
projectSn: this.$store.state.projectSn,
}).then((result) => {
if (result.success) {
this.treeList = result.result;
}
});
},
//
getDetailListData() {
let data = {
materialId: this.rowObj.id
};
materialRecordDetailListApi(data).then((res) => {
console.log("返回的值", res);
if (res.code == 200) {
this.dialogTableData = res.result;
}
});
},
showDetail(row) {
this.rowObj = row;
this.dialogVisible = true;
this.$nextTick(() => {
this.getDetailListData();
})
console.log(row, 666);
},
//
getWarningListData() {
let data = {
projectSn: this.projectSn,
pageNo: this.pagInfo.pageNo,
pageSize: this.pagInfo.pageSize,
name: this.queryInfo.materialName,
enterpriseId: this.queryInfo.id
};
if(this.queryInfo.timeRange && this.queryInfo.timeRange.length > 0){
data.entryTime_begin = this.queryInfo.timeRange[0];
data.entryTime_end = this.queryInfo.timeRange[1];
}
materialEntryRecordPageApi(data).then((res) => {
console.log("返回的值", res);
if (res.code == 200) {
this.tableList = res.result.records;
console.log(this.tableList, 777888);
this.pagInfo.total = res.result.total;
}
});
},
//
refresh() {
this.queryInfo = {};
this.selectVal = "";
this.pagInfo.pageNo = 1; //
this.pagInfo.pageSize = 10; //
this.getWarningListData();
},
SizeChange(val) {
this.pagInfo.pageSize = val;
this.getWarningListData();
},
CurrentChange(val) {
this.pagInfo.pageNo = val;
this.getWarningListData();
},
},
};
</script>
<style lang="less" scoped>
//
/deep/.el-select-dropdown__item.hover,.el-select-dropdown__item.hover, .el-select-dropdown__item:hover{
background-color: transparent;
}
</style>