庞东旭 преди 2 години
родител
ревизия
398320b860
променени са 4 файла, в които са добавени 167 реда и са изтрити 8 реда
  1. +163
    -0
      src/views/sunVillage_info/details_issues.vue
  2. +2
    -4
      src/views/sunVillage_info/fixedAssets.vue
  3. +1
    -1
      src/views/sunVillage_info/fixedAssetsAdd.vue
  4. +1
    -3
      src/views/sunVillage_info/information.vue

+ 163
- 0
src/views/sunVillage_info/details_issues.vue Целия файл

@@ -0,0 +1,163 @@
<template>
<div class="home_wrapper">
<div class="header_main">
{{form.openName}}
<div class="return_btn" @click="onClickLeft"></div>
</div>
<div class="release_head">
<div class="people"><i class="icon"></i>发布人:{{form.createBy}}</div>
<div class="time"><i class="icon"></i>发布日期:{{form.createTime}}</div>
</div>
<div class="release_conetnt">
<img :src="'/api'+item" v-for="(item,index) in form.openPic" :key="index" />
<van-cell-group inset>
<van-cell :title="item.substr(27,item.length)" v-for="(item,index) in form.openFile" :key="index" @click="goFile(item)" />
</van-cell-group>
<p style="margin-top: 10PX">{{form.remark}}</p>
</div>
</div>
</template>

<script>
import { financePublicDetail , tempWorkerPublicDetail } from "@/api/sunVillage_info/fixedAssets";
import Cookies from "js-cookie";
import request from '@/utils/request'
export default {
name: "certificateList",
data() {
return {
queryParams:{
id:'',
},
form:{},
type:''
};
},
created() {
this.houseGetDicts("asset_status").then((response) => {
this.assetStatusOptions = response.data;
});
this.houseGetDicts("asset_type").then((response) => {
this.assetTypeOptions = response.data;
});
this.houseGetDicts("use_type").then((response) => {
this.useTypeOptions = response.data;
});
this.queryParams.id = this.$route.query.id;
this.type = this.$route.query.type;
this.queryParams.bookId = Cookies.get('bookId');
this.queryParams.deptId = Cookies.get('deptId');
this.getDetail()
},
methods: {
getDetail(id){
setTimeout(() => {
if (this.type == 'finance'){
financePublicDetail(this.queryParams).then(response => {
if (response.code == 200){
if (response.data.openFile){response.data.openFile = response.data.openFile.split(',');}
if (response.data.openPic){response.data.openPic = response.data.openPic.split(',');}
response.data.createTime = response.data.createTime.substr(0,10)
this.form = response.data;
}
});
}
if (this.type == 'tourists'){
tempWorkerPublicDetail(this.queryParams).then(response => {
if (response.code == 200){
if (response.data.openFile){response.data.openFile = response.data.openFile.split(',');}
if (response.data.openPic){response.data.openPic = response.data.openPic.split(',');}
response.data.createTime = response.data.createTime.substr(0,10)
this.form = response.data;
}
});
}

}, 1000);
},
goFile(item){
window.location = '/api'+item;
}
},
}
</script>

<style scoped lang="scss">
.home_wrapper{
background: #e9e9e9;
min-height: 100vh;
width: 100vw;
.header_main {
height: 116px;
background: url('../../assets/images/sunVillage_info/list_head.png') no-repeat;
background-size: 100% 100%;
position: fixed;
top: 0;
left: 0;
width: 100%;
font-size: 36px;
line-height: 116px;
text-align: center;
color: #fff;
position: relative;

.return_btn {
width: 24px;
height: 43.2px;
background: url('../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
background-size: 20px 36px;
position: absolute;
left: 38px;
top: 36px;
}
}
.release_head{
height: 90px;
padding:0 23px;
display: flex;
align-items: center;
font-size: 26px;
color: #929292;
.people{
flex: 1;
display: flex;
align-items: center;
.icon{
width: 24px;
height: 21px;
background: url('../../assets/images/sunVillage_info/details_icon_1.png') no-repeat;
background-size: 100% 100%;
display: block;
margin-right: 8px;
}
}
.time{
flex: 1;
display: flex;
align-items: center;
justify-content:flex-end;
.icon{
width: 25px;
height: 25px;
background: url('../../assets/images/sunVillage_info/details_icon_2.png') no-repeat;
background-size: 100% 100%;
display: block;
margin-right: 8px;
}
}
}
.release_conetnt{
padding:0 22px;
font-size: 32px;
color: #252525;
line-height: 44px;
img{
max-width: 100%;
margin-bottom: 16px;
}
p{
margin-bottom: 16px;
}
}
}
</style>

+ 2
- 4
src/views/sunVillage_info/fixedAssets.vue Целия файл

@@ -126,18 +126,16 @@
},
afterRead(file) {
// 此时可以自行将文件上传至服务器
this.uploadFiles1.push(file.file);
this.uploadFiles1.map((rr1,idx1) => {
this.uploadFiles1.push(file.file);
let params1 = new FormData();
params1.append("tableId", this.projectId);
params1.append("tableName", "t_asset_permanent");
params1.append("bizPath", "asset");
params1.append("fileType", this.projectIndex);
params1.append("file", rr1);
params1.append("file", file.file);
commonAttach(params1).then((r1) => {
this.$notify({ type: 'success', message: '上传成功' });
})
})
},
openLoader(id,index){
this.show = true;


+ 1
- 1
src/views/sunVillage_info/fixedAssetsAdd.vue Целия файл

@@ -10,8 +10,8 @@
<img src="../../assets/images/sunVillage_info/add_icon_1.png" style="width:22PX;height:22PX;margin-right: 10px;"/>
<p class="tit">基本信息</p>
</div>
<van-field v-model="form.code" label="资产编码" placeholder="不输入时系统自动分配" input-align="right" :border="false" />
<van-field required :rules="[{ required: true, message: '请填写资产名称' }]" v-model="form.name" label="资产名称" placeholder="资产名称" input-align="right" :border="false" />
<van-field v-model="form.code" label="资产编码" placeholder="资产编码" input-align="right" :border="false" />

<van-field
readonly


+ 1
- 3
src/views/sunVillage_info/information.vue Целия файл

@@ -133,17 +133,15 @@
afterRead(file) {
// 此时可以自行将文件上传至服务器
this.uploadFiles1.push(file.file);
this.uploadFiles1.map((rr1,idx1) => {
let params1 = new FormData();
params1.append("tableId", this.projectId);
params1.append("tableName", "t_contraction_info");
params1.append("bizPath", "contraction");
params1.append("fileType", this.projectIndex);
params1.append("file", rr1);
params1.append("file", file.file);
commonAttach(params1).then((r1) => {
this.$notify({ type: 'success', message: '上传成功' });
})
})
},
openLoader(id,index){
this.show = true;


Зареждане…
Отказ
Запис