|
@@ -8,38 +8,38 @@
|
|
|
<view class="card_table">
|
|
|
<u-row justify="space-between">
|
|
|
<u-col span="6">
|
|
|
- <view>年度: 2024</view>
|
|
|
+ <view>年度: {{inputForm.yearNum}}</view>
|
|
|
</u-col>
|
|
|
<u-col span="6">
|
|
|
- <view style="text-align: right;">[2024]001号</view>
|
|
|
+ <view style="text-align: right;">{{inputForm.cardNum}}</view>
|
|
|
</u-col>
|
|
|
</u-row>
|
|
|
<u-row justify="space-between" class="card_row">
|
|
|
<u-col span="3" textAlign="center" class="card_col">
|
|
|
<view>来文机关</view>
|
|
|
</u-col>
|
|
|
- <u-col span="3" textAlign="center" class="card_col">
|
|
|
- <view>[2024]001号</view>
|
|
|
+ <u-col span="3" textAlign="center" class="">
|
|
|
+ <view>{{inputForm.sendingAgency}}</view>
|
|
|
</u-col>
|
|
|
- <u-col span="3" textAlign="center" class="card_col">
|
|
|
+ <u-col span="3" textAlign="center" class="card_col card_col_1">
|
|
|
<view>来文字号</view>
|
|
|
</u-col>
|
|
|
<u-col span="3" textAlign="center">
|
|
|
- <view>[2024]001号</view>
|
|
|
+ <view>{{inputForm.docFontSize}}</view>
|
|
|
</u-col>
|
|
|
</u-row>
|
|
|
<u-row justify="space-between" class="card_row card_row_border">
|
|
|
<u-col span="3" textAlign="center" class="card_col">
|
|
|
<view>收文时间</view>
|
|
|
</u-col>
|
|
|
- <u-col span="3" textAlign="center" class="card_col">
|
|
|
- <view>[2024]001号</view>
|
|
|
+ <u-col span="3" textAlign="center" class="">
|
|
|
+ <view>{{inputForm.receivingTime}}</view>
|
|
|
</u-col>
|
|
|
- <u-col span="3" textAlign="center" class="card_col">
|
|
|
+ <u-col span="3" textAlign="center" class="card_col card_col_1">
|
|
|
<view>文件来源</view>
|
|
|
</u-col>
|
|
|
<u-col span="3" textAlign="center">
|
|
|
- <view>[2024]001号</view>
|
|
|
+ <view>{{inputForm.fileSource}}</view>
|
|
|
</u-col>
|
|
|
</u-row>
|
|
|
<u-row justify="space-between" class="card_row card_row_border">
|
|
@@ -48,60 +48,59 @@
|
|
|
</u-col>
|
|
|
<u-col span="9" class="info_abstract">
|
|
|
<view class="info_abstract_v">
|
|
|
- [2024]001号11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
|
|
+ {{inputForm.contentSummary}}
|
|
|
</view>
|
|
|
</u-col>
|
|
|
</u-row>
|
|
|
- <u-row v-if="isleader || isinfo" style="height: 70px;" justify="space-between" class="card_row card_row_border">
|
|
|
- <u-col span="1" textAlign="center" >
|
|
|
+ <u-row v-if="officeInfo.length>0" style="height: 70px;" justify="space-between"
|
|
|
+ class="card_row card_row_border">
|
|
|
+ <u-col span="1" textAlign="center">
|
|
|
<view class="vertical-text">办公室拟办</view>
|
|
|
</u-col>
|
|
|
- <u-col span="11" class="info_abstract">
|
|
|
- <view class="info_abstract_v">
|
|
|
- <view >
|
|
|
- 请领导长阅,承办地方阅处。
|
|
|
+ <u-col span="11" class="info_abstract">
|
|
|
+ <view v-for="item in officeInfo" class="info_abstract_v">
|
|
|
+ <view>
|
|
|
+ {{item.content}}
|
|
|
</view>
|
|
|
<view class="flex " style="line-height: 20px;">
|
|
|
<u--image :src="src" width="80px" height="20px"></u--image>
|
|
|
- 2024-3-21 00:00
|
|
|
+ {{item.createTime}}
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
-
|
|
|
</u-col>
|
|
|
</u-row>
|
|
|
- <u-row v-if="isinfo" justify="space-between" class="card_row card_row_border">
|
|
|
- <u-col span="1" textAlign="center" >
|
|
|
+ <u-row v-if="leaderInfo.length>0" justify="space-between" class="card_row card_row_border">
|
|
|
+ <u-col span="1" textAlign="center">
|
|
|
<view class="vertical-text">领导批示</view>
|
|
|
</u-col>
|
|
|
- <u-col span="11" class="info_abstract">
|
|
|
- <view class="info_abstract_v">
|
|
|
- <view >
|
|
|
- 请领导长阅,承办地方阅处。
|
|
|
+ <u-col span="11" class="info_abstract">
|
|
|
+ <view v-for="leader in leaderInfo" class="info_abstract_v">
|
|
|
+ <view>
|
|
|
+ {{leader.content}}
|
|
|
</view>
|
|
|
<view class="flex " style="line-height: 20px;">
|
|
|
<u--image :src="src" width="80px" height="20px"></u--image>
|
|
|
- 2024-3-21 00:00
|
|
|
+ {{leader.createTime}}
|
|
|
</view>
|
|
|
</view>
|
|
|
</u-col>
|
|
|
</u-row>
|
|
|
- <u-row v-if="isinfo" justify="space-between" class="card_row card_row_border">
|
|
|
- <u-col span="1" textAlign="center" >
|
|
|
+ <u-row v-if="undertakeInfo.length>0" justify="space-between" class="card_row card_row_border">
|
|
|
+ <u-col span="1" textAlign="center">
|
|
|
<view class="vertical-text">承办情况</view>
|
|
|
</u-col>
|
|
|
- <u-col span="11" class="info_abstract">
|
|
|
- <view class="info_abstract_v">
|
|
|
- 承办地方 2024-3-21 00:00
|
|
|
+ <u-col span="11" class="info_abstract">
|
|
|
+ <view v-for="item in undertakeInfo" class="info_abstract_v">
|
|
|
+ {{item.content}} {{item.createTime}}
|
|
|
</view>
|
|
|
</u-col>
|
|
|
</u-row>
|
|
|
- <u-row v-if="isinfo" justify="space-between" class="card_row card_row_border">
|
|
|
+ <u-row v-if="officeInfo.length>0" justify="space-between" class="card_row card_row_border">
|
|
|
<u-col span="3" textAlign="center" class="card_col">
|
|
|
<view>备注</view>
|
|
|
</u-col>
|
|
|
- <u-col span="9" textAlign="center" >
|
|
|
- <view>[2024]001号</view>
|
|
|
+ <u-col span="9" textAlign="center">
|
|
|
+ <view v-for="item in officeInfo">{{item.remark}}</view>
|
|
|
</u-col>
|
|
|
</u-row>
|
|
|
<u--text style="margin: 10px;" size="12" type="error" text="所有涉密敏感信息不得上传"></u--text>
|
|
@@ -109,17 +108,11 @@
|
|
|
附件:
|
|
|
<view class="other_info" v-for="item in fileList">
|
|
|
<view class="other_pdf flex ">
|
|
|
- <u--text mode="link" :text="item.name" :href="item.url" ></u--text>
|
|
|
+ <u--text mode="link" :text="item.name" :href="item.url"></u--text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <u-upload
|
|
|
- :fileList="imgList"
|
|
|
- name="3"
|
|
|
- multiple
|
|
|
- :maxCount="imgList.length"
|
|
|
- :previewFullImage="true"
|
|
|
- :deletable="false"
|
|
|
- ></u-upload>
|
|
|
+ <u-upload :fileList="imgList" name="3" multiple :maxCount="imgList.length" :previewFullImage="true"
|
|
|
+ :deletable="false"></u-upload>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -128,17 +121,40 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import {isImageFormat} from "@/common/util.js"
|
|
|
+ import {
|
|
|
+ isImageFormat
|
|
|
+ } from "@/common/util.js"
|
|
|
+ import gwCirculationCard2Service from '@/api/circulation/gwCirculationCard2.js'
|
|
|
+ import gwFlowService from '@/api/circulation/gwFlowService.js'
|
|
|
+
|
|
|
export default {
|
|
|
mounted() {
|
|
|
- this.fileLists.forEach(item =>{
|
|
|
- if(isImageFormat(item.url)){
|
|
|
+ gwCirculationCard2Service.queryById(this.gwId).then(data => {
|
|
|
+ console.log("data========", data);
|
|
|
+ this.inputForm = data
|
|
|
+ this.inputForm.receivingTime = this.inputForm.receivingTime.substring(5, 10)
|
|
|
+ })
|
|
|
+ gwFlowService.queryByGwId(this.gwId).then(data => {
|
|
|
+ console.log("data========", data);
|
|
|
+ data.forEach(item =>{
|
|
|
+ if(item.which == 0 && item.state ==0) {
|
|
|
+ this.officeInfo.push(item)
|
|
|
+ }else if(item.which==1 && item.state ==0){
|
|
|
+ this.leaderInfo.push(item)
|
|
|
+ }else if(item.which==2 && item.state ==0) {
|
|
|
+ this.undertakeInfo.push(item)
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ })
|
|
|
+ this.fileLists.forEach(item => {
|
|
|
+ if (isImageFormat(item.url)) {
|
|
|
this.imgList.push(item)
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
const fileName = item.url.split(/[/\\]/).pop();
|
|
|
let a = {
|
|
|
name: fileName,
|
|
|
- url:item.url
|
|
|
+ url: item.url
|
|
|
}
|
|
|
this.fileList.push(a)
|
|
|
}
|
|
@@ -147,24 +163,44 @@
|
|
|
data() {
|
|
|
return {
|
|
|
src: 'https://cdn.uviewui.com/uview/album/1.jpg',
|
|
|
- fileLists:[{
|
|
|
- url:"https://cdn.uviewui.com/uview/album/1.txt"
|
|
|
- },{
|
|
|
- url:"https://cdn.uviewui.com/uview/album/1.pdf",
|
|
|
+ // 公文附件
|
|
|
+ fileLists: [],
|
|
|
+ fileList: [],
|
|
|
+ imgList: [],
|
|
|
+ // 办公室信息
|
|
|
+ officeInfo:[],
|
|
|
+ // 领导信息
|
|
|
+ leaderInfo:[],
|
|
|
+ // 承办信息
|
|
|
+ undertakeInfo:[],
|
|
|
+ inputForm: {
|
|
|
+ id: '',
|
|
|
+ yearNum: '',
|
|
|
+ cardNum: '',
|
|
|
+ sendingAgency: '',
|
|
|
+ docFontSize: '',
|
|
|
+ fileSource: '',
|
|
|
+ writtenTime: '',
|
|
|
+ receivingTime: '',
|
|
|
+ contentSummary: '',
|
|
|
+ attachedDocumentId: ''
|
|
|
},
|
|
|
- {
|
|
|
- url: 'https://cdn.uviewui.com/uview/album/1.jpg',
|
|
|
+ gwflow: {
|
|
|
+ id: '',
|
|
|
+ gwId: '',
|
|
|
+ content: '',
|
|
|
+ signfj: '',
|
|
|
+ createTruename: '',
|
|
|
+ nextTruename: '',
|
|
|
+ nextUser: '',
|
|
|
+ which: '',
|
|
|
+ state: '',
|
|
|
+
|
|
|
+ next: '',
|
|
|
+ nextLeadUser: '',
|
|
|
+ nextDepUser: '',
|
|
|
+ remark: '',
|
|
|
},
|
|
|
- {
|
|
|
- url: 'https://cdn.uviewui.com/uview/album/1.jpg',
|
|
|
- },{
|
|
|
- url: 'https://cdn.uviewui.com/uview/album/1.jpg',
|
|
|
- }],
|
|
|
- fileList:[],
|
|
|
- imgList:[]
|
|
|
- // isoffice: false,
|
|
|
- // isleader: false,
|
|
|
- // isinfo: false
|
|
|
}
|
|
|
},
|
|
|
props: {
|
|
@@ -180,6 +216,10 @@
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
},
|
|
|
+ gwId: {
|
|
|
+ type: String,
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
@@ -222,21 +262,29 @@
|
|
|
border: 1px solid;
|
|
|
word-wrap: break-word;
|
|
|
}
|
|
|
+
|
|
|
.card_row_border {
|
|
|
border-top: none;
|
|
|
}
|
|
|
+
|
|
|
.card_col {
|
|
|
border-right: 1px solid;
|
|
|
}
|
|
|
|
|
|
+ .card_col_1 {
|
|
|
+ border-left: 1px solid;
|
|
|
+ }
|
|
|
+
|
|
|
.info_abstract {
|
|
|
line-height: 16px;
|
|
|
word-wrap: break-word;
|
|
|
border-left: 1px solid;
|
|
|
}
|
|
|
+
|
|
|
.info_abstract_v {
|
|
|
margin: 18px;
|
|
|
}
|
|
|
+
|
|
|
.vertical-text {
|
|
|
writing-mode: vertical-rl;
|
|
|
/* 文字垂直排列,从右向左 */
|