Commit b9cbfb1a authored by 黄奎's avatar 黄奎

删除多余文件

parent 1c645591
<template>
<div class="assetsList">
<div class="routerTitle">
<span class="pageTitle">资产列表</span>
<span
@click="morequery = !morequery"
style="display:inline-flex;align-items:center;cursor: pointer;"
class="f12 cd6"
>
<span style="margin-right:5px">高级查询</span>
<img
v-show="!morequery"
style="width:12px;height:12px;"
src="../../assets/img/more.png"
alt=""
/>
<img
v-show="morequery"
class="roatImg"
style="width:12px;height:12px"
src="../../assets/img/more.png"
alt=""
/>
</span>
<span @click="getList" style="margin-left:20px" class="chaxunSpan"
>查询</span
>
<span @click="addSupplier" style="margin-left:20px" class="addSpan">
<img
style="width:10px;height:10px;margin-right:6px"
src="../../assets/img/add.png"
alt=""
/>
新增</span>
<span @click="ImportSee('BulkImport')" style="margin-left:20px" class="addSpan">批量导入</span>
</div>
<div class="padContent">
<ul v-show="morequery" class="queryul">
<li>
<el-input
class="w200"
size="small"
v-model="msg.Name"
placeholder="资产名称"
></el-input>
</li>
<li>
<el-input
class="w200"
size="small"
v-model="msg.PropertyNum"
placeholder="资产编码"
></el-input>
</li>
<li>
<el-input
class="w200"
size="small"
v-model="msg.SerialNumber"
placeholder="序列号"
></el-input>
</li>
<li>
<el-select
size="small"
v-model="msg.PropertyStatus"
placeholder="资产状态" clearable filterable
>
<el-option
v-for="item in PropertyStatusList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
>
</el-option>
</el-select>
</li>
<li>
<el-select
size="small"
filterable clearable
v-model="msg.EmployeeId"
placeholder="使用人"
:filter-method="getEmployee1"
>
<el-option
v-for="item in EmployeeList1"
:key="item.EmployeeId"
:label="item.EmName"
:value="item.EmployeeId"
>
</el-option>
</el-select>
</li>
<li>
<el-select clearable size="small" v-model="msg.SupplierId" placeholder="供应商">
<el-option
v-for="item in supplierList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
>
</el-option>
</el-select>
</li>
<li>
<el-date-picker
v-model="dateList"
type="daterange"
range-separator="至"
value-format="yyyy-MM-dd"
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker>
</li>
</ul>
<vxe-table stripe style="margin-top:15px" :loading="loading"
:data="tableData">
<vxe-table-column field="Name" title="资产状态">
<template v-slot="{ row }">
<span class="commonStyle hoverSpan1"></span>
<span class="ColorSpan huangSpan" v-if="row.PropertyStatus == 1"></span>
<span class="ColorSpan greenSpan" v-if="row.PropertyStatus == 2"></span>
<span class="ColorSpan redSpan" v-if="row.PropertyStatus == 3"></span>
<span class="ColorSpan buleSpan" v-if="row.PropertyStatus == 4"></span>
<span class="ColorSpan redSpan" v-if="row.PropertyStatus == 10"></span>
<span
class="ColorSpan purpleSpan"
v-if="
row.PropertyStatus == 5 ||
row.PropertyStatus == 7 ||
row.PropertyStatus == 9 ||
row.PropertyStatus == 6 ||
row.PropertyStatus == 8
"
></span
>
{{ row.PropertyStatusName }}
</template>
</vxe-table-column>
<vxe-table-column field="Name" title="资产编码">
<template v-slot="{ row }">
<span @click="getCheckDes(row)" class="underline">{{ row.PropertyNum }}</span>
</template>
</vxe-table-column>
<vxe-table-column field="Name" title="资产名称"></vxe-table-column>
<vxe-table-column field="CategoryName" title="分类名称"></vxe-table-column>
<vxe-table-column field="BrandName" title="品牌名称"></vxe-table-column>
<vxe-table-column field="Money" title="金额"></vxe-table-column>
<vxe-table-column field="BuyDate" title="购置日期"></vxe-table-column>
<vxe-table-column field="UseStatusName" title="使用状态"></vxe-table-column>
<vxe-table-column field="PropertyModel" title="型号"></vxe-table-column>
<vxe-table-column field="Mobile" title="使用信息">
<template v-slot="{ row }">
<p>{{ row.EmName }}</p>
<p>{{ row.GetTime }}</p>
</template>
</vxe-table-column>
<vxe-table-column field="address" title="操作">
<template v-slot="{ row }">
<el-tooltip class="item" effect="dark" content="编辑" placement="top" >
<img @click="Edit(row)" style="width:24px;height:24px" src="../../assets/img/edit.png" alt="" />
</el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top" >
<img v-if="row.PropertyStatus == 1" @click="Delete(row)" style="width:24px;height:24px" src="../../assets/img/delete.png" alt=""/>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="操作日志" placement="top" >
<img @click="Operation(row)" style="width:24px;height:24px" src="../../assets/img/czrz.png" alt=""/>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="变更领用人" placement="top" >
<img v-if="row.PropertyStatus == 2" @click="ChnagePeople(row)" style="width:24px;height:24px" src="../../assets/img/shbh.png" alt=""/>
</el-tooltip>
</template>
</vxe-table-column>
</vxe-table>
<el-pagination
@current-change="currentChange"
background
:page-size="msg.pageSize"
layout="prev, pager, next"
:total="total"
>
</el-pagination>
</div>
<el-dialog
:close-on-click-modal="false"
:title="dialogtitle"
:visible.sync="dialogState"
top="0"
width="975px"
>
<el-form
class="MyEditForm"
:model="addMsg"
:rules="rules"
ref="addMsg"
label-width="0px"
>
<div class="basefix">
<div>
<p style="margin-bottom:15px;" class="f12">
<i class="dialogI"></i>使用信息
</p>
<div class="basefix">
<el-form-item label="">
<span class="label">使用人</span>
<el-select :disabled="baseformItem"
size="mini"
filterable
v-model="addMsg.EmployeeId"
placeholder="请输入姓名"
:filter-method="getEmployee2"
>
<el-option label="无" :value="0"></el-option>
<el-option
v-for="item in EmployeeList2"
:key="item.EmployeeId"
:label="item.EmName"
:value="item.EmployeeId"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<p class="label" style="padding-top:4px">领取时间</p>
<el-date-picker :disabled="baseformItem"
size="mini"
v-model="addMsg.GetTime"
type="date"
:picker-options="pickerOptions"
value-format="yyyy-MM-dd"
placeholder="选择日期"
>
</el-date-picker>
</el-form-item>
</div>
</div>
<p style="margin-bottom:15px;" class="f12">
<i class="dialogI"></i>基本信息
</p>
<div class="baseform">
<el-form-item label="" prop="Name">
<span class="label">资产名称</span>
<el-input
size="small"
v-model="addMsg.Name"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="" prop="CategoryId" style="float:left;">
<span class="label">资产分类</span>
<treeselect
style="height:28px;width:100%"
:options="treedata"
v-model="addMsg.CategoryId"
placeholder="不限"
:normalizer="normalizer"
@select="treeClick"
/>
</el-form-item>
<el-form-item label="" prop="BrandName">
<span class="label">品牌</span>
<el-input
size="small"
v-model="addMsg.BrandName"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="">
<span class="label">型号</span>
<el-input
size="mini"
v-model="addMsg.PropertyModel"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="">
<span class="label">单位</span>
<el-input
size="mini"
v-model="addMsg.Units"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="" prop="SerialNumber">
<span class="label">序列号</span>
<el-input
size="small"
v-model="addMsg.SerialNumber"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="" prop="BuyDate">
<span class="label">购置日期</span>
<el-date-picker
size="mini"
v-model="addMsg.BuyDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期"
>
</el-date-picker>
</el-form-item>
<el-form-item label="" prop="BuyType">
<span class="label">购置方式</span>
<el-select
size="mini"
v-model="addMsg.BuyType"
placeholder="请选择"
>
<el-option
v-for="item in BuyTypeList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<span class="label">金额</span>
<el-input
size="mini"
v-model="addMsg.Money"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="">
<span class="label">使用月份期限</span>
<el-input
size="mini"
v-model="addMsg.UseMonths"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="">
<span class="label">使用类型</span>
<el-select
size="mini"
v-model="addMsg.UseStatus"
placeholder="请选择"
>
<el-option
v-for="item in UseStateList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="" prop="BranchId">
<span class="label">公司</span>
<el-select
size="mini"
v-model="addMsg.BranchId"
placeholder="请选择"
>
<el-option
v-for="item in BranchList"
:key="item.Id"
:label="item.BName"
:value="item.Id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="">
<span class="label">备注</span>
<el-input
size="mini"
v-model="addMsg.Remark"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="" prop="SupplierId">
<span class="label">供应商</span>
<el-select
size="mini"
v-model="addMsg.SupplierId"
placeholder="请选择"
>
<el-option
v-for="item in supplierList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
>
</el-option>
</el-select>
</el-form-item>
</div>
</div>
<div class="_addUpload_box">
<ul class="uploadUl">
<li v-for="(item, index) in addMsg.ImageList" :key="index">
<img :src="item" alt="" />
<div class="hoverDiv">
<img
@click="DeleteImg(item, index)"
src="../../assets/img/imgdelete.png"
alt=""
/>
</div>
</li>
</ul>
<div class="uploadDiv">
<el-upload
:http-request="uploadFileBtn"
:multiple="false"
:show-file-list="false"
action
>
<img
style="width:40px;height:36px"
src="../../assets/img/pic.png"
alt=""
/>
<div class="el-upload__text">上传图片</div>
</el-upload>
</div>
</div>
<div class="btnformItem">
<span v-loading="queryLoad" class="submitBtn" type="primary" @click="submitForm('addMsg')"
>确定</span
>
<span class="exitBtn" @click="dialogState = false">取消</span>
</div>
</el-form>
</el-dialog>
<!-- 操作日志 -->
<el-dialog
title="操作日志"
:visible.sync="caozuoState"
top="0"
width="850px"
>
<div class="f12">
<span>资产名称:{{ OperationInfo.Name }}</span>
<span style="margin:0 20px"
>资产编码:{{ OperationInfo.PropertyNum }}</span
>
</div>
<table
style="min-width:100%"
class="myTable miniTable"
v-loading="loading"
border="0"
cellspacing="0"
cellpadding="0"
>
<thead>
<th>类型</th>
<th>内容</th>
<th>签名图片</th>
<th>操作人/时间</th>
</thead>
<tbody>
<tr v-for="(item, index) in OperationList" :key="index">
<td>{{ item.TypeName }}</td>
<td>{{ item.Content }}</td>
<td>
<img
v-if="item.SignImage && item.SignImage != ''"
style="height: 45px;width: 55px;"
:src="item.SignImage"
alt=""
/>
<span class="c99" v-else>-</span>
</td>
<td>
<p>{{ item.CreateBy }}</p>
<p>{{ item.CreateDate }}</p>
</td>
</tr>
<tr v-show="OperationList.length == 0">
<td colspan="4" align="center">暂无数据</td>
</tr>
</tbody>
</table>
<el-pagination
@current-change="currentChange1"
background
:page-size="msg1.pageSize"
layout="prev, pager, next"
:total="total1"
>
</el-pagination>
</el-dialog>
<!-- -->
<el-dialog top="0" title="资产详情" :visible.sync="CheckDetailState" width="1150px">
<CheckDetails ref="mychild"></CheckDetails>
</el-dialog>
<!-- biangeng -->
<el-dialog top="0" title="变更领用人" :visible.sync="changeState" width="780px">
<el-form class="MyEditForm"
:model="changeMsg"
:rules="changeMsgrules"
ref="changeMsg"
label-width="0px">
<el-form-item label="">
<span class="label">领用人</span>
<el-select
size="mini"
filterable
v-model="changeMsg.EmployeeId"
placeholder="请输入姓名"
:filter-method="getEmployee3"
>
<el-option
v-for="item in EmployeeList3"
:key="item.EmployeeId"
:label="item.EmName"
:value="item.EmployeeId"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="" prop="Time">
<p class="label" style="padding-top:4px">领取时间</p>
<el-date-picker
size="mini"
v-model="changeMsg.Time"
type="date"
:picker-options="pickerOptions"
value-format="yyyy-MM-dd"
placeholder="选择日期"
>
</el-date-picker>
</el-form-item>
<el-form-item label="">
<span class="label">备注</span>
<el-input
size="mini"
v-model="changeMsg.Remark"
placeholder="请输入"
></el-input>
</el-form-item>
<div class="btnformItem">
<span v-loading="queryLoad" class="submitBtn" type="primary" @click="ChangesubmitForm('changeMsg')"
>确定</span
>
<span class="exitBtn" @click="changeState = false">取消</span>
</div>
</el-form>
</el-dialog>
</div>
</template>
<script>
import CheckDetails from "@/components/global/CheckDetails.vue";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default {
name: "assetsList",
components: {
Treeselect,
CheckDetails
},
data() {
return {
changeState:false,
changeMsg:{
EmployeeId:'',
Time:'',
Remark:'',
PropertyId:'',
},
changeMsgrules: {
EmployeeId: [
{ required: true, message: "请选择领用人", trigger: "change" }
],
Time: [
{
type: "string",
required: true,
message: "请选择日期",
trigger: "change"
}
]
},
queryLoad:false,
CheckDetailState: false,
total1: 0,
caozuoState: false,
addMsg: {
Id: 0,
Name: "",
BrandName: "",
SerialNumber: "",
CategoryId: null,
BuyDate: "",
BuyType: "1",
Units: "",
UseMonths: 0,
UseStatus: "1",
PropertyStatus: "",
PropertyModel: "",
ImageList: [],
Remark: "",
EmployeeId: "",
SupplierId: "",
GetTime: "",
BranchId: ""
},
normalizer(node) {
var obj = {
id: node.Id,
label: node.Name
};
if (node.ChildList != null && node.ChildList.length > 0) {
obj.children = node.ChildList;
}
return obj;
},
morequery: false,
dateList: [],
currentPage: 1,
tableData: [],
loading: false,
total: 0,
msg: {
pageIndex: 1,
pageSize: 15,
Name: "",
PropertyNum: "",
SerialNumber: "",
CategoryId: "",
PropertyStatus: "",
EmployeeId: "",
SupplierId: "",
StartTime: "",
EndTime: ""
},
pickerOptions: {
  disabledDate(time) {
    return time.getTime() < Date.now() - 24 * 60 * 60 * 1000
}
},
dialogtitle: "新增资产",
dialogState: false,
rules: {
Name: [{ required: true, message: "请输入资产名称", trigger: "blur" }],
BrandName: [{ required: true, message: "请输入品牌", trigger: "blur" }],
BuyType: [
{ required: true, message: "请输入购置方式", trigger: "change" }
],
BranchId: [
{ required: true, message: "请选择公司", trigger: "change" }
],
SupplierId: [
{ required: true, message: "请选择供应商", trigger: "change" }
],
BuyDate: [
{
type: "string",
required: true,
message: "请选择日期",
trigger: "change"
}
],
Mobile: [
{ required: true, message: "请输入联系电话", trigger: "blur" },
{
required: true,
pattern: /^(0|86|17951)?(13[0-9]|15[012356789]|17[012356789]|18[0-9]|19[0-9]|14[57])[0-9]{8}$/,
message: "请输入正确的联系电话"
}
]
},
supplierList: [],
EmployeeList: [],
nodemsg: {
ParentId: -1,
Tier: "",
Name: "",
Type: 1
},
treedata: [],
BuyTypeList: [],
UseStateList: [],
BranchList: [],
PropertyStatusList: [],
msg1: {
pageIndex: 1,
pageSize: 5,
PropertyId: ""
},
OperationList: [],
OperationInfo: {},
OperationLoad: false,
EmployeeList1: [],
EmployeeList2: [],
EmployeeList3: [],
EmName: "",
PropertyId:'',
baseformItem:false,
};
},
mounted() {
this.getList();
this.getSupplierList1();
this.getNode();
this.getBuyType();
this.getUseState();
this.getBranch();
this.getPropertyStatus();
},
methods: {
ImportSee(path){
this.$router.push({
path: "/" + path,
query: {
}
});
},
ChangesubmitForm(formName) {
this.$refs[formName].validate(valid => {
if (valid) {
this.queryLoad=true;
this.apiJavaPost(
"/api/property/SetPropertyChangePersonReceive",
this.changeMsg,
res => {
this.queryLoad=false;
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message);
this.changeState = false;
} else {
this.Error(res.data.message);
}
},
null
);
} else {
return false;
}
});
},
ChnagePeople(item){
this.changeMsg.PropertyId = item.Id;
this.changeState=true;
},
getCheckDes(item){
this.PropertyId=item.Id;
this.CheckDetailState=true;
setTimeout(()=>{
this.$refs.mychild.InitData(this.PropertyId);
},10)
},
Operation(item) {
this.OperationInfo = item;
this.caozuoState = true;
this.msg1.PropertyId = item.Id;
this.getOperation();
},
currentChange1(val) {
this.msg1.pageIndex = val;
this.getOperation();
},
getOperation() {
this.OperationLoad = true;
this.apiJavaPost(
"/api/property/GetPropertyLogPageList",
this.msg1,
res => {
this.OperationLoad = false;
if (res.data.resultCode === 1) {
this.OperationList = res.data.data.pageData;
this.total1 = res.data.data.count;
} else {
this.Error(res.data.message);
}
},
null
);
},
DeleteImg(item, index) {
this.addMsg.ImageList.splice(index, 1);
},
uploadFileBtn(file) {
//上传
if (file.file.size > 1024 * 1024 * 10) {
this.$message.warning("文件大小不能超过10M!");
return;
}
// 1 文档 2 数据 3 图片
let typeArr = [{ stringArr: "GIF|JPG|JPEG|PNG|BMP", type: 3 }];
let ft = file.file.name
.substring(file.file.name.lastIndexOf(".") + 1, file.file.name.length)
.toUpperCase();
let fileTypeNumber = 2;
let typeOk = false;
typeArr.forEach(x => {
if (x.stringArr.indexOf(ft) != "-1") {
fileTypeNumber = x.type;
typeOk = true;
}
});
if (!typeOk) return this.$message.error("请上传图片!");
let newArr = [];
newArr.push(file.file);
let path = "/Upload/Temporary";
this.$message.info("上传中...");
this.UploadSelfFileT(path, newArr, x => {
let fileSize =
file.file.size < 1024
? file.file.size
: (file.file.size / 1024).toFixed(0);
this.addMsg.ImageList.push(
this.domainManager().ViittoFileUrl + x.data.FilePath
);
this.Success("上传成功");
});
},
treeClick(data) {
this.addMsg.CategoryId = data.Id;
},
getNode() {
this.apiJavaPost(
"/api/property/CateporyGetTreeList",
this.nodemsg,
res => {
if (res.data.resultCode === 1) {
this.treedata = res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
},
addSupplier() {
this.addMsg = {
Id: 0,
Name: "",
BrandName: "",
SerialNumber: "",
CategoryId: null,
BuyDate: "",
BuyType: "1",
Units: "",
UseMonths: 0,
UseStatus: "1",
PropertyStatus: "",
PropertyModel: "",
ImageList: [],
Remark: "",
EmployeeId: "",
SupplierId: "",
GetTime: "",
BranchId: ""
};
this.dialogtitle = "新增资产";
this.dialogState = true;
this.baseformItem=false;
},
Edit(item) {
this.dialogtitle = "编辑资产";
this.dialogState = true;
this.addMsg = Object.assign({}, item);
this.addMsg.BuyType = this.addMsg.BuyType + "";
this.addMsg.UseStatus = this.addMsg.UseStatus + "";
this.EmName = item.EmName;
this.getEmployee(2);
this.baseformItem=true;
if (!this.addMsg.ImageList) {
this.addMsg.ImageList = [];
}
},
Delete(item) {
let Id = item.Id;
this.$confirm("确认删除该资产?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.apiJavaPost(
"/api/property/DelPropertyInfo",
{ PropertyId: Id },
res => {
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message);
} else {
this.Error(res.data.message);
}
},
null
);
})
.catch(() => {
this.$message.info("已取消删除!");
});
},
submitForm(formName) {
this.$refs[formName].validate(valid => {
if (valid) {
delete this.addMsg.UpdateBy;
delete this.addMsg.UpdateDate;
this.queryLoad=true;
this.apiJavaPost(
"/api/property/SetPropertyInfo",
this.addMsg,
res => {
this.queryLoad=false;
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message);
this.dialogState = false;
} else {
this.Error(res.data.message);
}
},
null
);
} else {
return false;
}
});
},
currentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
getList() {
if (this.dateList && this.dateList.length > 0) {
this.msg.StartTime = this.dateList[0];
this.msg.EndTime = this.dateList[1];
} else {
this.msg.StartTime = "";
this.msg.EndTime = "";
}
this.loading = true;
this.apiJavaPost(
"/api/property/PropertyGetPageList",
this.msg,
res => {
this.loading = false;
if (res.data.resultCode === 1) {
this.tableData = res.data.data.pageData;
this.total = res.data.data.count;
} else {
this.Error(res.data.message);
}
},
null
);
},
getPropertyStatus() {
this.apiJavaPost(
"/api/property/GetPropertyStatusEnumList",
{},
res => {
if (res.data.resultCode === 1) {
this.PropertyStatusList = res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
},
getSupplierList1() {
this.apiJavaPost(
"/api/property/GetSupplierList",
{},
res => {
if (res.data.resultCode === 1) {
this.supplierList = res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
},
getEmployee1(val) {
if (val != "") {
this.EmName = val;
this.getEmployee(1);
}
},
getEmployee2(val) {
if (val != "") {
this.EmName = val;
this.getEmployee(2);
}
},
getEmployee3(val) {
if (val != "") {
this.EmName = val;
this.getEmployee(3);
}
},
getEmployee(num) {
this.apiJavaPost(
"/api/User/GetEmployeeList",
{ EmName: this.EmName },
res => {
if (res.data.resultCode === 1) {
if (num == 1) {
this.EmployeeList1 = res.data.data;
}
else if (num == 2) {
this.EmployeeList2 = res.data.data;
}
else if (num == 3) {
this.EmployeeList3 = res.data.data;
}
} else {
this.Error(res.data.message);
}
},
null
);
},
getBuyType() {
this.apiJavaPost(
"/api/property/GetPropertyBuyTypeEnumList",
{},
res => {
if (res.data.resultCode === 1) {
this.BuyTypeList = res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
},
getUseState() {
this.apiJavaPost(
"/api/property/GetPropertyUseStateEnumList",
{},
res => {
if (res.data.resultCode === 1) {
this.UseStateList = res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
},
getBranch() {
this.apiJavaPost(
"/api/User/GetBranchList",
{},
res => {
if (res.data.resultCode === 1) {
this.BranchList = res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
}
}
};
</script>
<style>
.assetsList .MyEditForm .baseform .el-form-item:nth-child(4n) {
margin-right: 0;
}
.assetsList .zczt1 {
background: #ffe4d5;
color: #ffa87c;
}
.assetsList .zczt2 {
background: #beeff0;
color: #089bab;
}
.assetsList .zczt3 {
background: #ffd6d5;
color: #ff7874;
}
.assetsList .zczt4 {
background: #d7d6ff;
color: #7b78ff;
}
.assetsList .Commonzczt {
display: inline-block;
width: 24px;
height: 24px;
line-height: 24px;
text-align: center;
border-radius: 50%;
font-size: 12px;
font-family: "Microsoft YaHei";
}
.assetsList {
width: 100%;
height: 100%;
}
</style>
<template>
<div class="Autologin">
<div class="gifContent">
<img src="../../assets/img/load.gif" alt="">
</div>
</div>
</template>
<script>
export default {
name: 'login',
data() {
return {
}
},
created() {
let href = window.location.href;
let param = href.split('?')[1].split("&");
if (param) {
let obj = {};
obj.token = param[0].split('=')[1];
obj.SecretKey = param[1].split('=')[1];
localStorage.scmAccount = JSON.stringify(obj);
this.getUserInfo();
}
},
mounted() {},
methods: {
getUserInfo() {
},
},
}
</script>
<style>
.Autologin .gifContent {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
}
</style>
<template>
<div class="CheckDetails basefix">
<div class="left">
<el-carousel v-if="datainfo.ImageList.length>0" height="500px">
<el-carousel-item style="display:flex;align-items:center" v-for="(item,index) in datainfo.ImageList" :key="index">
<img style="width:100%;" :src="item" alt="">
</el-carousel-item>
</el-carousel>
<img v-else style="width:100%;height:500px;border: 1px solid #ccc;" src="../../assets/img/noimg.png" alt="">
</div>
<div class="right overflowY" style="height:500px">
<div class="baseTitle">使用信息</div>
<div class="desItem">
<p>使用人</p>
<p>
<span v-if="datainfo.EmName && datainfo.EmName!=''">{{datainfo.EmName}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>领取时间</p>
<p>
<span v-if="datainfo.GetTime && datainfo.GetTime!=''">{{datainfo.GetTime}}</span>
<span v-else></span>
</p>
</div>
<div class="baseTitle">基本信息</div>
<div class="baseDiv">
<div class="desItem">
<p>资产名称</p>
<p>
<span v-if="datainfo.Name && datainfo.Name!=''">{{datainfo.Name}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>资产分类</p>
<p>
<span v-if="datainfo.CategoryName && datainfo.CategoryName!=''">{{datainfo.CategoryName}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>品牌</p>
<p>
<span v-if="datainfo.BrandName && datainfo.BrandName!=''">{{datainfo.BrandName}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>型号</p>
<p>
<span v-if="datainfo.PropertyModel && datainfo.PropertyModel!=''">{{datainfo.PropertyModel}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>单位</p>
<p>
<span v-if="datainfo.Units && datainfo.Units!=''">{{datainfo.Units}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>序列号</p>
<p>
<span v-if="datainfo.SerialNumber && datainfo.SerialNumber!=''">{{datainfo.SerialNumber}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>购置日期</p>
<p>
<span v-if="datainfo.BuyDate && datainfo.BuyDate!=''">{{datainfo.BuyDate}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>购置方式</p>
<p>
<span v-if="datainfo.BuyTypeName && datainfo.BuyTypeName!=''">{{datainfo.BuyTypeName}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>金额</p>
<p>
<span v-if="datainfo.Money && datainfo.Money!=''">{{datainfo.Money}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>使用类型</p>
<p>
<span v-if="datainfo.UseStatusName && datainfo.UseStatusName!=''">{{datainfo.UseStatusName}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>公司</p>
<p>
<span v-if="datainfo.BranchName && datainfo.BranchName!=''">{{datainfo.BranchName}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>备注</p>
<p>
<span v-if="datainfo.Remark && datainfo.Remark!=''">{{datainfo.Remark}}</span>
<span v-else></span>
</p>
</div>
<div class="desItem">
<p>供应商</p>
<p>
<span v-if="datainfo.SupplierName && datainfo.SupplierName!=''">{{datainfo.SupplierName}}</span>
<span v-else></span>
</p>
</div>
</div>
<div class="baseTitle">操作记录</div>
<table style="min-width:100%" v-loading="detailLoad" class="myTable miniTable" border="0" cellspacing="0" cellpadding="0" >
<thead>
<th>类型</th>
<th>内容</th>
<th>签名图片</th>
<th>操作人/时间</th>
</thead>
<tbody>
<tr v-for="(item, index) in OperationList" :key="index">
<td>{{ item.TypeName }}</td>
<td>{{ item.Content }}</td>
<td>
<img
v-if="item.SignImage && item.SignImage != ''"
style="height: 45px;width: 55px;"
:src="item.SignImage"
alt=""
/>
<span class="c99" v-else>-</span>
</td>
<td>
<p>{{ item.CreateBy }}</p>
<p>{{ item.CreateDate }}</p>
</td>
</tr>
<tr v-show="OperationList.length == 0">
<td colspan="4" align="center">暂无数据</td>
</tr>
</tbody>
</table>
<el-pagination
@current-change="currentChange"
background
:page-size="msg.pageSize"
layout="prev, pager, next"
:total="total"
>
</el-pagination>
</div>
</div>
</template>
<script>
export default {
name: '',
data(){
return{
msg: {
pageIndex: 1,
pageSize: 5,
PropertyId: ""
},
OperationList:[],
total:0,
datainfo:{
ImageList:[],
},
PropertyId:'',
detailLoad:false,
}
},
created(){
},
mounted(){
},
methods:{
InitData(id){
this.PropertyId=id;
this.msg.PropertyId=id;
this.getOperation();
this.getDataInfo();
},
currentChange(val) {
this.msg.pageIndex = val;
this.getOperation();
},
getOperation() {
this.detailLoad = true;
this.apiJavaPost(
"/api/property/GetPropertyLogPageList",
this.msg,
res => {
this.detailLoad = false;
if (res.data.resultCode === 1) {
this.OperationList = res.data.data.pageData;
this.total = res.data.data.count;
} else {
this.Error(res.data.message);
}
},
null
);
},
getDataInfo(){
this.apiJavaPost(
"/api/property/GetPropertyInfo",
{Id:this.PropertyId},
res => {
this.OperationLoad = false;
if (res.data.resultCode === 1) {
this.datainfo = res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
},
},
}
</script>
<style>
.CheckDetails .baseDiv .desItem:nth-child(3n){
margin-right:0;
}
.CheckDetails .desItem p:first-child{
margin-bottom: 4px;
}
.CheckDetails .desItem{
display: inline-block;
background: #fff;
box-sizing: border-box;
border-radius: 10px;
width: 200px;
margin:10px 10px 10px 0;
padding:6px 10px;
}
.CheckDetails .baseTitle{
padding:5px 0;
border-bottom: 1px dashed #ccc;
margin-bottom:10px;
font-family: "PingFangR";
}
.CheckDetails>div{
float: left;
font-size: 12px;
}
.CheckDetails .left{
width:440px;
box-sizing: border-box;
padding:25px;
}
.CheckDetails .right{
width: 660px;
padding:0 10px 0 15px;
box-sizing: border-box;
}
</style>
......@@ -15,8 +15,8 @@ export default {
let locationName = window.location.hostname;
if (this.isOnline()) {
if (window.location.host.indexOf('testzcyx.oytour.com') != -1) {
//domainUrl = "http://127.0.0.1"
domainUrl = "http://testapi.oytour.com"
domainUrl = "http://127.0.0.1"
//domainUrl = "http://testapi.oytour.com"
} else if (window.location.host.indexOf('oytour.com') != -1)
domainUrl = "http://reborn.oytour.com"
}
......
import Home from '../components/Home'
import Login from '../components/global/Login'
import Autologin from '../components/global/Autologin'
import index from '../components/global/index'
export default {
......@@ -17,11 +16,7 @@ export default {
name: 'Login',
component: Login
},
{
path: '/Autologin',
name: 'Autologin',
component: Autologin
},
{
path: '/index',
......@@ -36,11 +31,7 @@ export default {
name: 'Home',
component: Home
},
{
path: '/assetsList',
name: 'assetsList',
component: resolve => require(['@/components/assetsman/assetsList'], resolve),
},
//酒店新增
{
path: '/HotelInfo',
......@@ -59,7 +50,7 @@ export default {
name: 'RoomList',
component: resolve => require(['@/components/assetsman/RoomList'], resolve),
},
//报价
//报价
{
path: '/Quotation',
name: 'Quotation',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment